mlxbf-bootctl: Support sysfs entries for MFG fields
authorDavid Thompson <davthompson@nvidia.com>
Mon, 21 Aug 2023 18:39:39 +0000 (14:39 -0400)
committerHans de Goede <hdegoede@redhat.com>
Wed, 23 Aug 2023 15:31:27 +0000 (17:31 +0200)
commit7e38a7422f128e7d7ba24b444e957d585dbb272f
treee94d3b1ec8e3124f31d9dcc13140ad9db3dfedd7
parent92c2fb8fa56c46d534feea2073e55ecc61fa5089
mlxbf-bootctl: Support sysfs entries for MFG fields

This patch extends the mlxbf-bootctl driver's sysfs entries
to support read and write access for the manufacturing (MFG)
fields in the board-level EEPROM.  The MFG fields are set
once during the board manufacturing phase, and then the MFG
fields are write-protected.

Signed-off-by: David Thompson <davthompson@nvidia.com>
Reviewed-by: Shravan Kumar Ramani <shravankr@nvidia.com>
Link: https://lore.kernel.org/r/20230821183939.3229-1-davthompson@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Documentation/ABI/testing/sysfs-platform-mellanox-bootctl
drivers/platform/mellanox/mlxbf-bootctl.c
drivers/platform/mellanox/mlxbf-bootctl.h