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 <mrana@codeaurora.org>
This commit is contained in:
Mayank Rana 2016-04-22 09:58:24 -07:00 committed by Jeevan Shriram
parent ab02a8dd22
commit 29a79eb7ca

View file

@ -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);