Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5d0b72e authored by Michael Chan's avatar Michael Chan Committed by David S. Miller
Browse files

tg3: Fix 5762 NVRAM sizing



Don't set the default size to 128K if it is 5762.  Instead, rely on the
size we obtain from NVRAM location 0xf0.

Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d240d210
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -13883,6 +13883,7 @@ static void tg3_get_5720_nvram_info(struct tg3 *tp)
			tp->nvram_size = TG3_NVRAM_SIZE_1MB;
			break;
		default:
			if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5762)
				tp->nvram_size = TG3_NVRAM_SIZE_128KB;
			break;
		}
@@ -13929,6 +13930,7 @@ static void tg3_get_5720_nvram_info(struct tg3 *tp)
			tp->nvram_size = TG3_NVRAM_SIZE_1MB;
			break;
		default:
			if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5762)
				tp->nvram_size = TG3_NVRAM_SIZE_128KB;
			break;
		}