summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/ux500.c
diff options
context:
space:
mode:
authorBin Liu2018-05-21 15:42:18 +0200
committerGreg Kroah-Hartman2018-05-22 12:03:25 +0200
commitd2852f2d3e6d6b9de3739f95b5cd9eab3157af37 (patch)
tree6f6605f146e98fe80189ddb987c144f3404fd49d /drivers/usb/musb/ux500.c
parentusb: musb: break the huge isr musb_stage0_irq() into small functions (diff)
downloadkernel-qcow2-linux-d2852f2d3e6d6b9de3739f95b5cd9eab3157af37.tar.gz
kernel-qcow2-linux-d2852f2d3e6d6b9de3739f95b5cd9eab3157af37.tar.xz
kernel-qcow2-linux-d2852f2d3e6d6b9de3739f95b5cd9eab3157af37.zip
usb: musb: remove references to default_a of struct usb_otg
musb drivers do not use the otg fsm framework, so referencing to otg->default_a doesn't have any effect, so remove the references. But tusb6010 glue driver uses it locally to control the vbus power, so keep the references in tusb6010 only. Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb/ux500.c')
-rw-r--r--drivers/usb/musb/ux500.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/musb/ux500.c b/drivers/usb/musb/ux500.c
index 27b4a77a9e23..73538d1d0524 100644
--- a/drivers/usb/musb/ux500.c
+++ b/drivers/usb/musb/ux500.c
@@ -62,7 +62,6 @@ static void ux500_musb_set_vbus(struct musb *musb, int is_on)
} else {
musb->is_active = 1;
- musb->xceiv->otg->default_a = 1;
musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE;
devctl |= MUSB_DEVCTL_SESSION;
MUSB_HST_MODE(musb);
@@ -73,7 +72,6 @@ static void ux500_musb_set_vbus(struct musb *musb, int is_on)
/* NOTE: we're skipping A_WAIT_VFALL -> A_IDLE and jumping
* right to B_IDLE...
*/
- musb->xceiv->otg->default_a = 0;
devctl &= ~MUSB_DEVCTL_SESSION;
MUSB_DEV_MODE(musb);
}