]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita1c31ae9d1cf88afaaf45b3950fecdcbbc5e8a95
tree86d3dd383f24874ffec5736536e8f8b6c0d58f63
parent5bc6198dd20de7bef9e3ab5583537f5b57b6211b
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