2.6.x net driver updates
PATCH 1/1 2.6.x net driver updates
Continuing the merge... e100, defxx, set-config no-op removal, acenic
Please do a
bk pull bk://gkernel.bkbits.net/net-drivers-2.6
This will update the following files:
drivers/media/dvb/dvb-core/dvb_net.c | 9 - drivers/net/acenic.c | 171 +++++++++++++++-------------------- drivers/net/acenic.h | 23 +--- drivers/net/acenic_firmware.h | 2 drivers/net/defxx.c | 144 ++++++++++++++--------------- drivers/net/defxx.h | 2 drivers/net/e100.c | 51 ++++++---- drivers/net/ibmlana.c | 9 - drivers/net/meth.c | 26 ----- drivers/net/sk_mca.c | 9 - drivers/net/wan/lmc/lmc_main.c | 9 - drivers/net/wireless/netwave_cs.c | 12 -- 12 files changed, 185 insertions(+), 282 deletions(-)
through these ChangeSets:
Anton Blanchard:
o fix acenic hotplug
Ganesh Venkatesan:
o e100: Driver version number update
o e100: Fix set ringparam for ethtool returning error code on bad input
o e100: Fix loss of connectivity to BMC when interface is brought down.
o e100 driver version number update
o e100 - use NET_IP_ALIGN to set rx data buffer alignment
o e100 - Use pci_device_name for syslog messages till registering netdevice
Jeff Garzik:
o [netdev] Remove no-op in-driver implementations of ->set_config()
Jesse Brandeburg:
o e100: whitespace and DPRINTKS
o e100: fix NAPI race with watchdog
Maciej W. Rozycki:
o defxx device name fixes
o defxx trivial updates
Stephen Hemminger:
o (4/4) acenic - don't spin forever in hard_start_xmit
o (3/4) acenic - __iomem warnings cleanup
o (2/4) acenic - eliminate MAX_SKB_FRAGS #if
o (1/4) acenic - use netdev_priv
drivers/media/dvb/dvb-core/dvb_net.c +0 -9
@@ -917,14 +917,6 @@ } -static int dvb_net_set_config (struct net_device *dev,struct ifmap *map) -{ -if (netif_running (dev)) -return -EBUSY ; -return 0 ; -} - -static void wq_restart_net_feed (void *data) {struct net_device *dev = data;
@@ -983,7 +975,6 @@ dev->hard_start_xmit = dvb_net_tx; dev->get_stats = dvb_net_get_stats; dev->set_multicast_list = dvb_net_set_multicast_list; - dev->set_config = dvb_net_set_config; dev->set_mac_address = dvb_net_set_mac; dev->mtu =4096 ; dev->mc_count =0 ;
drivers/net/acenic.c +75 -96
453 lines not on this page · raw message
drivers/net/acenic.h +6 -17
@@ -10,11 +10,6 @@*/ #define USE_TX_COAL_NOW 0 -#ifndef MAX_SKB_FRAGS -#define MAX_SKB_FRAGS 0 -#endif - -/* * Addressing: *
@@ -638,7 +633,7 @@struct ace_private {struct ace_info *info; -struct ace_regs *regs;/* register base */ +struct ace_regs __iomem *regs;/* register base */ struct ace_skb *skb;dma_addr_t info_dma;/* 32/64 bit */
@@ -712,13 +707,7 @@ }#define tx_free (ap) tx_space((ap)->tx_ret_csm, (ap)->tx_prd, ap) - -#if MAX_SKB_FRAGS #define tx_ring_full (ap, csm, prd) (tx_space(ap, csm, prd) <= TX_RESERVED) -#else -#define tx_ring_full 0 -#endif -static inline void set_aceaddr (aceaddr *aa,dma_addr_t addr) {
@@ -729,7 +718,7 @@ } -static inline void ace_set_txprd (struct ace_regs *regs, +static inline void ace_set_txprd (struct ace_regs __iomem *regs,struct ace_private *ap,u32 value) {#ifdef INDEX_DEBUG
@@ -750,8 +739,8 @@static inline void ace_mask_irq (struct net_device *dev) { -struct ace_private *ap = dev->priv; -struct ace_regs *regs = ap->regs; +struct ace_private *ap =netdev_priv (dev); +struct ace_regs __iomem *regs = ap->regs;if (ACE_IS_TIGON_I (ap))writel (1 , ®s->MaskInt);
@@ -764,8 +753,8 @@static inline void ace_unmask_irq (struct net_device *dev) { -struct ace_private *ap = dev->priv; -struct ace_regs *regs = ap->regs; +struct ace_private *ap =netdev_priv (dev); +struct ace_regs __iomem *regs = ap->regs;if (ACE_IS_TIGON_I (ap))writel (0 , ®s->MaskInt);
drivers/net/acenic_firmware.h +1 -1
@@ -23,7 +23,7 @@#define tigonFwRodata NULL#else /* Generated by genfw.c */ -static u32 tigonFwText[(MAX_TEXT_LEN /4 ) +1 ]__initdata = { +static u32 tigonFwText[(MAX_TEXT_LEN /4 ) +1 ]__devinitdata = {0x10000003 ,0x0 ,0xd ,0xd ,0x3c1d0001 , 0x8fbd5c54, 0x3a0f021, 0x3c100000, 0x26104000,
drivers/net/defxx.c +72 -72
270 lines not on this page · raw message
drivers/net/defxx.h +1 -1
@@ -16,7 +16,7 @@* LVS Lawrence V. Stefani <[email protected]> * * Maintainers: -* macro Maciej W. Rozycki <[email protected]> +* macro Maciej W. Rozycki <[email protected]> * * Modification History: * Date Name Description
drivers/net/e100.c +30 -21
140 lines not on this page · raw message
drivers/net/ibmlana.c +0 -9
@@ -885,14 +885,6 @@return &priv->stat; } -/* we don't support runtime reconfiguration, since am MCA card can -be unambigously identified by its POS registers. */ - -static int ibmlana_config (struct net_device *dev,struct ifmap *map) -{ -return 0 ; -} -/* switch receiver mode. */ static void ibmlana_set_multicast_list (struct net_device *dev)
@@ -984,7 +976,6 @@ dev->open = ibmlana_open; dev->stop = ibmlana_close; - dev->set_config = ibmlana_config; dev->hard_start_xmit = ibmlana_tx; dev->do_ioctl =NULL ; dev->get_stats = ibmlana_stats;
drivers/net/meth.c +0 -26
@@ -368,31 +368,6 @@ }/* -* Configuration changes (passed on by ifconfig) -*/ -static int meth_config (struct net_device *dev,struct ifmap *map) -{ -if (dev->flags &IFF_UP )/* can't act on a running interface */ -return -EBUSY ; - -/* Don't allow changing the I/O address */ -if (map->base_addr != dev->base_addr) { -printk (KERN_WARNING "meth: Can't change I/O address\n" ); -return -EOPNOTSUPP ; - } - -/* Don't allow changing the IRQ */ -if (map->irq != dev->irq) { -printk (KERN_WARNING "meth: Can't change IRQ\n" ); -return -EOPNOTSUPP ; - } -DPRINTK ("Configured\n" ); - -/* ignore other fields */ -return 0 ; -} - -/* * Receive a packet: retrieve, encapsulate and pass over to upper levels */ static void meth_rx (struct net_device * dev,unsigned long int_status)
@@ -813,7 +788,6 @@ dev->open = meth_open; dev->stop = meth_release; - dev->set_config = meth_config; dev->hard_start_xmit = meth_tx; dev->do_ioctl = meth_ioctl; dev->get_stats = meth_stats;
drivers/net/sk_mca.c +0 -9
@@ -972,14 +972,6 @@return &(priv->stat); } -/* we don't support runtime reconfiguration, since an MCA card can -be unambigously identified by its POS registers. */ - -static int skmca_config (struct net_device *dev,struct ifmap *map) -{ -return 0 ; -} -/* switch receiver mode. We use the LANCE's multicast filter to prefilter multicast addresses. */
@@ -1147,7 +1139,6 @@/* set methods */ dev->open = skmca_open; dev->stop = skmca_close; - dev->set_config = skmca_config; dev->hard_start_xmit = skmca_tx; dev->do_ioctl =NULL ; dev->get_stats = skmca_stats;
drivers/net/wan/lmc/lmc_main.c +0 -9
@@ -101,7 +101,6 @@static int lmc_close (struct net_device *dev);static struct net_device_stats *lmc_get_stats (struct net_device *dev);static irqreturn_t lmc_interrupt (int irq,void *dev_instance,struct pt_regs *regs); -static int lmc_set_config (struct net_device *dev,struct ifmap *map);static void lmc_initcsrs (lmc_softc_t *const sc,lmc_csrptr_t csr_base,size_t csr_size);static void lmc_softreset (lmc_softc_t *const );static void lmc_running_reset (struct net_device *dev);
@@ -814,7 +813,6 @@ dev->stop = lmc_close; dev->get_stats = lmc_get_stats; dev->do_ioctl = lmc_ioctl; - dev->set_config = lmc_set_config; dev->tx_timeout = lmc_driver_timeout; dev->watchdog_timeo = (HZ );/* 1 second */
@@ -1973,13 +1971,6 @@LMC_CSR_WRITE (sc, csr_txlist,virt_to_bus (sc->lmc_txring));lmc_trace (sc->lmc_device,"lmc_softreset out" ); -} - -static int lmc_set_config (struct net_device *dev,struct ifmap *map)/*fold00*/ -{ -lmc_trace (dev,"lmc_set_config in" ); -lmc_trace (dev,"lmc_set_config out" ); -return -EOPNOTSUPP ; }void lmc_gpio_mkinput (lmc_softc_t *const sc,u_int32_t bits)/*fold00*/
drivers/net/wireless/netwave_cs.c +0 -12
@@ -219,7 +219,6 @@/* Misc device stuff */ static int netwave_open (struct net_device *dev);/* Open the device */ static int netwave_close (struct net_device *dev);/* Close the device */ -static int netwave_config (struct net_device *dev,struct ifmap *map);/* Packet transmission and Packet reception */ static int netwave_start_xmit (struct sk_buff *skb,struct net_device *dev);
@@ -482,7 +481,6 @@/* Netwave specific entries in the device structure */ SET_MODULE_OWNER (dev); dev->hard_start_xmit = &netwave_start_xmit; - dev->set_config = &netwave_config; dev->get_stats = &netwave_get_stats; dev->set_multicast_list = &set_multicast_list;/* wireless extensions */
@@ -1286,16 +1284,6 @@/* Set the IENA bit in COR */ wait_WOC (iobase);outb (corConfIENA + corConfLVLREQ, iobase +NETWAVE_REG_COR ); -} - -/* -* Function netwave_config (dev, map) -* -* Configure device, this work is done by netwave_pcmcia_config when a -* card is inserted -*/ -static int netwave_config (struct net_device *dev,struct ifmap *map) { -return 0 ; }/*