linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* musb: am3358: having problem with high-speed on usb1 at peripheral
@ 2016-08-12  2:23 ayaka
  2016-08-12  7:40 ` Greg KH
  2016-08-18 16:08 ` musb: am3358: having problem with high-speed on usb1 at peripheral Bin Liu
  0 siblings, 2 replies; 14+ messages in thread
From: ayaka @ 2016-08-12  2:23 UTC (permalink / raw)
  To: linux-usb; +Cc: balbi, gregkh, linux-kernel, ayaka

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.
  I have force usb1 in peripheral mode in dts as it only have USB_DP,
USB_DM and USBDRV connected. I start up a ether gadget using the configfs,
But I found it would always work on the USB 2.0 full speed mode,
even the testmode can't force it in high speed mode or it won't appear
at host side. If I want it work at high speed mode, what should I do?
  I also meet the DMA problem, I have to apply the "ARM: dts: am33xx: 
fix DMA support for the second USB interface", but does patches really
work? Although it make the error message disapear, but the mail list
said the just make the usb back to PIO mode.

-- 
2.7.4

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: musb: am3358: having problem with high-speed on usb1 at peripheral
  2016-08-12  2:23 musb: am3358: having problem with high-speed on usb1 at peripheral ayaka
@ 2016-08-12  7:40 ` Greg KH
  2016-08-12 16:38   ` ayaka
  2016-08-18 16:08 ` musb: am3358: having problem with high-speed on usb1 at peripheral Bin Liu
  1 sibling, 1 reply; 14+ messages in thread
From: Greg KH @ 2016-08-12  7:40 UTC (permalink / raw)
  To: ayaka; +Cc: linux-usb, balbi, linux-kernel

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
will be glad to help you out.

good luck!

greg k-h

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: musb: am3358: having problem with high-speed on usb1 at peripheral
  2016-08-12  7:40 ` Greg KH
@ 2016-08-12 16:38   ` ayaka
  2016-08-12 17:44     ` Greg KH
  0 siblings, 1 reply; 14+ messages in thread
From: ayaka @ 2016-08-12 16:38 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-usb, linux-kernel, b-liu



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.
I have enabled the CONFIG_OMAP_USB2, I don't find at ti's kernel.
> will be glad to help you out.
>
> good luck!
>
> greg k-h

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: musb: am3358: having problem with high-speed on usb1 at peripheral
  2016-08-12 16:38   ` ayaka
@ 2016-08-12 17:44     ` Greg KH
  2016-08-12 17:59       ` ayaka
  2016-08-15 20:53       ` musb: am3358: having performance problem with usb1 ayaka
  0 siblings, 2 replies; 14+ messages in thread
From: Greg KH @ 2016-08-12 17:44 UTC (permalink / raw)
  To: ayaka; +Cc: linux-usb, linux-kernel, b-liu

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?

> 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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: musb: am3358: having problem with high-speed on usb1 at peripheral
  2016-08-12 17:44     ` Greg KH
@ 2016-08-12 17:59       ` ayaka
  2016-08-16  7:10         ` Felipe Balbi
  2016-08-15 20:53       ` musb: am3358: having performance problem with usb1 ayaka
  1 sibling, 1 reply; 14+ messages in thread
From: ayaka @ 2016-08-12 17:59 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-usb, linux-kernel, b-liu



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?
Sorry, the USB1 can't work at high speed gadget mode and have DMA problem.
musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517

>
>> 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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: musb: am3358: having performance problem with usb1
  2016-08-12 17:44     ` Greg KH
  2016-08-12 17:59       ` ayaka
@ 2016-08-15 20:53       ` ayaka
  1 sibling, 0 replies; 14+ messages in thread
From: ayaka @ 2016-08-15 20:53 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-usb, linux-kernel, b-liu



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";
};

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: musb: am3358: having problem with high-speed on usb1 at peripheral
  2016-08-12 17:59       ` ayaka
@ 2016-08-16  7:10         ` Felipe Balbi
  2016-08-16  8:10           ` Ayaka
  0 siblings, 1 reply; 14+ messages in thread
From: Felipe Balbi @ 2016-08-16  7:10 UTC (permalink / raw)
  To: ayaka, Greg KH; +Cc: linux-usb, linux-kernel, b-liu

