[PATCH 2/3] at91-ohci: support overcurrent notification

Matthieu CASTET matthieu.castet at parrot.com
Tue Jul 5 08:18:14 EDT 2011


Hello,

Thomas Petazzoni a écrit :
> Hello,
> 
> Le Tue, 5 Jul 2011 12:12:54 +0200,
> Matthieu CASTET <matthieu.castet at parrot.com> a écrit :
> 
>> Why don't you forward the overcurrent notification to the usb stack ?
>> A printk is quite useless.
> 
> Do you have a pointer to the appropriate functions/mechanisms of the
> USB stack about this ?

For ohci you have to override hub_status_data and hub_control callback.

You can look how it is done in ohci-da8xx.c / ohci-s3c2410.c driver.

May be (or not) it could be useful to introduce a generic function to do all the
parsing stuff.


Matthieu

PS : Add linux-usb to CC



More information about the linux-arm-kernel mailing list