cxgb4: Allow firmware flash, only if cxgb4 is the master driver
authorHariprasad Shenai <hariprasad@chelsio.com>
Wed, 22 Jul 2015 17:24:50 +0000 (22:54 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Jul 2015 23:37:41 +0000 (16:37 -0700)
commit402b764533e9d973952573df7ff96c41189e1a14
treef636e7e4421b70da55990ceb594ac1408c9215b2
parent6b6948dda798637aea237df0d0c8bcba8fa653bc
cxgb4: Allow firmware flash, only if cxgb4 is the master driver

Adapter can go for a toss, if cxgb4 is loaded as slave and we try to
upgrade the firmware. So add a check for the same before flashing
firmware using ethtool.

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c