Linux USB
 help / color / mirror / Atom feed
From: Dickson Wu via B4 Relay <devnull+dickson.wu.certik.com@kernel.org>
To: stable@vger.kernel.org
Cc: Fan Wu <fanwu01@zju.edu.cn>,
	Johan Hovold <johan+linaro@kernel.org>,
	 Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
	 Heikki Krogerus <heikki.krogerus@linux.intel.com>,
	 linux-usb@vger.kernel.org
Subject: [PATCH 6.6.y 0/3] usb: typec: qcom-pmic-typec: fix late probe and debounce teardown
Date: Fri, 27 Nov 2026 20:47:00 +0000	[thread overview]
Message-ID: <20261127-typec-66b-v1-0-6fe3a0983e5e@certik.com> (raw)
In-Reply-To: <2026090807-unbalance-starlet-1c55@gregkh>

Patch 1 unwinds port startup and TCPM registration on late probe errors.
Patch 2 blocks new CC debounce work and drains pending work on port stop.
Patch 3 does the same if port startup fails before the IRQs are enabled.
The two debounce fixes failed to apply to 6.6 in
<2026090807-unbalance-starlet-1c55@gregkh> and
<2026090836-sublet-submersed-cfc4@gregkh>.

The late-probe patch uses a newer driver layout. On 6.6 the unwind
calls the port helpers directly and keeps fwnode_handle_put().
This branch lacks disable_delayed_work_sync(), so port stop and
port-start failure block new debounce work under the port lock
and cancel pending work synchronously.

Tested on v6.6.163:
- The three patches applied cleanly with git am.
- Base and patched x86_64 allmodconfig W=1 builds passed for
  qcom_pmic_typec.o and qcom_pmic_typec_port.o with identical diagnostics.
- The patched x86_64 kernel booted under QEMU/KVM with
  CONFIG_TYPEC_QCOM_PMIC=y and powered down normally.
The guest has no Qualcomm PMIC, so the error and teardown paths were
checked in source only.

The backport and the test runs were prepared with AI coding tools
(OpenAI Codex agents, with review by Claude). I went over the result
before signing off.

---
Fan Wu (2):
      usb: typec: qcom-pmic-typec: disable cc_debounce_dwork on stop
      usb: typec: qcom-pmic-typec: drain cc_debounce_dwork if port_start() fails

Johan Hovold (1):
      usb: typec: qcom-pmic: fix use-after-free on late probe errors

 drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c      |  8 ++++++--
 drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c | 20 ++++++++++++++++++++
 2 files changed, 26 insertions(+), 2 deletions(-)
---
base-commit: e2bb30811e063ce0db964484357973b855b06572
change-id: 20261127-typec-66b-370b700f7dce

Best regards,
--  
Dickson Wu <dickson.wu@certik.com>



       reply	other threads:[~2026-11-27 20:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2026090807-unbalance-starlet-1c55@gregkh>
2026-11-27 20:47 ` Dickson Wu via B4 Relay [this message]
2026-11-27 20:59   ` [PATCH 6.6.y 0/3] usb: typec: qcom-pmic-typec: fix late probe and debounce teardown sashiko-bot
2026-11-27 20:47 ` [PATCH 6.6.y 1/3] usb: typec: qcom-pmic: fix use-after-free on late probe errors Dickson Wu via B4 Relay
2026-11-27 20:47 ` [PATCH 6.6.y 2/3] usb: typec: qcom-pmic-typec: disable cc_debounce_dwork on stop Dickson Wu via B4 Relay
2026-11-27 20:47 ` [PATCH 6.6.y 3/3] usb: typec: qcom-pmic-typec: drain cc_debounce_dwork if port_start() fails Dickson Wu via B4 Relay

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=20261127-typec-66b-v1-0-6fe3a0983e5e@certik.com \
    --to=devnull+dickson.wu.certik.com@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=dickson.wu@certik.com \
    --cc=fanwu01@zju.edu.cn \
    --cc=heikki.krogerus@linux.intel.com \
    --cc=johan+linaro@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --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