Tim Harvey 4223fb0ee1 net: fec: prevent undesired de-assertion of phy-reset on request
When gpio_request_by_name allocates a gpio output it by default will
de-assert the gpio which for phy-reset will take the PHY out of reset.
As this occurs before fec_gpio_reset is called to assert the reset
line it can cause undesired affects if reset timings are not properly
met.

Configure the gpio with GPIOD_IS_OUT_ACTIVE so that reset is kept active
(reset asserted) to avoid this.

Cc: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Tested-by: Adam Ford <aford173@gmail.com> #imx8mm-beacon
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
2022-04-10 08:44:13 +03:00
..
2021-12-02 08:34:01 +02:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2021-02-24 16:51:49 -05:00
2021-09-28 18:50:56 +03:00
2022-03-25 12:01:15 +00:00
2021-12-02 08:34:01 +02:00
2021-07-18 21:03:57 -04:00
2022-03-25 12:01:15 +00:00
2021-02-15 10:16:24 -05:00