Re: musb: am3358: having performance problem with usb1

From: ayaka
Date: Mon Aug 15 2016 - 16:53:27 EST




On 08/13/2016 01:44 AM, Greg KH wrote:
On Sat, Aug 13, 2016 at 12:38:46AM +0800, ayaka wrote:

On 08/12/2016 03:40 PM, Greg KH wrote:
On Fri, Aug 12, 2016 at 10:23:15AM +0800, ayaka wrote:
Hello all:
I recently add a support for customize am3358 board using the branch
processor-sdk-linux-03.00.00 from Ti git. But I meet a problem with musb
at the peripheral mode.
Then you are going to have to get support from TI for this, nothing we
can do here about random vendor kernel trees, sorry.

If you can use the 4.7 tree, or better yet, the 4.8-rc tree, then we
I have tried the 4.8-rc1, I meet the same problem.
What problem is that exactly?
OK, I would said it is a performance problem.
First it can't work with DMA
brd: module loaded
loop: module loaded
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-platform: EHCI generic platform driver
ehci-omap: OMAP-EHCI Host Controller driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
i2c /dev entries driver
omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
sdhci: Secure Digital Host Controller Interface driver


Second, the USB1 is always work on usb 2.0 full speed when I used it as a gadget device.
But it should support high speed mode.


I have enabled the CONFIG_OMAP_USB2, I don't find at ti's kernel.
I don't understand, is that your hardware you are using?

thanks,

greg k-h

Here is the usb part of dts I wrote, should I give you a full dts?
&usb {
status = "okay";
};

&usb_ctrl_mod {
status = "okay";
};

&usb1_phy {
vcc-supply = <&v33_reg>;
status = "okay";
};

&usb1 {
status = "okay";
dr_mode = "peripheral";
};

&cppi41dma {
status = "okay";
};