ibute file under sysfs is
registered as "state", while usb_gadget_set_state
take it as "status" when it's going to update.
Here it is made consistent as "state".
Signed-off-by: Rong Wang
diff --git a/drivers/usb/gadget/udc-core.c b/drivers/usb/gadget/udc-core.
2013 at 04:33:43PM +0800, Rong Wang wrote:
>> On Wed, Jul 17, 2013 at 9:27 PM, Felipe Balbi wrote:
>> > On Wed, Jul 17, 2013 at 09:04:54PM +0800, Rong Wang wrote:
>> >> Hi Felipe,
>> >>
>> >> On Wed, Jul 17, 2013 at 3:57 PM, Felipe Balbi wrote:
&
On Wed, Jul 17, 2013 at 9:27 PM, Felipe Balbi wrote:
> On Wed, Jul 17, 2013 at 09:04:54PM +0800, Rong Wang wrote:
>> Hi Felipe,
>>
>> On Wed, Jul 17, 2013 at 3:57 PM, Felipe Balbi wrote:
>> > Hi,
>> >
>> > On Mon, Jul 15, 2013 at 11:31:17PM -0700,
Hi Peter,
On Wed, Jul 17, 2013 at 10:36 AM, Peter Chen wrote:
> On Mon, Jul 15, 2013 at 11:31:17PM -0700, Greg KH wrote:
>> On Tue, Jul 16, 2013 at 11:49:07AM +0800, Rong Wang wrote:
>> > Hi Greg,
>> >
>> > The USB on our platform can change roles between
gt; no ?
I do not know if udev can polling sysfs file content change. I'll study this.
But the change is triggered by calling usb_gadget_set_state, and I find
composite framework do not call this. Then we should do this common work
in every udc driver?
>
> --
> balbi
====
Hi Greg,
On Tue, Jul 16, 2013 at 2:31 PM, Greg KH wrote:
> On Tue, Jul 16, 2013 at 11:49:07AM +0800, Rong Wang wrote:
>> Hi Greg,
>>
>> The USB on our platform can change roles between HOST and GADGET, but
>> it is not capable of OTG.
>
> That kind of sounds l
52 AM, Greg KH wrote:
> On Mon, Jul 15, 2013 at 11:57:24AM +0800, Rong Wang wrote:
>> usb: udc: add gadget state kobject uevent
>>
>> Add USB_UDC_STATE environment variable in udc uevent
>> callback and trigger kobject_uevent in usb_gadget_set_state
>>
usb: udc: add gadget state kobject uevent
Add USB_UDC_STATE environment variable in udc uevent
callback and trigger kobject_uevent in usb_gadget_set_state
to inform the user-space the state of the gadget.
Signed-off-by: Rong Wang
diff --git a/drivers/usb/gadget/udc-core.c b
usb: udc: add gadget state kobject uevent
Add USB_UDC_STATE environment variable in udc uevent
callback and trigger kobject_uevent in usb_gadget_set_state
to inform the user-space the state of the gadget.
Signed-off-by: Rong Wang
diff --git a/drivers/usb/gadget/udc-core.c b
9 matches
Mail list logo