diff options
author | Steve Wise <swise@opengridcomputing.com> | 2014-04-15 14:22:34 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-15 15:50:02 -0400 |
commit | 6f1d7210376727d090e04b8635e6dda4d7eb7b0c (patch) | |
tree | a83c308251b16b09303571168f4b0c2ed72bca5b /drivers/net/ethernet | |
parent | 8564ae09e08340a26c5408637cc4b32dba9f1640 (diff) |
cxgb4: use the correct max size for firmware flash
The wrong max fw size was being used and causing false
"too big" errors running ethtool -f.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c index fb2fe65903c2..bba67681aeaa 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c @@ -682,7 +682,7 @@ enum { SF_RD_ID = 0x9f, /* read ID */ SF_ERASE_SECTOR = 0xd8, /* erase sector */ - FW_MAX_SIZE = 512 * 1024, + FW_MAX_SIZE = 16 * SF_SEC_SIZE, }; /** |