mlxsw: i2c: Extend initialization by querying resources data
authorVadim Pasternak <vadimp@mellanox.com>
Sun, 3 Mar 2019 09:12:16 +0000 (09:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 06:23:00 +0000 (22:23 -0800)
commit6a986993e43f176e07c28df560b1cfc3e9b80505
tree8ac7d56d3ddd8c5aebc71ac8f1dc46257ed690d0
parent95b75cbd1bc57ec5898517a3fb2f7621f16b26cd
mlxsw: i2c: Extend initialization by querying resources data

Extend initialization flow by query requests for chip resources data in
order to obtain chip's specific capabilities, like the number of ports.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/i2c.c
drivers/net/ethernet/mellanox/mlxsw/minimal.c