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                 if ((temp & PORT_OCC) && !ignore_oc){
808                         status |= USB_PORT_STAT_C_OVERCURRENT << 16;
809
810                         /*
811                          * Hubs should disable port power on over-current.
812                          * However, not all EHCI implementations do this
813                          * automatically, even if they_do_  support per-port
814                          * power switching; they're allowed to just limit 
the
815                          * current.  khubd will turn the power back on.
816                          */
817                         if ((temp & PORT_OC) && HCS_PPC(ehci->hcs_params)) {
818                                 ehci_writel(ehci,
819                                         temp & ~(PORT_RWC_BITS | 
PORT_POWER),
820                                         status_reg);
821                                 temp = ehci_readl(ehci, status_reg);
822                         }
823                 }


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to