mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 12:00:58 +07:00
usb: chipidea: usbmisc: evdo is only specific to OTG port
The USB_PHY_CTRL_FUNC is used specific for OTG port as described in user manual. EVDO need to be set only for index 0 that correspond to OTG port Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1ca5033101
commit
9618d09349
@ -148,6 +148,9 @@ static int usbmisc_imx25_post(struct imx_usbmisc_data *data)
|
|||||||
if (data->index > 2)
|
if (data->index > 2)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
if (data->index)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (data->evdo) {
|
if (data->evdo) {
|
||||||
spin_lock_irqsave(&usbmisc->lock, flags);
|
spin_lock_irqsave(&usbmisc->lock, flags);
|
||||||
reg = usbmisc->base + MX25_USB_PHY_CTRL_OFFSET;
|
reg = usbmisc->base + MX25_USB_PHY_CTRL_OFFSET;
|
||||||
|
Loading…
Reference in New Issue
Block a user