Re: [PATCH v2 5/8] net: of_net: Add of_get_nvmem_eui48() helper for EUI-48 lookup
Bartosz Golaszewski <[email protected]> Mon, 11 May 2026 03:36:18 -0700
| Newsgroups | org.infradead.lists.ath10k,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-block,org.kernel.vger.linux-bluetooth,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-mmc,org.kernel.vger.linux-wireless,org.kernel.vger.netdev |
|---|---|
| Message-ID | <CAMRc=Mdi5DuwhewSpaPCJCWWkmw57pLPx3snSyV_gtBN1gWtMw@mail.gmail.com> |
On Thu, 7 May 2026 17:24:40 +0200, Loic Poulain <[email protected]> said: > Factor out the common NVMEM EUI-48 retrieval logic from > of_get_mac_address_nvmem() into a new of_get_nvmem_eui48() helper that > accepts the NVMEM cell name as a parameter. This allows other subsystems > (e.g. Bluetooth) to reuse the same lookup-validate-copy pattern with a > different cell name, without duplicating code. > > of_get_mac_address_nvmem() is updated to call of_get_nvmem_eui48() with > "mac-address", preserving its existing behavior. > > Signed-off-by: Loic Poulain <[email protected]> > --- Reviewed-by: Bartosz Golaszewski <[email protected]>