Re: [PATCH] usb: udc: add gadget state kobject uevent

2013-07-18 Thread Rong Wang
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.

Re: [PATCH] usb: udc: add gadget state kobject uevent

2013-07-18 Thread Rong Wang
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: &

Re: [PATCH] usb: udc: add gadget state kobject uevent

2013-07-18 Thread Rong Wang
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,

Re: [PATCH] usb: udc: add gadget state kobject uevent

2013-07-18 Thread Rong Wang
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

Re: [PATCH] usb: udc: add gadget state kobject uevent

2013-07-17 Thread Rong Wang
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 ====

Re: [PATCH] usb: udc: add gadget state kobject uevent

2013-07-16 Thread Rong Wang
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

Re: [PATCH] usb: udc: add gadget state kobject uevent

2013-07-15 Thread Rong Wang
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 >>

[PATCH] usb: udc: add gadget state kobject uevent

2013-07-14 Thread Rong Wang
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

[PATCH] usb: udc: add gadget state kobject uevent

2013-07-14 Thread Rong Wang
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