From 357c3f1561d35bd2eede1ae3129697ca353c69ae Mon Sep 17 00:00:00 2001 From: Fugang Duan Date: Mon, 19 Aug 2013 10:58:24 +0800 Subject: [PATCH] ENGR00275619 net: fec: set reset phy gpio to high in .probe(). In .probe() call fec_of_init() to parse phy reset gpio, and request the gpio for later use. For the init, we must set the gpio to high to let phy power on. Signed-off-by: Fugang Duan --- drivers/net/ethernet/freescale/fec_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 8cd644d8135e..a23156f85a4a 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -2064,7 +2064,7 @@ static void fec_of_init(struct platform_device *pdev) return; err = devm_gpio_request_one(&pdev->dev, fep->phy_reset_gpio, - GPIOF_OUT_INIT_LOW, "phy-reset"); + GPIOF_OUT_INIT_HIGH, "phy-reset"); if (err) { dev_err(&pdev->dev, "failed to get phy-reset-gpios: %d\n", err); fep->phy_reset_gpio = -1; -- 2.39.5