From: Manivannan Sadhasivam <mani@kernel•org>
To: Robert Marko <robimarko@gmail•com>
Cc: kvalo@kernel•org, davem@davemloft•net, edumazet@google•com,
kuba@kernel•org, pabeni@redhat•com, gregkh@linuxfoundation•org,
elder@linaro•org, hemantk@codeaurora•org, quic_jhugo@quicinc•com,
quic_qianyu@quicinc•com, bbhatt@codeaurora•org,
mhi@lists•linux.dev, linux-arm-msm@vger•kernel.org,
ath11k@lists•infradead.org, linux-wireless@vger•kernel.org,
netdev@vger•kernel.org, ansuelsmth@gmail•com
Subject: Re: [PATCH 1/2] bus: mhi: core: add SBL state callback
Date: Mon, 7 Nov 2022 16:57:56 +0530 [thread overview]
Message-ID: <20221107112756.GB2220@thinkpad> (raw)
In-Reply-To: <20221105194943.826847-1-robimarko@gmail.com>
On Sat, Nov 05, 2022 at 08:49:42PM +0100, Robert Marko wrote:
> Add support for SBL state callback in MHI core.
>
> It is required for ath11k MHI devices in order to be able to set QRTR
> instance ID in the SBL state so that QRTR instance ID-s dont conflict in
> case of multiple PCI/MHI cards or AHB + PCI/MHI card.
> Setting QRTR instance ID is only possible in SBL state and there is
> currently no way to ensure that we are in that state, so provide a
> callback that the controller can trigger off.
>
Where can I find the corresponding ath11k patch that makes use of this
callback?
Thanks,
Mani
> Signed-off-by: Robert Marko <robimarko@gmail•com>
> ---
> drivers/bus/mhi/host/main.c | 1 +
> include/linux/mhi.h | 2 ++
> 2 files changed, 3 insertions(+)
>
> diff --git a/drivers/bus/mhi/host/main.c b/drivers/bus/mhi/host/main.c
> index df0fbfee7b78..8b03dd1f0cb8 100644
> --- a/drivers/bus/mhi/host/main.c
> +++ b/drivers/bus/mhi/host/main.c
> @@ -900,6 +900,7 @@ int mhi_process_ctrl_ev_ring(struct mhi_controller *mhi_cntrl,
> switch (event) {
> case MHI_EE_SBL:
> st = DEV_ST_TRANSITION_SBL;
> + mhi_cntrl->status_cb(mhi_cntrl, MHI_CB_EE_SBL_MODE);
> break;
> case MHI_EE_WFW:
> case MHI_EE_AMSS:
> diff --git a/include/linux/mhi.h b/include/linux/mhi.h
> index a5441ad33c74..beffe102dd19 100644
> --- a/include/linux/mhi.h
> +++ b/include/linux/mhi.h
> @@ -34,6 +34,7 @@ struct mhi_buf_info;
> * @MHI_CB_SYS_ERROR: MHI device entered error state (may recover)
> * @MHI_CB_FATAL_ERROR: MHI device entered fatal error state
> * @MHI_CB_BW_REQ: Received a bandwidth switch request from device
> + * @MHI_CB_EE_SBL_MODE: MHI device entered SBL mode
> */
> enum mhi_callback {
> MHI_CB_IDLE,
> @@ -45,6 +46,7 @@ enum mhi_callback {
> MHI_CB_SYS_ERROR,
> MHI_CB_FATAL_ERROR,
> MHI_CB_BW_REQ,
> + MHI_CB_EE_SBL_MODE,
> };
>
> /**
> --
> 2.38.1
>
--
மணிவண்ணன் சதாசிவம்
next prev parent reply other threads:[~2022-11-07 11:28 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-05 19:49 [PATCH 1/2] bus: mhi: core: add SBL state callback Robert Marko
2022-11-05 19:49 ` [PATCH 2/2] wifi: ath11k: use unique QRTR instance ID Robert Marko
2022-11-07 15:09 ` Jeffrey Hugo
2022-11-07 17:15 ` Robert Marko
2022-11-07 17:47 ` Manivannan Sadhasivam
2022-11-07 17:52 ` Robert Marko
2022-11-07 18:02 ` Jeffrey Hugo
2022-11-08 17:24 ` Kalle Valo
2022-11-22 11:26 ` Kalle Valo
2022-12-14 12:02 ` Robert Marko
2022-12-22 13:57 ` Kalle Valo
2023-01-11 9:21 ` Robert Marko
2023-01-11 17:09 ` Kalle Valo
2023-01-11 17:10 ` Robert Marko
2023-01-12 9:40 ` Kalle Valo
2023-01-12 9:43 ` Robert Marko
2023-01-12 9:48 ` Kalle Valo
2023-01-23 19:21 ` Robert Marko
2023-03-08 12:43 ` Kalle Valo
2023-04-26 12:40 ` Robert Marko
2022-11-07 11:27 ` Manivannan Sadhasivam [this message]
2022-11-07 11:31 ` [PATCH 1/2] bus: mhi: core: add SBL state callback Robert Marko
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=20221107112756.GB2220@thinkpad \
--to=mani@kernel$(echo .)org \
--cc=ansuelsmth@gmail$(echo .)com \
--cc=ath11k@lists$(echo .)infradead.org \
--cc=bbhatt@codeaurora$(echo .)org \
--cc=davem@davemloft$(echo .)net \
--cc=edumazet@google$(echo .)com \
--cc=elder@linaro$(echo .)org \
--cc=gregkh@linuxfoundation$(echo .)org \
--cc=hemantk@codeaurora$(echo .)org \
--cc=kuba@kernel$(echo .)org \
--cc=kvalo@kernel$(echo .)org \
--cc=linux-arm-msm@vger$(echo .)kernel.org \
--cc=linux-wireless@vger$(echo .)kernel.org \
--cc=mhi@lists$(echo .)linux.dev \
--cc=netdev@vger$(echo .)kernel.org \
--cc=pabeni@redhat$(echo .)com \
--cc=quic_jhugo@quicinc$(echo .)com \
--cc=quic_qianyu@quicinc$(echo .)com \
--cc=robimarko@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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