linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* musb: cppi41: broken high speed FTDI functionality when connected to musb directly
@ 2019-09-27  8:18 Yegor Yefremov
  2019-09-27 12:30 ` Yegor Yefremov
  0 siblings, 1 reply; 19+ messages in thread
From: Yegor Yefremov @ 2019-09-27  8:18 UTC (permalink / raw)
  To: linux-omap; +Cc: Tony Lindgren, vkoul, Bin Liu, linux-usb

I was porting my system from 3.18/4.2 to 5.3. During this process I
noticed that FT4232 that is attached directly to musb is not working
correctly when opened for the first time: tx is working but nothing
can be received. On the second opening everything is working fine.
When the same chip is connected via a USB hub - everything is working
from the very beginning.

I could reproduce this issue using BeagleBone Black with omap2plus_defconfig.

# lsusb -t
+/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=musb-hdrc/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=, Driver=ftdi_sio, 480M
    |__ Port 1: Dev 2, If 1, Class=, Driver=ftdi_sio, 480M
    |__ Port 1: Dev 2, If 2, Class=, Driver=ftdi_sio, 480M
    |__ Port 1: Dev 2, If 3, Class=, Driver=ftdi_sio, 480M

git bisect revealed the following:

fdea2d09b997ba4c86e7a707a5fac87c305f2131 is the first bad commit
commit fdea2d09b997ba4c86e7a707a5fac87c305f2131
Author: Tony Lindgren <tony@atomide.com>
Date:   Wed Aug 31 07:19:59 2016 -0700

    dmaengine: cppi41: Add basic PM runtime support

    Let's keep the device enabled between cppi41_dma_issue_pending()
    and dmaengine_desc_get_callback_invoke() and rely on the PM runtime
    autoidle timeout elsewhere.

    As the PM runtime is for whole device, not for each channel,
    we need to queue pending transfers if the device is PM runtime
    suspended. Then we start the pending transfers in PM runtime
    resume.

    Signed-off-by: Tony Lindgren <tony@atomide.com>
    Signed-off-by: Vinod Koul <vinod.koul@intel.com>

:040000 040000 8cf92c09083541dfdee01cc2973e73ef520f4fb1
a03c1a7ba8e723f7b503733c46edaa4141483265 M      drivers

Any idea?

Thanks.

Best regards,
Yegor

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

end of thread, other threads:[~2019-10-22 14:56 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-27  8:18 musb: cppi41: broken high speed FTDI functionality when connected to musb directly Yegor Yefremov
2019-09-27 12:30 ` Yegor Yefremov
2019-09-27 15:19   ` Tony Lindgren
2019-09-27 15:57     ` Tony Lindgren
2019-09-28 16:09       ` Yegor Yefremov
2019-09-30  6:59         ` Yegor Yefremov
2019-09-30  8:19           ` Yegor Yefremov
2019-09-30 14:57             ` Tony Lindgren
2019-09-30 15:23               ` Tony Lindgren
2019-09-30 19:54                 ` Sebastian Reichel
2019-10-01  8:03                   ` Johan Hovold
2019-10-01  9:19                     ` Yegor Yefremov
2019-10-01 16:43                       ` Tony Lindgren
2019-10-01 22:03                         ` Tony Lindgren
2019-10-02  6:56                           ` Yegor Yefremov
2019-10-02 16:52                             ` Tony Lindgren
2019-10-03  8:39                               ` Yegor Yefremov
2019-10-21  8:39                                 ` Yegor Yefremov
2019-10-22 14:56                                   ` Tony Lindgren

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