[PATCHv2 ath-next] wifi: ath10k: add nvmem support for mac address

Miquel Raynal miquel.raynal at bootlin.com
Mon Aug 18 00:59:08 PDT 2025


Hi Rosen,

On 11/08/2025 at 13:34:51 -07, Rosen Penev <rosenp at gmail.com> wrote:

> device_get_mac_address is a generic way to get the MAC address which
> lacks NVMEM support, which tends to be used on embedded platforms.
>
> In case device_get_mac_address fails, try of_get_mac_address_nvmem and
> handle EPROBE_DEFER to wait for the nvmem driver to initialize.
>
> Signed-off-by: Rosen Penev <rosenp at gmail.com>
> ---
>  v2: keep device_get_mac_address and use of_get_mac_address_nvmem
>  added Miquel to CC. Maybe he has insight.

LGTM. I guess it is not possible to make this fallback "the default" in
device_get_mac_address()? In this case doing it in your driver seems
fine if it's used on embedded systems with NVMEM cells described to
store MAC addresses.

Cheers,
Miquèl



More information about the ath10k mailing list