[PATCH v2 0/2] usb: phy: twl6030: fix comparator init order and teardown cleanup

From: Bin Luo (University of Electronic Science and Technology of China)

Date: Fri Nov 27 2026 - 08:39:37 EST


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