diff mbox

[RESPIN] cxgb4: use the correct max size for firmware flash

Message ID 20140415192234.18775.13702.stgit@build.ogc.int
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Steve Wise April 15, 2014, 7:22 p.m. UTC
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>
---

 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

David Miller April 15, 2014, 7:50 p.m. UTC | #1
From: Steve Wise <swise@opengridcomputing.com>
Date: Tue, 15 Apr 2014 14:22:34 -0500

> 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>

Applied, thanks a lot Steve.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
index fb2fe65..bba6768 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,
 };
 
 /**