From: Alban Bedel <alban.bedel@avionic-design.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] eth: asix88179: Reset device during probe with DM_ETH enabled
Date: Tue, 6 Sep 2016 09:44:22 +0200 [thread overview]
Message-ID: <20160906094422.4d0b591b@avionic-0020> (raw)
In-Reply-To: <CAPnjgZ3zS-AEAFJ2YGroQ85T8b96P8RRC5sn0rxoyRaTnzxP6g@mail.gmail.com>
On Mon, 5 Sep 2016 19:04:49 -0600
Simon Glass <sjg@chromium.org> wrote:
> Hi,
>
> On 30 August 2016 at 08:01, Nikolaus Schulz
> <nikolaus.schulz@avionic-design.de> 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 <nikolaus.schulz@avionic-design.de>
> > ---
> > 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)
>
> How come this doesn't happen in ax88179_eth_start()?
It happen in ax88179_eth_get_info() in the non DM case, that's why it
was overseen when adding DM support.
Alban
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160906/9befde4f/attachment.sig>
next prev parent reply other threads:[~2016-09-06 7:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-30 14:01 [U-Boot] [PATCH] eth: asix88179: Reset device during probe with DM_ETH enabled Nikolaus Schulz
2016-08-31 12:33 ` Marek Vasut
2016-09-06 1:04 ` Simon Glass
2016-09-06 7:44 ` Alban Bedel [this message]
2016-09-06 9:33 ` Nikolaus Schulz
2016-09-06 12:46 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160906094422.4d0b591b@avionic-0020 \
--to=alban.bedel@avionic-design.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox