Re: [PATCH] usb: core: hub power off when over-current detected

2012-11-09 Thread Sergei Shtylyov
Hello. On 08-11-2012 22:48, Sergei Shtylyov wrote: USB specs says that if an over-current is detected then a hub must switch off all affected port, wait to cool down and then switch on. There are few controllers, which does not follow it, and expects software to switch off the port power.

Re: [PATCH] usb: core: hub power off when over-current detected

2012-11-09 Thread Pratyush Anand
On 11/9/2012 12:53 AM, Sergei Shtylyov wrote: Look at this fragment of ehci-hub.c: Thanks Sergei for pointing it out. I apologize for the noise. SPEAr is also an EHCI implementation. Having following code, actually we should not need this patch for SPEAr. Regards Pratyush 807

Re: [PATCH] usb: core: hub power off when over-current detected

2012-11-08 Thread Pratyush Anand
On 11/8/2012 9:35 PM, Alan Stern wrote: On Thu, 8 Nov 2012, Pratyush Anand wrote: USB specs says that if an over-current is detected then a hub must switch off all affected port, wait to cool down and then switch on. There are few controllers, which does not follow it, and expects software to

Re: [PATCH] usb: core: hub power off when over-current detected

2012-11-08 Thread Sergei Shtylyov
Hello. On 11/08/2012 08:58 PM, Alan Stern wrote: USB specs says that if an over-current is detected then a hub must switch off all affected port, wait to cool down and then switch on. There are few controllers, which does not follow it, and expects software to switch of

Re: [PATCH] usb: core: hub power off when over-current detected

2012-11-08 Thread Alan Stern
On Thu, 8 Nov 2012, Sergei Shtylyov wrote: > >> USB specs says that if an over-current is detected then a hub must switch > >> off > >> all affected port, wait to cool down and then switch on. > > >> There are few controllers, which does not follow it, and expects software > >> to switch off the

Re: [PATCH] usb: core: hub power off when over-current detected

2012-11-08 Thread Sergei Shtylyov
Hello. On 11/08/2012 07:05 PM, Alan Stern wrote: >> USB specs says that if an over-current is detected then a hub must switch off >> all affected port, wait to cool down and then switch on. >> There are few controllers, which does not follow it, and expects software >> to switch off the port pow

Re: [PATCH] usb: core: hub power off when over-current detected

2012-11-08 Thread Alan Stern
On Thu, 8 Nov 2012, Pratyush Anand wrote: > USB specs says that if an over-current is detected then a hub must switch off > all affected port, wait to cool down and then switch on. > > There are few controllers, which does not follow it, and expects software > to switch off the port power. Can y

[PATCH] usb: core: hub power off when over-current detected

2012-11-08 Thread Pratyush Anand
USB specs says that if an over-current is detected then a hub must switch off all affected port, wait to cool down and then switch on. There are few controllers, which does not follow it, and expects software to switch off the port power. This patch will add workaround for such controllers. I th