]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit60a1cfb26e2db891f1c2b2393da604320d11be56
treef636e7e4421b70da55990ceb594ac1408c9215b2
parentd66fc4739de4ae55837ebf446a8af88c0c0b599b
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