From: Qiang Yu <quic_qianyu@quicinc.com>
To: mani@kernel.org, quic_jhugo@quicinc.com
Cc: mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org, quic_cang@quicinc.com,
quic_mrana@quicinc.com, Qiang Yu <quic_qianyu@quicinc.com>
Subject: [PATCH v5 0/3] Add sysfs entry to EDL mode
Date: Wed, 24 Apr 2024 11:21:52 +0800 [thread overview]
Message-ID: <1713928915-18229-1-git-send-email-quic_qianyu@quicinc.com> (raw)
Add EDL sysfs entry for mhi controller that provides edl_trigger callback.
Add mhi_pci_generic_edl_trigger for qualcomm sdx55,sdx65 and sdx75 as
edl_trigger callback.
v4->v5:
1. Add a blank line before the #endif in patch[2/3].
2. Add reviewed-by tag.
v3->v4:
1. Modify some comments, commit message and sysfs entry description.
2. Add error cleanups if get channel doorbell offset fail.
3. s/force_edl/trigger_edl
4. s/mhi_get_channel_doorbell/mhi_get_channel_doorbell_offset
5. Use mhi_get_channel_doorbell_offset in mhi_init_mmio()
v2->v3:
1. Update Documentation/ABI/stable/sysfs-bus-mhi with description of
force_edl sysfs entry.
2. Add comments about edl_trigger callback in mhi_controller struct.
3. Follow reverse christmas tree in mhi_pci_generic_edl_trigger.
4. Add a new API in MHI to allow controller to get CHDB address and avoid
duplicating the definition of CHDBOFF.
v1->v2:
1. Move all process needed by qualcomm sdx55,sdx65,sdx75 to enter EDL into
mhi_pci_generic_edl_trigger() as the callback to edl_trigger.
2. MHI stack creates EDL sysfs entry to invoke edl_trigger callback so
that devices need different mechanism to enter EDL can provide its own
edl_trigger callabck.
Qiang Yu (3):
bus: mhi: host: Add sysfs entry to force device to enter EDL
bus: mhi: host: Add a new API for getting channel doorbell address
bus: mhi: host: pci_generic: Add edl callback to enter EDL
Documentation/ABI/stable/sysfs-bus-mhi | 13 ++++++++++
drivers/bus/mhi/host/init.c | 39 ++++++++++++++++++++++++++---
drivers/bus/mhi/host/main.c | 16 ++++++++++++
drivers/bus/mhi/host/pci_generic.c | 45 ++++++++++++++++++++++++++++++++++
include/linux/mhi.h | 9 +++++++
5 files changed, 118 insertions(+), 4 deletions(-)
--
2.7.4
next reply other threads:[~2024-04-24 3:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-24 3:21 Qiang Yu [this message]
2024-04-24 3:21 ` [PATCH v5 1/3] bus: mhi: host: Add sysfs entry to force device to enter EDL Qiang Yu
2024-04-25 14:54 ` Manivannan Sadhasivam
2024-04-25 15:07 ` Jeffrey Hugo
2024-04-27 11:50 ` Manivannan Sadhasivam
2024-04-24 3:21 ` [PATCH v5 2/3] bus: mhi: host: Add a new API for getting channel doorbell address Qiang Yu
2024-04-24 3:21 ` [PATCH v5 3/3] bus: mhi: host: pci_generic: Add edl callback to enter EDL Qiang Yu
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=1713928915-18229-1-git-send-email-quic_qianyu@quicinc.com \
--to=quic_qianyu@quicinc.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mani@kernel.org \
--cc=mhi@lists.linux.dev \
--cc=quic_cang@quicinc.com \
--cc=quic_jhugo@quicinc.com \
--cc=quic_mrana@quicinc.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).