mlxsw: pci: Set mbox dma addresses to zero when not used
authorShalom Toledo <shalomt@mellanox.com>
Mon, 19 Mar 2018 07:51:00 +0000 (09:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Mar 2018 16:11:02 +0000 (12:11 -0400)
commit830a8b1b001d3c2b4dfaa97d0eea5b9d6b03ae62
treecaff31184811bae3093c559c396574eccd2614c6
parentc846d8da5640a6c61d57e2c14a1a6d74b9c643b0
mlxsw: pci: Set mbox dma addresses to zero when not used

Some of the opcodes don't use in, out or both mboxes. In such cases, the
mbox address is a reserved field and FW expects it to be zero.

Signed-off-by: Shalom Toledo <shalomt@mellanox.com>
Signed-off-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/pci.c