]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Fix setting of Management bitfields
authorTomer Tayar <Tomer.Tayar@cavium.com>
Sun, 21 May 2017 09:10:59 +0000 (12:10 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 May 2017 16:56:53 +0000 (12:56 -0400)
commitb05ab1d9c9aa8306629a62d50f22e71ed006c799
tree761e8ee057f5812f6f8cedf19e887cddc8f7df6b
parent282d9d6061398641567ac183d1d852d8c44a921d
qed: Fix setting of Management bitfields

The management firmware HSI contains masks which are already
shifted to their right place, so QED_MFW_SET_FIELD() is clearing
incorrect fields by shifting the mask by the offset.

Luckily, today we set the fields in an incrementing order [so we're
not erasing any previously set fields], but this still needs fixing.

Signed-off-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed.h