MLK-18437-1 usb: ehci-mx6: fix board_usb_clean issue
The board_usb_clean in ehci-mx6 always set to HOST. This is wrong when we running gadget. Change to use type in private data. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 47809d46abafd91c8fbb90393881f1daddd08af1)
This commit is contained in:
parent
58b397a06a
commit
ec37a2cef2
|
|
@ -743,9 +743,11 @@ static int ehci_usb_probe(struct udevice *dev)
|
||||||
|
|
||||||
int ehci_usb_remove(struct udevice *dev)
|
int ehci_usb_remove(struct udevice *dev)
|
||||||
{
|
{
|
||||||
|
struct ehci_mx6_priv_data *priv = dev_get_priv(dev);
|
||||||
|
|
||||||
ehci_deregister(dev);
|
ehci_deregister(dev);
|
||||||
|
|
||||||
return board_usb_cleanup(dev->seq, USB_INIT_HOST);
|
return board_usb_cleanup(dev->seq, priv->init_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct udevice_id mx6_usb_ids[] = {
|
static const struct udevice_id mx6_usb_ids[] = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue