From: Tom Rini Date: Fri, 25 Oct 2019 08:05:52 -0400 Subject: [U-Boot] [PATCH 01/14] net: eth-uclass: eth_get_dev based on SEQ_ALIAS instead of probe order In-Reply-To: <20190806103844.25277-2-j-keerthy@ti.com> References: <20190806103844.25277-1-j-keerthy@ti.com> <20190806103844.25277-2-j-keerthy@ti.com> Message-ID: <20191025120552.GA14351@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Aug 06, 2019 at 04:08:31PM +0530, Keerthy wrote: > In case of multiple eth interfaces currently eth_get_dev > fetches the device based on the probe order which can be > random hence try with the alias. > > Signed-off-by: Keerthy > --- > net/eth-uclass.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/net/eth-uclass.c b/net/eth-uclass.c > index 031d558625..f11c307b8c 100644 > --- a/net/eth-uclass.c > +++ b/net/eth-uclass.c > @@ -68,8 +68,8 @@ struct udevice *eth_get_dev(void) > > uc_priv = eth_get_uclass_priv(); > if (!uc_priv->current) > - eth_errno = uclass_first_device(UCLASS_ETH, > - &uc_priv->current); > + eth_errno = uclass_get_device_by_seq(UCLASS_ETH, > + 0, &uc_priv->current); > return uc_priv->current; > } This breaks networking on qemu_arm / qemu_arm64 and no networking device is found. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: