From: Kishon Vijay Abraham I <kishon@ti.com>
To: Tony Lindgren <tony@atomide.com>, Matt Ranostay <mranostay@gmail.com>
Cc: <linux-kernel@vger.kernel.org>, Matt Ranostay <matt@ranostay.consulting>
Subject: Re: [PATCH] phy: phy-twl4030-usb: emit VBUS status events to userspace
Date: Tue, 15 Nov 2016 19:22:16 +0530 [thread overview]
Message-ID: <582B1310.5080909@ti.com> (raw)
In-Reply-To: <20160921212439.sjccqx3jg5gpcqaw@atomide.com>
On Thursday 22 September 2016 02:54 AM, Tony Lindgren wrote:
> * Matt Ranostay <mranostay@gmail.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@atomide.com>
merged, thanks.
-Kishon
>
>>
>> Cc: Tony Lindgren <tony@atomide.com>
>> Signed-off-by: Matt Ranostay <matt@ranostay.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
>>
prev parent reply other threads:[~2016-11-15 13:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-21 2:58 [PATCH] phy: phy-twl4030-usb: emit VBUS status events to userspace Matt Ranostay
2016-09-21 21:24 ` Tony Lindgren
2016-11-15 13:52 ` Kishon Vijay Abraham I [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=582B1310.5080909@ti.com \
--to=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@ranostay.consulting \
--cc=mranostay@gmail.com \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.