* [BUG] usb: gadget: rndis: atmel_usba_udc: probe of 500000.gadget failed with error -2
@ 2014-07-11 6:47 Jiří Prchal
2014-07-11 8:00 ` Bo Shen
0 siblings, 1 reply; 4+ messages in thread
From: Jiří Prchal @ 2014-07-11 6:47 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
I discovered bug when I try to use RNDIS gadget driver on SAM9G25 with version 3.16.0-rc4. In version 3.14.0-rc4 it was OK.
If I plug pc to device port on my board I expect to establish ethernet connection, instead of this it looks like it
behave like host port. If I look at all messages I found some problem during boot:
[ 1.585937] atmel_usba_udc: probe of 500000.gadget failed with error -2
Here is dmesg | grep usb of 3.16:
[ 0.187500] usbcore: registered new interface driver usbfs
[ 0.187500] usbcore: registered new interface driver hub
[ 0.187500] usbcore: registered new device driver usb
[ 1.375000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.382812] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.390625] usb usb1: Product: EHCI Host Controller
[ 1.394531] usb usb1: Manufacturer: Linux 3.16.0-rc4_cpm9g25 ehci_hcd
[ 1.402343] usb usb1: SerialNumber: 700000.ehci
[ 1.507812] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[ 1.511718] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.519531] usb usb2: Product: OHCI Host Controller
[ 1.527343] usb usb2: Manufacturer: Linux 3.16.0-rc4_cpm9g25 ohci_hcd
[ 1.531250] usb usb2: SerialNumber: at91
[ 1.562500] usbcore: registered new interface driver cdc_acm
[ 1.578125] usbcore: registered new interface driver usb-storage
[ 1.585937] atmel_usba_udc: probe of 500000.gadget failed with error -2
[ 2.375000] usb 2-3: new full-speed USB device number 3 using at91_ohci
[ 2.574218] usb 2-3: not running at top speed; connect to a high speed hub
[ 2.593750] usb 2-3: New USB device found, idVendor=04b4, idProduct=6570
[ 2.609375] usb 2-3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 2.621093] usb 2-3: Product: USB2.0 Hub
[ 3.714843] usb 2-3.3: new full-speed USB device number 5 using at91_ohci
[ 3.828125] usb 2-3.3: not running at top speed; connect to a high speed hub
[ 3.851562] usb 2-3.3: New USB device found, idVendor=1005, idProduct=b155
[ 3.867187] usb 2-3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.875000] usb 2-3.3: Product: USB DISK MODULE
[ 3.882812] usb 2-3.3: Manufacturer:
[ 3.890625] usb 2-3.3: SerialNumber: 19D30D00AB2E10B4
[ 3.898437] usb-storage 2-3.3:1.0: USB Mass Storage device detected
[ 3.914062] scsi0 : usb-storage 2-3.3:1.0
[ 793.761718] usb 2-1: new full-speed USB device number 79 using at91_ohci
[ 793.945312] usb 2-1: device descriptor read/64, error -62
[ 794.601562] usb 2-1: new full-speed USB device number 80 using at91_ohci
[ 794.785156] usb 2-1: device descriptor read/64, error -62
[ 795.441406] usb 2-1: new full-speed USB device number 81 using at91_ohci
[ 795.625000] usb 2-1: device descriptor read/64, error -62
[ 796.281250] usb 2-1: new full-speed USB device number 82 using at91_ohci
[ 796.464843] usb 2-1: device descriptor read/64, error -62
[ 797.121093] usb 2-1: new full-speed USB device number 83 using at91_ohci
And here is dmesg | grep usb of 3.14:
[ 0.199218] usbcore: registered new interface driver usbfs
[ 0.199218] usbcore: registered new interface driver hub
[ 0.199218] usbcore: registered new device driver usb
[ 1.042968] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.046875] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.050781] usb usb1: Product: EHCI Host Controller
[ 1.054687] usb usb1: Manufacturer: Linux 3.14.0-rc4_cpm9g25+ ehci_hcd
[ 1.058593] usb usb1: SerialNumber: 700000.ehci
[ 1.152343] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[ 1.156250] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.160156] usb usb2: Product: OHCI Host Controller
[ 1.164062] usb usb2: Manufacturer: Linux 3.14.0-rc4_cpm9g25+ ohci_hcd
[ 1.167968] usb usb2: SerialNumber: at91
[ 1.195312] usbcore: registered new interface driver cdc_acm
[ 1.207031] usbcore: registered new interface driver usb-storage
[ 1.214843] usbcore: registered new interface driver usbserial
[ 1.222656] atmel_usba_udc 500000.gadget: MMIO registers at 0xf803c000 mapped at c8880000
[ 1.226562] atmel_usba_udc 500000.gadget: FIFO at 0x00500000 mapped at c8900000
[ 1.238281] usb0: HOST MAC ee:b0:ac:4b:23:3e
[ 1.242187] usb0: MAC a6:db:aa:b5:ef:4b
[ 2.031250] usb 2-3: new full-speed USB device number 3 using at91_ohci
[ 2.230468] usb 2-3: not running at top speed; connect to a high speed hub
[ 2.246093] usb 2-3: New USB device found, idVendor=04b4, idProduct=6570
[ 2.257812] usb 2-3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 2.265625] usb 2-3: Product: USB2.0 Hub
[ 8.890625] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[62918.265625] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
So what is wrong?
Best regards
Jiri Prchal
^ permalink raw reply [flat|nested] 4+ messages in thread
* [BUG] usb: gadget: rndis: atmel_usba_udc: probe of 500000.gadget failed with error -2
2014-07-11 6:47 [BUG] usb: gadget: rndis: atmel_usba_udc: probe of 500000.gadget failed with error -2 Jiří Prchal
@ 2014-07-11 8:00 ` Bo Shen
2014-07-11 9:31 ` Jiří Prchal
0 siblings, 1 reply; 4+ messages in thread
From: Bo Shen @ 2014-07-11 8:00 UTC (permalink / raw)
To: linux-arm-kernel
Hi Jiri Prchal,
On 07/11/2014 02:47 PM, Ji?? Prchal wrote:
> Hi,
> I discovered bug when I try to use RNDIS gadget driver on SAM9G25 with
> version 3.16.0-rc4. In version 3.14.0-rc4 it was OK.
> If I plug pc to device port on my board I expect to establish ethernet
> connection, instead of this it looks like it behave like host port. If I
> look at all messages I found some problem during boot:
> [ 1.585937] atmel_usba_udc: probe of 500000.gadget failed with error -2
I tested OK with Linux kernel v3.16-rc4 (latest commit is:
4f440cd534359f689cb577c68f8491d1eddf0b76) on sam9g25.
Best Regards,
Bo Shen
^ permalink raw reply [flat|nested] 4+ messages in thread
* [BUG] usb: gadget: rndis: atmel_usba_udc: probe of 500000.gadget failed with error -2
2014-07-11 8:00 ` Bo Shen
@ 2014-07-11 9:31 ` Jiří Prchal
2014-07-11 10:17 ` Bo Shen
0 siblings, 1 reply; 4+ messages in thread
From: Jiří Prchal @ 2014-07-11 9:31 UTC (permalink / raw)
To: linux-arm-kernel
Dne 11.7.2014 10:00, Bo Shen napsal(a):
> Hi Jiri Prchal,
>
> On 07/11/2014 02:47 PM, Ji?? Prchal wrote:
>> Hi,
>> I discovered bug when I try to use RNDIS gadget driver on SAM9G25 with
>> version 3.16.0-rc4. In version 3.14.0-rc4 it was OK.
>> If I plug pc to device port on my board I expect to establish ethernet
>> connection, instead of this it looks like it behave like host port. If I
>> look at all messages I found some problem during boot:
>> [ 1.585937] atmel_usba_udc: probe of 500000.gadget failed with error -2
>
> I tested OK with Linux kernel v3.16-rc4 (latest commit is: 4f440cd534359f689cb577c68f8491d1eddf0b76) on sam9g25.
>
> Best Regards,
> Bo Shen
>
I just cloned git https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git and still same problem. There is
some other commit.
Couldn't be the problem in at91sam9x5.dtsi not defines clocks?
In ohci they are:
usb0: ohci at 00600000 {
compatible = "atmel,at91rm9200-ohci", "usb-ohci";
reg = <0x00600000 0x100000>;
interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
clocks = <&usb>, <&uhphs_clk>, <&udphs_clk>,
<&uhpck>;
clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck";
status = "disabled";
};
But in gadget not:
usb2: gadget at f803c000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "atmel,at91sam9rl-udc";
reg = <0x00500000 0x80000
0xf803c000 0x400>;
interrupts = <23 IRQ_TYPE_LEVEL_HIGH 0>;
status = "disabled";
Best Regards,
Jiri
^ permalink raw reply [flat|nested] 4+ messages in thread
* [BUG] usb: gadget: rndis: atmel_usba_udc: probe of 500000.gadget failed with error -2
2014-07-11 9:31 ` Jiří Prchal
@ 2014-07-11 10:17 ` Bo Shen
0 siblings, 0 replies; 4+ messages in thread
From: Bo Shen @ 2014-07-11 10:17 UTC (permalink / raw)
To: linux-arm-kernel
Hi Jiri,
On 07/11/2014 05:31 PM, Ji?? Prchal wrote:
>
>
> Dne 11.7.2014 10:00, Bo Shen napsal(a):
>> Hi Jiri Prchal,
>>
>> On 07/11/2014 02:47 PM, Ji?? Prchal wrote:
>>> Hi,
>>> I discovered bug when I try to use RNDIS gadget driver on SAM9G25 with
>>> version 3.16.0-rc4. In version 3.14.0-rc4 it was OK.
>>> If I plug pc to device port on my board I expect to establish ethernet
>>> connection, instead of this it looks like it behave like host port. If I
>>> look at all messages I found some problem during boot:
>>> [ 1.585937] atmel_usba_udc: probe of 500000.gadget failed with
>>> error -2
>>
>> I tested OK with Linux kernel v3.16-rc4 (latest commit is:
>> 4f440cd534359f689cb577c68f8491d1eddf0b76) on sam9g25.
>>
>> Best Regards,
>> Bo Shen
>>
> I just cloned git
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git and
> still same problem. There is some other commit.
> Couldn't be the problem in at91sam9x5.dtsi not defines clocks?
> In ohci they are:
> usb0: ohci at 00600000 {
> compatible = "atmel,at91rm9200-ohci", "usb-ohci";
> reg = <0x00600000 0x100000>;
> interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
> clocks = <&usb>, <&uhphs_clk>, <&udphs_clk>,
> <&uhpck>;
> clock-names = "usb_clk", "ohci_clk", "hclk", "uhpck";
> status = "disabled";
> };
> But in gadget not:
> usb2: gadget at f803c000 {
> #address-cells = <1>;
> #size-cells = <0>;
> compatible = "atmel,at91sam9rl-udc";
> reg = <0x00500000 0x80000
> 0xf803c000 0x400>;
> interrupts = <23 IRQ_TYPE_LEVEL_HIGH 0>;
> status = "disabled";
Thanks for reporting it. Using at91_dt_defconfig won't reproduce this
issue. However, only enable at91sam9x5 and CCF will reproduce this issue.
I will send out the patch to fix it.
Thanks again.
> Best Regards,
> Jiri
Best Regards,
Bo Shen
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-11 10:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-11 6:47 [BUG] usb: gadget: rndis: atmel_usba_udc: probe of 500000.gadget failed with error -2 Jiří Prchal
2014-07-11 8:00 ` Bo Shen
2014-07-11 9:31 ` Jiří Prchal
2014-07-11 10:17 ` Bo Shen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).