platform/mellanox: mlxreg-io: Add support for complex attributes
authorVadim Pasternak <vadimp@mellanox.com>
Tue, 14 Jul 2020 12:02:00 +0000 (15:02 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Jul 2020 09:45:07 +0000 (12:45 +0300)
commit86148190a7db14e1e9ad638eb1ccc13cd3693e91
treefe07bbd97aaf4de6e7e950ba40bc97a9e9c0cf9b
parentae1aabf44bd672a07c4fa3ef56f069ed7daa7823
platform/mellanox: mlxreg-io: Add support for complex attributes

Add support for attributes composed from few registers.
Such attributes could occupy from 2 to 4 sequential registers.
For word size register space complex attributes can occupy up to two
registers, for byte size - up to four. These attributes can carry, for
example, CPLD or FPGA versioning, power consuming info, etcetera.
Such registers contain read-only data.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/mellanox/mlxreg-io.c