Skip to contentSkip to conversation

netxen: Avoid firmware load in PCI probe

PATCH Arnaldo Carvalho de Melo 3 participants 4 messages Aug 30, 2007 – Aug 31, 2007 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

Arnaldo Carvalho de Melo

author Acked-by
#2 lore raw
In reply to a message not in the archive

Em Tue, Aug 28, 2007 at 05:23:25PM +0530, [email protected] escreveu:

Quoted 6 lines

Loading firmware during PCI probe can lead to incorrect initialization, rendering the card unusable until next reboot. This was introduced a while ago as a workaround for firmware bug, a better workaround was submitted for this a while ago. So removing original hack that loads firmware during probe.

Signed-off by: Dhananjay Phadke <[email protected]>

I was having these problems and after applying this patch the NIC is back working, thank you for fixing this!

- Arnaldo

Quoted 14 lines

Index: netdev-2.6/drivers/net/netxen/netxen_nic_main.c
===================================================================

drivers/net/netxen/netxen_nic_main.c +0 -4
@@ -639,10 +639,6 @@ netxen_nic_probe(struct pci_dev *pdev, c
 			NETXEN_CRB_NORMALIZE(adapter,
 				NETXEN_ROMUSB_GLB_PEGTUNE_DONE));
 		/* Handshake with the card before we register the devices. */
-		writel(0, NETXEN_CRB_NORMALIZE(adapter, CRB_CMDPEG_STATE));
-		netxen_pinit_from_rom(adapter, 0);
-		msleep(1);
-		netxen_load_firmware(adapter);
 		netxen_phantom_init(adapter, NETXEN_NIC_PEG_TUNE);
 	}
#6 lore raw

Re: [PATCH 3/3] netxen: ethtool fixes

In reply to Jeff Garzik

oops, ok regenerating patch 3 only.

Quoted 12 lines · Jeff Garzik

Review

Quoted 6 lines · [email protected] wrote:
(quoted diff) +6 -0
+static int netxen_nic_set_rx_csum(struct net_device *dev, u32 data)
+{
+	struct netxen_adapter *adapter = netdev_priv(dev);
+	adapter->rx_csum = 0;
+	return 0;
+}

Bug: 'data' ignored