From 29a79eb7cabf4b2bae490035bdc20dad7b15be6e Mon Sep 17 00:00:00 2001 From: Mayank Rana Date: Fri, 22 Apr 2016 09:58:24 -0700 Subject: [PATCH] dwc3-msm: Don't perform bus voting from dwc3 driver probe Currently dwc3 driver's probe is doing bus voting. This voting remains until USB cable is connected and disconnected. Due to this voting, XOSD is not happening. Fix this issue by removing voting from driver's probe context and let USB's suspend and resume take care of bus unvoting and voting respectively. CRs-Fixed: 1007183 Change-Id: I34f7cbf2aa10b63712e5142f908fa77ae195f5b1 Signed-off-by: Mayank Rana --- drivers/usb/dwc3/dwc3-msm.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-msm.c b/drivers/usb/dwc3/dwc3-msm.c index 3ad858487b81..c053949ff6cd 100644 --- a/drivers/usb/dwc3/dwc3-msm.c +++ b/drivers/usb/dwc3/dwc3-msm.c @@ -2723,15 +2723,9 @@ static int dwc3_msm_probe(struct platform_device *pdev) } mdwc->bus_scale_table = msm_bus_cl_get_pdata(pdev); - if (!mdwc->bus_scale_table) { - dev_err(&pdev->dev, "bus scaling is disabled\n"); - } else { + if (mdwc->bus_scale_table) { mdwc->bus_perf_client = msm_bus_scale_register_client(mdwc->bus_scale_table); - ret = msm_bus_scale_client_update_request( - mdwc->bus_perf_client, 1); - if (ret) - dev_err(&pdev->dev, "Failed to vote for bus scaling\n"); } dwc = platform_get_drvdata(mdwc->dwc3);