提交 0a9134bd 编写于 作者: B Bin Liu 提交者: Greg Kroah-Hartman

usb: musb: disable otg protocol support

As decided in the discussion [1] we are deleting the otg protocol
support from the musb drivers.

First this patch disables the flags for enabling the otg protocols. We
will later gradually delete the otg protocol code from the musb drivers.

[1] https://www.spinics.net/lists/linux-usb/msg167003.htmlSigned-off-by: NBin Liu <b-liu@ti.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 d2852f2d
...@@ -1798,11 +1798,8 @@ int musb_gadget_setup(struct musb *musb) ...@@ -1798,11 +1798,8 @@ int musb_gadget_setup(struct musb *musb)
/* this "gadget" abstracts/virtualizes the controller */ /* this "gadget" abstracts/virtualizes the controller */
musb->g.name = musb_driver_name; musb->g.name = musb_driver_name;
#if IS_ENABLED(CONFIG_USB_MUSB_DUAL_ROLE) /* don't support otg protocols */
musb->g.is_otg = 1;
#elif IS_ENABLED(CONFIG_USB_MUSB_GADGET)
musb->g.is_otg = 0; musb->g.is_otg = 0;
#endif
INIT_DELAYED_WORK(&musb->gadget_work, musb_gadget_work); INIT_DELAYED_WORK(&musb->gadget_work, musb_gadget_work);
musb_g_init_endpoints(musb); musb_g_init_endpoints(musb);
......
...@@ -2755,7 +2755,8 @@ int musb_host_setup(struct musb *musb, int power_budget) ...@@ -2755,7 +2755,8 @@ int musb_host_setup(struct musb *musb, int power_budget)
musb->xceiv->otg->state = OTG_STATE_A_IDLE; musb->xceiv->otg->state = OTG_STATE_A_IDLE;
} }
otg_set_host(musb->xceiv->otg, &hcd->self); otg_set_host(musb->xceiv->otg, &hcd->self);
hcd->self.otg_port = 1; /* don't support otg protocols */
hcd->self.otg_port = 0;
musb->xceiv->otg->host = &hcd->self; musb->xceiv->otg->host = &hcd->self;
hcd->power_budget = 2 * (power_budget ? : 250); hcd->power_budget = 2 * (power_budget ? : 250);
hcd->skip_phy_initialization = 1; hcd->skip_phy_initialization = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册