USB camera working problem

dear sir
I’m using TX2 on JetPack4.2.2 on customer board,I connect a usb3.0 camera on USB3_2(PIN G42\G43\D42\D43), It’s woring fine when i hot plungin the camera,I can got the kenel log and device node

:~$ dmesg
[ 1373.598433] tegra-xusb 3530000.xhci: exiting ELPG
[ 1373.604420] tegra-xusb 3530000.xhci: Firmware timestamp: 2018-12-26 10:30:04 UTC, Version: 55.12 release
[ 1373.606070] tegra-xusb 3530000.xhci: exiting ELPG done
[ 1373.838581] usb 2-3: new SuperSpeed USB device number 3 using tegra-xusb
[ 1373.861538] usb 2-3: New USB device found, idVendor=0403, idProduct=602a
[ 1373.861581] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=7
[ 1373.861605] usb 2-3: Product: MV360 AHD Device
[ 1373.861619] usb 2-3: Manufacturer: MV360
[ 1373.861641] usb 2-3: SerialNumber: 000000000001
[ 1373.929415] uvcvideo: Found UVC 1.10 device MV360 AHD Device (0403:602a)
[ 1373.934351] uvcvideo 2-3:1.0: Entity type for entity Extension 4 was not initialized!
[ 1373.934367] uvcvideo 2-3:1.0: Entity type for entity Processing 2 was not initialized!
[ 1373.934375] uvcvideo 2-3:1.0: Entity type for entity Camera 1 was not initialized!
[ 1373.934532] usbcore: registered new interface driver uvcvideo
[ 1373.934534] USB Video Class driver (1.1.1)
[ 1375.993673] usb 2-3: usb_suspend_both: status 0
[ 1375.994010] usb usb2: usb_suspend_both: status 0
[ 1375.994047] tegra-xusb 3530000.xhci: entering ELPG
[ 1376.000980] tegra-xusb 3530000.xhci: entering ELPG done
:~$ lsusb -vt
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=tegra-xusb/3p, 5000M
    |__ Port 3: Dev 3, If 0, Class=Video, Driver=uvcvideo, 5000M
    |__ Port 3: Dev 3, If 1, Class=Video, Driver=uvcvideo, 5000M
    |__ Port 3: Dev 3, If 2, Class=Vendor Specific Class, Driver=, 5000M
 /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=tegra-xusb/4p, 480M
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M

but when i shutdown the TX2 and power on the device,I can not got the device ,can anythone hlep me,the kernel log :log.txt (154.8 KB)

 lsusb -vt
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=tegra-xusb/3p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=tegra-xusb/4p, 480M
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M

Hi,
We have tried Logitech C930,E-Con See3CAM CU135 and don’t observe the issue. Probably it is specfic to the camera. Please try to disable and re-enable regulator after booting to kernel:


It should trigger re-enumeration of USB devices.

If it is just handling autosuspend incorrectly, then perhaps disabling this would help. You might try adding this file (or content within the file):

# Add /etc/modprobe.d/usbcore.conf, content:
options usbcore autosuspend=-1

Or you can change the kernel argument command line to include:
usbcore.autosuspend=-1
(some releases allow adding this to the “/boot/extlinux/extlinux.confAPPEND key/value pair, and in some cases you’d need to modify the device tree “chosen->bootargs” node)