From: Bhaumik Bhatt <quic_bbhatt@quicinc.com>
To: <manivannan.sadhasivam@linaro.org>
Cc: <linux-arm-msm@vger.kernel.org>, <quic_hemantk@quicinc.com>,
<quic_jhugo@quicinc.com>, <linux-kernel@vger.kernel.org>,
<mhi@lists.linux.dev>, <stable@vger.kernel.org>,
<quic_olgak@quicinc.com>, <loic.poulain@linaro.org>,
Bhaumik Bhatt <quic_bbhatt@quicinc.com>
Subject: [PATCH v2] bus: mhi: core: Fix reading wake_capable channel configuration
Date: Tue, 30 Nov 2021 17:01:31 -0800 [thread overview]
Message-ID: <1638320491-13382-1-git-send-email-quic_bbhatt@quicinc.com> (raw)
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.
Cc: stable@vger.kernel.org
Fixes: 0cbf260820fa ("bus: mhi: core: Add support for registering MHI controllers")
Signed-off-by: Bhaumik Bhatt <quic_bbhatt@quicinc.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
---
drivers/bus/mhi/core/init.c | 1 +
1 file changed, 1 insertion(+)
v2:
-Update subject as per comments
-Add fixes tag and CC stable
diff --git a/drivers/bus/mhi/core/init.c b/drivers/bus/mhi/core/init.c
index 5aaca6d..f1ec3441 100644
--- a/drivers/bus/mhi/core/init.c
+++ b/drivers/bus/mhi/core/init.c
@@ -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
--
2.7.4
next reply other threads:[~2021-12-01 1:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-01 1:01 Bhaumik Bhatt [this message]
2021-12-03 8:43 ` [PATCH v2] bus: mhi: core: Fix reading wake_capable channel configuration Manivannan Sadhasivam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1638320491-13382-1-git-send-email-quic_bbhatt@quicinc.com \
--to=quic_bbhatt@quicinc.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=loic.poulain@linaro.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=mhi@lists.linux.dev \
--cc=quic_hemantk@quicinc.com \
--cc=quic_jhugo@quicinc.com \
--cc=quic_olgak@quicinc.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox