diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/isdn/hisax/avma1_cs.c | 12 | ||||
| -rw-r--r-- | drivers/isdn/hisax/elsa_cs.c | 12 | ||||
| -rw-r--r-- | drivers/isdn/hisax/sedlbauer_cs.c | 12 | ||||
| -rw-r--r-- | drivers/isdn/hisax/teles_cs.c | 12 | ||||
| -rw-r--r-- | drivers/net/bnx2.c | 14 | ||||
| -rw-r--r-- | drivers/net/can/bfin_can.c | 97 | ||||
| -rw-r--r-- | drivers/net/igb/igb.h | 1 | ||||
| -rw-r--r-- | drivers/net/igb/igb_main.c | 22 | ||||
| -rw-r--r-- | drivers/net/ksz884x.c | 2 | ||||
| -rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 4 | ||||
| -rw-r--r-- | drivers/net/via-velocity.c | 2 |
11 files changed, 51 insertions, 139 deletions
diff --git a/drivers/isdn/hisax/avma1_cs.c b/drivers/isdn/hisax/avma1_cs.c index e5deb15cf40c..8d1d63a02b34 100644 --- a/drivers/isdn/hisax/avma1_cs.c +++ b/drivers/isdn/hisax/avma1_cs.c | |||
| @@ -50,7 +50,7 @@ module_param(isdnprot, int, 0); | |||
| 50 | handler. | 50 | handler. |
| 51 | */ | 51 | */ |
| 52 | 52 | ||
| 53 | static int avma1cs_config(struct pcmcia_device *link); | 53 | static int avma1cs_config(struct pcmcia_device *link) __devinit ; |
| 54 | static void avma1cs_release(struct pcmcia_device *link); | 54 | static void avma1cs_release(struct pcmcia_device *link); |
| 55 | 55 | ||
| 56 | /* | 56 | /* |
| @@ -59,7 +59,7 @@ static void avma1cs_release(struct pcmcia_device *link); | |||
| 59 | needed to manage one actual PCMCIA card. | 59 | needed to manage one actual PCMCIA card. |
| 60 | */ | 60 | */ |
| 61 | 61 | ||
| 62 | static void avma1cs_detach(struct pcmcia_device *p_dev); | 62 | static void avma1cs_detach(struct pcmcia_device *p_dev) __devexit ; |
| 63 | 63 | ||
| 64 | 64 | ||
| 65 | /* | 65 | /* |
| @@ -99,7 +99,7 @@ typedef struct local_info_t { | |||
| 99 | 99 | ||
| 100 | ======================================================================*/ | 100 | ======================================================================*/ |
| 101 | 101 | ||
| 102 | static int avma1cs_probe(struct pcmcia_device *p_dev) | 102 | static int __devinit avma1cs_probe(struct pcmcia_device *p_dev) |
| 103 | { | 103 | { |
| 104 | local_info_t *local; | 104 | local_info_t *local; |
| 105 | 105 | ||
| @@ -140,7 +140,7 @@ static int avma1cs_probe(struct pcmcia_device *p_dev) | |||
| 140 | 140 | ||
| 141 | ======================================================================*/ | 141 | ======================================================================*/ |
| 142 | 142 | ||
| 143 | static void avma1cs_detach(struct pcmcia_device *link) | 143 | static void __devexit avma1cs_detach(struct pcmcia_device *link) |
| 144 | { | 144 | { |
| 145 | dev_dbg(&link->dev, "avma1cs_detach(0x%p)\n", link); | 145 | dev_dbg(&link->dev, "avma1cs_detach(0x%p)\n", link); |
| 146 | avma1cs_release(link); | 146 | avma1cs_release(link); |
| @@ -174,7 +174,7 @@ static int avma1cs_configcheck(struct pcmcia_device *p_dev, | |||
| 174 | } | 174 | } |
| 175 | 175 | ||
| 176 | 176 | ||
| 177 | static int avma1cs_config(struct pcmcia_device *link) | 177 | static int __devinit avma1cs_config(struct pcmcia_device *link) |
| 178 | { | 178 | { |
| 179 | local_info_t *dev; | 179 | local_info_t *dev; |
| 180 | int i; | 180 | int i; |
| @@ -282,7 +282,7 @@ static struct pcmcia_driver avma1cs_driver = { | |||
| 282 | .name = "avma1_cs", | 282 | .name = "avma1_cs", |
| 283 | }, | 283 | }, |
| 284 | .probe = avma1cs_probe, | 284 | .probe = avma1cs_probe, |
| 285 | .remove = avma1cs_detach, | 285 | .remove = __devexit_p(avma1cs_detach), |
| 286 | .id_table = avma1cs_ids, | 286 | .id_table = avma1cs_ids, |
| 287 | }; | 287 | }; |
| 288 | 288 | ||
diff --git a/drivers/isdn/hisax/elsa_cs.c b/drivers/isdn/hisax/elsa_cs.c index c9a30b1c9237..c9f2279e21f5 100644 --- a/drivers/isdn/hisax/elsa_cs.c +++ b/drivers/isdn/hisax/elsa_cs.c | |||
| @@ -76,7 +76,7 @@ module_param(protocol, int, 0); | |||
| 76 | handler. | 76 | handler. |
| 77 | */ | 77 | */ |
| 78 | 78 | ||
| 79 | static int elsa_cs_config(struct pcmcia_device *link); | 79 | static int elsa_cs_config(struct pcmcia_device *link) __devinit ; |
| 80 | static void elsa_cs_release(struct pcmcia_device *link); | 80 | static void elsa_cs_release(struct pcmcia_device *link); |
| 81 | 81 | ||
| 82 | /* | 82 | /* |
| @@ -85,7 +85,7 @@ static void elsa_cs_release(struct pcmcia_device *link); | |||
| 85 | needed to manage one actual PCMCIA card. | 85 | needed to manage one actual PCMCIA card. |
| 86 | */ | 86 | */ |
| 87 | 87 | ||
| 88 | static void elsa_cs_detach(struct pcmcia_device *p_dev); | 88 | static void elsa_cs_detach(struct pcmcia_device *p_dev) __devexit; |
| 89 | 89 | ||
| 90 | /* | 90 | /* |
| 91 | A driver needs to provide a dev_node_t structure for each device | 91 | A driver needs to provide a dev_node_t structure for each device |
| @@ -121,7 +121,7 @@ typedef struct local_info_t { | |||
| 121 | 121 | ||
| 122 | ======================================================================*/ | 122 | ======================================================================*/ |
| 123 | 123 | ||
| 124 | static int elsa_cs_probe(struct pcmcia_device *link) | 124 | static int __devinit elsa_cs_probe(struct pcmcia_device *link) |
| 125 | { | 125 | { |
| 126 | local_info_t *local; | 126 | local_info_t *local; |
| 127 | 127 | ||
| @@ -166,7 +166,7 @@ static int elsa_cs_probe(struct pcmcia_device *link) | |||
| 166 | 166 | ||
| 167 | ======================================================================*/ | 167 | ======================================================================*/ |
| 168 | 168 | ||
| 169 | static void elsa_cs_detach(struct pcmcia_device *link) | 169 | static void __devexit elsa_cs_detach(struct pcmcia_device *link) |
| 170 | { | 170 | { |
| 171 | local_info_t *info = link->priv; | 171 | local_info_t *info = link->priv; |
| 172 | 172 | ||
| @@ -210,7 +210,7 @@ static int elsa_cs_configcheck(struct pcmcia_device *p_dev, | |||
| 210 | return -ENODEV; | 210 | return -ENODEV; |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | static int elsa_cs_config(struct pcmcia_device *link) | 213 | static int __devinit elsa_cs_config(struct pcmcia_device *link) |
| 214 | { | 214 | { |
| 215 | local_info_t *dev; | 215 | local_info_t *dev; |
| 216 | int i; | 216 | int i; |
| @@ -327,7 +327,7 @@ static struct pcmcia_driver elsa_cs_driver = { | |||
| 327 | .name = "elsa_cs", | 327 | .name = "elsa_cs", |
| 328 | }, | 328 | }, |
| 329 | .probe = elsa_cs_probe, | 329 | .probe = elsa_cs_probe, |
| 330 | .remove = elsa_cs_detach, | 330 | .remove = __devexit_p(elsa_cs_detach), |
| 331 | .id_table = elsa_ids, | 331 | .id_table = elsa_ids, |
| 332 | .suspend = elsa_suspend, | 332 | .suspend = elsa_suspend, |
| 333 | .resume = elsa_resume, | 333 | .resume = elsa_resume, |
diff --git a/drivers/isdn/hisax/sedlbauer_cs.c b/drivers/isdn/hisax/sedlbauer_cs.c index 7836ec3c7f86..71b3ddef03bb 100644 --- a/drivers/isdn/hisax/sedlbauer_cs.c +++ b/drivers/isdn/hisax/sedlbauer_cs.c | |||
| @@ -76,7 +76,7 @@ module_param(protocol, int, 0); | |||
| 76 | event handler. | 76 | event handler. |
| 77 | */ | 77 | */ |
| 78 | 78 | ||
| 79 | static int sedlbauer_config(struct pcmcia_device *link); | 79 | static int sedlbauer_config(struct pcmcia_device *link) __devinit ; |
| 80 | static void sedlbauer_release(struct pcmcia_device *link); | 80 | static void sedlbauer_release(struct pcmcia_device *link); |
| 81 | 81 | ||
| 82 | /* | 82 | /* |
| @@ -85,7 +85,7 @@ static void sedlbauer_release(struct pcmcia_device *link); | |||
| 85 | needed to manage one actual PCMCIA card. | 85 | needed to manage one actual PCMCIA card. |
| 86 | */ | 86 | */ |
| 87 | 87 | ||
| 88 | static void sedlbauer_detach(struct pcmcia_device *p_dev); | 88 | static void sedlbauer_detach(struct pcmcia_device *p_dev) __devexit; |
| 89 | 89 | ||
| 90 | /* | 90 | /* |
| 91 | You'll also need to prototype all the functions that will actually | 91 | You'll also need to prototype all the functions that will actually |
| @@ -129,7 +129,7 @@ typedef struct local_info_t { | |||
| 129 | 129 | ||
| 130 | ======================================================================*/ | 130 | ======================================================================*/ |
| 131 | 131 | ||
| 132 | static int sedlbauer_probe(struct pcmcia_device *link) | 132 | static int __devinit sedlbauer_probe(struct pcmcia_device *link) |
| 133 | { | 133 | { |
| 134 | local_info_t *local; | 134 | local_info_t *local; |
| 135 | 135 | ||
| @@ -177,7 +177,7 @@ static int sedlbauer_probe(struct pcmcia_device *link) | |||
| 177 | 177 | ||
| 178 | ======================================================================*/ | 178 | ======================================================================*/ |
| 179 | 179 | ||
| 180 | static void sedlbauer_detach(struct pcmcia_device *link) | 180 | static void __devexit sedlbauer_detach(struct pcmcia_device *link) |
| 181 | { | 181 | { |
| 182 | dev_dbg(&link->dev, "sedlbauer_detach(0x%p)\n", link); | 182 | dev_dbg(&link->dev, "sedlbauer_detach(0x%p)\n", link); |
| 183 | 183 | ||
| @@ -283,7 +283,7 @@ static int sedlbauer_config_check(struct pcmcia_device *p_dev, | |||
| 283 | 283 | ||
| 284 | 284 | ||
| 285 | 285 | ||
| 286 | static int sedlbauer_config(struct pcmcia_device *link) | 286 | static int __devinit sedlbauer_config(struct pcmcia_device *link) |
| 287 | { | 287 | { |
| 288 | local_info_t *dev = link->priv; | 288 | local_info_t *dev = link->priv; |
| 289 | win_req_t *req; | 289 | win_req_t *req; |
| @@ -441,7 +441,7 @@ static struct pcmcia_driver sedlbauer_driver = { | |||
| 441 | .name = "sedlbauer_cs", | 441 | .name = "sedlbauer_cs", |
| 442 | }, | 442 | }, |
| 443 | .probe = sedlbauer_probe, | 443 | .probe = sedlbauer_probe, |
| 444 | .remove = sedlbauer_detach, | 444 | .remove = __devexit_p(sedlbauer_detach), |
| 445 | .id_table = sedlbauer_ids, | 445 | .id_table = sedlbauer_ids, |
| 446 | .suspend = sedlbauer_suspend, | 446 | .suspend = sedlbauer_suspend, |
| 447 | .resume = sedlbauer_resume, | 447 | .resume = sedlbauer_resume, |
diff --git a/drivers/isdn/hisax/teles_cs.c b/drivers/isdn/hisax/teles_cs.c index b0c5976cbdb3..d010a0da8e19 100644 --- a/drivers/isdn/hisax/teles_cs.c +++ b/drivers/isdn/hisax/teles_cs.c | |||
| @@ -57,7 +57,7 @@ module_param(protocol, int, 0); | |||
| 57 | handler. | 57 | handler. |
| 58 | */ | 58 | */ |
| 59 | 59 | ||
| 60 | static int teles_cs_config(struct pcmcia_device *link); | 60 | static int teles_cs_config(struct pcmcia_device *link) __devinit ; |
| 61 | static void teles_cs_release(struct pcmcia_device *link); | 61 | static void teles_cs_release(struct pcmcia_device *link); |
| 62 | 62 | ||
| 63 | /* | 63 | /* |
| @@ -66,7 +66,7 @@ static void teles_cs_release(struct pcmcia_device *link); | |||
| 66 | needed to manage one actual PCMCIA card. | 66 | needed to manage one actual PCMCIA card. |
| 67 | */ | 67 | */ |
| 68 | 68 | ||
| 69 | static void teles_detach(struct pcmcia_device *p_dev); | 69 | static void teles_detach(struct pcmcia_device *p_dev) __devexit ; |
| 70 | 70 | ||
| 71 | /* | 71 | /* |
| 72 | A linked list of "instances" of the teles_cs device. Each actual | 72 | A linked list of "instances" of the teles_cs device. Each actual |
| @@ -112,7 +112,7 @@ typedef struct local_info_t { | |||
| 112 | 112 | ||
| 113 | ======================================================================*/ | 113 | ======================================================================*/ |
| 114 | 114 | ||
| 115 | static int teles_probe(struct pcmcia_device *link) | 115 | static int __devinit teles_probe(struct pcmcia_device *link) |
| 116 | { | 116 | { |
| 117 | local_info_t *local; | 117 | local_info_t *local; |
| 118 | 118 | ||
| @@ -156,7 +156,7 @@ static int teles_probe(struct pcmcia_device *link) | |||
| 156 | 156 | ||
| 157 | ======================================================================*/ | 157 | ======================================================================*/ |
| 158 | 158 | ||
| 159 | static void teles_detach(struct pcmcia_device *link) | 159 | static void __devexit teles_detach(struct pcmcia_device *link) |
| 160 | { | 160 | { |
| 161 | local_info_t *info = link->priv; | 161 | local_info_t *info = link->priv; |
| 162 | 162 | ||
| @@ -200,7 +200,7 @@ static int teles_cs_configcheck(struct pcmcia_device *p_dev, | |||
| 200 | return -ENODEV; | 200 | return -ENODEV; |
| 201 | } | 201 | } |
| 202 | 202 | ||
| 203 | static int teles_cs_config(struct pcmcia_device *link) | 203 | static int __devinit teles_cs_config(struct pcmcia_device *link) |
| 204 | { | 204 | { |
| 205 | local_info_t *dev; | 205 | local_info_t *dev; |
| 206 | int i; | 206 | int i; |
| @@ -319,7 +319,7 @@ static struct pcmcia_driver teles_cs_driver = { | |||
| 319 | .name = "teles_cs", | 319 | .name = "teles_cs", |
| 320 | }, | 320 | }, |
| 321 | .probe = teles_probe, | 321 | .probe = teles_probe, |
| 322 | .remove = teles_detach, | 322 | .remove = __devexit_p(teles_detach), |
| 323 | .id_table = teles_ids, | 323 | .id_table = teles_ids, |
| 324 | .suspend = teles_suspend, | 324 | .suspend = teles_suspend, |
| 325 | .resume = teles_resume, | 325 | .resume = teles_resume, |
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 381887ba677c..a257babd1bb4 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
| @@ -246,6 +246,8 @@ static const struct flash_spec flash_5709 = { | |||
| 246 | 246 | ||
| 247 | MODULE_DEVICE_TABLE(pci, bnx2_pci_tbl); | 247 | MODULE_DEVICE_TABLE(pci, bnx2_pci_tbl); |
| 248 | 248 | ||
| 249 | static void bnx2_init_napi(struct bnx2 *bp); | ||
| 250 | |||
| 249 | static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr) | 251 | static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr) |
| 250 | { | 252 | { |
| 251 | u32 diff; | 253 | u32 diff; |
| @@ -6197,6 +6199,7 @@ bnx2_open(struct net_device *dev) | |||
| 6197 | bnx2_disable_int(bp); | 6199 | bnx2_disable_int(bp); |
| 6198 | 6200 | ||
| 6199 | bnx2_setup_int_mode(bp, disable_msi); | 6201 | bnx2_setup_int_mode(bp, disable_msi); |
| 6202 | bnx2_init_napi(bp); | ||
| 6200 | bnx2_napi_enable(bp); | 6203 | bnx2_napi_enable(bp); |
| 6201 | rc = bnx2_alloc_mem(bp); | 6204 | rc = bnx2_alloc_mem(bp); |
| 6202 | if (rc) | 6205 | if (rc) |
| @@ -7643,9 +7646,11 @@ poll_bnx2(struct net_device *dev) | |||
| 7643 | int i; | 7646 | int i; |
| 7644 | 7647 | ||
| 7645 | for (i = 0; i < bp->irq_nvecs; i++) { | 7648 | for (i = 0; i < bp->irq_nvecs; i++) { |
| 7646 | disable_irq(bp->irq_tbl[i].vector); | 7649 | struct bnx2_irq *irq = &bp->irq_tbl[i]; |
| 7647 | bnx2_interrupt(bp->irq_tbl[i].vector, &bp->bnx2_napi[i]); | 7650 | |
| 7648 | enable_irq(bp->irq_tbl[i].vector); | 7651 | disable_irq(irq->vector); |
| 7652 | irq->handler(irq->vector, &bp->bnx2_napi[i]); | ||
| 7653 | enable_irq(irq->vector); | ||
| 7649 | } | 7654 | } |
| 7650 | } | 7655 | } |
| 7651 | #endif | 7656 | #endif |
| @@ -8207,7 +8212,7 @@ bnx2_init_napi(struct bnx2 *bp) | |||
| 8207 | { | 8212 | { |
| 8208 | int i; | 8213 | int i; |
| 8209 | 8214 | ||
| 8210 | for (i = 0; i < BNX2_MAX_MSIX_VEC; i++) { | 8215 | for (i = 0; i < bp->irq_nvecs; i++) { |
| 8211 | struct bnx2_napi *bnapi = &bp->bnx2_napi[i]; | 8216 | struct bnx2_napi *bnapi = &bp->bnx2_napi[i]; |
| 8212 | int (*poll)(struct napi_struct *, int); | 8217 | int (*poll)(struct napi_struct *, int); |
| 8213 | 8218 | ||
| @@ -8276,7 +8281,6 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
| 8276 | dev->ethtool_ops = &bnx2_ethtool_ops; | 8281 | dev->ethtool_ops = &bnx2_ethtool_ops; |
| 8277 | 8282 | ||
| 8278 | bp = netdev_priv(dev); | 8283 | bp = netdev_priv(dev); |
| 8279 | bnx2_init_napi(bp); | ||
| 8280 | 8284 | ||
| 8281 | pci_set_drvdata(pdev, dev); | 8285 | pci_set_drvdata(pdev, dev); |
| 8282 | 8286 | ||
diff --git a/drivers/net/can/bfin_can.c b/drivers/net/can/bfin_can.c index 866905fa4119..03489864376d 100644 --- a/drivers/net/can/bfin_can.c +++ b/drivers/net/can/bfin_can.c | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | #include <linux/can/dev.h> | 22 | #include <linux/can/dev.h> |
| 23 | #include <linux/can/error.h> | 23 | #include <linux/can/error.h> |
| 24 | 24 | ||
| 25 | #include <asm/bfin_can.h> | ||
| 25 | #include <asm/portmux.h> | 26 | #include <asm/portmux.h> |
| 26 | 27 | ||
| 27 | #define DRV_NAME "bfin_can" | 28 | #define DRV_NAME "bfin_can" |
| @@ -29,90 +30,6 @@ | |||
| 29 | #define TX_ECHO_SKB_MAX 1 | 30 | #define TX_ECHO_SKB_MAX 1 |
| 30 | 31 | ||
| 31 | /* | 32 | /* |
| 32 | * transmit and receive channels | ||
| 33 | */ | ||
| 34 | #define TRANSMIT_CHL 24 | ||
| 35 | #define RECEIVE_STD_CHL 0 | ||
| 36 | #define RECEIVE_EXT_CHL 4 | ||
| 37 | #define RECEIVE_RTR_CHL 8 | ||
| 38 | #define RECEIVE_EXT_RTR_CHL 12 | ||
| 39 | #define MAX_CHL_NUMBER 32 | ||
| 40 | |||
| 41 | /* | ||
| 42 | * bfin can registers layout | ||
| 43 | */ | ||
| 44 | struct bfin_can_mask_regs { | ||
| 45 | u16 aml; | ||
| 46 | u16 dummy1; | ||
| 47 | u16 amh; | ||
| 48 | u16 dummy2; | ||
| 49 | }; | ||
| 50 | |||
| 51 | struct bfin_can_channel_regs { | ||
| 52 | u16 data[8]; | ||
| 53 | u16 dlc; | ||
| 54 | u16 dummy1; | ||
| 55 | u16 tsv; | ||
| 56 | u16 dummy2; | ||
| 57 | u16 id0; | ||
| 58 | u16 dummy3; | ||
| 59 | u16 id1; | ||
| 60 | u16 dummy4; | ||
| 61 | }; | ||
| 62 | |||
| 63 | struct bfin_can_regs { | ||
| 64 | /* | ||
| 65 | * global control and status registers | ||
| 66 | */ | ||
| 67 | u16 mc1; /* offset 0 */ | ||
| 68 | u16 dummy1; | ||
| 69 | u16 md1; /* offset 4 */ | ||
| 70 | u16 rsv1[13]; | ||
| 71 | u16 mbtif1; /* offset 0x20 */ | ||
| 72 | u16 dummy2; | ||
| 73 | u16 mbrif1; /* offset 0x24 */ | ||
| 74 | u16 dummy3; | ||
| 75 | u16 mbim1; /* offset 0x28 */ | ||
| 76 | u16 rsv2[11]; | ||
| 77 | u16 mc2; /* offset 0x40 */ | ||
| 78 | u16 dummy4; | ||
| 79 | u16 md2; /* offset 0x44 */ | ||
| 80 | u16 dummy5; | ||
| 81 | u16 trs2; /* offset 0x48 */ | ||
| 82 | u16 rsv3[11]; | ||
| 83 | u16 mbtif2; /* offset 0x60 */ | ||
| 84 | u16 dummy6; | ||
| 85 | u16 mbrif2; /* offset 0x64 */ | ||
| 86 | u16 dummy7; | ||
| 87 | u16 mbim2; /* offset 0x68 */ | ||
| 88 | u16 rsv4[11]; | ||
| 89 | u16 clk; /* offset 0x80 */ | ||
| 90 | u16 dummy8; | ||
| 91 | u16 timing; /* offset 0x84 */ | ||
| 92 | u16 rsv5[3]; | ||
| 93 | u16 status; /* offset 0x8c */ | ||
| 94 | u16 dummy9; | ||
| 95 | u16 cec; /* offset 0x90 */ | ||
| 96 | u16 dummy10; | ||
| 97 | u16 gis; /* offset 0x94 */ | ||
| 98 | u16 dummy11; | ||
| 99 | u16 gim; /* offset 0x98 */ | ||
| 100 | u16 rsv6[3]; | ||
| 101 | u16 ctrl; /* offset 0xa0 */ | ||
| 102 | u16 dummy12; | ||
| 103 | u16 intr; /* offset 0xa4 */ | ||
| 104 | u16 rsv7[7]; | ||
| 105 | u16 esr; /* offset 0xb4 */ | ||
| 106 | u16 rsv8[37]; | ||
| 107 | |||
| 108 | /* | ||
| 109 | * channel(mailbox) mask and message registers | ||
| 110 | */ | ||
| 111 | struct bfin_can_mask_regs msk[MAX_CHL_NUMBER]; /* offset 0x100 */ | ||
| 112 | struct bfin_can_channel_regs chl[MAX_CHL_NUMBER]; /* offset 0x200 */ | ||
| 113 | }; | ||
| 114 | |||
| 115 | /* | ||
| 116 | * bfin can private data | 33 | * bfin can private data |
| 117 | */ | 34 | */ |
| 118 | struct bfin_can_priv { | 35 | struct bfin_can_priv { |
| @@ -163,7 +80,7 @@ static int bfin_can_set_bittiming(struct net_device *dev) | |||
| 163 | if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) | 80 | if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) |
| 164 | timing |= SAM; | 81 | timing |= SAM; |
| 165 | 82 | ||
| 166 | bfin_write16(®->clk, clk); | 83 | bfin_write16(®->clock, clk); |
| 167 | bfin_write16(®->timing, timing); | 84 | bfin_write16(®->timing, timing); |
| 168 | 85 | ||
| 169 | dev_info(dev->dev.parent, "setting CLOCK=0x%04x TIMING=0x%04x\n", | 86 | dev_info(dev->dev.parent, "setting CLOCK=0x%04x TIMING=0x%04x\n", |
| @@ -185,11 +102,11 @@ static void bfin_can_set_reset_mode(struct net_device *dev) | |||
| 185 | bfin_write16(®->gim, 0); | 102 | bfin_write16(®->gim, 0); |
| 186 | 103 | ||
| 187 | /* reset can and enter configuration mode */ | 104 | /* reset can and enter configuration mode */ |
| 188 | bfin_write16(®->ctrl, SRS | CCR); | 105 | bfin_write16(®->control, SRS | CCR); |
| 189 | SSYNC(); | 106 | SSYNC(); |
| 190 | bfin_write16(®->ctrl, CCR); | 107 | bfin_write16(®->control, CCR); |
| 191 | SSYNC(); | 108 | SSYNC(); |
| 192 | while (!(bfin_read16(®->ctrl) & CCA)) { | 109 | while (!(bfin_read16(®->control) & CCA)) { |
| 193 | udelay(10); | 110 | udelay(10); |
| 194 | if (--timeout == 0) { | 111 | if (--timeout == 0) { |
| 195 | dev_err(dev->dev.parent, | 112 | dev_err(dev->dev.parent, |
| @@ -244,7 +161,7 @@ static void bfin_can_set_normal_mode(struct net_device *dev) | |||
| 244 | /* | 161 | /* |
| 245 | * leave configuration mode | 162 | * leave configuration mode |
| 246 | */ | 163 | */ |
| 247 | bfin_write16(®->ctrl, bfin_read16(®->ctrl) & ~CCR); | 164 | bfin_write16(®->control, bfin_read16(®->control) & ~CCR); |
| 248 | 165 | ||
| 249 | while (bfin_read16(®->status) & CCA) { | 166 | while (bfin_read16(®->status) & CCA) { |
| 250 | udelay(10); | 167 | udelay(10); |
| @@ -726,7 +643,7 @@ static int bfin_can_suspend(struct platform_device *pdev, pm_message_t mesg) | |||
| 726 | 643 | ||
| 727 | if (netif_running(dev)) { | 644 | if (netif_running(dev)) { |
| 728 | /* enter sleep mode */ | 645 | /* enter sleep mode */ |
| 729 | bfin_write16(®->ctrl, bfin_read16(®->ctrl) | SMR); | 646 | bfin_write16(®->control, bfin_read16(®->control) | SMR); |
| 730 | SSYNC(); | 647 | SSYNC(); |
| 731 | while (!(bfin_read16(®->intr) & SMACK)) { | 648 | while (!(bfin_read16(®->intr) & SMACK)) { |
| 732 | udelay(10); | 649 | udelay(10); |
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h index a1775705b24c..3b772b822a5d 100644 --- a/drivers/net/igb/igb.h +++ b/drivers/net/igb/igb.h | |||
| @@ -267,7 +267,6 @@ struct igb_adapter { | |||
| 267 | 267 | ||
| 268 | /* TX */ | 268 | /* TX */ |
| 269 | struct igb_ring *tx_ring[16]; | 269 | struct igb_ring *tx_ring[16]; |
| 270 | unsigned long tx_queue_len; | ||
| 271 | u32 tx_timeout_count; | 270 | u32 tx_timeout_count; |
| 272 | 271 | ||
| 273 | /* RX */ | 272 | /* RX */ |
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index 45a0e4fd5871..01c65c7447e1 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
| @@ -1105,9 +1105,6 @@ static void igb_configure(struct igb_adapter *adapter) | |||
| 1105 | struct igb_ring *ring = adapter->rx_ring[i]; | 1105 | struct igb_ring *ring = adapter->rx_ring[i]; |
| 1106 | igb_alloc_rx_buffers_adv(ring, igb_desc_unused(ring)); | 1106 | igb_alloc_rx_buffers_adv(ring, igb_desc_unused(ring)); |
| 1107 | } | 1107 | } |
| 1108 | |||
| 1109 | |||
| 1110 | adapter->tx_queue_len = netdev->tx_queue_len; | ||
| 1111 | } | 1108 | } |
| 1112 | 1109 | ||
| 1113 | /** | 1110 | /** |
| @@ -1213,7 +1210,6 @@ void igb_down(struct igb_adapter *adapter) | |||
| 1213 | del_timer_sync(&adapter->watchdog_timer); | 1210 | del_timer_sync(&adapter->watchdog_timer); |
| 1214 | del_timer_sync(&adapter->phy_info_timer); | 1211 | del_timer_sync(&adapter->phy_info_timer); |
| 1215 | 1212 | ||
| 1216 | netdev->tx_queue_len = adapter->tx_queue_len; | ||
| 1217 | netif_carrier_off(netdev); | 1213 | netif_carrier_off(netdev); |
| 1218 | 1214 | ||
| 1219 | /* record the stats before reset*/ | 1215 | /* record the stats before reset*/ |
| @@ -3106,17 +3102,13 @@ static void igb_watchdog_task(struct work_struct *work) | |||
| 3106 | ((ctrl & E1000_CTRL_RFCE) ? "RX" : | 3102 | ((ctrl & E1000_CTRL_RFCE) ? "RX" : |
| 3107 | ((ctrl & E1000_CTRL_TFCE) ? "TX" : "None"))); | 3103 | ((ctrl & E1000_CTRL_TFCE) ? "TX" : "None"))); |
| 3108 | 3104 | ||
| 3109 | /* tweak tx_queue_len according to speed/duplex and | 3105 | /* adjust timeout factor according to speed/duplex */ |
| 3110 | * adjust the timeout factor */ | ||
| 3111 | netdev->tx_queue_len = adapter->tx_queue_len; | ||
| 3112 | adapter->tx_timeout_factor = 1; | 3106 | adapter->tx_timeout_factor = 1; |
| 3113 | switch (adapter->link_speed) { | 3107 | switch (adapter->link_speed) { |
| 3114 | case SPEED_10: | 3108 | case SPEED_10: |
| 3115 | netdev->tx_queue_len = 10; | ||
| 3116 | adapter->tx_timeout_factor = 14; | 3109 | adapter->tx_timeout_factor = 14; |
| 3117 | break; | 3110 | break; |
| 3118 | case SPEED_100: | 3111 | case SPEED_100: |
| 3119 | netdev->tx_queue_len = 100; | ||
| 3120 | /* maybe add some timeout factor ? */ | 3112 | /* maybe add some timeout factor ? */ |
| 3121 | break; | 3113 | break; |
| 3122 | } | 3114 | } |
| @@ -3963,7 +3955,7 @@ void igb_update_stats(struct igb_adapter *adapter) | |||
| 3963 | struct net_device_stats *net_stats = igb_get_stats(adapter->netdev); | 3955 | struct net_device_stats *net_stats = igb_get_stats(adapter->netdev); |
| 3964 | struct e1000_hw *hw = &adapter->hw; | 3956 | struct e1000_hw *hw = &adapter->hw; |
| 3965 | struct pci_dev *pdev = adapter->pdev; | 3957 | struct pci_dev *pdev = adapter->pdev; |
| 3966 | u32 rnbc, reg; | 3958 | u32 reg, mpc; |
| 3967 | u16 phy_tmp; | 3959 | u16 phy_tmp; |
| 3968 | int i; | 3960 | int i; |
| 3969 | u64 bytes, packets; | 3961 | u64 bytes, packets; |
| @@ -4021,7 +4013,9 @@ void igb_update_stats(struct igb_adapter *adapter) | |||
| 4021 | adapter->stats.symerrs += rd32(E1000_SYMERRS); | 4013 | adapter->stats.symerrs += rd32(E1000_SYMERRS); |
| 4022 | adapter->stats.sec += rd32(E1000_SEC); | 4014 | adapter->stats.sec += rd32(E1000_SEC); |
| 4023 | 4015 | ||
| 4024 | adapter->stats.mpc += rd32(E1000_MPC); | 4016 | mpc = rd32(E1000_MPC); |
| 4017 | adapter->stats.mpc += mpc; | ||
| 4018 | net_stats->rx_fifo_errors += mpc; | ||
| 4025 | adapter->stats.scc += rd32(E1000_SCC); | 4019 | adapter->stats.scc += rd32(E1000_SCC); |
| 4026 | adapter->stats.ecol += rd32(E1000_ECOL); | 4020 | adapter->stats.ecol += rd32(E1000_ECOL); |
| 4027 | adapter->stats.mcc += rd32(E1000_MCC); | 4021 | adapter->stats.mcc += rd32(E1000_MCC); |
| @@ -4036,9 +4030,7 @@ void igb_update_stats(struct igb_adapter *adapter) | |||
| 4036 | adapter->stats.gptc += rd32(E1000_GPTC); | 4030 | adapter->stats.gptc += rd32(E1000_GPTC); |
| 4037 | adapter->stats.gotc += rd32(E1000_GOTCL); | 4031 | adapter->stats.gotc += rd32(E1000_GOTCL); |
| 4038 | rd32(E1000_GOTCH); /* clear GOTCL */ | 4032 | rd32(E1000_GOTCH); /* clear GOTCL */ |
| 4039 | rnbc = rd32(E1000_RNBC); | 4033 | adapter->stats.rnbc += rd32(E1000_RNBC); |
| 4040 | adapter->stats.rnbc += rnbc; | ||
| 4041 | net_stats->rx_fifo_errors += rnbc; | ||
| 4042 | adapter->stats.ruc += rd32(E1000_RUC); | 4034 | adapter->stats.ruc += rd32(E1000_RUC); |
| 4043 | adapter->stats.rfc += rd32(E1000_RFC); | 4035 | adapter->stats.rfc += rd32(E1000_RFC); |
| 4044 | adapter->stats.rjc += rd32(E1000_RJC); | 4036 | adapter->stats.rjc += rd32(E1000_RJC); |
| @@ -5110,7 +5102,7 @@ static void igb_receive_skb(struct igb_q_vector *q_vector, | |||
| 5110 | { | 5102 | { |
| 5111 | struct igb_adapter *adapter = q_vector->adapter; | 5103 | struct igb_adapter *adapter = q_vector->adapter; |
| 5112 | 5104 | ||
| 5113 | if (vlan_tag) | 5105 | if (vlan_tag && adapter->vlgrp) |
| 5114 | vlan_gro_receive(&q_vector->napi, adapter->vlgrp, | 5106 | vlan_gro_receive(&q_vector->napi, adapter->vlgrp, |
| 5115 | vlan_tag, skb); | 5107 | vlan_tag, skb); |
| 5116 | else | 5108 | else |
diff --git a/drivers/net/ksz884x.c b/drivers/net/ksz884x.c index 0f59099ee72f..6c5327af1bf9 100644 --- a/drivers/net/ksz884x.c +++ b/drivers/net/ksz884x.c | |||
| @@ -6322,7 +6322,7 @@ static int netdev_set_eeprom(struct net_device *dev, | |||
| 6322 | int len; | 6322 | int len; |
| 6323 | 6323 | ||
| 6324 | if (eeprom->magic != EEPROM_MAGIC) | 6324 | if (eeprom->magic != EEPROM_MAGIC) |
| 6325 | return 1; | 6325 | return -EINVAL; |
| 6326 | 6326 | ||
| 6327 | len = (eeprom->offset + eeprom->len + 1) / 2; | 6327 | len = (eeprom->offset + eeprom->len + 1) / 2; |
| 6328 | for (i = eeprom->offset / 2; i < len; i++) | 6328 | for (i = eeprom->offset / 2; i < len; i++) |
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index 08780ef1c1f8..9a7a0f3c36c4 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
| @@ -1246,8 +1246,8 @@ netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
| 1246 | int pci_func_id = PCI_FUNC(pdev->devfn); | 1246 | int pci_func_id = PCI_FUNC(pdev->devfn); |
| 1247 | uint8_t revision_id; | 1247 | uint8_t revision_id; |
| 1248 | 1248 | ||
| 1249 | if (pdev->revision >= NX_P3_A0 && pdev->revision < NX_P3_B1) { | 1249 | if (pdev->revision >= NX_P3_A0 && pdev->revision <= NX_P3_B1) { |
| 1250 | pr_warning("%s: chip revisions between 0x%x-0x%x" | 1250 | pr_warning("%s: chip revisions between 0x%x-0x%x " |
| 1251 | "will not be enabled.\n", | 1251 | "will not be enabled.\n", |
| 1252 | module_name(THIS_MODULE), NX_P3_A0, NX_P3_B1); | 1252 | module_name(THIS_MODULE), NX_P3_A0, NX_P3_B1); |
| 1253 | return -ENODEV; | 1253 | return -ENODEV; |
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c index 3a486f3bad3d..bc278d4ee89d 100644 --- a/drivers/net/via-velocity.c +++ b/drivers/net/via-velocity.c | |||
| @@ -812,7 +812,7 @@ static void set_mii_flow_control(struct velocity_info *vptr) | |||
| 812 | 812 | ||
| 813 | case FLOW_CNTL_TX_RX: | 813 | case FLOW_CNTL_TX_RX: |
| 814 | MII_REG_BITS_ON(ANAR_PAUSE, MII_REG_ANAR, vptr->mac_regs); | 814 | MII_REG_BITS_ON(ANAR_PAUSE, MII_REG_ANAR, vptr->mac_regs); |
| 815 | MII_REG_BITS_ON(ANAR_ASMDIR, MII_REG_ANAR, vptr->mac_regs); | 815 | MII_REG_BITS_OFF(ANAR_ASMDIR, MII_REG_ANAR, vptr->mac_regs); |
| 816 | break; | 816 | break; |
| 817 | 817 | ||
| 818 | case FLOW_CNTL_DISABLE: | 818 | case FLOW_CNTL_DISABLE: |
