net driver updates
Subsystems (3)
PATCH 1/1 net driver updates
[note #0: this is the same additional-push text I give to Linus]
Note: The changes below are in the same linear history as the previous push (on Sept 29) -- appended onto that history. As such, if you have already pulled that, you will only get the changes below.
If you have NOT pulled the Sept 29 changes, you will get both sets of changes.
Please pull from the 'upstream' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git upstream
to receive the following changes:
Hans-Jürgen Koch (1):
Fix a compile problem in macb.c
Jan-Bernd Themann (1):
ehea: DLPAR memory add fix
Komuro (1):
PCMCIA-NETDEV : add new id (axnet_cs, pcnet_cs)
Markus Brunner (1):
smc911x irq sense request and MPR2 board support
Nobuhiro Iwamatsu (1):
smc91x Hitachi Solution Engine (SuperH) Support
Scott Wood (9):
fs_enet: Whitespace cleanup.
fs_enet: Fix build breakage.
fs_enet: Include linux/string.h from linux/fs_enet_pd.h
fs_enet: mac-fcc: Eliminate __fcc-* macros.
fs_enet: Align receive buffers.
fs_enet: Be an of_platform device when CONFIG_PPC_CPM_NEW_BINDING is set. Generic bitbanged MDIO library
fs_enet: Convert mii-bitbang to use the generic bitbang MDIO code.
fs_enet: sparse fixes
drivers/net/Kconfig | 2 drivers/net/ehea/ehea.h | 4 drivers/net/ehea/ehea_main.c | 276 ++++++++++++++++++++-- drivers/net/ehea/ehea_phyp.h | 1 drivers/net/ehea/ehea_qmr.c | 20 - drivers/net/ehea/ehea_qmr.h | 4 drivers/net/fs_enet/Kconfig | 1 drivers/net/fs_enet/fs_enet-main.c | 386 +++++++++++++++++++++++++------ drivers/net/fs_enet/fs_enet.h | 90 +------ drivers/net/fs_enet/mac-fcc.c | 180 +++++++++----- drivers/net/fs_enet/mac-fec.c | 53 ++-- drivers/net/fs_enet/mac-scc.c | 90 ++++--- drivers/net/fs_enet/mii-bitbang.c | 448 +++++++++++++++++-------------------- drivers/net/fs_enet/mii-fec.c | 152 ++++++++++++ drivers/net/macb.c | 4 drivers/net/pcmcia/axnet_cs.c | 1 drivers/net/pcmcia/pcnet_cs.c | 1 drivers/net/phy/Kconfig | 9 drivers/net/phy/Makefile | 1 drivers/net/phy/mdio-bitbang.c | 187 +++++++++++++++ drivers/net/smc911x.c | 2 drivers/net/smc911x.h | 6 drivers/net/smc91x.h | 1 include/linux/fs_enet_pd.h | 6 include/linux/mdio-bitbang.h | 42 +++ 25 files changed, 1404 insertions(+), 563 deletions(-)
drivers/net/Kconfig +1 -1
@@ -944,7 +944,7 @@ config SMC911X tristate "SMSC LAN911[5678] support" select CRC32 select MII - depends on ARCH_PXA + depends on ARCH_PXA || SUPERH help This is a driver for SMSC's LAN911x series of Ethernet chipsets including the new LAN9115, LAN9116, LAN9117, and LAN9118.
drivers/net/ehea/ehea.h +2 -2
@@ -40,13 +40,13 @@#include <asm/io.h> #define DRV_NAME "ehea" -#define DRV_VERSION "EHEA_0074" +#define DRV_VERSION "EHEA_0077"/* eHEA capability flags */ #define DLPAR_PORT_ADD_REM 1#define DLPAR_MEM_ADD 2#define DLPAR_MEM_REM 4 -#define EHEA_CAPABILITIES (DLPAR_PORT_ADD_REM) +#define EHEA_CAPABILITIES (DLPAR_PORT_ADD_REM | DLPAR_MEM_ADD)#define EHEA_MSG_DEFAULT (NETIF_MSG_LINK | NETIF_MSG_TIMER \ | NETIF_MSG_RX_ERR | NETIF_MSG_TX_ERR)
drivers/net/ehea/ehea_main.c +246 -30
417 lines not on this page · raw message
drivers/net/ehea/ehea_phyp.h +1 -0
@@ -126,6 +126,7 @@ struct hcp_modify_qp_cb0 {#define H_QP_CR_STATE_RDY2RCV 0x0000030000000000ULL/* Ready to recv */ #define H_QP_CR_STATE_RDY2SND 0x0000050000000000ULL/* Ready to send */ #define H_QP_CR_STATE_ERROR 0x0000800000000000ULL/* Error */ +#define H_QP_CR_RES_STATE 0x0000007F00000000ULL/* Resultant state */ struct hcp_modify_qp_cb1 {u32 qpn;/* 00 */
drivers/net/ehea/ehea_qmr.c +8 -12
@@ -563,8 +563,7 @@ int ehea_destroy_qp(struct ehea_qp *qp)int ehea_create_busmap (void ) {u64 vaddr =EHEA_BUSMAP_START ; -unsigned long abs_max_pfn =0 ; -unsigned long sec_max_pfn; +unsigned long high_section_index =0 ;int i;/*
@@ -574,14 +573,10 @@ int ehea_create_busmap( void ) ehea_bmap.valid_sections =0 ;for (i =0 ; i <NR_MEM_SECTIONS ; i++) -if (valid_section_nr (i)) { - sec_max_pfn =section_nr_to_pfn (i); -if (sec_max_pfn > abs_max_pfn) - abs_max_pfn = sec_max_pfn; - ehea_bmap.valid_sections++; - } +if (valid_section_nr (i)) + high_section_index = i; - ehea_bmap.entries = abs_max_pfn /EHEA_PAGES_PER_SECTION +1 ; + ehea_bmap.entries = high_section_index +1 ; ehea_bmap.vaddr =vmalloc (ehea_bmap.entries *sizeof (*ehea_bmap.vaddr));if (!ehea_bmap.vaddr)
@@ -593,6 +588,7 @@ int ehea_create_busmap( void )if (pfn_valid (pfn)) { ehea_bmap.vaddr[i] = vaddr; vaddr +=EHEA_SECTSIZE ; + ehea_bmap.valid_sections++; }else ehea_bmap.vaddr[i] =0 ; }
@@ -637,7 +633,7 @@ int ehea_reg_kernel_mr(struct ehea_adapter *adapter, struct ehea_mr *mr) mr_len = ehea_bmap.valid_sections *EHEA_SECTSIZE ; - pt =kzalloc (EHEA_MAX_RPAGE *sizeof (u64),GFP_KERNEL ); + pt =kzalloc (PAGE_SIZE ,GFP_KERNEL );if (!pt) {ehea_error ("no mem" ); ret = -ENOMEM ;
@@ -660,8 +656,8 @@ int ehea_reg_kernel_mr(struct ehea_adapter *adapter, struct ehea_mr *mr)void *sectbase =__va (i <<SECTION_SIZE_BITS );unsigned long k =0 ; -for (j =0 ; j < (PAGES_PER_SECTION /EHEA_MAX_RPAGE ); - j++) { +for (j =0 ; j < (EHEA_PAGES_PER_SECTION / +EHEA_MAX_RPAGE ); j++) {for (m =0 ; m <EHEA_MAX_RPAGE ; m++) { pg = sectbase + ((k++) *EHEA_PAGESIZE );
drivers/net/ehea/ehea_qmr.h +2 -2
@@ -39,7 +39,7 @@#define EHEA_PAGESHIFT 12#define EHEA_PAGESIZE (1UL << EHEA_PAGESHIFT)#define EHEA_SECTSIZE (1UL << 24) -#define EHEA_PAGES_PER_SECTION (EHEA_SECTSIZE >> PAGE_SHIFT) +#define EHEA_PAGES_PER_SECTION (EHEA_SECTSIZE >> EHEA_PAGESHIFT)#if (1UL <<SECTION_SIZE_BITS ) <EHEA_SECTSIZE #error eHEA module can't work if kernel sectionsize < ehea sectionsize
@@ -145,7 +145,7 @@ struct ehea_rwqe {#define EHEA_CQE_VLAN_TAG_XTRACT 0x0400#define EHEA_CQE_TYPE_RQ 0x60 -#define EHEA_CQE_STAT_ERR_MASK 0x721F +#define EHEA_CQE_STAT_ERR_MASK 0x720F#define EHEA_CQE_STAT_FAT_ERR_MASK 0x1F#define EHEA_CQE_STAT_ERR_TCP 0x4000#define EHEA_CQE_STAT_ERR_IP 0x2000
drivers/net/fs_enet/Kconfig +1 -0
@@ -11,6 +11,7 @@ config FS_ENET_HAS_SCC config FS_ENET_HAS_FCC bool "Chip has an FCC usable for ethernet" depends on FS_ENET && CPM2 + select MDIO_BITBANG default y config FS_ENET_HAS_FEC
drivers/net/fs_enet/fs_enet-main.c +310 -76
552 lines not on this page · raw message
drivers/net/fs_enet/fs_enet.h +21 -69
155 lines not on this page · raw message
drivers/net/fs_enet/mac-fcc.c +109 -71
403 lines not on this page · raw message
drivers/net/fs_enet/mac-fec.c +35 -18
171 lines not on this page · raw message
drivers/net/fs_enet/mac-scc.c +56 -34
227 lines not on this page · raw message
drivers/net/fs_enet/mii-bitbang.c +209 -239
558 lines not on this page · raw message
drivers/net/fs_enet/mii-fec.c +146 -6
206 lines not on this page · raw message
drivers/net/macb.c +2 -2
@@ -492,7 +492,7 @@ static int macb_poll(struct napi_struct *napi, int budget) }dev_dbg (&bp->pdev->dev,"poll: status = %08lx, budget = %d\n" , - (unsigned long )status, *budget); + (unsigned long )status, budget);if (!(status &MACB_BIT (REC ))) { dev_warn(&bp->pdev->dev,
@@ -503,7 +503,7 @@ static int macb_poll(struct napi_struct *napi, int budget) } work_done =macb_rx (bp, budget); -if (work_done < orig_budget) +if (work_done < budget)netif_rx_complete (dev, napi);/*
drivers/net/pcmcia/axnet_cs.c +1 -0
@@ -772,6 +772,7 @@ static struct pcmcia_device_id axnet_ids[] = {PCMCIA_DEVICE_MANF_CARD (0x0274 ,0x1106 ),PCMCIA_DEVICE_MANF_CARD (0x8a01 ,0xc1ab ),PCMCIA_DEVICE_MANF_CARD (0x021b ,0x0202 ), +PCMCIA_DEVICE_MANF_CARD (0xffff ,0x1090 ),PCMCIA_DEVICE_PROD_ID12 ("AmbiCom,Inc." ,"Fast Ethernet PC Card(AMB8110)" ,0x49b020a7 ,0x119cc9fc ),PCMCIA_DEVICE_PROD_ID124 ("Fast Ethernet" ,"16-bit PC Card" ,"AX88190" ,0xb4be14e3 ,0x9a12eb6a ,0xab9be5ef ), PCMCIA_DEVICE_PROD_ID12("ASIX", "AX88190", 0x0959823b, 0xab9be5ef),
drivers/net/pcmcia/pcnet_cs.c +1 -0
@@ -1662,6 +1662,7 @@ static struct pcmcia_device_id pcnet_ids[] = {PCMCIA_DEVICE_PROD_ID12 ("Laneed" ,"LD-CDF" ,0x1b7827b2 ,0xfec71e40 ),PCMCIA_DEVICE_PROD_ID12 ("Laneed" ,"LD-CDL/T" ,0x1b7827b2 ,0x79fba4f7 ),PCMCIA_DEVICE_PROD_ID12 ("Laneed" ,"LD-CDS" ,0x1b7827b2 ,0x931afaab ), +PCMCIA_DEVICE_PROD_ID12 ("LEMEL" ,"LM-N89TX PRO" ,0xbbefb52f ,0xd2897a97 ),PCMCIA_DEVICE_PROD_ID12 ("Linksys" ,"Combo PCMCIA EthernetCard (EC2T)" ,0x0733cc81 ,0x32ee8c78 ),PCMCIA_DEVICE_PROD_ID12 ("LINKSYS" ,"E-CARD" ,0xf7cb0b07 ,0x6701da11 ), PCMCIA_DEVICE_PROD_ID12("Linksys", "EtherFast 10/100 Integrated PC Card (PCM100)", 0x0733cc81, 0x453c3f9d),
drivers/net/phy/Kconfig +9 -0
@@ -90,4 +90,13 @@ config FIXED_MII_AMNT This control will have specified number allocated for each fixed PHY type enabled. +config MDIO_BITBANG + tristate "Support for bitbanged MDIO buses" + help + This module implements the MDIO bus protocol in software, + for use by low level drivers that export the ability to + drive the relevant pins. + + If in doubt, say N. + endif # PHYLIB
drivers/net/phy/Makefile +1 -0
@@ -13,3 +13,4 @@ obj-$(CONFIG_VITESSE_PHY) += vitesse.o obj-$(CONFIG_BROADCOM_PHY) += broadcom.o obj-$(CONFIG_ICPLUS_PHY) += icplus.o obj-$(CONFIG_FIXED_PHY) += fixed.o +obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o
drivers/net/phy/mdio-bitbang.c new file +187 -0
160 lines not on this page · raw message
include/linux/mdio-bitbang.h new file +42 -0
42 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
David Miller
maintainerFrom: Jeff Garzik <[email protected]>
Date: Tue, 2 Oct 2007 13:41:50 -0400
Quoted 2 lines
Please pull from the 'upstream' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git upstream
Pulled and pushed back out to net-2.6.24, thanks Jeff!