From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8F984C00140 for ; Sat, 13 Aug 2022 01:41:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 36BDD84B25; Sat, 13 Aug 2022 03:41:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="EKvSaZ0E"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E30D68483F; Sat, 13 Aug 2022 03:41:32 +0200 (CEST) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 61AE684A1A for ; Sat, 13 Aug 2022 03:41:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82d.google.com with SMTP id y18so2035383qtv.5 for ; Fri, 12 Aug 2022 18:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=Vxc7tzeR5ZinnsHG8b+IHYBVcT7VjD8ArRUm8QvcIS0=; b=EKvSaZ0EWCpwYRkXkgvCBy28Iq3h8GF9LY1wBokJWsGB1QX1MT8senLgKqHnSbCkZK eKopseuiABk6XuLZf9+yAVso+sDq7QUnVRi1Te/QJJucqVAmx2iKKwDxDwvYFsImjCM1 bRUQeaGFyMNwiir6Fd3I0YGVSuH2hz+Iin2DQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=Vxc7tzeR5ZinnsHG8b+IHYBVcT7VjD8ArRUm8QvcIS0=; b=LaKd6BoCrz0hz+MdisdkH0JBVeS5P1B9AGZ8SlFP9GbJyIAxXZAnohwlR9JmKPpRWu 78AfvYUddIx59W9spXV94B+5f47zr72nMLwKBuaGoIU6JuQbvIWHpp5g1/tXm83+93Zp MH7umJTrxYjJV/DyP+NQt1ZgoitO0Pj0bAUwYFaiA+qnsUMgIZWmdB8zmDvIopx2Juw5 MHKz6zwXA5aXrZHurEZnmjWTppxaOvF7Vy5wsHIEma9ov4d8SDQgjOIOCOMF7er9rcGe 909OJVdIddJGMXG95UFTGzh0K/7hC2pX/Bw6ll2khBpt7awnFfRx6vx24CShPeZdQZMx pQdg== X-Gm-Message-State: ACgBeo23M5a2kD7dvOfyCePImGXRInDISQ63DHy6nQuWAA/hB+iSPefY IjVLaSrgbLhKNvuXWkiPOvI1bA== X-Google-Smtp-Source: AA6agR6NV3NAnOX27Wk6wE1GMVCYC7e6Nf/mDLqrYJfZ1d6OBg04MgxscuCmDzZkSoCyZcnNKNLVKw== X-Received: by 2002:ac8:7f4a:0:b0:31e:ec99:d7c8 with SMTP id g10-20020ac87f4a000000b0031eec99d7c8mr6008454qtk.382.1660354886047; Fri, 12 Aug 2022 18:41:26 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id t201-20020a37aad2000000b006b9b7879964sm3287226qke.28.2022.08.12.18.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 18:41:25 -0700 (PDT) Date: Fri, 12 Aug 2022 21:41:22 -0400 From: Tom Rini To: Philip Oberfichtner Cc: u-boot@lists.denx.de, Marek Vasut , festevam@denx.de, peng.fan@nxp.com, Christoph Niedermaier , u-boot@dh-electronics.com, sbabic@denx.de, Patrice Chotard , Simon Glass , Patrick Delaunay Subject: Re: [PATCH v4 1/4] board: dhelectronics: Implement common MAC address functions Message-ID: <20220813014122.GH1146598@bill-the-cat> References: <20220726130454.2829205-1-pro@denx.de> <20220726130454.2829205-2-pro@denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hhshLfL5WNI6f7eq" Content-Disposition: inline In-Reply-To: <20220726130454.2829205-2-pro@denx.de> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --hhshLfL5WNI6f7eq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 26, 2022 at 03:04:50PM +0200, Philip Oberfichtner wrote: > This is a starting point for unifying duplicate code in the DH board > files. The functions for setting up MAC addresses are very similar for > the i.MX6, i.MX8 and stm32mp1 based boards. >=20 > All pre-existing implementations follow the same logic: >=20 > (1) Check if ethaddr is already set in the environment > (2) If not, try to get it from a board specific location (e.g. fuse) > (3) If not, try to get it from eeprom >=20 > After this commit, (1) and (3) are implemented as common functions, > ready to be used by board specific files. >=20 > Furthermore there is an implementation of (2) for imx based boards. >=20 > Signed-off-by: Philip Oberfichtner > Reviewed-by: Marek Vasut Applied to u-boot/master, thanks! --=20 Tom --hhshLfL5WNI6f7eq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmL3AT8ACgkQFHw5/5Y0 tyxJ4gv/c0fkXc8ZQdHh8Ft5zmy0zDn4nPuY9Ky3EhVoBbZ6xhx2Mp/fyYLNfa0Q onTHIh43+atiy3YQ/+TpycNHacKbTZ9UaOgPElPcgFU9Kmy3TZpx/6zC0PB9O6iB zq5IuOmBPql/oWpwykBaffGkIp1zeXhxQ5XkXZw3N+0vEhyKk1L+Is5TMJkA8fDF OqOddk6WzvgL8jSxxUBudUxUkvxgXmM4HYqhNZs7YEDWguXkIJ4y2GC6K6nNFk5k sFJ8BvT86xHaUAt3NxO/XOiSCkg0pL2j5nS3Oz9Vn0lKaokhPyxq8niMN0jvgyb5 GI5sv4FL/f55gcfCKk5qXATKHU6WwNITbKaXCK/jVTYNXe+xGMw8uEWR9BW8REIr YVV2huWLjTC+YUcajgQGLfNhwDbyIhbNYY9FWhK9260j0dMRhdH/1m6Uoiiv3RQh km+WizH4z5v4r0ydPzo+gXqL7ymA4V1rYPE448UXEmePhFAFrzXnWaHCNDpMYFNi E9wps8z9 =+EKb -----END PGP SIGNATURE----- --hhshLfL5WNI6f7eq--