#!/usr/bin/bash # Find the PCI ID of the device you want to reset # # lspci | grep -i usb # ... # 0c:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03) # Remove the device from the system # # echo 1 > /sys/bus/pci/devices/0000\:0c\:00.0/remove # Rescan the PCI bus # # echo 1 > /sys/bus/pci/rescan