android udisk1detect,imx6ull USB_OTG1 host sometimes can not detect a i...

In our custom imx6ull board, we use USB_OTG2 as usb host connect to 4G modem, and  USB_OTG1 as usb host connect to a USB typeA interface.

In most case USB_OTG1 can success recognize a inserted Udisk, and there is a 3% probability that cannot  recognize. when in that abnormal situation, we try a lot unplug and insert, but the Udisk was not successfully recognized even once, we also try other usb device,eg. USB mouse, other brand Udisk is the same. And in that abnormal situation,USB_OTG2 can success to recognize unplug and insert 4G modem.

root@Router:/etc# lsusb

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

So in the beginning we think this mybe a hardware issue, because there is only 5% probability custom imx6ull board exist this issue,but in that abnormal situation if we try  "rmmod ci_hdrc_imx" and then "modprobe ci_hdrc_imx"  (sometime need try twice),USB_OTG1 can success to recognize the Udisk. So now i  think there may be also a "ci_hdrc_imx" driver bug.

root@Router:~# lsmod

Module Size Used by

ci_hdrc_imx 16384 0

ci_hdrc 57344 1 ci_hdrc_imx

ehci_hcd 53248 1 ci_hdrc

usbmisc_imx 20480 1 ci_hdrc_imx

evbug 16384 0

root@Router:~# rmmod ci_hdrc_imx

[ 122.118951] ci_hdrc ci_hdrc.1: remove, state 4

[ 122.123437] usb usb2: USB disconnect, device number 1

[ 122.140736] ci_hdrc ci_hdrc.1: USB bus 2 deregistered

[ 122.161250] ci_hdrc ci_hdrc.0: remove, state 1

[ 122.236537] hub 1-0:1.0: activate --> -108

[ 122.240753] usb usb1: USB disconnect, device number 1

[ 122.274650] ci_hdrc ci_hdrc.0: USB bus 1 deregistered

root@Router:~#

root@Router:~#

root@Router:~#

root@Router:~#

root@Router:~# modprobe ci_hdrc_imx

[ 133.404398] imx_usb 2184000.usb: No over current polarity defined

[ 133.416681] imx_usb 2184000.usb: 2184000.usb supply vbus not found, using dummy regulator

[ 133.466688] ci_hdrc ci_hdrc.0: EHCI Host Controller

[ 133.471663] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1

[ 133.506583] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00

[ 133.513254] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04

[ 133.532438] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[ 133.543649] usb usb1: Product: EHCI Host Controller

[ 133.550679] usb usb1: Manufacturer: Linux 5.4.24 ehci_hcd

[ 133.558568] usb usb1: SerialNumber: ci_hdrc.0

[ 133.581312] hub 1-0:1.0: USB hub found

[ 133.585190] hub 1-0:1.0: 1 port detected

[ 133.615430] imx_usb 2184200.usb: 2184200.usb supply vbus not found, using dummy regulator

[ 133.652481] ci_hdrc ci_hdrc.1: EHCI Host Controller

[ 133.666850] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2

[ 133.716535] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00

[ 133.729739] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04

[ 133.746536] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[ 133.753787] usb usb2: Product: EHCI Host Controller

[ 133.776502] usb usb2: Manufacturer: Linux 5.4.24 ehci_hcd

[ 133.781954] usb usb2: SerialNumber: ci_hdrc.1

[ 133.818004] hub 2-0:1.0: USB hub found

[ 133.821877] hub 2-0:1.0: 1 port detected

root@Router:~# [ 133.966498] usb 1-1: new high-speed USB device number 2 using ci_hdrc

[ 134.018888] usb 1-1: New USB device found, idVendor=14cd, idProduct=2536, bcdDevice= 3.00

[ 134.036431] usb 1-1: New USB device strings: Mfr=1, Product=3, SerialNumber=2

[ 134.043593] usb 1-1: Product: Mass Storage Device

[ 134.066523] usb 1-1: Manufacturer: Generic USB Device

[ 134.072036] usb 1-1: SerialNumber: 2536201609180000

[ 134.089037] usb-storage 1-1:1.0: USB Mass Storage device detected

[ 134.117513] scsi host0: usb-storage 1-1:1.0

[ 135.207983] scsi 0:0:0:0: Direct-Access Mass Storage Device 1.00 PQ: 0 ANSI: 0 CCS

[ 135.240656] sd 0:0:0:0: [sda] 31105024 512-byte logical blocks: (15.9 GB/14.8 GiB)

[ 135.267407] sd 0:0:0:0: [sda] Write Protect is off

[ 135.284889] sd 0:0:0:0: [sda] No Caching mode page found

[ 135.306656] sd 0:0:0:0: [sda] Assuming drive cache: write through

[ 135.346777] sda: sda1

[ 135.359644] sd 0:0:0:0: [sda] Attached SCSI removable disk

[ 138.063436] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

Here is

our Dts

pinctrl_usb_otg1: usbotg1grp {

fsl,pins = <

MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x17059

MX6UL_PAD_GPIO1_IO01__USB_OTG1_OC 0x17059

>;

};

&usbotg1 {

dr_mode = "otg";

pinctrl-names = "default";

pinctrl-0 = ;

status = "okay";

};

our hareware sch:

4855907f878c0af3ec79e365ba83f4ad.png215e7189e364f81253b234d3c1a90fee.png

7d8b58bbcabffcb2f3c892c6debad3da.pnge912ca4ff30fe88ec6b74f22eb3bde9f.png

Our kernel:

banch remotes/origin/imx_5.4.24_2.1.0

Any suggestions are appreciated,thanks

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值