Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4444574 authored by Fabio Estevam's avatar Fabio Estevam Committed by David S. Miller
Browse files

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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 523e1345
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3262,7 +3262,7 @@ static void fec_reset_phy(struct platform_device *pdev)
		return;
		return;
	}
	}
	msleep(msec);
	msleep(msec);
	gpio_set_value(phy_reset, 1);
	gpio_set_value_cansleep(phy_reset, 1);
}
}
#else /* CONFIG_OF */
#else /* CONFIG_OF */
static void fec_reset_phy(struct platform_device *pdev)
static void fec_reset_phy(struct platform_device *pdev)