fix: usb: fix detection failure when changing usbActive/Type between resets
- Before, when running 'usb reset' and changing the
environment variables 'usbActive'/'usbType' and running
'usb reset' again will cause failure and board reset.
The user had to stop the usb first(run 'usb stop') before
changing the variables.
'usb_lowlevel_stop' stops the usb, but uses value of the
environment variables 'usbActive' and 'usbType' to know
which usb to stop.
the usb init sequence first runs 'usb_lowlevel_stop' and
then initializes the usb, but if 'usbActive' OR 'usbType'
changed, it will cause it to run on the wrong parameters.
- Changed 'usb_lowlevel_stop' to take the usbActive and
usbType from the currently active usb.
- Fixed JIRA: SYSTEMSW-1704
Change-Id: I8cbee9e8be51b4f2bb533eb9f33d139396bb3d48
Signed-off-by: Bassel Saba <basselsa@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/18694
Reviewed-by: Omri Itach <omrii@marvell.com>
Tested-by: Omri Itach <omrii@marvell.com>
1 file changed