On 08/30/2016 04:01 PM, Nikolaus Schulz wrote:
> With the ethernet driver model enabled, reset the device before reading
> the MAC address, just like it's done for the non-device-model code path.
> This avoids a timeout when the interface is first used.
> 
> Signed-off-by: Nikolaus Schulz <[email protected]>

I'd like some more ACKs on this or Tested-bys before I apply it as I
don't have that hardware. I am fine with the patch itself though.

> ---
>  drivers/usb/eth/asix88179.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/usb/eth/asix88179.c b/drivers/usb/eth/asix88179.c
> index 7548269..0725940 100644
> --- a/drivers/usb/eth/asix88179.c
> +++ b/drivers/usb/eth/asix88179.c
> @@ -878,6 +878,10 @@ static int ax88179_eth_probe(struct udevice *dev)
>       usb_dev = priv->ueth.pusb_dev;
>       priv->maxpacketsize = usb_dev->epmaxpacketout[AX_ENDPOINT_OUT];
>  
> +     ret = asix_basic_reset(&priv->ueth, priv);
> +     if (ret)
> +             return ret;
> +
>       /* Get the MAC address */
>       ret = asix_read_mac(&priv->ueth, pdata->enetaddr);
>       if (ret)
> 


-- 
Best regards,
Marek Vasut
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to