EHCI force full speed (chipidea ip) interrupt transfer

2013-07-01 Thread Rong Wang
Hi all, We are developing an embedded product which can connect ipod and play its contents. But for some particular reason we need to force the ipod to connect at full-speed. Chipidea usb ip did not provide an companion HC, but it provide embedded TT to handle full-speed. And we found that there

Re: EHCI force full speed (chipidea ip) interrupt transfer

2013-07-04 Thread Rong Wang
answer in the spec yet. On Wed, Jul 3, 2013 at 2:18 AM, Greg KH wrote: > On Tue, Jul 02, 2013 at 01:58:29PM +0800, Rong Wang wrote: >> Hi all, >> >> We are developing an embedded product which can connect ipod and play >> its contents. >> But for some particular rea

Re: EHCI force full speed (chipidea ip) interrupt transfer

2013-07-04 Thread Rong Wang
t software. Thanks again for your help. Regards Wang Rong On Thu, Jul 4, 2013 at 11:05 PM, Alan Stern wrote: > On Thu, 4 Jul 2013, Rong Wang wrote: > >> Hi Greg, >> >> Thanks for your suggestion. We are trying to move to kernel-3.10. >> >> But I still have a qu

[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

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 >>

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-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-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-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
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
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.

bus powered hub reported as self powered

2015-03-31 Thread Rong Wang
Hi all, I'm on USB certification of a vendor SoC, and there's a case called "Bus powered hub power exceeded test" in the compliance plan defined by the usb.org. It requires an error message when a device (Max power descriptor >100mA) is attached to an external bus powered hub. But when I attached

Re: bus powered hub reported as self powered

2015-03-31 Thread Rong Wang
an Stern wrote: > On Tue, 31 Mar 2015, Rong Wang wrote: > >> Hi all, >> >> I'm on USB certification of a vendor SoC, and there's a case called >> "Bus powered hub power exceeded test" in the compliance plan defined >> by the usb.org. It requ

Re: bus powered hub reported as self powered

2015-04-01 Thread Rong Wang
On Thu, Apr 2, 2015 at 9:10 AM, Peter Chen wrote: > On Wed, Apr 01, 2015 at 10:57:54AM +0800, Rong Wang wrote: >> Hi Alan, >> >> Thanks for the confirmative answer, since I suspect it's the bug >> of the hub first, but all the three hubs at my hand report the sam

Re: bus powered hub reported as self powered

2015-04-01 Thread Rong Wang
On Thu, Apr 2, 2015 at 11:48 AM, Peter Chen wrote: > >> Yes >> >> >> reported as self powered, per port power limit is 500 mA, so the >> >> device may be configured and maybe work normal. >> >> >> > >> > I see your hub report its max power is 100 mA, so if it can report as >> > self powered, then

USB Host Controller no PCD interrupt and CCS and CSC update on the device disconnect

2015-05-22 Thread Rong Wang
Hi, We have one USB 2.0 Controller on an ARM SoC, with internal PHY confirming to UTMI. The PHY would detect unexpected disconnect (amplitude of the differential envelop still < 625 mV) and assert the HostDisconnect signal to the Controller to indicate a disconnection event. When the HostDisconnec

Re: USB Host Controller no PCD interrupt and CCS and CSC update on the device disconnect

2015-05-24 Thread Rong Wang
On Fri, May 22, 2015 at 10:06 PM, Alan Stern wrote: > On Fri, 22 May 2015, Rong Wang wrote: > >> Hi, >> >> We have one USB 2.0 Controller on an ARM SoC, with internal PHY >> confirming to UTMI. >> The PHY would detect unexpected disconnect (amplitude of the &g

Re: USB Host Controller no PCD interrupt and CCS and CSC update on the device disconnect

2015-05-25 Thread Rong Wang
Hi Alan, On Mon, May 25, 2015 at 10:16 PM, Alan Stern wrote: > On Mon, 25 May 2015, Rong Wang wrote: > >> On Fri, May 22, 2015 at 10:06 PM, Alan Stern >> wrote: >> > On Fri, 22 May 2015, Rong Wang wrote: >> > >> >> Hi, >> >> >>

Re: USB Host Controller no PCD interrupt and CCS and CSC update on the device disconnect

2015-05-27 Thread Rong Wang
Hi Alan, On Tue, May 26, 2015 at 11:32 PM, Alan Stern wrote: > On Tue, 26 May 2015, Rong Wang wrote: > >> > It seems that your customer wants to change the hardware, not the >> > software. >> >> Yes. We plan to do a hardware modification. But we want to make