[PATCH 0/2] usb: typec: ucsi: avoid problems during initial PPM reset

Fedor Pchelkin posted 2 patches 10 months ago
drivers/usb/typec/ucsi/ucsi.c           | 12 ++++++------
drivers/usb/typec/ucsi/ucsi.h           |  2 ++
drivers/usb/typec/ucsi/ucsi_acpi.c      | 21 ++++++++++++++-------
drivers/usb/typec/ucsi/ucsi_ccg.c       |  1 +
drivers/usb/typec/ucsi/ucsi_glink.c     |  1 +
drivers/usb/typec/ucsi/ucsi_stm32g0.c   |  1 +
drivers/usb/typec/ucsi/ucsi_yoga_c630.c |  1 +
7 files changed, 26 insertions(+), 13 deletions(-)
[PATCH 0/2] usb: typec: ucsi: avoid problems during initial PPM reset
Posted by Fedor Pchelkin 10 months ago
The first patch of the series is intended to fix a "WARNING in
ucsi_reset_ppm()" reported in mailing lists [1], in bugzilla [2] and
distro-specific bug-trackers [3]. I've got the same splat rather
frequently occuring on my system so took the patch [4] proposed by
Christian for testing.

The second patch is all about timeout issues during the initial PPM reset
attempt which I observe every time booting my Lenovo laptop (I'm not an
active UCSI user so didn't pay attention to them before but saw this
problem while poking around with the patch for WARNING). The timeout issue
is not a recent regression and it is reproduced on my laptop back to v5.12
at least. That said, this timeout also sometimes leads to the WARNING in
question because it is used for polling the CCI value there as well.

Link to the initial RFC version [5] with comments and reviews.

[1]: https://lore.kernel.org/linux-usb/Z18hJM55ED2hYJ6D@lappy/
[2]: https://bugzilla.kernel.org/show_bug.cgi?id=219590
[3]: https://retrace.fedoraproject.org/faf/reports/1113325/
[4]: https://lore.kernel.org/linux-usb/Z2Cf1AI8CXao5ZAn@cae.in-ulm.de/
[5]: https://lore.kernel.org/linux-usb/20250206184327.16308-1-boddah8794@gmail.com/

Christian A. Ehrhardt (1):
  acpi: typec: ucsi: Introduce a ->poll_cci method

Fedor Pchelkin (1):
  usb: typec: ucsi: increase timeout for PPM reset operations

 drivers/usb/typec/ucsi/ucsi.c           | 12 ++++++------
 drivers/usb/typec/ucsi/ucsi.h           |  2 ++
 drivers/usb/typec/ucsi/ucsi_acpi.c      | 21 ++++++++++++++-------
 drivers/usb/typec/ucsi/ucsi_ccg.c       |  1 +
 drivers/usb/typec/ucsi/ucsi_glink.c     |  1 +
 drivers/usb/typec/ucsi/ucsi_stm32g0.c   |  1 +
 drivers/usb/typec/ucsi/ucsi_yoga_c630.c |  1 +
 7 files changed, 26 insertions(+), 13 deletions(-)

-- 
2.48.1