Both USB Type C are not working

That does not matter either.

He shouldn’t do that, but it won’t change USB function. If USB were used with a corrupt mass storage device, then that data might be lost, but USB itself won’t change. The ext4 journal, if it is large enough, will simply erase most recent writes when power is incorrectly cut.

A new finding here. The USB A is not working properly as well. For most of the tasks, it is fine. However, if I plug in realsense D435i or D455, the camera will connect and disconnect almost every 1 second. The dmesg is like this:

[11668.415548] input: Intel(R) RealSense(TM) Depth Ca as /devices/platform/3610000.xhci/usb2/2-4/2-4:1.0/input/input6447
[11668.487383] nvgpu: 17000000.gv11b        nvgpu_gsp_stress_test_halt:252  [INFO]  GSP stress test not loaded 
[11668.502957] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 455  (8086:0b5c)
[11668.510802] input: Intel(R) RealSense(TM) Depth Ca as /devices/platform/3610000.xhci/usb2/2-4/2-4:1.0/input/input6448
[11668.605232] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 455  (8086:0b5c)
[11668.611681] input: Intel(R) RealSense(TM) Depth Ca as /devices/platform/3610000.xhci/usb2/2-4/2-4:1.0/input/input6449
[11668.681955] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 455  (8086:0b5c)
[11668.690512] input: Intel(R) RealSense(TM) Depth Ca as /devices/platform/3610000.xhci/usb2/2-4/2-4:1.0/input/input6450
[11668.780100] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 455  (8086:0b5c)
[11668.790033] input: Intel(R) RealSense(TM) Depth Ca as /devices/platform/3610000.xhci/usb2/2-4/2-4:1.0/input/input6451
[11668.872014] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 455  (8086:0b5c)
[11668.883606] input: Intel(R) RealSense(TM) Depth Ca as /devices/platform/3610000.xhci/usb2/2-4/2-4:1.0/input/input6452
[11668.993650] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 455  (8086:0b5c)
[11669.014765] input: Intel(R) RealSense(TM) Depth Ca as /devices/platform/3610000.xhci/usb2/2-4/2-4:1.0/input/input6453
[11669.107642] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 455  (8086:0b5c)
[11669.122747] input: Intel(R) RealSense(TM) Depth Ca as /devices/platform/3610000.xhci/usb2/2-4/2-4:1.0/input/input6454
[11669.235535] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 455  (8086:0b5c)
[11669.251312] input: Intel(R) RealSense(TM) Depth Ca as /devices/platform/3610000.xhci/usb2/2-4/2-4:1.0/input/input6455
[11669.300097] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 455  (8086:0b5c)
[11669.308199] input: Intel(R) RealSense(TM) Depth Ca as /devices/platform/3610000.xhci/usb2/2-4/2-4:1.0/input/input6456
[11669.365782] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 455  (8086:0b5c)
[11669.376134] input: Intel(R) RealSense(TM) Depth Ca as /devices/platform/3610000.xhci/usb2/2-4/2-4:1.0/input/input6457
[11669.467875] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 455  (8086:0b5c)

Can we

  1. Flash the board with default jetpack

  2. Connect some simplest usb devices like mouse,keyboard and see if they are stable?

It is probably hardware defect.

I connect a mouse, a keyboard, even a realsense T265 to USB A at the same time with USB hub. They are stable, and there is no complaint in dmesg. It is only unstable if I connect D400.

What is the D400? Also, is the HUB externally powered, or powered via the USB cable? If by cable, can you check if there is a change when switching to an externally powered HUB?