add reset usb bus
This commit is contained in:
8
.github/workflows/build_esp.yml
vendored
8
.github/workflows/build_esp.yml
vendored
@@ -95,3 +95,11 @@ jobs:
|
||||
- name: Test on actual hardware
|
||||
run: |
|
||||
python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json
|
||||
|
||||
- name: Reset USB bus
|
||||
run: |
|
||||
for port in $(lspci | grep USB | cut -d' ' -f1); do
|
||||
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
|
||||
sleep 1;
|
||||
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
|
||||
done
|
||||
|
8
.github/workflows/cmake_arm.yml
vendored
8
.github/workflows/cmake_arm.yml
vendored
@@ -139,3 +139,11 @@ jobs:
|
||||
- name: Test on actual hardware
|
||||
run: |
|
||||
python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json
|
||||
|
||||
- name: Reset USB bus
|
||||
run: |
|
||||
for port in $(lspci | grep USB | cut -d' ' -f1); do
|
||||
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
|
||||
sleep 1;
|
||||
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
|
||||
done
|
||||
|
Reference in New Issue
Block a user