Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d052aa0 authored by Matt Ranostay's avatar Matt Ranostay Committed by Kishon Vijay Abraham I
Browse files

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: default avatarMatt Ranostay <matt@ranostay.consulting>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent 5d04c883
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -317,6 +317,9 @@ static enum musb_vbus_id_status
			linkstat = MUSB_VBUS_OFF;
	}

	kobject_uevent(&twl->dev->kobj, linkstat == MUSB_VBUS_VALID
					? KOBJ_ONLINE : KOBJ_OFFLINE);

	dev_dbg(twl->dev, "HW_CONDITIONS 0x%02x/%d; link %d\n",
			status, status, linkstat);