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

Commit b474eca7 authored by Matt Carlson's avatar Matt Carlson Committed by David S. Miller
Browse files

tg3: Add more partno entries for fallback path



This patch adds 57765 asic partno entries for the path executed if VPD
is not present in NVRAM.

Signed-off-by: default avatarMatt Carlson <mcarlson@broadcom.com>
Reviewed-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2712168f
Loading
Loading
Loading
Loading
+17 −1
Original line number Diff line number Diff line
@@ -12659,8 +12659,24 @@ static void __devinit tg3_read_partno(struct tg3 *tp)
	else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57780 &&
		 tp->pdev->device == TG3PCI_DEVICE_TIGON3_57788)
		strcpy(tp->board_part_number, "BCM57788");
	else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765)
	else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765 &&
		 tp->pdev->device == TG3PCI_DEVICE_TIGON3_57761)
		strcpy(tp->board_part_number, "BCM57761");
	else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765 &&
		 tp->pdev->device == TG3PCI_DEVICE_TIGON3_57765)
		strcpy(tp->board_part_number, "BCM57765");
	else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765 &&
		 tp->pdev->device == TG3PCI_DEVICE_TIGON3_57781)
		strcpy(tp->board_part_number, "BCM57781");
	else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765 &&
		 tp->pdev->device == TG3PCI_DEVICE_TIGON3_57785)
		strcpy(tp->board_part_number, "BCM57785");
	else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765 &&
		 tp->pdev->device == TG3PCI_DEVICE_TIGON3_57791)
		strcpy(tp->board_part_number, "BCM57791");
	else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765 &&
		 tp->pdev->device == TG3PCI_DEVICE_TIGON3_57795)
		strcpy(tp->board_part_number, "BCM57795");
	else
		strcpy(tp->board_part_number, "none");
}