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

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

tg3: Unlock 5717 B0+ support



This patch adjusts the driver to use the tg3_start_xmit_dma_bug()
transmit routine for all revisions of 5717 asic rev devices and then
allows the driver to attach to B0 and later devices.

Reviewed-by: default avatarBenjamin Li <benli@broadcom.com>
Reviewed-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarMatt Carlson <mcarlson@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dc6d0744
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -13431,10 +13431,6 @@ static int __devinit tg3_get_invariants(struct tg3 *tp)
	if (err)
	if (err)
		return err;
		return err;


	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5717 &&
	    tp->pci_chip_rev_id != CHIPREV_ID_5717_A0)
		return -ENOTSUPP;

	/* Initialize data/descriptor byte/word swapping. */
	/* Initialize data/descriptor byte/word swapping. */
	val = tr32(GRC_MODE);
	val = tr32(GRC_MODE);
	val &= GRC_MODE_HOST_STACKUP;
	val &= GRC_MODE_HOST_STACKUP;
@@ -14463,7 +14459,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
	}
	}


	if ((tp->tg3_flags3 & TG3_FLG3_5755_PLUS) &&
	if ((tp->tg3_flags3 & TG3_FLG3_5755_PLUS) &&
	    tp->pci_chip_rev_id != CHIPREV_ID_5717_A0 &&
	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5717 &&
	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5719)
	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5719)
		dev->netdev_ops = &tg3_netdev_ops;
		dev->netdev_ops = &tg3_netdev_ops;
	else
	else