[-- Attachment #1: Type: text/plain, Size: 1187 bytes --]


Hi,

ayaka <ayaka@soulik.info> writes:
> 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?
> Sorry, the USB1 can't work at high speed gadget mode and have DMA problem.
> musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
> musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517

-517 is EPROBE_DEFER. Most likely DMA hasn't probed and MUSB is
 deferring to try later. This does _NOT_ MUSB can't work with
 DMA. Perhaps you didn't enable support for MUSB's DMA engine.

-- 
balbi

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: musb: am3358: having problem with high-speed on usb1 at peripheral
  2016-08-16  7:10         ` Felipe Balbi
@ 2016-08-16  8:10           ` Ayaka
  2016-08-16  8:31             ` Felipe Balbi
  0 siblings, 1 reply; 14+ messages in thread
From: Ayaka @ 2016-08-16  8:10 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: Greg KH, linux-usb, linux-kernel, b-liu



從我的 iPad 傳送

> Felipe Balbi <felipe.balbi@linux.intel.com> 於 2016年8月16日 下午3:10 寫道:
> 
> 
> Hi,
> 
> ayaka <ayaka@soulik.info> writes:
>>> 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?
>> Sorry, the USB1 can't work at high speed gadget mode and have DMA problem.
>> musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
>> musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
> 
> -517 is EPROBE_DEFER. Most likely DMA hasn't probed and MUSB is
> deferring to try later. This does _NOT_ MUSB can't work with
> DMA. Perhaps you didn't enable support for MUSB's DMA engine.
> 
I have set the status of cppi41dma to okay in dts. And CONFIG_USB_TI_CPPI41_DMA,
CONFIG_TI_CPPI41 and CONFIG_TI_EDMA are enabled with build into kernel.

Anything else I should do?
> -- 
> balbi

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: musb: am3358: having problem with high-speed on usb1 at peripheral
  2016-08-16  8:10           ` Ayaka
@ 2016-08-16  8:31             ` Felipe Balbi
  2016-08-16 14:05               ` ayaka
  0 siblings, 1 reply; 14+ messages in thread
From: Felipe Balbi @ 2016-08-16  8:31 UTC (permalink / raw)
  To: Ayaka; +Cc: Greg KH, linux-usb, linux-kernel, b-liu

[-- Attachment #1: Type: text/plain, Size: 1660 bytes --]


Hi,

Ayaka <ayaka@soulik.info> writes:
>> ayaka <ayaka@soulik.info> writes:
>>>> 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?
>>> Sorry, the USB1 can't work at high speed gadget mode and have DMA problem.
>>> musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
>>> musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
>> 
>> -517 is EPROBE_DEFER. Most likely DMA hasn't probed and MUSB is
>> deferring to try later. This does _NOT_ MUSB can't work with
>> DMA. Perhaps you didn't enable support for MUSB's DMA engine.
>> 
> I have set the status of cppi41dma to okay in dts. And CONFIG_USB_TI_CPPI41_DMA,
> CONFIG_TI_CPPI41 and CONFIG_TI_EDMA are enabled with build into kernel.
>
> Anything else I should do?

no, that should do it. Since musb returned -EPROBE_DEFER, it will retry
probing later. Check if musb probed fine. The easiest way is to check if
you have anything in /sys/class/udc/

-- 
balbi

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: musb: am3358: having problem with high-speed on usb1 at peripheral
  2016-08-16  8:31             ` Felipe Balbi
@ 2016-08-16 14:05               ` ayaka
  2016-08-18  6:35                 ` Felipe Balbi
  0 siblings, 1 reply; 14+ messages in thread
From: ayaka @ 2016-08-16 14:05 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: Greg KH, linux-usb, linux-kernel, b-liu



On 08/16/2016 04:31 PM, Felipe Balbi wrote:
> Hi,
>
> Ayaka <ayaka@soulik.info> writes:
>>> ayaka <ayaka@soulik.info> writes:
>>>>> 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?
>>>> Sorry, the USB1 can't work at high speed gadget mode and have DMA problem.
>>>> musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
>>>> musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
>>> -517 is EPROBE_DEFER. Most likely DMA hasn't probed and MUSB is
>>> deferring to try later. This does _NOT_ MUSB can't work with
>>> DMA. Perhaps you didn't enable support for MUSB's DMA engine.
>>>
>> I have set the status of cppi41dma to okay in dts. And CONFIG_USB_TI_CPPI41_DMA,
>> CONFIG_TI_CPPI41 and CONFIG_TI_EDMA are enabled with build into kernel.
>>
>> Anything else I should do?
> no, that should do it. Since musb returned -EPROBE_DEFER, it will retry
> probing later. Check if musb probed fine. The easiest way is to check if
> you have anything in /sys/class/udc/
Yes, it has musb-hdrc.0.auto. But it doesn't mean that it fallback PIO mode?
Actually I don't care whether it use PIO or DMA, I just can't bear it 
work in USB 2.0 Full Speed mode, too slow.
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: musb: am3358: having problem with high-speed on usb1 at peripheral
  2016-08-16 14:05               ` ayaka
@ 2016-08-18  6:35                 ` Felipe Balbi
  0 siblings, 0 replies; 14+ messages in thread
From: Felipe Balbi @ 2016-08-18  6:35 UTC (permalink / raw)
  To: ayaka; +Cc: Greg KH, linux-usb, linux-kernel, b-liu

[-- Attachment #1: Type: text/plain, Size: 2039 bytes --]


Hi,

ayaka <ayaka@soulik.info> writes:
>>>>>> 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?
>>>>> Sorry, the USB1 can't work at high speed gadget mode and have DMA problem.
>>>>> musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
>>>>> musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
>>>> -517 is EPROBE_DEFER. Most likely DMA hasn't probed and MUSB is
>>>> deferring to try later. This does _NOT_ MUSB can't work with
>>>> DMA. Perhaps you didn't enable support for MUSB's DMA engine.
>>>>
>>> I have set the status of cppi41dma to okay in dts. And CONFIG_USB_TI_CPPI41_DMA,
>>> CONFIG_TI_CPPI41 and CONFIG_TI_EDMA are enabled with build into kernel.
>>>
>>> Anything else I should do?
>> no, that should do it. Since musb returned -EPROBE_DEFER, it will retry
>> probing later. Check if musb probed fine. The easiest way is to check if
>> you have anything in /sys/class/udc/
> Yes, it has musb-hdrc.0.auto. But it doesn't mean that it fallback PIO mode?

no, it doesn't. MUSB knows it needs the DMA, that's why is defers its
own probe routine.

> Actually I don't care whether it use PIO or DMA, I just can't bear it 
> work in USB 2.0 Full Speed mode, too slow.

So it always enumerates in Full-speed? That's odd. Bin, any ideas?

-- 
balbi

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: musb: am3358: having problem with high-speed on usb1 at peripheral
  2016-08-12  2:23 musb: am3358: having problem with high-speed on usb1 at peripheral ayaka
  2016-08-12  7:40 ` Greg KH
@ 2016-08-18 16:08 ` Bin Liu
  2016-08-23  1:57   ` Ayaka
  1 sibling, 1 reply; 14+ messages in thread
From: Bin Liu @ 2016-08-18 16:08 UTC (permalink / raw)
  To: ayaka; +Cc: linux-usb, Felipe Balbi, gregkh, linux-kernel

Hi,

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.
>   I have force usb1 in peripheral mode in dts as it only have USB_DP,
> USB_DM and USBDRV connected. I start up a ether gadget using the configfs,

Do you mean USB1_DRVVBUS pin? If so, you have wrong hw design. For
peripheral mode, you should float this pin, but connect USB1_VBUS pin
instead.

Regards,
-Bin.

> But I found it would always work on the USB 2.0 full speed mode,
> even the testmode can't force it in high speed mode or it won't appear
> at host side. If I want it work at high speed mode, what should I do?
>   I also meet the DMA problem, I have to apply the "ARM: dts: am33xx: 
> fix DMA support for the second USB interface", but does patches really
> work? Although it make the error message disapear, but the mail list
> said the just make the usb back to PIO mode.
> 
> -- 
> 2.7.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: musb: am3358: having problem with high-speed on usb1 at peripheral
  2016-08-18 16:08 ` musb: am3358: having problem with high-speed on usb1 at peripheral Bin Liu
@ 2016-08-23  1:57   ` Ayaka
  2016-08-23 15:17     ` Bin Liu
  0 siblings, 1 reply; 14+ messages in thread
From: Ayaka @ 2016-08-23  1:57 UTC (permalink / raw)
  To: Bin Liu; +Cc: linux-usb, Felipe Balbi, gregkh, linux-kernel



從我的 iPad 傳送

> Bin Liu <b-liu@ti.com> 於 2016年8月19日 上午12:08 寫道:
> 
> Hi,
> 
>> 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.
>>  I have force usb1 in peripheral mode in dts as it only have USB_DP,
>> USB_DM and USBDRV connected. I start up a ether gadget using the configfs,
> 
> Do you mean USB1_DRVVBUS pin? If so, you have wrong hw design. For
> peripheral mode, you should float this pin, but connect USB1_VBUS pin
> instead.
> 
Thank you very much. After hardware modification, it could work on hi-speed mode now.
But I wonder it have effect? As the vbus is not used to transmit data in USB?
> Regards,
> -Bin.
> 
>> But I found it would always work on the USB 2.0 full speed mode,
>> even the testmode can't force it in high speed mode or it won't appear
>> at host side. If I want it work at high speed mode, what should I do?
>>  I also meet the DMA problem, I have to apply the "ARM: dts: am33xx: 
>> fix DMA support for the second USB interface", but does patches really
>> work? Although it make the error message disapear, but the mail list
>> said the just make the usb back to PIO mode.
>> 
>> -- 
>> 2.7.4
>> 
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: musb: am3358: having problem with high-speed on usb1 at peripheral
  2016-08-23  1:57   ` Ayaka
@ 2016-08-23 15:17     ` Bin Liu
  0 siblings, 0 replies; 14+ messages in thread
From: Bin Liu @ 2016-08-23 15:17 UTC (permalink / raw)
  To: Ayaka; +Cc: linux-usb, Felipe Balbi, gregkh, linux-kernel

Hi,

On Tue, Aug 23, 2016 at 09:57:17AM +0800, Ayaka wrote:
> 
> 
> 從我的 iPad 傳送
> 
> > Bin Liu <b-liu@ti.com> 於 2016年8月19日 上午12:08 寫道:
> > 
> > Hi,
> > 
> >> 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.
> >>  I have force usb1 in peripheral mode in dts as it only have USB_DP,
> >> USB_DM and USBDRV connected. I start up a ether gadget using the configfs,
> > 
> > Do you mean USB1_DRVVBUS pin? If so, you have wrong hw design. For
> > peripheral mode, you should float this pin, but connect USB1_VBUS pin
> > instead.
> > 
> Thank you very much. After hardware modification, it could work on hi-speed mode now.
> But I wonder it have effect? As the vbus is not used to transmit data in USB?

>From am3358 perspective, USB1_VBUS is an input pin, which is one of the
conditions for musb role switching. More detail is in the am335x TRM.

Regards,
-Bin.

> > Regards,
> > -Bin.
> > 
> >> But I found it would always work on the USB 2.0 full speed mode,
> >> even the testmode can't force it in high speed mode or it won't appear
> >> at host side. If I want it work at high speed mode, what should I do?
> >>  I also meet the DMA problem, I have to apply the "ARM: dts: am33xx: 
> >> fix DMA support for the second USB interface", but does patches really
> >> work? Although it make the error message disapear, but the mail list
> >> said the just make the usb back to PIO mode.
> >> 
> >> -- 
> >> 2.7.4
> >> 
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> >> the body of a message to majordomo@vger.kernel.org
> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-08-23 15:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-12  2:23 musb: am3358: having problem with high-speed on usb1 at peripheral ayaka
2016-08-12  7:40 ` Greg KH
2016-08-12 16:38   ` ayaka
2016-08-12 17:44     ` Greg KH
2016-08-12 17:59       ` ayaka
2016-08-16  7:10         ` Felipe Balbi
2016-08-16  8:10           ` Ayaka
2016-08-16  8:31             ` Felipe Balbi
2016-08-16 14:05               ` ayaka
2016-08-18  6:35                 ` Felipe Balbi
2016-08-15 20:53       ` musb: am3358: having performance problem with usb1 ayaka
2016-08-18 16:08 ` musb: am3358: having problem with high-speed on usb1 at peripheral Bin Liu
2016-08-23  1:57   ` Ayaka
2016-08-23 15:17     ` Bin Liu

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).