[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <582B1310.5080909@ti.com>
Date: Tue, 15 Nov 2016 19:22:16 +0530
From: Kishon Vijay Abraham I <kishon@...com>
To: Tony Lindgren <tony@...mide.com>,
Matt Ranostay <mranostay@...il.com>
CC: <linux-kernel@...r.kernel.org>,
Matt Ranostay <matt@...ostay.consulting>
Subject: Re: [PATCH] phy: phy-twl4030-usb: emit VBUS status events to
userspace
On Thursday 22 September 2016 02:54 AM, Tony Lindgren wrote:
> * Matt Ranostay <mranostay@...il.com> [160920 19:58]:
>> Emit KOBJ_ONLINE/KOBJ_OFFLINE action uevent on VBUS status changes.
>
> Makes sense for configuring USB gadgets on demand when connected:
>
> Acked-by: Tony Lindgren <tony@...mide.com>
merged, thanks.
-Kishon
>
>>
>> Cc: Tony Lindgren <tony@...mide.com>
>> Signed-off-by: Matt Ranostay <matt@...ostay.consulting>
>> ---
>> drivers/phy/phy-twl4030-usb.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/drivers/phy/phy-twl4030-usb.c b/drivers/phy/phy-twl4030-usb.c
>> index d9b10a39a2cf..4830392c2fe1 100644
>> --- a/drivers/phy/phy-twl4030-usb.c
>> +++ b/drivers/phy/phy-twl4030-usb.c
>> @@ -316,6 +316,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);
>>
>> --
>> 2.7.4
>>
Powered by blists - more mailing lists