From: Fugang Duan Date: Mon, 19 Aug 2013 02:58:24 +0000 (+0800) Subject: ENGR00275619 net: fec: set reset phy gpio to high in .probe(). X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=357c3f1561d35bd2eede1ae3129697ca353c69ae;p=karo-tx-linux.git 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 --- 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;