When PHY reset pin is connected to a GPIO on external GPIO chip
(e.g. I2C), we should not call the gpio_set_value() function, but
gpio_set_value_cansleep().

Signed-off-by: Igor Grinberg <grinb...@compulab.co.il>
Acked-by: Felipe Balbi <ba...@ti.com>
Tested-by: Govindraj.R <govindraj.r...@ti.com>
Acked-by: Alan Stern <st...@rowland.harvard.edu>
---
 drivers/usb/host/ehci-omap.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index 5c78f9e..26e9241 100644
--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -258,10 +258,10 @@ static int ehci_hcd_omap_probe(struct platform_device 
*pdev)
                udelay(10);
 
                if (gpio_is_valid(pdata->reset_gpio_port[0]))
-                       gpio_set_value(pdata->reset_gpio_port[0], 1);
+                       gpio_set_value_cansleep(pdata->reset_gpio_port[0], 1);
 
                if (gpio_is_valid(pdata->reset_gpio_port[1]))
-                       gpio_set_value(pdata->reset_gpio_port[1], 1);
+                       gpio_set_value_cansleep(pdata->reset_gpio_port[1], 1);
        }
 
        return 0;
-- 
1.7.3.4

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

Reply via email to