mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] usb: typec: ucsi: Ack connector change early
@ 2024-03-27 22:45 Christian A. Ehrhardt
  2024-03-27 22:45 ` [PATCH 1/3] usb: typec: ucsi: Stop abuse of bit definitions from ucsi.h Christian A. Ehrhardt
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Christian A. Ehrhardt @ 2024-03-27 22:45 UTC (permalink / raw)
  To: linux-kernel, Dmitry Baryshkov, Diogo Ivo
  Cc: Christian A. Ehrhardt, Heikki Krogerus, Greg Kroah-Hartman,
	Prashant Malani, Jameson Thies, Abhishek Pandit-Subedi,
	Neil Armstrong, Uwe Kleine-König, Samuel Čavoj,
	linux-usb

As briefly discussed here
  https://lore.kernel.org/lkml/Zf1XUrG1UbVJWzoz@kuha.fi.intel.com/
acknowledge connector change events along with the first command
in ucsi_handle_connector_change(). The connector lock should be
sufficient to protect the rest of the function and the partner
tasks.

This allows us to remove the Dell quirk in ucsi_acpi.c.
Additionally, this reduces the number of commands that are sent
with an un-acknowleged connector change event.

Christian A. Ehrhardt (3):
  usb: typec: ucsi: Stop abuse of bit definitions from ucsi.h
  usb: typec: ucsi: Never send a lone connector change ack
  usb: typec: ucsi_acpi: Remove Dell quirk

 drivers/usb/typec/ucsi/ucsi.c         | 48 ++++++++++-------------
 drivers/usb/typec/ucsi/ucsi.h         |  2 -
 drivers/usb/typec/ucsi/ucsi_acpi.c    | 56 ++-------------------------
 drivers/usb/typec/ucsi/ucsi_stm32g0.c |  1 +
 4 files changed, 25 insertions(+), 82 deletions(-)

-- 
2.40.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-04-03 10:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-27 22:45 [PATCH 0/3] usb: typec: ucsi: Ack connector change early Christian A. Ehrhardt
2024-03-27 22:45 ` [PATCH 1/3] usb: typec: ucsi: Stop abuse of bit definitions from ucsi.h Christian A. Ehrhardt
2024-04-03 10:39   ` Heikki Krogerus
2024-03-27 22:45 ` [PATCH 2/3] usb: typec: ucsi: Never send a lone connector change ack Christian A. Ehrhardt
2024-04-03 10:40   ` Heikki Krogerus
2024-03-27 22:45 ` [PATCH 3/3] usb: typec: ucsi_acpi: Remove Dell quirk Christian A. Ehrhardt
2024-04-03 10:40   ` Heikki Krogerus
2024-03-29  5:56 ` [PATCH 0/3] usb: typec: ucsi: Ack connector change early Dmitry Baryshkov

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®