From: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
To: Hongxing Xu <xing1989093@163.com>,
Manivannan Sadhasivam <mani@kernel.org>
Cc: mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] bus: mhi: host: Add debug port personality switching
Date: Fri, 13 Nov 2026 12:05:55 -0700 [thread overview]
Message-ID: <6b3fbc60-34ec-4b7e-bbc7-84a0ec5d496e@oss.qualcomm.com> (raw)
In-Reply-To: <20261113122302.2174-1-xing1989093@163.com>
On 11/13/2026 5:23 AM, Hongxing Xu wrote:
> diff --git a/Documentation/ABI/stable/sysfs-bus-mhi b/Documentation/ABI/stable/sysfs-bus-mhi
> index 8b9698f..1fe8510 100644
> --- a/Documentation/ABI/stable/sysfs-bus-mhi
> +++ b/Documentation/ABI/stable/sysfs-bus-mhi
> @@ -30,6 +30,20 @@ Description: Initiates a SoC reset on the MHI controller. A SoC reset is
> non-responsive, or as a means of loading new firmware as a
> system administration task.
>
> +What: /sys/bus/mhi/devices/.../debug_ports
> +Date: November 2026
> +KernelVersion: 7.5
> +Contact: mhi@lists.linux.dev
> +Description: Controls which set of ports the MHI controller enumerates.
> + Writing 0 selects the commercial personality, in which the
> + channels that are only useful for debugging are not
> + enumerated. Writing 1 selects the debug personality and
> + additionally enumerates those channels, so that the extra
> + WWAN ports appear, e.g. one for the diagnostic interface.
> + Reading returns the currently active personality.
> + Controllers that do not describe any debug-only channel are
> + unaffected by this attribute.
> +
Why sysfs and not debugfs?
> /**
> @@ -381,6 +384,16 @@ struct mhi_controller_config {
> * @no_m3: Device doesn't support M3 state
> * @irq_flags: irq flags passed to request_irq (optional)
> * @mru: the default MRU for the MHI device
> + * @debug_ports: Whether the debug port personality is active, i.e. whether the
> + * channels marked with debug_only are enumerated. Controlled
> + * from userspace through the debug_ports sysfs attribute and
> + * applied by debug_ports_work. Zero-initialised, so a
> + * controller starts in the commercial personality.
> + * @debug_ports_pending: Latest personality requested from userspace, applied
> + * by debug_ports_work
> + * @debug_ports_work: Applies @debug_ports_pending from the ordered high
> + * priority workqueue, so the device creation it performs
> + * cannot race with a state transition
Are these optional?
prev parent reply other threads:[~2026-11-13 19:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 12:23 Hongxing Xu
2026-11-13 12:23 ` [PATCH 2/2] bus: mhi: host: Add debug-only channel config macros Hongxing Xu
2026-11-13 19:05 ` Jeff Hugo [this message]
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=6b3fbc60-34ec-4b7e-bbc7-84a0ec5d496e@oss.qualcomm.com \
--to=jeff.hugo@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mani@kernel.org \
--cc=mhi@lists.linux.dev \
--cc=xing1989093@163.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
all inboxes | Powered by JetHome®