This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM813x USB host with hub issue: error 0/-71

Other Parts Discussed in Thread: DM385

hi TI:

I am debug USB host issue. the HW block is USB host with hub be 2 use host port.

when I do local play mp3 file and copy file form flash drive to NAND flash. I got some error message as below.

Does this has any patch file or some one can share comments?? Thanks.

usb 1-1.1: reset high speed USB device using musb-hdrc and address 3
usb 1-1.1: reset high speed USB device using musb-hdrc and address 3
musb-hdrc musb-hdrc.1: dev 1.1 ep2in scatterlist error 0/-71
musb-hdrc musb-hdrc.1: dev 1.1 ep2in scatterlist error 0/-71
musb-hdrc musb-hdrc.1: dev 1.1 ep2in scatterlist error 0/-71
musb-hdrc musb-hdrc.1: dev 1.1 ep2in scatterlist error 0/-71
musb-hdrc musb-hdrc.1: dev 1.1 ep2in scatterlist error 0/-71
musb-hdrc musb-hdrc.1: dev 1.1 ep2in scatterlist error 0/-71
musb-hdrc musb-hdrc.1: dev 1.1 ep2in scatterlist error 0/-71
usb 1-1.1: reset high speed USB device using musb-hdrc and address 3
usb 1-1.1: reset high speed USB device using musb-hdrc and address 3

the kernel version is linux-2.6.37-psp04.04.00.01

Austin

  • Austin,

    Have you gone through the below wiki pages?

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_USB_Driver_User_Guide

    http://processors.wiki.ti.com/index.php/Usbgeneralpage

    austin huang said:
    the kernel version is linux-2.6.37-psp04.04.00.01

    Please try with the latest PSP kernel (where we have several USB patches):

    http://arago-project.org/git/projects/?p=linux-omap3.git;a=shortlog;h=refs/heads/ti81xx-master

    If you are on IPNC RDK, you should use the below linux kernel:

    http://arago-project.org/git/projects/?p=linux-ipnc-rdk-dm81xx.git;a=shortlog;h=refs/heads/ipncrdk_psp_dm81xx_kernel

    Regards,
    Pavel

  • Hi Pavel, Thank you for the patch introduction. We will study and select appropriate patch.

    For the reference and further analysis of the root-cause.  Would you be able to share when these error typically occur?  And also, what the error message's error-code means if there is any error-code reference?

    "usb 1-1.1: reset high speed USB device using musb-hdrc and address 3
    musb-hdrc musb-hdrc.1: dev 1.1 ep2in scatterlist error 0/-71"

    Thank you for your help.

  • hi Pavel:

    the 2 links you shared has too much USB patch. Could u pls share some possible patch for that error message?

    Thanks.
    Austin
  • Austin,

    austin huang said:
    the 2 links you shared has too much USB patch. Could u pls share some possible patch for that error message?

    You can download and build the latest version of the linux kernel, and use it. Thus no need to patch it.

    BR
    Pavel

  • Hi Pavel:

    the git link is empty. does others???

    Austin

  • Austin,

    Are you using IPNC RDK? If yes, then can take the linux kernel (2.6.37) from the below branch (no git is needed):

     

    If you are using pure PSP (no IPNC RDK above), you can take the linux kernel (2.6.37) from the below branch (no git is needed):

     

    You can get the source in tar.gz file (click in snapshot), see the screen shot below

    Thus you will have linux-omap3-97101e6c43c0e956dbc2863bd3e50ab70f987a91.tar.gz on your host machine. Extract it, you will get folder linux-omap3/ Then enter through console in this folder and build your DM813x (DM385) uImage. It will have all the USB patches inside.

    linux-omap3$ make dm385_evm_defconfig

    linux-omap3$ make menuconfig   ---> make your USB configurations

    linux-omap3$ make uImage

    Best regards,
    Pavel

  • Hi Pavel,

    I am facing the same problem.

    Our team is already using PSP 5_05_02_00 and the kernel version is already 2.6.37.  The patches you mentioned should be inside the PSP release already.  Can you please help to give more advice?

    Regards,

    Jeff

  • Hi Jeff,

    jianfeng li said:
    Our team is already using PSP 5_05_02_00

    There is no such PSP version. The latest TI81xx PSP is 04.04.00.02. Could you please double check what you are exactly using?


    BR
    Pavel

  • Hi Pavel,

    The ezsdk version is 5_05_02_00 and the PSP 04.04.00.01. Sorry for the confusion.
    So in this case, which patch I need for this specific problem?

    Regards,
    Jeff
  • Jeff,

    This thread is for DM385/DM813x/TI813x device, which does not use EZSDK. Are you using DM814x device? If not, which device you are using?

    BR
    Pavel
  • Hi Pavel,

    We are using DM8148.

    Regards,
    Jeff
  • Then you can try with all USB related patches (that are not applied in psp04.04.00.01) available at the below branch:

    http://arago-project.org/git/projects/?p=linux-omap3.git;a=shortlog;h=refs/heads/ti81xx-master

    BR
    Pavel

  • Hi Pavel,

    We have applied the patches you mentioned. But the "hub 2-1:1.0: hub_port_status failed (err = -71)" error keeps happening.  Any more advice?

    Regards,

    Jeff

  • Jeff,

    Are you using DM814x custom board or TI EVM? Can you reproduce this issue on the TI EVM?

    BR
    Pavel
  • Hi Pavel

    I am working along with Jeff on this issue.

    We encounter the issue on attaching a usb flash drive. The issue is not seen on all boards but on couple of PCBA. This can be reproduced after few tries of attaching and detaching the usb flash drive (There is no stressing required. Normal plug in and plug out action spaced out within few seconds also causes issue). The PCBA need to be power cycled to get the USB ports working again.

    Whenever we encounter the  error, the debug port is populated with this error message repeatedly

    hub_port_status failed (err = -71)

    The hub in question is an on-board external USB Hub IC USB2422 from Microchip - used for expansion. Once the issue is encountered , neither of the downstream hub ports respond and there is no activity on the D+/D- lines on plugging in a flash drive. It seems like the hub's upstream link totally loses communication with the DM8148's USB1 Host port.

    Is there anything which we could do from the DM8148 to ensure there is no loss of communication between DM8148 and on-board external hub?

    Regards,

    KS.Padmanabhan

     

  • KS,

    Padmanabhan KS said:
    The issue is not seen on all boards but on couple of PCBA.

    This seems to me HW issue, as the same SW is working fine on some of your custom boards. I would recommend you to double check the HW design, using the below resources:

    - DM814x TI EVM schematics reference

    - DM814x TI EVM HW diagnostic USB test - This CCS test application validates the MUSB for its ability to perform device connect/disconnect.
    It also validates the speed and VBUS level post device connect. The test is declared a PASS if the device is connected/disconnected gets displayed
    in the console and the device speed/VBUS levels are detected correctly.

    - DM814x datasheet, USB section

    - DM814x Silicon errata, Advisory 3.0.9, Advisory 3.0.70

     

    BR
    Pavel