bnxt_en: refactor ethtool firmware reset types
authorEdwin Peer <edwin.peer@broadcom.com>
Mon, 4 May 2020 08:50:32 +0000 (04:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2020 17:44:10 +0000 (10:44 -0700)
commit94f17e89c956553606d5c7cf4f40ce6012529d48
tree7e0cda935c0b8d225304cf387d0faa7127f2a812
parent95fec034fd440b4882701df3e84d2b76af4e627d
bnxt_en: refactor ethtool firmware reset types

The case statement in bnxt_firmware_reset() dangerously mixes types.
This patch separates the application processor and whole chip resets
from the rest such that the selection is performed on a pure type.

Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c