Re: [PATCH 3/4] atl1: Main C file for Attansic L1 driver

2007-01-22 Thread Jay Cliburn
Arjan, thank you very much for reviewing the driver. Arjan van de Ven wrote: On Sun, 2007-01-21 at 15:06 -0600, Jay Cliburn wrote: [snip] +void atl1_irq_disable(struct atl1_adapter *adapter) +{ + atomic_inc(>irq_sem); + iowrite32(0, adapter->hw.hw_addr + REG_IMR); +

Re: [PATCH 3/4] atl1: Main C file for Attansic L1 driver

2007-01-22 Thread Arjan van de Ven
On Sun, 2007-01-21 at 15:06 -0600, Jay Cliburn wrote: > + > + /* PCI config space info */ > + pci_read_config_byte(pdev, PCI_REVISION_ID, >revision_id); > + pci_read_config_word(pdev, PCI_COMMAND, >pci_cmd_word); I'm highly suspicious of drivers that use the PCI_COMMAND word...

Re: [PATCH 3/4] atl1: Main C file for Attansic L1 driver

2007-01-22 Thread Arjan van de Ven
On Sun, 2007-01-21 at 15:06 -0600, Jay Cliburn wrote: + + /* PCI config space info */ + pci_read_config_byte(pdev, PCI_REVISION_ID, hw-revision_id); + pci_read_config_word(pdev, PCI_COMMAND, hw-pci_cmd_word); I'm highly suspicious of drivers that use the PCI_COMMAND word...

Re: [PATCH 3/4] atl1: Main C file for Attansic L1 driver

2007-01-22 Thread Jay Cliburn
Arjan, thank you very much for reviewing the driver. Arjan van de Ven wrote: On Sun, 2007-01-21 at 15:06 -0600, Jay Cliburn wrote: [snip] +void atl1_irq_disable(struct atl1_adapter *adapter) +{ + atomic_inc(adapter-irq_sem); + iowrite32(0, adapter-hw.hw_addr + REG_IMR); +

Re: [PATCH 3/4] atl1: Main C file for Attansic L1 driver

2007-01-11 Thread Christoph Hellwig
> +#include Why do you need this one? > +#include Shouldn't be needed aswell. > +#include , please. > + spin_lock_init(>stats_lock); > + spin_lock_init(>tx_lock); > + spin_lock_init(>mb_lock); > + spin_lock_init(>vl_lock); > + spin_lock_init(>mii_lock); Do you really

Re: [PATCH 3/4] atl1: Main C file for Attansic L1 driver

2007-01-11 Thread Christoph Hellwig
+#include asm/page.h Why do you need this one? +#include asm/system.h Shouldn't be needed aswell. +#include asm/checksum.h net/checksum.h, please. + spin_lock_init(adapter-stats_lock); + spin_lock_init(adapter-tx_lock); + spin_lock_init(adapter-mb_lock); +

Re: [PATCH 3/4] atl1: Main C file for Attansic L1 driver

2006-11-19 Thread Arnd Bergmann
On Sunday 19 November 2006 21:30, Jay Cliburn wrote: > This patch contains the main C file for the Attansic L1 gigabit ethernet > adapter driver. Just a few style comments: > + /* PCI config space info */ > + hw->vendor_id = pdev->vendor; > + hw->device_id = pdev->device; > +

Re: [PATCH 3/4] atl1: Main C file for Attansic L1 driver

2006-11-19 Thread Jan Engelhardt
>+char at_driver_name[] = "atl1"; >+static const char at_driver_string[] = "Attansic(R) L1 Ethernet Network >Driver"; >+const char at_driver_version[] = DRV_VERSION; >+static const char at_copyright[] = >+"Copyright(c) 2005-2006 Attansic Corporation."; >+ >+extern s32 at_read_mac_addr(struct

Re: [PATCH 3/4] atl1: Main C file for Attansic L1 driver

2006-11-19 Thread Jan Engelhardt
+char at_driver_name[] = atl1; +static const char at_driver_string[] = Attansic(R) L1 Ethernet Network Driver; +const char at_driver_version[] = DRV_VERSION; +static const char at_copyright[] = +Copyright(c) 2005-2006 Attansic Corporation.; + +extern s32 at_read_mac_addr(struct at_hw *hw);

Re: [PATCH 3/4] atl1: Main C file for Attansic L1 driver

2006-11-19 Thread Arnd Bergmann
On Sunday 19 November 2006 21:30, Jay Cliburn wrote: This patch contains the main C file for the Attansic L1 gigabit ethernet adapter driver. Just a few style comments: + /* PCI config space info */ + hw-vendor_id = pdev-vendor; + hw-device_id = pdev-device; +