Skip to content

Commit

Permalink
prod: adrv1crr: quickfix for otg
Browse files Browse the repository at this point in the history
On some SOM boards the otg usb doesn't
switch to host mode automatically.
Before testing the otg funcrionality an rebind of
the platform driver is performed so that the
device responds accordingly.

Signed-off-by: Ramona Alexandra Nechita <[email protected]>
  • Loading branch information
ranechita committed Feb 10, 2022
1 parent 20dd598 commit b40ac0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion adrv1crr/adrv_crr_test/test_usb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ TEST_NAME="TEST_USB_HOST_MODE"

TEST_ID="01"
SHORT_DESC="USB port testing - please plug OTG cable with a connected USB2 flash device"
CMD="wait_enter && lsusb -t | grep -q \"Class=Mass Storage, Driver=usb-storage\""
CMD="wait_enter ;"
CMD+="echo ci_hdrc.0 > /sys/bus/platform/devices/ci_hdrc.0/driver/unbind ;"
CMD+="echo ci_hdrc.0 > /sys/bus/platform/devices/ci_hdrc.0/driver/bind ;"
CMD+="lsusb -t | grep -q \"Class=Mass Storage, Driver=usb-storage\""
run_test $TEST_ID "$SHORT_DESC" "$CMD"

TEST_NAME="TEST_USB_DRIVE_MOUNTED"
Expand Down

0 comments on commit b40ac0e

Please sign in to comment.