of: net: support NVMEM cells with MAC in text format
authorRafał Miłecki <rafal@milecki.pl>
Thu, 23 Dec 2021 12:27:47 +0000 (13:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Dec 2021 11:32:58 +0000 (11:32 +0000)
commit9ed319e411915e882bb4ed99be3ae78667a70022
tree86d3dd383f24874ffec5736536e8f8b6c0d58f63
parent271d3be1c3b6b0be083a99254a0ecac41789929b
of: net: support NVMEM cells with MAC in text format

Some NVMEM devices have text based cells. In such cases MAC is stored in
a XX:XX:XX:XX:XX:XX format. Use mac_pton() to parse such data and
support those NVMEM cells. This is required to support e.g. a very
popular U-Boot and its environment variables.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/of_net.c