mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] usb: phy: twl6030: fix comparator init order and teardown cleanup
@ 2026-11-27 13:39 Bin Luo (University of Electronic Science and Technology of China)
  2026-11-27 13:39 ` [PATCH v2 1/2] usb: phy: twl6030: initialize lock and work before registering comparator Bin Luo (University of Electronic Science and Technology of China)
  2026-11-27 13:39 ` [PATCH v2 2/2] usb: phy: twl6030: clear comparator on probe failure and remove Bin Luo (University of Electronic Science and Technology of China)
  0 siblings, 2 replies; 3+ messages in thread
From: Bin Luo (University of Electronic Science and Technology of China) @ 2026-11-27 13:39 UTC (permalink / raw)
  To: gregkh; +Cc: linux-usb, linux-kernel

Hi Greg,

This v2 series addresses your review feedback on v1:
- Drop the unnecessary comment in twl6030_usb_probe().
- Split the v1 patch into two single-purpose patches:
  1/2 initializes twl->lock and work items before registering the
      comparator with omap_usb2_set_comparator().
  2/2 clears the comparator via omap_usb2_set_comparator(NULL) and
      cancels set_vbus_work on probe failure paths and in
      twl6030_usb_remove().

Note on drivers/phy/ti/phy-omap-usb2.c:
Automated review pointed out that omap_usb2_set_comparator() and its
comparator readers in drivers/phy/ti/phy-omap-usb2.c do not currently
synchronize concurrent updates to phy->comparator. Fixing that requires
adding synchronization in the TI PHY driver (a separate subsystem);
this series focuses on fixing the initialization ordering and missing
unregistration bugs in phy-twl6030-usb.c.

Bin Luo (University of Electronic Science and Technology of China) (2):
  usb: phy: twl6030: initialize lock and work before registering
    comparator
  usb: phy: twl6030: clear comparator on probe failure and remove

 drivers/usb/phy/phy-twl6030-usb.c | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

-- 
2.43.0

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

end of thread, other threads:[~2026-11-27 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 13:39 [PATCH v2 0/2] usb: phy: twl6030: fix comparator init order and teardown cleanup Bin Luo (University of Electronic Science and Technology of China)
2026-11-27 13:39 ` [PATCH v2 1/2] usb: phy: twl6030: initialize lock and work before registering comparator Bin Luo (University of Electronic Science and Technology of China)
2026-11-27 13:39 ` [PATCH v2 2/2] usb: phy: twl6030: clear comparator on probe failure and remove Bin Luo (University of Electronic Science and Technology of China)

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®