Hi Demm,
I faced a problem which I think need a bit of change in the way kernel package is compiled. When I connect my android phone to USB port to use it as a mass storage device (It is not MTP), face:
[ 398.706817] usb 2-1: new full-speed USB device number 6 using uhci_hcd
[ 398.840598] usb 2-1: not running at top speed; connect to a high speed hub
[ 398.867608] usb 2-1: Dual-Role OTG device on non-HNP port
[ 398.869582] usb 2-1: can't set HNP mode: -32
[ 398.976805] usb 2-1: new full-speed USB device number 7 using uhci_hcd
[ 399.109543] usb 2-1: not running at top speed; connect to a high speed hub
[ 399.137538] usb 2-1: Dual-Role OTG device on non-HNP port
[ 399.139516] usb 2-1: can't set HNP mode: -32
[ 399.246827] usb 2-1: new full-speed USB device number 8 using uhci_hcd
[ 399.274503] usb 2-1: not running at top speed; connect to a high speed hub
[ 399.300502] usb 2-1: Dual-Role OTG device on non-HNP port
[ 399.302490] usb 2-1: can't set HNP mode: -32
[ 399.410125] usb 2-1: new full-speed USB device number 9 using uhci_hcd
[ 399.437468] usb 2-1: not running at top speed; connect to a high speed hub
[ 399.464467] usb 2-1: Dual-Role OTG device on non-HNP port
[ 399.467470] usb 2-1: can't set HNP mode: -32
[ 399.468456] usb usb2-port1: unable to enumerate USB device
A bit of search showed me that I have exact problem that is described here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1047527
And here:
https://bugs.archlinux.org/task/40773
People there say:
Peter Júnoš (petoju) wrote on 2012-10-01: #23
#22: disabling OTG (CONFIG_USB_OTG) helps, I have already built such kernel and it works as expected and it doesn't with OTG enabled.
And:
Joseph Salisbury (jsalisbury) wrote on 2012-10-11: #33
Thanks for the info, Peter. @benpicco, you can hold off on testing the kernel in comment #31. I'll build a Quantal kernel with CONFIG_USB_OTG disabled and post a link to it.
And:
Peter Júnoš (petoju) wrote on 2012-11-19: #40
Thanks, the fix works.
tags: added: verification-done-quantal
removed: verification-needed-quantal
Looks like they disable to option CONFIG_USB_OTG when compiling the kernel and then add the new compiled kernel to their repository so the problem is solved for all their users.
Currently I cannot use my android phone as USB mass storage and thus need to stick to alternative methods (FTP Server, Memory Reader, etc.). Any help is highly appreciated.