[BUG] usb: gadget: rndis: atmel_usba_udc: probe of 500000.gadget failed with error -2

Jiří Prchal jiri.prchal at aksignal.cz
Fri Jul 11 02:31:16 PDT 2014



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



More information about the linux-arm-kernel mailing list