[PATCH 1/2] net: fec: prevent undesired de-assertion of phy-reset on request

Ramon Fried rfried.dev at gmail.com
Sun Apr 10 07:05:03 CEST 2022


On Thu, Mar 3, 2022 at 9:55 AM Ramon Fried <rfried.dev at gmail.com> wrote:
>
> On Wed, Mar 2, 2022 at 3:58 AM Adam Ford <aford173 at gmail.com> wrote:
> >
> > On Tue, Mar 1, 2022 at 2:38 PM Joe Hershberger <joe.hershberger at ni.com> wrote:
> > >
> > > On Tue, Mar 1, 2022 at 2:15 PM Tim Harvey <tharvey at gateworks.com> wrote:
> > > >
> > > > 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 at seco.com>
> > > > Signed-off-by: Tim Harvey <tharvey at gateworks.com>
> > >
> > > Acked-by: Joe Hershberger <joe.hershberger at ni.com>
> >
> > Tested-by: Adam Ford <aford173 at gmail.com> #imx8mm-beacon
> Reviewed-by: Ramon Fried <rfried.dev at gmail.com>
Applied to u-boot-net/next
Thanks,
Ramon


More information about the U-Boot mailing list