disp: msm: dp: retry the request to set USB mode during bootup
DP driver is requesting USB to release SS lanes very early during bootup even before USB has fully initialized. As a result USB driver is returning -11 which will abort DP state machine. This change will allow DP driver to retry USB request whenever this error code is received. Change-Id: I144d16ef4b07016569ba9c04df15610fe3b5e6fc Signed-off-by: Sandeep Gangadharaiah <sandgang@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
95a41081eb
commit
edd46a2a54
@@ -43,7 +43,7 @@ enum dp_altmode_pin_assignment {
|
|||||||
|
|
||||||
static int dp_altmode_set_usb_dp_mode(struct dp_altmode_private *altmode)
|
static int dp_altmode_set_usb_dp_mode(struct dp_altmode_private *altmode)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc = 0;
|
||||||
struct device_node *np;
|
struct device_node *np;
|
||||||
struct device_node *usb_node;
|
struct device_node *usb_node;
|
||||||
struct platform_device *usb_pdev;
|
struct platform_device *usb_pdev;
|
||||||
@@ -71,7 +71,7 @@ static int dp_altmode_set_usb_dp_mode(struct dp_altmode_private *altmode)
|
|||||||
|
|
||||||
while (timeout) {
|
while (timeout) {
|
||||||
rc = dwc3_msm_set_dp_mode(&usb_pdev->dev, altmode->connected, altmode->lanes);
|
rc = dwc3_msm_set_dp_mode(&usb_pdev->dev, altmode->connected, altmode->lanes);
|
||||||
if (rc != -EBUSY)
|
if (rc != -EBUSY && rc != -EAGAIN)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
DP_WARN("USB busy, retry\n");
|
DP_WARN("USB busy, retry\n");
|
||||||
|
Reference in New Issue
Block a user