Skip to content

Commit 6f1d721

Browse files
Steve Wisedavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8564ae0 commit 6f1d721

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/chelsio/cxgb4

1 file changed

+1
-1
lines changed

drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ enum {
682682
SF_RD_ID = 0x9f, /* read ID */
683683
SF_ERASE_SECTOR = 0xd8, /* erase sector */
684684

685-
FW_MAX_SIZE = 512 * 1024,
685+
FW_MAX_SIZE = 16 * SF_SEC_SIZE,
686686
};
687687

688688
/**

0 commit comments

Comments
 (0)