[PATCH 6/9] usb:fsl:otg: Remove host drv upon otg bring-up

2015-05-05 Thread Ramneek Mehresh
Change have_hcd variable to remove/suspend host driver on
completion of otg initialization for otg auto detect

Signed-off-by: Ramneek Mehresh 
Reviewed-by: Li Yang-R58472 
Reviewed-by: Fleming Andrew-AFLEMING 
Tested-by: Fleming Andrew-AFLEMING 
---
 drivers/usb/host/ehci-fsl.c | 5 +
 1 file changed, 5 insertions(+)

diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index b2f5949..87e4a9a 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -178,6 +178,11 @@ static int usb_hcd_fsl_probe(const struct hc_driver 
*driver,
retval = -ENODEV;
goto err2;
}
+
+   ehci_fsl->have_hcd = 1;
+   } else {
+   dev_err(&pdev->dev, "wrong operating mode\n");
+   return -ENODEV;
}
 #endif
return retval;
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 6/9] usb:fsl:otg: Remove host drv upon otg bring-up

2015-05-05 Thread Ramneek Mehresh
Change have_hcd variable to remove/suspend host driver on
completion of otg initialization for otg auto detect

Signed-off-by: Ramneek Mehresh 
Reviewed-by: Li Yang-R58472 
Reviewed-by: Fleming Andrew-AFLEMING 
Tested-by: Fleming Andrew-AFLEMING 
---
 drivers/usb/host/ehci-fsl.c | 5 +
 1 file changed, 5 insertions(+)

diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index b2f5949..87e4a9a 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -178,6 +178,11 @@ static int usb_hcd_fsl_probe(const struct hc_driver 
*driver,
retval = -ENODEV;
goto err2;
}
+
+   ehci_fsl->have_hcd = 1;
+   } else {
+   dev_err(&pdev->dev, "wrong operating mode\n");
+   return -ENODEV;
}
 #endif
return retval;
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 6/9] usb:fsl:otg: Remove host drv upon otg bring-up

2015-04-07 Thread Ramneek Mehresh
Change have_hcd variable to remove/suspend host driver on
completion of otg initialization for otg auto detect

Signed-off-by: Ramneek Mehresh 
Reviewed-by: Li Yang-R58472 
Reviewed-by: Fleming Andrew-AFLEMING 
Tested-by: Fleming Andrew-AFLEMING 
---
 drivers/usb/host/ehci-fsl.c | 5 +
 1 file changed, 5 insertions(+)

diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index 9c91fbe..76dfc84 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -202,6 +202,11 @@ static int usb_hcd_fsl_probe(const struct hc_driver 
*driver,
retval = -ENODEV;
goto err2;
}
+
+   ehci_fsl->have_hcd = 1;
+   } else {
+   dev_err(&pdev->dev, "wrong operating mode\n");
+   return -ENODEV;
}
 #endif
return retval;
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 6/9] usb:fsl:otg: Remove host drv upon otg bring-up

2015-03-26 Thread Ramneek Mehresh
Change have_hcd variable to remove/suspend host driver on
completion of otg initialization for otg auto detect

Signed-off-by: Ramneek Mehresh 
Reviewed-by: Li Yang-R58472 
Reviewed-by: Fleming Andrew-AFLEMING 
Tested-by: Fleming Andrew-AFLEMING 
---
 drivers/usb/host/ehci-fsl.c | 5 +
 1 file changed, 5 insertions(+)

diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index 9c91fbe..76dfc84 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -202,6 +202,11 @@ static int usb_hcd_fsl_probe(const struct hc_driver 
*driver,
retval = -ENODEV;
goto err2;
}
+
+   ehci_fsl->have_hcd = 1;
+   } else {
+   dev_err(&pdev->dev, "wrong operating mode\n");
+   return -ENODEV;
}
 #endif
return retval;
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/