bus: mhi: core: Fix reading wake_capable channel configuration
authorBhaumik Bhatt <quic_bbhatt@quicinc.com>
Thu, 16 Dec 2021 08:12:23 +0000 (13:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Dec 2021 16:17:14 +0000 (17:17 +0100)
The 'wake-capable' entry in channel configuration is not set when
parsing the configuration specified by the controller driver. Add
the missing entry to ensure channel is correctly specified as a
'wake-capable' channel.

Link: https://lore.kernel.org/r/1638320491-13382-1-git-send-email-quic_bbhatt@quicinc.com
Fixes: 0cbf260820fa ("bus: mhi: core: Add support for registering MHI controllers")
Cc: stable@vger.kernel.org
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bhaumik Bhatt <quic_bbhatt@quicinc.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20211216081227.237749-7-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/mhi/core/init.c

index 5aaca6d0f52b258d18414c25be85395b71c1cec4..f1ec344175928d5aca7e9d90e2240ea9c6d802bb 100644 (file)
@@ -788,6 +788,7 @@ static int parse_ch_cfg(struct mhi_controller *mhi_cntrl,
                mhi_chan->offload_ch = ch_cfg->offload_channel;
                mhi_chan->db_cfg.reset_req = ch_cfg->doorbell_mode_switch;
                mhi_chan->pre_alloc = ch_cfg->auto_queue;
+               mhi_chan->wake_capable = ch_cfg->wake_capable;
 
                /*
                 * If MHI host allocates buffers, then the channel direction