Skip to content

Commit

Permalink
USB/IP: Don't bind driver to non-existing device
Browse files Browse the repository at this point in the history
The USB device might not be attached, when the exporter starts. Skip
binding the usbip-host driver in that case.
  • Loading branch information
holesch committed Dec 4, 2023
1 parent dec5dbf commit 021533c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion not_my_board/_usbip.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async def _ensure_usbip_host_driver(self):
)
(driver_path / "unbind").write_text(self._busid)
await self._bind_usbip_host_driver()
else:
elif self._sysfs_path.exists():
await self._bind_usbip_host_driver()

async def _bind_usbip_host_driver(self):
Expand Down

0 comments on commit 021533c

Please sign in to comment.