lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1557476567-17397-1-git-send-email-fugang.duan@nxp.com>
Date:   Fri, 10 May 2019 08:23:58 +0000
From:   Andy Duan <fugang.duan@....com>
To:     "davem@...emloft.net" <davem@...emloft.net>
CC:     "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "ynezz@...e.cz" <ynezz@...e.cz>,
        "john@...ozen.org" <john@...ozen.org>,
        "bgolaszewski@...libre.com" <bgolaszewski@...libre.com>,
        Andy Duan <fugang.duan@....com>
Subject: [PATCH net 0/3] add property "nvmem_macaddr_swap" to swap macaddr
 bytes order

ethernet controller driver call .of_get_mac_address() to get
the mac address from devictree tree, if these properties are
not present, then try to read from nvmem. i.MX6x/7D/8MQ/8MM
platforms ethernet MAC address read from nvmem ocotp eFuses,
but it requires to swap the six bytes order.

The patch set is to add property "nvmem_macaddr_swap" to swap
macaddr bytes order. If MAC address read from nvmem cell and
it is valid mac address, .of_get_mac_addr_nvmem() add new property
"nvmem-mac-address" in ethernet node. Later user call
.of_get_mac_address() to get MAC address again, it can read
valid MAC address from device tree in directly.

Update these two properties for binding documentation.


Fugang Duan (3):
  net: ethernet: add property "nvmem_macaddr_swap" to swap macaddr bytes
    order
  of_net: add property "nvmem-mac-address" for of_get_mac_addr()
  dt-bindings: doc: add new properties for of_get_mac_address from nvmem

 Documentation/devicetree/bindings/net/ethernet.txt |  3 +++
 drivers/of/of_net.c                                |  4 ++++
 net/ethernet/eth.c                                 | 25 +++++++++++++++++-----
 3 files changed, 27 insertions(+), 5 deletions(-)

-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