Re: [PATCH][RFC] Add support for the RDC R6040 Fast Ethernet controller

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff Garzik
Date: Wednesday, October 31, 2007 - 1:57 am

Florian Fainelli wrote:

Looks nice and clean to me.  Pre-merge stuff I think needs fixing:

* clean up NAPI as you describe (and delete non-NAPI code paths, unless 
there is a strong reason to keep them).

* unconditional local_irq_{enable,disable} stuff

* spin_lock_irqsave() should not be needed in interrupt handler. 
[perhaps you did this rather than put the slower locking in 
->poll_controller()]

* remove changelog from C header (git repository log is our changelog)

* handle large dev->mc_count, as you note in the C header

* use __le32 and similar data types. validate with sparse 
(Documentation/sparse.txt)

* consider using ioread{8,16,32} and iowrite{8,16,32}, if your platform 
permits.  Then switch from 'unsigned long' to special marker 'void 
__iomem *' for all I/O port addresses

* use DMA_32BIT_MASK rather than 0xffffffff in pci_set_dma_mask() call

* in r6040_init_one() call is_valid_ether_addr(), rather than 
hand-rolling the same code yourself

* you need to note carrier state when it changes, using 
netif_carrier_on() and netif_carrier_off()

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH][RFC] Add support for the RDC R6040 Fast Ethern ..., Jeff Garzik, (Wed Oct 31, 1:57 am)
Re: [PATCH][RFC] Add support for the RDC R6040 Fast Ethern ..., Stephen Hemminger, (Wed Oct 31, 9:07 am)
[PATCH][RFC take 2] Add support for the RDC R6040 Fast Eth ..., Florian Fainelli, (Sat Nov 10, 11:22 am)
Re: [PATCH][RFC take 2] Add support for the RDC R6040 Fast ..., Stephen Hemminger, (Sat Nov 10, 12:33 pm)
Re: [PATCH][RFC take 2] Add support for the RDC R6040 Fast ..., Stephen Hemminger, (Tue Nov 13, 12:09 pm)