From: "André Draszik" <andre.draszik@linaro.org>
To: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Badhri Jagan Sridharan <badhri@google.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Clark Williams <clrkwllms@kernel.org>,
Steven Rostedt <rostedt@goodmis.org>,
Peter Griffin <peter.griffin@linaro.org>,
Tudor Ambarus <tudor.ambarus@linaro.org>,
Juan Yescas <jyescas@google.com>,
Amit Sunil Dhamne <amitsd@google.com>,
kernel-team@android.com, linux-usb@vger.kernel.org,
linux-rt-devel@lists.linux.dev
Subject: Re: [PATCH v2 4/4] usb: typec: tcpm/tcpci_maxim: only complain about vbus when sourcing
Date: Mon, 30 Nov 2026 13:35:35 +0000 [thread overview]
Message-ID: <feb397b6850f0b25c5fb1304f20bdbb0bb73cd5d.camel@linaro.org> (raw)
In-Reply-To: <aw1uKNpHqBP62jeF@black.igk.intel.com>
Hi Heikki,
On Mon, 2026-11-30 at 13:38 +0100, Heikki Krogerus wrote:
> On Wed, Nov 25, 2026 at 12:16:58PM +0000, André Draszik wrote:
> > get_vbus_regulator_handle() logs a spurious "Failed to get vbus
> > regulator handle" error during probe and stores the ERR_PTR in
> > chip->vbus_reg even when sourcing VBUS is not requested.
> >
> > During tcpci_register_port(), tcpm_init_vbus() calls set_vbus(false,
> > false) before the PMIC charger providing the vbus regulator has probed
> > (the charger's power supply waits for the TCPM power supply), or on
> > sink-only boards without a vbus regulator. Sink-only operation does not
> > need the vbus regulator, and max_tcpci_set_vbus() already ignores
> > regulator lookup failures when source is false.
> >
> > Leave chip->vbus_reg untouched when regulator_get_exclusive() fails,
> > return the error from get_vbus_regulator_handle() silently, and log an
> > error in max_tcpci_set_vbus() only when sourcing is requested.
> >
> > Fixes: 0c8935642cb0 ("usb: typec: tcpm/tcpci_maxim: deprecate WAR for setting charger mode")
> > Signed-off-by: André Draszik <andre.draszik@linaro.org>
>
> Not for stable?
AFAIU, Fixes: commits get ported to stable if they apply cleanly, while
cc:stable is asking maintainers to do more work to ensure it backports,
i.e. deal with conflicts.
This here is just getting rid of a log message, for which I didn't think
stable would strictly be required.
What do you think, should I explicitly add it?
Cheers,
Andre'
next prev parent reply other threads:[~2026-11-30 13:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 12:16 [PATCH v2 0/4] usb: typec: tcpm/tcpci_maxim: lockdep, wakeup and vbus regulator fixes André Draszik
2026-11-25 12:16 ` [PATCH v2 1/4] usb: typec: tcpm/tcpci_maxim: fix invalid wait context André Draszik
2026-11-25 12:16 ` [PATCH v2 2/4] usb: typec: tcpm/tcpci_maxim: init wakeup before irq André Draszik
2026-11-25 12:16 ` [PATCH v2 3/4] usb: typec: tcpm/tcpci_maxim: fix vbus regulator UAF on unbind André Draszik
2026-11-30 12:35 ` Heikki Krogerus
2026-11-25 12:16 ` [PATCH v2 4/4] usb: typec: tcpm/tcpci_maxim: only complain about vbus when sourcing André Draszik
2026-11-30 12:38 ` Heikki Krogerus
2026-11-30 13:35 ` André Draszik [this message]
2026-11-30 15:39 ` Heikki Krogerus
2026-11-30 15:50 ` Sebastian Andrzej Siewior
2026-11-25 12:21 ` [PATCH v2 0/4] usb: typec: tcpm/tcpci_maxim: lockdep, wakeup and vbus regulator fixes sashiko-bot
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=feb397b6850f0b25c5fb1304f20bdbb0bb73cd5d.camel@linaro.org \
--to=andre.draszik@linaro.org \
--cc=amitsd@google.com \
--cc=badhri@google.com \
--cc=bigeasy@linutronix.de \
--cc=clrkwllms@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=jyescas@google.com \
--cc=kernel-team@android.com \
--cc=linux-rt-devel@lists.linux.dev \
--cc=linux-usb@vger.kernel.org \
--cc=peter.griffin@linaro.org \
--cc=rostedt@goodmis.org \
--cc=tudor.ambarus@linaro.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