From: "Leon M. Busch-George" <leon@georgemail.de>
To: linux-kernel@vger.kernel.org,
"David S. Miller" <davem@davemloft.net>,
devicetree@vger.kernel.org, netdev@vger.kernel.org
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Subject: [PATCH 2/2] dt-bindings: net: add option to ignore local-mac-address
Date: Fri, 17 May 2024 14:39:08 +0200 [thread overview]
Message-ID: <20240517123909.680686-2-leon@georgemail.de> (raw)
In-Reply-To: <20240517123909.680686-1-leon@georgemail.de>
From: "Leon M. Busch-George" <leon@georgemail.eu>
Add the option 'ignore-local-mac-address' to allow ignoring bogus
addresses. This restores the ability to correctly set the MAC address from
the device tree if a boot program stores a randomly generated address in
'local-mac-address'.
Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
---
.../devicetree/bindings/net/ethernet-controller.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml
index b2785b03139f..67b8437febdf 100644
--- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml
+++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml
@@ -23,6 +23,12 @@ properties:
minItems: 6
maxItems: 6
+ ignore-local-mac-address:
+ $ref: /schemas/types.yaml#/definitions/flag
+ description:
+ Indicates that 'local-mac-address' is to be ignored. This can
+ be useful when the boot program stores a bogus address.
+
mac-address:
description:
Specifies the MAC address that was last used by the boot
--
2.44.0
next prev parent reply other threads:[~2024-05-17 12:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-17 12:39 [PATCH 1/2] net: add option to ignore 'local-mac-address' property Leon M. Busch-George
2024-05-17 12:39 ` Leon M. Busch-George [this message]
2024-05-17 14:07 ` Andrew Lunn
2024-05-17 16:13 ` Conor Dooley
2024-05-17 21:15 ` Leon Busch-George
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=20240517123909.680686-2-leon@georgemail.de \
--to=leon@georgemail.de \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=netdev@vger.kernel.org \
/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
all inboxes | Powered by JetHome®