[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240121204123.275441-1-lk@c--e.de>
Date: Sun, 21 Jan 2024 21:41:20 +0100
From: "Christian A. Ehrhardt" <lk@...e.de>
To: Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
linux-usb@...r.kernel.org
Cc: "Christian A. Ehrhardt" <lk@...e.de>,
Dell.Client.Kernel@...l.com,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Neil Armstrong <neil.armstrong@...aro.org>,
Hans de Goede <hdegoede@...hat.com>,
Jack Pham <quic_jackp@...cinc.com>,
Fabrice Gasnier <fabrice.gasnier@...s.st.com>,
Samuel Čavoj <samuel@...oj.net>,
linux-kernel@...r.kernel.org
Subject: [PATCH v3 0/3] UCSI fixes
This small series contains two general bugfixes to ucsi_acpi
and a quirk to make the UCSI controller on various Dell laptops
work. The changes can be applied idependently but all three
are required to fix the Dell issues.
For details on the general bugfixes please refer to the individual
commit messages.
The UCSI interface on a Dell Latitude 5431 stops working after
the first async event with:
GET_CONNECTOR_STATUS failed (-110)
The core problem is that when sending the ACK_CC_CI command to
clear the connector status changed condition the PPM expects us
to send anothr ack for the command completion condition. However,
the UCSI spec states that no ack for the command completion is
required when the command is ACK_CC_CI (or PPM_RESET).
There are various reports that suggest that several Dell laptops
are affected by this problem. E.g. the kernel bugzilla has this
report which is most likely an instance of this bug:
https://bugzilla.kernel.org/show_bug.cgi?id=216426
This led me to the somewhat bold conclusion that the quirk should
probably be applied to on Dell systems.
To mitigate potential problems from this dell quirk includes a
probe mechanism that detect the need for the quirk once and we
only deviate from the UCSI spec if the quirk is actually required.
Changes in v3 from v2:
- Add an info message if the quirk is enabled.
- Fix checkpatch errors etc.
- Add Fixes: and CC: stable.
Changes in v2 from v1:
- Add a second general bugfix.
- Remove module parmater and generic quirk infrastructure.
- Implement quirk directly in ucsi_acpi.c
- Add probe logic to reliably detect the need for the quirk
Christian A. Ehrhardt (3):
usb: ucsi: Add missing ppm_lock
usb: ucsi_acpi: Fix command completion handling
usb: ucsi_acpi: Quirk to ack a connector change ack cmd
drivers/usb/typec/ucsi/ucsi.c | 2 +
drivers/usb/typec/ucsi/ucsi_acpi.c | 86 +++++++++++++++++++++++++++---
2 files changed, 81 insertions(+), 7 deletions(-)
--
2.40.1
Powered by blists - more mailing lists