Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: phy-twl4030-usb: emit VBUS status events to userspace

Emit KOBJ_ONLINE/KOBJ_OFFLINE action uevent on VBUS status changes.

Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Matt Ranostay <matt@ranostay.consulting>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

authored by

Matt Ranostay and committed by
Kishon Vijay Abraham I
9d052aa0 5d04c883

+3
+3
drivers/phy/phy-twl4030-usb.c
··· 317 317 linkstat = MUSB_VBUS_OFF; 318 318 } 319 319 320 + kobject_uevent(&twl->dev->kobj, linkstat == MUSB_VBUS_VALID 321 + ? KOBJ_ONLINE : KOBJ_OFFLINE); 322 + 320 323 dev_dbg(twl->dev, "HW_CONDITIONS 0x%02x/%d; link %d\n", 321 324 status, status, linkstat); 322 325