From: Fabio Estevam Date: Wed, 28 Oct 2015 12:20:30 +0000 (-0200) Subject: fec: Use gpio_set_value_cansleep() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f4444574a41430315a9c3eeb9e37cb0a36444a35;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fec: Use gpio_set_value_cansleep() We are in a context where we can sleep, and the FEC PHY reset gpio may be on an I2C expander. Use the cansleep() variant when setting the GPIO value. Based on a patch from Russell King for pci-mvebu.c. Signed-off-by: Fabio Estevam Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index dd4ca39d5d8f..1de1a18a0cac 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -3262,7 +3262,7 @@ static void fec_reset_phy(struct platform_device *pdev) return; } msleep(msec); - gpio_set_value(phy_reset, 1); + gpio_set_value_cansleep(phy_reset, 1); } #else /* CONFIG_OF */ static void fec_reset_phy(struct platform_device *pdev)