diff options
Diffstat (limited to 'drivers/net')
52 files changed, 169 insertions, 78 deletions
diff --git a/drivers/net/atlx/atl2.h b/drivers/net/atlx/atl2.h index d918bbe621ea..927e4de6474d 100644 --- a/drivers/net/atlx/atl2.h +++ b/drivers/net/atlx/atl2.h | |||
| @@ -442,7 +442,7 @@ struct atl2_hw { | |||
| 442 | struct atl2_ring_header { | 442 | struct atl2_ring_header { |
| 443 | /* pointer to the descriptor ring memory */ | 443 | /* pointer to the descriptor ring memory */ |
| 444 | void *desc; | 444 | void *desc; |
| 445 | /* physical adress of the descriptor ring */ | 445 | /* physical address of the descriptor ring */ |
| 446 | dma_addr_t dma; | 446 | dma_addr_t dma; |
| 447 | /* length of descriptor ring in bytes */ | 447 | /* length of descriptor ring in bytes */ |
| 448 | unsigned int size; | 448 | unsigned int size; |
diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c index 5acd557cea9b..b8bec086daa1 100644 --- a/drivers/net/bonding/bond_sysfs.c +++ b/drivers/net/bonding/bond_sysfs.c | |||
| @@ -51,7 +51,9 @@ | |||
| 51 | * "show" function for the bond_masters attribute. | 51 | * "show" function for the bond_masters attribute. |
| 52 | * The class parameter is ignored. | 52 | * The class parameter is ignored. |
| 53 | */ | 53 | */ |
| 54 | static ssize_t bonding_show_bonds(struct class *cls, char *buf) | 54 | static ssize_t bonding_show_bonds(struct class *cls, |
| 55 | struct class_attribute *attr, | ||
| 56 | char *buf) | ||
| 55 | { | 57 | { |
| 56 | struct net *net = current->nsproxy->net_ns; | 58 | struct net *net = current->nsproxy->net_ns; |
| 57 | struct bond_net *bn = net_generic(net, bond_net_id); | 59 | struct bond_net *bn = net_generic(net, bond_net_id); |
| @@ -98,6 +100,7 @@ static struct net_device *bond_get_by_name(struct net *net, const char *ifname) | |||
| 98 | */ | 100 | */ |
| 99 | 101 | ||
| 100 | static ssize_t bonding_store_bonds(struct class *cls, | 102 | static ssize_t bonding_store_bonds(struct class *cls, |
| 103 | struct class_attribute *attr, | ||
| 101 | const char *buffer, size_t count) | 104 | const char *buffer, size_t count) |
| 102 | { | 105 | { |
| 103 | struct net *net = current->nsproxy->net_ns; | 106 | struct net *net = current->nsproxy->net_ns; |
diff --git a/drivers/net/chelsio/sge.c b/drivers/net/chelsio/sge.c index 71384114a4ed..55d99ca82f8a 100644 --- a/drivers/net/chelsio/sge.c +++ b/drivers/net/chelsio/sge.c | |||
| @@ -248,7 +248,7 @@ static void restart_sched(unsigned long); | |||
| 248 | * | 248 | * |
| 249 | * Interrupts are handled by a single CPU and it is likely that on a MP system | 249 | * Interrupts are handled by a single CPU and it is likely that on a MP system |
| 250 | * the application is migrated to another CPU. In that scenario, we try to | 250 | * the application is migrated to another CPU. In that scenario, we try to |
| 251 | * seperate the RX(in irq context) and TX state in order to decrease memory | 251 | * separate the RX(in irq context) and TX state in order to decrease memory |
| 252 | * contention. | 252 | * contention. |
| 253 | */ | 253 | */ |
| 254 | struct sge { | 254 | struct sge { |
diff --git a/drivers/net/cs89x0.c b/drivers/net/cs89x0.c index 14624019ce71..b0208e474f7e 100644 --- a/drivers/net/cs89x0.c +++ b/drivers/net/cs89x0.c | |||
| @@ -580,7 +580,7 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular) | |||
| 580 | } | 580 | } |
| 581 | 581 | ||
| 582 | #ifdef CONFIG_SH_HICOSH4 | 582 | #ifdef CONFIG_SH_HICOSH4 |
| 583 | /* truely reset the chip */ | 583 | /* truly reset the chip */ |
| 584 | writeword(ioaddr, ADD_PORT, 0x0114); | 584 | writeword(ioaddr, ADD_PORT, 0x0114); |
| 585 | writeword(ioaddr, DATA_PORT, 0x0040); | 585 | writeword(ioaddr, DATA_PORT, 0x0040); |
| 586 | #endif | 586 | #endif |
diff --git a/drivers/net/cxgb3/adapter.h b/drivers/net/cxgb3/adapter.h index 3e8618b4efbc..4cd7f420766a 100644 --- a/drivers/net/cxgb3/adapter.h +++ b/drivers/net/cxgb3/adapter.h | |||
| @@ -264,6 +264,10 @@ struct adapter { | |||
| 264 | struct work_struct fatal_error_handler_task; | 264 | struct work_struct fatal_error_handler_task; |
| 265 | struct work_struct link_fault_handler_task; | 265 | struct work_struct link_fault_handler_task; |
| 266 | 266 | ||
| 267 | struct work_struct db_full_task; | ||
| 268 | struct work_struct db_empty_task; | ||
| 269 | struct work_struct db_drop_task; | ||
| 270 | |||
| 267 | struct dentry *debugfs_root; | 271 | struct dentry *debugfs_root; |
| 268 | 272 | ||
| 269 | struct mutex mdio_lock; | 273 | struct mutex mdio_lock; |
| @@ -335,6 +339,7 @@ int t3_sge_alloc_qset(struct adapter *adapter, unsigned int id, int nports, | |||
| 335 | int t3_get_desc(const struct sge_qset *qs, unsigned int qnum, unsigned int idx, | 339 | int t3_get_desc(const struct sge_qset *qs, unsigned int qnum, unsigned int idx, |
| 336 | unsigned char *data); | 340 | unsigned char *data); |
| 337 | irqreturn_t t3_sge_intr_msix(int irq, void *cookie); | 341 | irqreturn_t t3_sge_intr_msix(int irq, void *cookie); |
| 342 | extern struct workqueue_struct *cxgb3_wq; | ||
| 338 | 343 | ||
| 339 | int t3_get_edc_fw(struct cphy *phy, int edc_idx, int size); | 344 | int t3_get_edc_fw(struct cphy *phy, int edc_idx, int size); |
| 340 | 345 | ||
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c index cecdec1551db..9e3e8750b46a 100644 --- a/drivers/net/cxgb3/cxgb3_main.c +++ b/drivers/net/cxgb3/cxgb3_main.c | |||
| @@ -45,6 +45,7 @@ | |||
| 45 | #include <linux/firmware.h> | 45 | #include <linux/firmware.h> |
| 46 | #include <linux/log2.h> | 46 | #include <linux/log2.h> |
| 47 | #include <linux/stringify.h> | 47 | #include <linux/stringify.h> |
| 48 | #include <linux/sched.h> | ||
| 48 | #include <asm/uaccess.h> | 49 | #include <asm/uaccess.h> |
| 49 | 50 | ||
| 50 | #include "common.h" | 51 | #include "common.h" |
| @@ -140,7 +141,7 @@ MODULE_PARM_DESC(ofld_disable, "whether to enable offload at init time or not"); | |||
| 140 | * will block keventd as it needs the rtnl lock, and we'll deadlock waiting | 141 | * will block keventd as it needs the rtnl lock, and we'll deadlock waiting |
| 141 | * for our work to complete. Get our own work queue to solve this. | 142 | * for our work to complete. Get our own work queue to solve this. |
| 142 | */ | 143 | */ |
| 143 | static struct workqueue_struct *cxgb3_wq; | 144 | struct workqueue_struct *cxgb3_wq; |
| 144 | 145 | ||
| 145 | /** | 146 | /** |
| 146 | * link_report - show link status and link speed/duplex | 147 | * link_report - show link status and link speed/duplex |
| @@ -586,6 +587,19 @@ static void setup_rss(struct adapter *adap) | |||
| 586 | V_RRCPLCPUSIZE(6) | F_HASHTOEPLITZ, cpus, rspq_map); | 587 | V_RRCPLCPUSIZE(6) | F_HASHTOEPLITZ, cpus, rspq_map); |
| 587 | } | 588 | } |
| 588 | 589 | ||
| 590 | static void ring_dbs(struct adapter *adap) | ||
| 591 | { | ||
| 592 | int i, j; | ||
| 593 | |||
| 594 | for (i = 0; i < SGE_QSETS; i++) { | ||
| 595 | struct sge_qset *qs = &adap->sge.qs[i]; | ||
| 596 | |||
| 597 | if (qs->adap) | ||
| 598 | for (j = 0; j < SGE_TXQ_PER_SET; j++) | ||
| 599 | t3_write_reg(adap, A_SG_KDOORBELL, F_SELEGRCNTX | V_EGRCNTX(qs->txq[j].cntxt_id)); | ||
| 600 | } | ||
| 601 | } | ||
| 602 | |||
| 589 | static void init_napi(struct adapter *adap) | 603 | static void init_napi(struct adapter *adap) |
| 590 | { | 604 | { |
| 591 | int i; | 605 | int i; |
| @@ -2751,6 +2765,42 @@ static void t3_adap_check_task(struct work_struct *work) | |||
| 2751 | spin_unlock_irq(&adapter->work_lock); | 2765 | spin_unlock_irq(&adapter->work_lock); |
| 2752 | } | 2766 | } |
| 2753 | 2767 | ||
| 2768 | static void db_full_task(struct work_struct *work) | ||
| 2769 | { | ||
| 2770 | struct adapter *adapter = container_of(work, struct adapter, | ||
| 2771 | db_full_task); | ||
| 2772 | |||
| 2773 | cxgb3_event_notify(&adapter->tdev, OFFLOAD_DB_FULL, 0); | ||
| 2774 | } | ||
| 2775 | |||
| 2776 | static void db_empty_task(struct work_struct *work) | ||
| 2777 | { | ||
| 2778 | struct adapter *adapter = container_of(work, struct adapter, | ||
| 2779 | db_empty_task); | ||
| 2780 | |||
| 2781 | cxgb3_event_notify(&adapter->tdev, OFFLOAD_DB_EMPTY, 0); | ||
| 2782 | } | ||
| 2783 | |||
| 2784 | static void db_drop_task(struct work_struct *work) | ||
| 2785 | { | ||
| 2786 | struct adapter *adapter = container_of(work, struct adapter, | ||
| 2787 | db_drop_task); | ||
| 2788 | unsigned long delay = 1000; | ||
| 2789 | unsigned short r; | ||
| 2790 | |||
| 2791 | cxgb3_event_notify(&adapter->tdev, OFFLOAD_DB_DROP, 0); | ||
| 2792 | |||
| 2793 | /* | ||
| 2794 | * Sleep a while before ringing the driver qset dbs. | ||
| 2795 | * The delay is between 1000-2023 usecs. | ||
| 2796 | */ | ||
| 2797 | get_random_bytes(&r, 2); | ||
| 2798 | delay += r & 1023; | ||
| 2799 | set_current_state(TASK_UNINTERRUPTIBLE); | ||
| 2800 | schedule_timeout(usecs_to_jiffies(delay)); | ||
| 2801 | ring_dbs(adapter); | ||
| 2802 | } | ||
| 2803 | |||
| 2754 | /* | 2804 | /* |
| 2755 | * Processes external (PHY) interrupts in process context. | 2805 | * Processes external (PHY) interrupts in process context. |
| 2756 | */ | 2806 | */ |
| @@ -3219,6 +3269,11 @@ static int __devinit init_one(struct pci_dev *pdev, | |||
| 3219 | INIT_LIST_HEAD(&adapter->adapter_list); | 3269 | INIT_LIST_HEAD(&adapter->adapter_list); |
| 3220 | INIT_WORK(&adapter->ext_intr_handler_task, ext_intr_task); | 3270 | INIT_WORK(&adapter->ext_intr_handler_task, ext_intr_task); |
| 3221 | INIT_WORK(&adapter->fatal_error_handler_task, fatal_error_task); | 3271 | INIT_WORK(&adapter->fatal_error_handler_task, fatal_error_task); |
| 3272 | |||
| 3273 | INIT_WORK(&adapter->db_full_task, db_full_task); | ||
| 3274 | INIT_WORK(&adapter->db_empty_task, db_empty_task); | ||
| 3275 | INIT_WORK(&adapter->db_drop_task, db_drop_task); | ||
| 3276 | |||
| 3222 | INIT_DELAYED_WORK(&adapter->adap_check_task, t3_adap_check_task); | 3277 | INIT_DELAYED_WORK(&adapter->adap_check_task, t3_adap_check_task); |
| 3223 | 3278 | ||
| 3224 | for (i = 0; i < ai->nports0 + ai->nports1; ++i) { | 3279 | for (i = 0; i < ai->nports0 + ai->nports1; ++i) { |
diff --git a/drivers/net/cxgb3/cxgb3_offload.h b/drivers/net/cxgb3/cxgb3_offload.h index 670aa62042da..929c298115ca 100644 --- a/drivers/net/cxgb3/cxgb3_offload.h +++ b/drivers/net/cxgb3/cxgb3_offload.h | |||
| @@ -73,7 +73,10 @@ enum { | |||
| 73 | OFFLOAD_STATUS_UP, | 73 | OFFLOAD_STATUS_UP, |
| 74 | OFFLOAD_STATUS_DOWN, | 74 | OFFLOAD_STATUS_DOWN, |
| 75 | OFFLOAD_PORT_DOWN, | 75 | OFFLOAD_PORT_DOWN, |
| 76 | OFFLOAD_PORT_UP | 76 | OFFLOAD_PORT_UP, |
| 77 | OFFLOAD_DB_FULL, | ||
| 78 | OFFLOAD_DB_EMPTY, | ||
| 79 | OFFLOAD_DB_DROP | ||
| 77 | }; | 80 | }; |
| 78 | 81 | ||
| 79 | struct cxgb3_client { | 82 | struct cxgb3_client { |
diff --git a/drivers/net/cxgb3/regs.h b/drivers/net/cxgb3/regs.h index 1b5327b5a965..cb42353c9fdd 100644 --- a/drivers/net/cxgb3/regs.h +++ b/drivers/net/cxgb3/regs.h | |||
| @@ -254,6 +254,22 @@ | |||
| 254 | #define V_LOPIODRBDROPERR(x) ((x) << S_LOPIODRBDROPERR) | 254 | #define V_LOPIODRBDROPERR(x) ((x) << S_LOPIODRBDROPERR) |
| 255 | #define F_LOPIODRBDROPERR V_LOPIODRBDROPERR(1U) | 255 | #define F_LOPIODRBDROPERR V_LOPIODRBDROPERR(1U) |
| 256 | 256 | ||
| 257 | #define S_HIPRIORITYDBFULL 7 | ||
| 258 | #define V_HIPRIORITYDBFULL(x) ((x) << S_HIPRIORITYDBFULL) | ||
| 259 | #define F_HIPRIORITYDBFULL V_HIPRIORITYDBFULL(1U) | ||
| 260 | |||
| 261 | #define S_HIPRIORITYDBEMPTY 6 | ||
| 262 | #define V_HIPRIORITYDBEMPTY(x) ((x) << S_HIPRIORITYDBEMPTY) | ||
| 263 | #define F_HIPRIORITYDBEMPTY V_HIPRIORITYDBEMPTY(1U) | ||
| 264 | |||
| 265 | #define S_LOPRIORITYDBFULL 5 | ||
| 266 | #define V_LOPRIORITYDBFULL(x) ((x) << S_LOPRIORITYDBFULL) | ||
| 267 | #define F_LOPRIORITYDBFULL V_LOPRIORITYDBFULL(1U) | ||
| 268 | |||
| 269 | #define S_LOPRIORITYDBEMPTY 4 | ||
| 270 | #define V_LOPRIORITYDBEMPTY(x) ((x) << S_LOPRIORITYDBEMPTY) | ||
| 271 | #define F_LOPRIORITYDBEMPTY V_LOPRIORITYDBEMPTY(1U) | ||
| 272 | |||
| 257 | #define S_RSPQDISABLED 3 | 273 | #define S_RSPQDISABLED 3 |
| 258 | #define V_RSPQDISABLED(x) ((x) << S_RSPQDISABLED) | 274 | #define V_RSPQDISABLED(x) ((x) << S_RSPQDISABLED) |
| 259 | #define F_RSPQDISABLED V_RSPQDISABLED(1U) | 275 | #define F_RSPQDISABLED V_RSPQDISABLED(1U) |
diff --git a/drivers/net/cxgb3/sge.c b/drivers/net/cxgb3/sge.c index 048205903741..67e61b2a8c42 100644 --- a/drivers/net/cxgb3/sge.c +++ b/drivers/net/cxgb3/sge.c | |||
| @@ -42,6 +42,7 @@ | |||
| 42 | #include "sge_defs.h" | 42 | #include "sge_defs.h" |
| 43 | #include "t3_cpl.h" | 43 | #include "t3_cpl.h" |
| 44 | #include "firmware_exports.h" | 44 | #include "firmware_exports.h" |
| 45 | #include "cxgb3_offload.h" | ||
| 45 | 46 | ||
| 46 | #define USE_GTS 0 | 47 | #define USE_GTS 0 |
| 47 | 48 | ||
| @@ -196,13 +197,13 @@ static inline void refill_rspq(struct adapter *adapter, | |||
| 196 | /** | 197 | /** |
| 197 | * need_skb_unmap - does the platform need unmapping of sk_buffs? | 198 | * need_skb_unmap - does the platform need unmapping of sk_buffs? |
| 198 | * | 199 | * |
| 199 | * Returns true if the platfrom needs sk_buff unmapping. The compiler | 200 | * Returns true if the platform needs sk_buff unmapping. The compiler |
| 200 | * optimizes away unecessary code if this returns true. | 201 | * optimizes away unecessary code if this returns true. |
| 201 | */ | 202 | */ |
| 202 | static inline int need_skb_unmap(void) | 203 | static inline int need_skb_unmap(void) |
| 203 | { | 204 | { |
| 204 | /* | 205 | /* |
| 205 | * This structure is used to tell if the platfrom needs buffer | 206 | * This structure is used to tell if the platform needs buffer |
| 206 | * unmapping by checking if DECLARE_PCI_UNMAP_ADDR defines anything. | 207 | * unmapping by checking if DECLARE_PCI_UNMAP_ADDR defines anything. |
| 207 | */ | 208 | */ |
| 208 | struct dummy { | 209 | struct dummy { |
| @@ -2841,8 +2842,13 @@ void t3_sge_err_intr_handler(struct adapter *adapter) | |||
| 2841 | } | 2842 | } |
| 2842 | 2843 | ||
| 2843 | if (status & (F_HIPIODRBDROPERR | F_LOPIODRBDROPERR)) | 2844 | if (status & (F_HIPIODRBDROPERR | F_LOPIODRBDROPERR)) |
| 2844 | CH_ALERT(adapter, "SGE dropped %s priority doorbell\n", | 2845 | queue_work(cxgb3_wq, &adapter->db_drop_task); |
| 2845 | status & F_HIPIODRBDROPERR ? "high" : "lo"); | 2846 | |
| 2847 | if (status & (F_HIPRIORITYDBFULL | F_LOPRIORITYDBFULL)) | ||
| 2848 | queue_work(cxgb3_wq, &adapter->db_full_task); | ||
| 2849 | |||
| 2850 | if (status & (F_HIPRIORITYDBEMPTY | F_LOPRIORITYDBEMPTY)) | ||
| 2851 | queue_work(cxgb3_wq, &adapter->db_empty_task); | ||
| 2846 | 2852 | ||
| 2847 | t3_write_reg(adapter, A_SG_INT_CAUSE, status); | 2853 | t3_write_reg(adapter, A_SG_INT_CAUSE, status); |
| 2848 | if (status & SGE_FATALERR) | 2854 | if (status & SGE_FATALERR) |
diff --git a/drivers/net/cxgb3/t3_hw.c b/drivers/net/cxgb3/t3_hw.c index 3ab9f51918aa..95a8ba0759f1 100644 --- a/drivers/net/cxgb3/t3_hw.c +++ b/drivers/net/cxgb3/t3_hw.c | |||
| @@ -1433,7 +1433,10 @@ static int t3_handle_intr_status(struct adapter *adapter, unsigned int reg, | |||
| 1433 | F_IRPARITYERROR | V_ITPARITYERROR(M_ITPARITYERROR) | \ | 1433 | F_IRPARITYERROR | V_ITPARITYERROR(M_ITPARITYERROR) | \ |
| 1434 | V_FLPARITYERROR(M_FLPARITYERROR) | F_LODRBPARITYERROR | \ | 1434 | V_FLPARITYERROR(M_FLPARITYERROR) | F_LODRBPARITYERROR | \ |
| 1435 | F_HIDRBPARITYERROR | F_LORCQPARITYERROR | \ | 1435 | F_HIDRBPARITYERROR | F_LORCQPARITYERROR | \ |
| 1436 | F_HIRCQPARITYERROR) | 1436 | F_HIRCQPARITYERROR | F_LOPRIORITYDBFULL | \ |
| 1437 | F_HIPRIORITYDBFULL | F_LOPRIORITYDBEMPTY | \ | ||
| 1438 | F_HIPRIORITYDBEMPTY | F_HIPIODRBDROPERR | \ | ||
| 1439 | F_LOPIODRBDROPERR) | ||
| 1437 | #define MC5_INTR_MASK (F_PARITYERR | F_ACTRGNFULL | F_UNKNOWNCMD | \ | 1440 | #define MC5_INTR_MASK (F_PARITYERR | F_ACTRGNFULL | F_UNKNOWNCMD | \ |
| 1438 | F_REQQPARERR | F_DISPQPARERR | F_DELACTEMPTY | \ | 1441 | F_REQQPARERR | F_DISPQPARERR | F_DELACTEMPTY | \ |
| 1439 | F_NFASRCHFAIL) | 1442 | F_NFASRCHFAIL) |
diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index 32960b9b02ae..8bd086aee56d 100644 --- a/drivers/net/davinci_emac.c +++ b/drivers/net/davinci_emac.c | |||
| @@ -2658,7 +2658,7 @@ static int __devinit davinci_emac_probe(struct platform_device *pdev) | |||
| 2658 | 2658 | ||
| 2659 | pdata = pdev->dev.platform_data; | 2659 | pdata = pdev->dev.platform_data; |
| 2660 | if (!pdata) { | 2660 | if (!pdata) { |
| 2661 | printk(KERN_ERR "DaVinci EMAC: No platfrom data\n"); | 2661 | printk(KERN_ERR "DaVinci EMAC: No platform data\n"); |
| 2662 | return -ENODEV; | 2662 | return -ENODEV; |
| 2663 | } | 2663 | } |
| 2664 | 2664 | ||
diff --git a/drivers/net/e1000e/82571.c b/drivers/net/e1000e/82571.c index 3c95acb3a87d..712ccc66ba25 100644 --- a/drivers/net/e1000e/82571.c +++ b/drivers/net/e1000e/82571.c | |||
| @@ -1346,7 +1346,7 @@ static s32 e1000_setup_fiber_serdes_link_82571(struct e1000_hw *hw) | |||
| 1346 | * | 1346 | * |
| 1347 | * 1) down | 1347 | * 1) down |
| 1348 | * 2) autoneg_progress | 1348 | * 2) autoneg_progress |
| 1349 | * 3) autoneg_complete (the link sucessfully autonegotiated) | 1349 | * 3) autoneg_complete (the link successfully autonegotiated) |
| 1350 | * 4) forced_up (the link has been forced up, it did not autonegotiate) | 1350 | * 4) forced_up (the link has been forced up, it did not autonegotiate) |
| 1351 | * | 1351 | * |
| 1352 | **/ | 1352 | **/ |
diff --git a/drivers/net/e1000e/lib.c b/drivers/net/e1000e/lib.c index 2425ed11d5cc..a8b2c0de27c4 100644 --- a/drivers/net/e1000e/lib.c +++ b/drivers/net/e1000e/lib.c | |||
| @@ -647,7 +647,7 @@ s32 e1000e_check_for_serdes_link(struct e1000_hw *hw) | |||
| 647 | if (!(rxcw & E1000_RXCW_IV)) { | 647 | if (!(rxcw & E1000_RXCW_IV)) { |
| 648 | mac->serdes_has_link = true; | 648 | mac->serdes_has_link = true; |
| 649 | e_dbg("SERDES: Link up - autoneg " | 649 | e_dbg("SERDES: Link up - autoneg " |
| 650 | "completed sucessfully.\n"); | 650 | "completed successfully.\n"); |
| 651 | } else { | 651 | } else { |
| 652 | mac->serdes_has_link = false; | 652 | mac->serdes_has_link = false; |
| 653 | e_dbg("SERDES: Link down - invalid" | 653 | e_dbg("SERDES: Link down - invalid" |
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index c3f061957c04..b6715553cf17 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
| @@ -998,7 +998,7 @@ static int gfar_probe(struct of_device *ofdev, | |||
| 998 | } | 998 | } |
| 999 | 999 | ||
| 1000 | /* Need to reverse the bit maps as bit_map's MSB is q0 | 1000 | /* Need to reverse the bit maps as bit_map's MSB is q0 |
| 1001 | * but, for_each_bit parses from right to left, which | 1001 | * but, for_each_set_bit parses from right to left, which |
| 1002 | * basically reverses the queue numbers */ | 1002 | * basically reverses the queue numbers */ |
| 1003 | for (i = 0; i< priv->num_grps; i++) { | 1003 | for (i = 0; i< priv->num_grps; i++) { |
| 1004 | priv->gfargrp[i].tx_bit_map = reverse_bitmap( | 1004 | priv->gfargrp[i].tx_bit_map = reverse_bitmap( |
| @@ -1011,7 +1011,7 @@ static int gfar_probe(struct of_device *ofdev, | |||
| 1011 | * also assign queues to groups */ | 1011 | * also assign queues to groups */ |
| 1012 | for (grp_idx = 0; grp_idx < priv->num_grps; grp_idx++) { | 1012 | for (grp_idx = 0; grp_idx < priv->num_grps; grp_idx++) { |
| 1013 | priv->gfargrp[grp_idx].num_rx_queues = 0x0; | 1013 | priv->gfargrp[grp_idx].num_rx_queues = 0x0; |
| 1014 | for_each_bit(i, &priv->gfargrp[grp_idx].rx_bit_map, | 1014 | for_each_set_bit(i, &priv->gfargrp[grp_idx].rx_bit_map, |
| 1015 | priv->num_rx_queues) { | 1015 | priv->num_rx_queues) { |
| 1016 | priv->gfargrp[grp_idx].num_rx_queues++; | 1016 | priv->gfargrp[grp_idx].num_rx_queues++; |
| 1017 | priv->rx_queue[i]->grp = &priv->gfargrp[grp_idx]; | 1017 | priv->rx_queue[i]->grp = &priv->gfargrp[grp_idx]; |
| @@ -1019,7 +1019,7 @@ static int gfar_probe(struct of_device *ofdev, | |||
| 1019 | rqueue = rqueue | ((RQUEUE_EN0 | RQUEUE_EX0) >> i); | 1019 | rqueue = rqueue | ((RQUEUE_EN0 | RQUEUE_EX0) >> i); |
| 1020 | } | 1020 | } |
| 1021 | priv->gfargrp[grp_idx].num_tx_queues = 0x0; | 1021 | priv->gfargrp[grp_idx].num_tx_queues = 0x0; |
| 1022 | for_each_bit (i, &priv->gfargrp[grp_idx].tx_bit_map, | 1022 | for_each_set_bit(i, &priv->gfargrp[grp_idx].tx_bit_map, |
| 1023 | priv->num_tx_queues) { | 1023 | priv->num_tx_queues) { |
| 1024 | priv->gfargrp[grp_idx].num_tx_queues++; | 1024 | priv->gfargrp[grp_idx].num_tx_queues++; |
| 1025 | priv->tx_queue[i]->grp = &priv->gfargrp[grp_idx]; | 1025 | priv->tx_queue[i]->grp = &priv->gfargrp[grp_idx]; |
| @@ -1709,7 +1709,7 @@ void gfar_configure_coalescing(struct gfar_private *priv, | |||
| 1709 | 1709 | ||
| 1710 | if (priv->mode == MQ_MG_MODE) { | 1710 | if (priv->mode == MQ_MG_MODE) { |
| 1711 | baddr = ®s->txic0; | 1711 | baddr = ®s->txic0; |
| 1712 | for_each_bit (i, &tx_mask, priv->num_tx_queues) { | 1712 | for_each_set_bit(i, &tx_mask, priv->num_tx_queues) { |
| 1713 | if (likely(priv->tx_queue[i]->txcoalescing)) { | 1713 | if (likely(priv->tx_queue[i]->txcoalescing)) { |
| 1714 | gfar_write(baddr + i, 0); | 1714 | gfar_write(baddr + i, 0); |
| 1715 | gfar_write(baddr + i, priv->tx_queue[i]->txic); | 1715 | gfar_write(baddr + i, priv->tx_queue[i]->txic); |
| @@ -1717,7 +1717,7 @@ void gfar_configure_coalescing(struct gfar_private *priv, | |||
| 1717 | } | 1717 | } |
| 1718 | 1718 | ||
| 1719 | baddr = ®s->rxic0; | 1719 | baddr = ®s->rxic0; |
| 1720 | for_each_bit (i, &rx_mask, priv->num_rx_queues) { | 1720 | for_each_set_bit(i, &rx_mask, priv->num_rx_queues) { |
| 1721 | if (likely(priv->rx_queue[i]->rxcoalescing)) { | 1721 | if (likely(priv->rx_queue[i]->rxcoalescing)) { |
| 1722 | gfar_write(baddr + i, 0); | 1722 | gfar_write(baddr + i, 0); |
| 1723 | gfar_write(baddr + i, priv->rx_queue[i]->rxic); | 1723 | gfar_write(baddr + i, priv->rx_queue[i]->rxic); |
| @@ -2610,7 +2610,7 @@ static int gfar_poll(struct napi_struct *napi, int budget) | |||
| 2610 | budget_per_queue = left_over_budget/num_queues; | 2610 | budget_per_queue = left_over_budget/num_queues; |
| 2611 | left_over_budget = 0; | 2611 | left_over_budget = 0; |
| 2612 | 2612 | ||
| 2613 | for_each_bit(i, &gfargrp->rx_bit_map, priv->num_rx_queues) { | 2613 | for_each_set_bit(i, &gfargrp->rx_bit_map, priv->num_rx_queues) { |
| 2614 | if (test_bit(i, &serviced_queues)) | 2614 | if (test_bit(i, &serviced_queues)) |
| 2615 | continue; | 2615 | continue; |
| 2616 | rx_queue = priv->rx_queue[i]; | 2616 | rx_queue = priv->rx_queue[i]; |
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c index f2b937966950..0bc777bac9b4 100644 --- a/drivers/net/ibmveth.c +++ b/drivers/net/ibmveth.c | |||
| @@ -1577,7 +1577,7 @@ static struct attribute * veth_pool_attrs[] = { | |||
| 1577 | NULL, | 1577 | NULL, |
| 1578 | }; | 1578 | }; |
| 1579 | 1579 | ||
| 1580 | static struct sysfs_ops veth_pool_ops = { | 1580 | static const struct sysfs_ops veth_pool_ops = { |
| 1581 | .show = veth_pool_show, | 1581 | .show = veth_pool_show, |
| 1582 | .store = veth_pool_store, | 1582 | .store = veth_pool_store, |
| 1583 | }; | 1583 | }; |
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index 583a21c1def3..0ed25f059a00 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
| @@ -688,7 +688,7 @@ static void igb_set_interrupt_capability(struct igb_adapter *adapter) | |||
| 688 | /* start with one vector for every rx queue */ | 688 | /* start with one vector for every rx queue */ |
| 689 | numvecs = adapter->num_rx_queues; | 689 | numvecs = adapter->num_rx_queues; |
| 690 | 690 | ||
| 691 | /* if tx handler is seperate add 1 for every tx queue */ | 691 | /* if tx handler is separate add 1 for every tx queue */ |
| 692 | if (!(adapter->flags & IGB_FLAG_QUEUE_PAIRS)) | 692 | if (!(adapter->flags & IGB_FLAG_QUEUE_PAIRS)) |
| 693 | numvecs += adapter->num_tx_queues; | 693 | numvecs += adapter->num_tx_queues; |
| 694 | 694 | ||
diff --git a/drivers/net/irda/sa1100_ir.c b/drivers/net/irda/sa1100_ir.c index c412e8026173..1dcdce0631aa 100644 --- a/drivers/net/irda/sa1100_ir.c +++ b/drivers/net/irda/sa1100_ir.c | |||
| @@ -331,7 +331,7 @@ static int sa1100_irda_resume(struct platform_device *pdev) | |||
| 331 | * If we missed a speed change, initialise at the new speed | 331 | * If we missed a speed change, initialise at the new speed |
| 332 | * directly. It is debatable whether this is actually | 332 | * directly. It is debatable whether this is actually |
| 333 | * required, but in the interests of continuing from where | 333 | * required, but in the interests of continuing from where |
| 334 | * we left off it is desireable. The converse argument is | 334 | * we left off it is desirable. The converse argument is |
| 335 | * that we should re-negotiate at 9600 baud again. | 335 | * that we should re-negotiate at 9600 baud again. |
| 336 | */ | 336 | */ |
| 337 | if (si->newspeed) { | 337 | if (si->newspeed) { |
diff --git a/drivers/net/iseries_veth.c b/drivers/net/iseries_veth.c index 966de5d69521..e6e972d9b7ca 100644 --- a/drivers/net/iseries_veth.c +++ b/drivers/net/iseries_veth.c | |||
| @@ -384,7 +384,7 @@ static struct attribute *veth_cnx_default_attrs[] = { | |||
| 384 | NULL | 384 | NULL |
| 385 | }; | 385 | }; |
| 386 | 386 | ||
| 387 | static struct sysfs_ops veth_cnx_sysfs_ops = { | 387 | static const struct sysfs_ops veth_cnx_sysfs_ops = { |
| 388 | .show = veth_cnx_attribute_show | 388 | .show = veth_cnx_attribute_show |
| 389 | }; | 389 | }; |
| 390 | 390 | ||
| @@ -441,7 +441,7 @@ static struct attribute *veth_port_default_attrs[] = { | |||
| 441 | NULL | 441 | NULL |
| 442 | }; | 442 | }; |
| 443 | 443 | ||
| 444 | static struct sysfs_ops veth_port_sysfs_ops = { | 444 | static const struct sysfs_ops veth_port_sysfs_ops = { |
| 445 | .show = veth_port_attribute_show | 445 | .show = veth_port_attribute_show |
| 446 | }; | 446 | }; |
| 447 | 447 | ||
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 45e3532b166f..684af371462d 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
| @@ -1050,7 +1050,7 @@ static void ixgbe_configure_msix(struct ixgbe_adapter *adapter) | |||
| 1050 | */ | 1050 | */ |
| 1051 | for (v_idx = 0; v_idx < q_vectors; v_idx++) { | 1051 | for (v_idx = 0; v_idx < q_vectors; v_idx++) { |
| 1052 | q_vector = adapter->q_vector[v_idx]; | 1052 | q_vector = adapter->q_vector[v_idx]; |
| 1053 | /* XXX for_each_bit(...) */ | 1053 | /* XXX for_each_set_bit(...) */ |
| 1054 | r_idx = find_first_bit(q_vector->rxr_idx, | 1054 | r_idx = find_first_bit(q_vector->rxr_idx, |
| 1055 | adapter->num_rx_queues); | 1055 | adapter->num_rx_queues); |
| 1056 | 1056 | ||
diff --git a/drivers/net/ixgbevf/ixgbevf_main.c b/drivers/net/ixgbevf/ixgbevf_main.c index 235b5fd4b8d4..ca653c49b765 100644 --- a/drivers/net/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ixgbevf/ixgbevf_main.c | |||
| @@ -751,7 +751,7 @@ static void ixgbevf_configure_msix(struct ixgbevf_adapter *adapter) | |||
| 751 | */ | 751 | */ |
| 752 | for (v_idx = 0; v_idx < q_vectors; v_idx++) { | 752 | for (v_idx = 0; v_idx < q_vectors; v_idx++) { |
| 753 | q_vector = adapter->q_vector[v_idx]; | 753 | q_vector = adapter->q_vector[v_idx]; |
| 754 | /* XXX for_each_bit(...) */ | 754 | /* XXX for_each_set_bit(...) */ |
| 755 | r_idx = find_first_bit(q_vector->rxr_idx, | 755 | r_idx = find_first_bit(q_vector->rxr_idx, |
| 756 | adapter->num_rx_queues); | 756 | adapter->num_rx_queues); |
| 757 | 757 | ||
diff --git a/drivers/net/ks8851.c b/drivers/net/ks8851.c index b5219cce12ed..0573e0bb4444 100644 --- a/drivers/net/ks8851.c +++ b/drivers/net/ks8851.c | |||
| @@ -407,7 +407,7 @@ static irqreturn_t ks8851_irq(int irq, void *pw) | |||
| 407 | * @buff: The buffer address | 407 | * @buff: The buffer address |
| 408 | * @len: The length of the data to read | 408 | * @len: The length of the data to read |
| 409 | * | 409 | * |
| 410 | * Issue an RXQ FIFO read command and read the @len ammount of data from | 410 | * Issue an RXQ FIFO read command and read the @len amount of data from |
| 411 | * the FIFO into the buffer specified by @buff. | 411 | * the FIFO into the buffer specified by @buff. |
| 412 | */ | 412 | */ |
| 413 | static void ks8851_rdfifo(struct ks8851_net *ks, u8 *buff, unsigned len) | 413 | static void ks8851_rdfifo(struct ks8851_net *ks, u8 *buff, unsigned len) |
diff --git a/drivers/net/qlge/qlge_ethtool.c b/drivers/net/qlge/qlge_ethtool.c index 05b8bde9980d..7dbff87480dc 100644 --- a/drivers/net/qlge/qlge_ethtool.c +++ b/drivers/net/qlge/qlge_ethtool.c | |||
| @@ -405,7 +405,7 @@ static int ql_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) | |||
| 405 | u32 wol = 0; | 405 | u32 wol = 0; |
| 406 | status = ql_mb_wol_mode(qdev, wol); | 406 | status = ql_mb_wol_mode(qdev, wol); |
| 407 | netif_err(qdev, drv, qdev->ndev, "WOL %s (wol code 0x%x)\n", | 407 | netif_err(qdev, drv, qdev->ndev, "WOL %s (wol code 0x%x)\n", |
| 408 | status == 0 ? "cleared sucessfully" : "clear failed", | 408 | status == 0 ? "cleared successfully" : "clear failed", |
| 409 | wol); | 409 | wol); |
| 410 | } | 410 | } |
| 411 | 411 | ||
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index c26ec5d740f6..fd34f266c0a8 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c | |||
| @@ -3855,7 +3855,7 @@ int ql_wol(struct ql_adapter *qdev) | |||
| 3855 | status = ql_mb_wol_mode(qdev, wol); | 3855 | status = ql_mb_wol_mode(qdev, wol); |
| 3856 | netif_err(qdev, drv, qdev->ndev, | 3856 | netif_err(qdev, drv, qdev->ndev, |
| 3857 | "WOL %s (wol code 0x%x) on %s\n", | 3857 | "WOL %s (wol code 0x%x) on %s\n", |
| 3858 | (status == 0) ? "Sucessfully set" : "Failed", | 3858 | (status == 0) ? "Successfully set" : "Failed", |
| 3859 | wol, qdev->ndev->name); | 3859 | wol, qdev->ndev->name); |
| 3860 | } | 3860 | } |
| 3861 | 3861 | ||
diff --git a/drivers/net/sfc/regs.h b/drivers/net/sfc/regs.h index 89d606fe9248..18a3be428348 100644 --- a/drivers/net/sfc/regs.h +++ b/drivers/net/sfc/regs.h | |||
| @@ -95,7 +95,7 @@ | |||
| 95 | #define FRF_AA_INT_ACK_KER_FIELD_LBN 0 | 95 | #define FRF_AA_INT_ACK_KER_FIELD_LBN 0 |
| 96 | #define FRF_AA_INT_ACK_KER_FIELD_WIDTH 32 | 96 | #define FRF_AA_INT_ACK_KER_FIELD_WIDTH 32 |
| 97 | 97 | ||
| 98 | /* INT_ISR0_REG: Function 0 Interrupt Acknowlege Status register */ | 98 | /* INT_ISR0_REG: Function 0 Interrupt Acknowledge Status register */ |
| 99 | #define FR_BZ_INT_ISR0 0x00000090 | 99 | #define FR_BZ_INT_ISR0 0x00000090 |
| 100 | #define FRF_BZ_INT_ISR_REG_LBN 0 | 100 | #define FRF_BZ_INT_ISR_REG_LBN 0 |
| 101 | #define FRF_BZ_INT_ISR_REG_WIDTH 64 | 101 | #define FRF_BZ_INT_ISR_REG_WIDTH 64 |
diff --git a/drivers/net/skfp/ess.c b/drivers/net/skfp/ess.c index a85efcfd9d0e..e8387d25f24a 100644 --- a/drivers/net/skfp/ess.c +++ b/drivers/net/skfp/ess.c | |||
| @@ -557,7 +557,7 @@ static void ess_send_alc_req(struct s_smc *smc) | |||
| 557 | 557 | ||
| 558 | /* | 558 | /* |
| 559 | * send never allocation request where the requested payload and | 559 | * send never allocation request where the requested payload and |
| 560 | * overhead is zero or deallocate bandwidht when no bandwidth is | 560 | * overhead is zero or deallocate bandwidth when no bandwidth is |
| 561 | * parsed | 561 | * parsed |
| 562 | */ | 562 | */ |
| 563 | if (!smc->mib.fddiESSPayload) { | 563 | if (!smc->mib.fddiESSPayload) { |
diff --git a/drivers/net/smsc9420.c b/drivers/net/smsc9420.c index 30110a11d737..34fa10d8ad40 100644 --- a/drivers/net/smsc9420.c +++ b/drivers/net/smsc9420.c | |||
| @@ -1347,7 +1347,7 @@ static int smsc9420_open(struct net_device *dev) | |||
| 1347 | 1347 | ||
| 1348 | netif_carrier_off(dev); | 1348 | netif_carrier_off(dev); |
| 1349 | 1349 | ||
| 1350 | /* disable, mask and acknowlege all interrupts */ | 1350 | /* disable, mask and acknowledge all interrupts */ |
| 1351 | spin_lock_irqsave(&pd->int_lock, flags); | 1351 | spin_lock_irqsave(&pd->int_lock, flags); |
| 1352 | int_cfg = smsc9420_reg_read(pd, INT_CFG) & (~INT_CFG_IRQ_EN_); | 1352 | int_cfg = smsc9420_reg_read(pd, INT_CFG) & (~INT_CFG_IRQ_EN_); |
| 1353 | smsc9420_reg_write(pd, INT_CFG, int_cfg); | 1353 | smsc9420_reg_write(pd, INT_CFG, int_cfg); |
diff --git a/drivers/net/spider_net.c b/drivers/net/spider_net.c index 2f8a8c32021e..5ba9d989f8fc 100644 --- a/drivers/net/spider_net.c +++ b/drivers/net/spider_net.c | |||
| @@ -474,7 +474,7 @@ spider_net_prepare_rx_descr(struct spider_net_card *card, | |||
| 474 | * spider_net_enable_rxchtails - sets RX dmac chain tail addresses | 474 | * spider_net_enable_rxchtails - sets RX dmac chain tail addresses |
| 475 | * @card: card structure | 475 | * @card: card structure |
| 476 | * | 476 | * |
| 477 | * spider_net_enable_rxchtails sets the RX DMAC chain tail adresses in the | 477 | * spider_net_enable_rxchtails sets the RX DMAC chain tail addresses in the |
| 478 | * chip by writing to the appropriate register. DMA is enabled in | 478 | * chip by writing to the appropriate register. DMA is enabled in |
| 479 | * spider_net_enable_rxdmac. | 479 | * spider_net_enable_rxdmac. |
| 480 | */ | 480 | */ |
| @@ -1820,7 +1820,7 @@ spider_net_enable_card(struct spider_net_card *card) | |||
| 1820 | 1820 | ||
| 1821 | spider_net_write_reg(card, SPIDER_NET_ECMODE, SPIDER_NET_ECMODE_VALUE); | 1821 | spider_net_write_reg(card, SPIDER_NET_ECMODE, SPIDER_NET_ECMODE_VALUE); |
| 1822 | 1822 | ||
| 1823 | /* set chain tail adress for RX chains and | 1823 | /* set chain tail address for RX chains and |
| 1824 | * enable DMA */ | 1824 | * enable DMA */ |
| 1825 | spider_net_enable_rxchtails(card); | 1825 | spider_net_enable_rxchtails(card); |
| 1826 | spider_net_enable_rxdmac(card); | 1826 | spider_net_enable_rxdmac(card); |
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c index 4344017bfaef..70196bc5fe61 100644 --- a/drivers/net/sungem.c +++ b/drivers/net/sungem.c | |||
| @@ -782,7 +782,7 @@ static int gem_rx(struct gem *gp, int work_to_do) | |||
| 782 | break; | 782 | break; |
| 783 | 783 | ||
| 784 | /* When writing back RX descriptor, GEM writes status | 784 | /* When writing back RX descriptor, GEM writes status |
| 785 | * then buffer address, possibly in seperate transactions. | 785 | * then buffer address, possibly in separate transactions. |
| 786 | * If we don't wait for the chip to write both, we could | 786 | * If we don't wait for the chip to write both, we could |
| 787 | * post a new buffer to this descriptor then have GEM spam | 787 | * post a new buffer to this descriptor then have GEM spam |
| 788 | * on the buffer address. We sync on the RX completion | 788 | * on the buffer address. We sync on the RX completion |
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c index 0c9780217c87..f5493092521a 100644 --- a/drivers/net/tehuti.c +++ b/drivers/net/tehuti.c | |||
| @@ -1851,7 +1851,7 @@ static void bdx_tx_push_desc(struct bdx_priv *priv, void *data, int size) | |||
| 1851 | * @data - desc's data | 1851 | * @data - desc's data |
| 1852 | * @size - desc's size | 1852 | * @size - desc's size |
| 1853 | * | 1853 | * |
| 1854 | * NOTE: this func does check for available space and, if neccessary, waits for | 1854 | * NOTE: this func does check for available space and, if necessary, waits for |
| 1855 | * NIC to read existing data before writing new one. | 1855 | * NIC to read existing data before writing new one. |
| 1856 | */ | 1856 | */ |
| 1857 | static void bdx_tx_push_desc_safe(struct bdx_priv *priv, void *data, int size) | 1857 | static void bdx_tx_push_desc_safe(struct bdx_priv *priv, void *data, int size) |
diff --git a/drivers/net/tokenring/tms380tr.c b/drivers/net/tokenring/tms380tr.c index 21a01753312a..ee71bcfb3753 100644 --- a/drivers/net/tokenring/tms380tr.c +++ b/drivers/net/tokenring/tms380tr.c | |||
| @@ -693,7 +693,7 @@ static netdev_tx_t tms380tr_hardware_send_packet(struct sk_buff *skb, | |||
| 693 | * NOTE: This function should be used whenever the status of any TPL must be | 693 | * NOTE: This function should be used whenever the status of any TPL must be |
| 694 | * modified by the driver, because the compiler may otherwise change the | 694 | * modified by the driver, because the compiler may otherwise change the |
| 695 | * order of instructions such that writing the TPL status may be executed at | 695 | * order of instructions such that writing the TPL status may be executed at |
| 696 | * an undesireable time. When this function is used, the status is always | 696 | * an undesirable time. When this function is used, the status is always |
| 697 | * written when the function is called. | 697 | * written when the function is called. |
| 698 | */ | 698 | */ |
| 699 | static void tms380tr_write_tpl_status(TPL *tpl, unsigned int Status) | 699 | static void tms380tr_write_tpl_status(TPL *tpl, unsigned int Status) |
| @@ -2264,7 +2264,7 @@ static void tms380tr_rcv_status_irq(struct net_device *dev) | |||
| 2264 | * This function should be used whenever the status of any RPL must be | 2264 | * This function should be used whenever the status of any RPL must be |
| 2265 | * modified by the driver, because the compiler may otherwise change the | 2265 | * modified by the driver, because the compiler may otherwise change the |
| 2266 | * order of instructions such that writing the RPL status may be executed | 2266 | * order of instructions such that writing the RPL status may be executed |
| 2267 | * at an undesireable time. When this function is used, the status is | 2267 | * at an undesirable time. When this function is used, the status is |
| 2268 | * always written when the function is called. | 2268 | * always written when the function is called. |
| 2269 | */ | 2269 | */ |
| 2270 | static void tms380tr_write_rpl_status(RPL *rpl, unsigned int Status) | 2270 | static void tms380tr_write_rpl_status(RPL *rpl, unsigned int Status) |
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index ce1efa4c0b0d..96c39bddc78c 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
| @@ -1437,7 +1437,7 @@ static int tun_chr_close(struct inode *inode, struct file *file) | |||
| 1437 | 1437 | ||
| 1438 | __tun_detach(tun); | 1438 | __tun_detach(tun); |
| 1439 | 1439 | ||
| 1440 | /* If desireable, unregister the netdevice. */ | 1440 | /* If desirable, unregister the netdevice. */ |
| 1441 | if (!(tun->flags & TUN_PERSIST)) { | 1441 | if (!(tun->flags & TUN_PERSIST)) { |
| 1442 | rtnl_lock(); | 1442 | rtnl_lock(); |
| 1443 | if (dev->reg_state == NETREG_REGISTERED) | 1443 | if (dev->reg_state == NETREG_REGISTERED) |
diff --git a/drivers/net/typhoon.c b/drivers/net/typhoon.c index 1cf012d3e072..cd24e5f2b2a2 100644 --- a/drivers/net/typhoon.c +++ b/drivers/net/typhoon.c | |||
| @@ -2098,7 +2098,7 @@ typhoon_tx_timeout(struct net_device *dev) | |||
| 2098 | 2098 | ||
| 2099 | if(typhoon_reset(tp->ioaddr, WaitNoSleep) < 0) { | 2099 | if(typhoon_reset(tp->ioaddr, WaitNoSleep) < 0) { |
| 2100 | netdev_warn(dev, "could not reset in tx timeout\n"); | 2100 | netdev_warn(dev, "could not reset in tx timeout\n"); |
| 2101 | goto truely_dead; | 2101 | goto truly_dead; |
| 2102 | } | 2102 | } |
| 2103 | 2103 | ||
| 2104 | /* If we ever start using the Hi ring, it will need cleaning too */ | 2104 | /* If we ever start using the Hi ring, it will need cleaning too */ |
| @@ -2107,13 +2107,13 @@ typhoon_tx_timeout(struct net_device *dev) | |||
| 2107 | 2107 | ||
| 2108 | if(typhoon_start_runtime(tp) < 0) { | 2108 | if(typhoon_start_runtime(tp) < 0) { |
| 2109 | netdev_err(dev, "could not start runtime in tx timeout\n"); | 2109 | netdev_err(dev, "could not start runtime in tx timeout\n"); |
| 2110 | goto truely_dead; | 2110 | goto truly_dead; |
| 2111 | } | 2111 | } |
| 2112 | 2112 | ||
| 2113 | netif_wake_queue(dev); | 2113 | netif_wake_queue(dev); |
| 2114 | return; | 2114 | return; |
| 2115 | 2115 | ||
| 2116 | truely_dead: | 2116 | truly_dead: |
| 2117 | /* Reset the hardware, and turn off carrier to avoid more timeouts */ | 2117 | /* Reset the hardware, and turn off carrier to avoid more timeouts */ |
| 2118 | typhoon_reset(tp->ioaddr, NoWait); | 2118 | typhoon_reset(tp->ioaddr, NoWait); |
| 2119 | netif_carrier_off(dev); | 2119 | netif_carrier_off(dev); |
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index 23a97518bc1f..1b0aef37e495 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c | |||
| @@ -430,7 +430,7 @@ static void hw_add_addr_in_hash(struct ucc_geth_private *ugeth, | |||
| 430 | ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); | 430 | ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); |
| 431 | 431 | ||
| 432 | /* Ethernet frames are defined in Little Endian mode, | 432 | /* Ethernet frames are defined in Little Endian mode, |
| 433 | therefor to insert */ | 433 | therefore to insert */ |
| 434 | /* the address to the hash (Big Endian mode), we reverse the bytes.*/ | 434 | /* the address to the hash (Big Endian mode), we reverse the bytes.*/ |
| 435 | 435 | ||
| 436 | set_mac_addr(&p_82xx_addr_filt->taddr.h, p_enet_addr); | 436 | set_mac_addr(&p_82xx_addr_filt->taddr.h, p_enet_addr); |
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index b36bf96eb502..f0bd70fb650c 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c | |||
| @@ -811,7 +811,7 @@ static ssize_t cosa_read(struct file *file, | |||
| 811 | cosa_enable_rx(chan); | 811 | cosa_enable_rx(chan); |
| 812 | spin_lock_irqsave(&cosa->lock, flags); | 812 | spin_lock_irqsave(&cosa->lock, flags); |
| 813 | add_wait_queue(&chan->rxwaitq, &wait); | 813 | add_wait_queue(&chan->rxwaitq, &wait); |
| 814 | while(!chan->rx_status) { | 814 | while (!chan->rx_status) { |
| 815 | current->state = TASK_INTERRUPTIBLE; | 815 | current->state = TASK_INTERRUPTIBLE; |
| 816 | spin_unlock_irqrestore(&cosa->lock, flags); | 816 | spin_unlock_irqrestore(&cosa->lock, flags); |
| 817 | schedule(); | 817 | schedule(); |
| @@ -896,7 +896,7 @@ static ssize_t cosa_write(struct file *file, | |||
| 896 | 896 | ||
| 897 | spin_lock_irqsave(&cosa->lock, flags); | 897 | spin_lock_irqsave(&cosa->lock, flags); |
| 898 | add_wait_queue(&chan->txwaitq, &wait); | 898 | add_wait_queue(&chan->txwaitq, &wait); |
| 899 | while(!chan->tx_status) { | 899 | while (!chan->tx_status) { |
| 900 | current->state = TASK_INTERRUPTIBLE; | 900 | current->state = TASK_INTERRUPTIBLE; |
| 901 | spin_unlock_irqrestore(&cosa->lock, flags); | 901 | spin_unlock_irqrestore(&cosa->lock, flags); |
| 902 | schedule(); | 902 | schedule(); |
| @@ -1153,7 +1153,7 @@ static int cosa_ioctl_common(struct cosa_data *cosa, | |||
| 1153 | struct channel_data *channel, unsigned int cmd, unsigned long arg) | 1153 | struct channel_data *channel, unsigned int cmd, unsigned long arg) |
| 1154 | { | 1154 | { |
| 1155 | void __user *argp = (void __user *)arg; | 1155 | void __user *argp = (void __user *)arg; |
| 1156 | switch(cmd) { | 1156 | switch (cmd) { |
| 1157 | case COSAIORSET: /* Reset the device */ | 1157 | case COSAIORSET: /* Reset the device */ |
| 1158 | if (!capable(CAP_NET_ADMIN)) | 1158 | if (!capable(CAP_NET_ADMIN)) |
| 1159 | return -EACCES; | 1159 | return -EACCES; |
| @@ -1704,7 +1704,7 @@ static inline void tx_interrupt(struct cosa_data *cosa, int status) | |||
| 1704 | spin_unlock_irqrestore(&cosa->lock, flags); | 1704 | spin_unlock_irqrestore(&cosa->lock, flags); |
| 1705 | return; | 1705 | return; |
| 1706 | } | 1706 | } |
| 1707 | while(1) { | 1707 | while (1) { |
| 1708 | cosa->txchan++; | 1708 | cosa->txchan++; |
| 1709 | i++; | 1709 | i++; |
| 1710 | if (cosa->txchan >= cosa->nchannels) | 1710 | if (cosa->txchan >= cosa->nchannels) |
| @@ -2010,7 +2010,7 @@ again: | |||
| 2010 | static void debug_status_in(struct cosa_data *cosa, int status) | 2010 | static void debug_status_in(struct cosa_data *cosa, int status) |
| 2011 | { | 2011 | { |
| 2012 | char *s; | 2012 | char *s; |
| 2013 | switch(status & SR_CMD_FROM_SRP_MASK) { | 2013 | switch (status & SR_CMD_FROM_SRP_MASK) { |
| 2014 | case SR_UP_REQUEST: | 2014 | case SR_UP_REQUEST: |
| 2015 | s = "RX_REQ"; | 2015 | s = "RX_REQ"; |
| 2016 | break; | 2016 | break; |
diff --git a/drivers/net/wan/hdlc_cisco.c b/drivers/net/wan/hdlc_cisco.c index f1bff98acd1f..1ceccf1ca6c7 100644 --- a/drivers/net/wan/hdlc_cisco.c +++ b/drivers/net/wan/hdlc_cisco.c | |||
| @@ -141,7 +141,7 @@ static __be16 cisco_type_trans(struct sk_buff *skb, struct net_device *dev) | |||
| 141 | data->address != CISCO_UNICAST) | 141 | data->address != CISCO_UNICAST) |
| 142 | return cpu_to_be16(ETH_P_HDLC); | 142 | return cpu_to_be16(ETH_P_HDLC); |
| 143 | 143 | ||
| 144 | switch(data->protocol) { | 144 | switch (data->protocol) { |
| 145 | case cpu_to_be16(ETH_P_IP): | 145 | case cpu_to_be16(ETH_P_IP): |
| 146 | case cpu_to_be16(ETH_P_IPX): | 146 | case cpu_to_be16(ETH_P_IPX): |
| 147 | case cpu_to_be16(ETH_P_IPV6): | 147 | case cpu_to_be16(ETH_P_IPV6): |
| @@ -190,7 +190,7 @@ static int cisco_rx(struct sk_buff *skb) | |||
| 190 | cisco_data = (struct cisco_packet*)(skb->data + sizeof | 190 | cisco_data = (struct cisco_packet*)(skb->data + sizeof |
| 191 | (struct hdlc_header)); | 191 | (struct hdlc_header)); |
| 192 | 192 | ||
| 193 | switch(ntohl (cisco_data->type)) { | 193 | switch (ntohl (cisco_data->type)) { |
| 194 | case CISCO_ADDR_REQ: /* Stolen from syncppp.c :-) */ | 194 | case CISCO_ADDR_REQ: /* Stolen from syncppp.c :-) */ |
| 195 | in_dev = dev->ip_ptr; | 195 | in_dev = dev->ip_ptr; |
| 196 | addr = 0; | 196 | addr = 0; |
| @@ -245,8 +245,8 @@ static int cisco_rx(struct sk_buff *skb) | |||
| 245 | 245 | ||
| 246 | dev_kfree_skb_any(skb); | 246 | dev_kfree_skb_any(skb); |
| 247 | return NET_RX_SUCCESS; | 247 | return NET_RX_SUCCESS; |
| 248 | } /* switch(keepalive type) */ | 248 | } /* switch (keepalive type) */ |
| 249 | } /* switch(protocol) */ | 249 | } /* switch (protocol) */ |
| 250 | 250 | ||
| 251 | printk(KERN_INFO "%s: Unsupported protocol %x\n", dev->name, | 251 | printk(KERN_INFO "%s: Unsupported protocol %x\n", dev->name, |
| 252 | ntohs(data->protocol)); | 252 | ntohs(data->protocol)); |
diff --git a/drivers/net/wan/hdlc_x25.c b/drivers/net/wan/hdlc_x25.c index aa9248f8eb1a..6e1ca256effd 100644 --- a/drivers/net/wan/hdlc_x25.c +++ b/drivers/net/wan/hdlc_x25.c | |||
| @@ -202,10 +202,10 @@ static int x25_ioctl(struct net_device *dev, struct ifreq *ifr) | |||
| 202 | return 0; /* return protocol only, no settable parameters */ | 202 | return 0; /* return protocol only, no settable parameters */ |
| 203 | 203 | ||
| 204 | case IF_PROTO_X25: | 204 | case IF_PROTO_X25: |
| 205 | if(!capable(CAP_NET_ADMIN)) | 205 | if (!capable(CAP_NET_ADMIN)) |
| 206 | return -EPERM; | 206 | return -EPERM; |
| 207 | 207 | ||
| 208 | if(dev->flags & IFF_UP) | 208 | if (dev->flags & IFF_UP) |
| 209 | return -EBUSY; | 209 | return -EBUSY; |
| 210 | 210 | ||
| 211 | result=hdlc->attach(dev, ENCODING_NRZ,PARITY_CRC16_PR1_CCITT); | 211 | result=hdlc->attach(dev, ENCODING_NRZ,PARITY_CRC16_PR1_CCITT); |
diff --git a/drivers/net/wimax/i2400m/fw.c b/drivers/net/wimax/i2400m/fw.c index e803a7dc6502..25c24f0368d8 100644 --- a/drivers/net/wimax/i2400m/fw.c +++ b/drivers/net/wimax/i2400m/fw.c | |||
| @@ -612,7 +612,7 @@ ssize_t i2400m_bm_cmd(struct i2400m *i2400m, | |||
| 612 | goto error_wait_for_ack; | 612 | goto error_wait_for_ack; |
| 613 | } | 613 | } |
| 614 | rx_bytes = result; | 614 | rx_bytes = result; |
| 615 | /* verify the ack and read more if neccessary [result is the | 615 | /* verify the ack and read more if necessary [result is the |
| 616 | * final amount of bytes we get in the ack] */ | 616 | * final amount of bytes we get in the ack] */ |
| 617 | result = __i2400m_bm_ack_verify(i2400m, opcode, ack, ack_size, flags); | 617 | result = __i2400m_bm_ack_verify(i2400m, opcode, ack, ack_size, flags); |
| 618 | if (result < 0) | 618 | if (result < 0) |
diff --git a/drivers/net/wimax/i2400m/i2400m.h b/drivers/net/wimax/i2400m/i2400m.h index 04df9bbe340f..820b128705ec 100644 --- a/drivers/net/wimax/i2400m/i2400m.h +++ b/drivers/net/wimax/i2400m/i2400m.h | |||
| @@ -627,7 +627,7 @@ enum i2400m_bm_cmd_flags { | |||
| 627 | * @I2400M_BRI_NO_REBOOT: Do not reboot the device and proceed | 627 | * @I2400M_BRI_NO_REBOOT: Do not reboot the device and proceed |
| 628 | * directly to wait for a reboot barker from the device. | 628 | * directly to wait for a reboot barker from the device. |
| 629 | * @I2400M_BRI_MAC_REINIT: We need to reinitialize the boot | 629 | * @I2400M_BRI_MAC_REINIT: We need to reinitialize the boot |
| 630 | * rom after reading the MAC adress. This is quite a dirty hack, | 630 | * rom after reading the MAC address. This is quite a dirty hack, |
| 631 | * if you ask me -- the device requires the bootrom to be | 631 | * if you ask me -- the device requires the bootrom to be |
| 632 | * intialized after reading the MAC address. | 632 | * intialized after reading the MAC address. |
| 633 | */ | 633 | */ |
diff --git a/drivers/net/wimax/i2400m/sdio.c b/drivers/net/wimax/i2400m/sdio.c index 76a50ac02ebb..14f876b1358b 100644 --- a/drivers/net/wimax/i2400m/sdio.c +++ b/drivers/net/wimax/i2400m/sdio.c | |||
| @@ -304,7 +304,7 @@ error_kzalloc: | |||
| 304 | * | 304 | * |
| 305 | * The device will be fully reset internally, but won't be | 305 | * The device will be fully reset internally, but won't be |
| 306 | * disconnected from the bus (so no reenumeration will | 306 | * disconnected from the bus (so no reenumeration will |
| 307 | * happen). Firmware upload will be neccessary. | 307 | * happen). Firmware upload will be necessary. |
| 308 | * | 308 | * |
| 309 | * The device will send a reboot barker that will trigger the driver | 309 | * The device will send a reboot barker that will trigger the driver |
| 310 | * to reinitialize the state via __i2400m_dev_reset_handle. | 310 | * to reinitialize the state via __i2400m_dev_reset_handle. |
| @@ -314,7 +314,7 @@ error_kzalloc: | |||
| 314 | * | 314 | * |
| 315 | * The device will be fully reset internally, disconnected from the | 315 | * The device will be fully reset internally, disconnected from the |
| 316 | * bus an a reenumeration will happen. Firmware upload will be | 316 | * bus an a reenumeration will happen. Firmware upload will be |
| 317 | * neccessary. Thus, we don't do any locking or struct | 317 | * necessary. Thus, we don't do any locking or struct |
| 318 | * reinitialization, as we are going to be fully disconnected and | 318 | * reinitialization, as we are going to be fully disconnected and |
| 319 | * reenumerated. | 319 | * reenumerated. |
| 320 | * | 320 | * |
diff --git a/drivers/net/wimax/i2400m/usb.c b/drivers/net/wimax/i2400m/usb.c index 98f4f8c5fb68..99f04c475898 100644 --- a/drivers/net/wimax/i2400m/usb.c +++ b/drivers/net/wimax/i2400m/usb.c | |||
| @@ -246,7 +246,7 @@ error_kzalloc: | |||
| 246 | * | 246 | * |
| 247 | * The device will be fully reset internally, but won't be | 247 | * The device will be fully reset internally, but won't be |
| 248 | * disconnected from the USB bus (so no reenumeration will | 248 | * disconnected from the USB bus (so no reenumeration will |
| 249 | * happen). Firmware upload will be neccessary. | 249 | * happen). Firmware upload will be necessary. |
| 250 | * | 250 | * |
| 251 | * The device will send a reboot barker in the notification endpoint | 251 | * The device will send a reboot barker in the notification endpoint |
| 252 | * that will trigger the driver to reinitialize the state | 252 | * that will trigger the driver to reinitialize the state |
| @@ -257,7 +257,7 @@ error_kzalloc: | |||
| 257 | * | 257 | * |
| 258 | * The device will be fully reset internally, disconnected from the | 258 | * The device will be fully reset internally, disconnected from the |
| 259 | * USB bus an a reenumeration will happen. Firmware upload will be | 259 | * USB bus an a reenumeration will happen. Firmware upload will be |
| 260 | * neccessary. Thus, we don't do any locking or struct | 260 | * necessary. Thus, we don't do any locking or struct |
| 261 | * reinitialization, as we are going to be fully disconnected and | 261 | * reinitialization, as we are going to be fully disconnected and |
| 262 | * reenumerated. | 262 | * reenumerated. |
| 263 | * | 263 | * |
diff --git a/drivers/net/wireless/ath/ar9170/main.c b/drivers/net/wireless/ath/ar9170/main.c index f4650fcdebc9..257c734733d1 100644 --- a/drivers/net/wireless/ath/ar9170/main.c +++ b/drivers/net/wireless/ath/ar9170/main.c | |||
| @@ -394,7 +394,7 @@ static void ar9170_tx_fake_ampdu_status(struct ar9170 *ar) | |||
| 394 | ieee80211_tx_status_irqsafe(ar->hw, skb); | 394 | ieee80211_tx_status_irqsafe(ar->hw, skb); |
| 395 | } | 395 | } |
| 396 | 396 | ||
| 397 | for_each_bit(i, &queue_bitmap, BITS_PER_BYTE) { | 397 | for_each_set_bit(i, &queue_bitmap, BITS_PER_BYTE) { |
| 398 | #ifdef AR9170_QUEUE_STOP_DEBUG | 398 | #ifdef AR9170_QUEUE_STOP_DEBUG |
| 399 | printk(KERN_DEBUG "%s: wake queue %d\n", | 399 | printk(KERN_DEBUG "%s: wake queue %d\n", |
| 400 | wiphy_name(ar->hw->wiphy), i); | 400 | wiphy_name(ar->hw->wiphy), i); |
| @@ -2512,7 +2512,7 @@ void *ar9170_alloc(size_t priv_size) | |||
| 2512 | /* | 2512 | /* |
| 2513 | * this buffer is used for rx stream reconstruction. | 2513 | * this buffer is used for rx stream reconstruction. |
| 2514 | * Under heavy load this device (or the transport layer?) | 2514 | * Under heavy load this device (or the transport layer?) |
| 2515 | * tends to split the streams into seperate rx descriptors. | 2515 | * tends to split the streams into separate rx descriptors. |
| 2516 | */ | 2516 | */ |
| 2517 | 2517 | ||
| 2518 | skb = __dev_alloc_skb(AR9170_MAX_RX_BUFFER_SIZE, GFP_KERNEL); | 2518 | skb = __dev_alloc_skb(AR9170_MAX_RX_BUFFER_SIZE, GFP_KERNEL); |
diff --git a/drivers/net/wireless/iwmc3200wifi/debugfs.c b/drivers/net/wireless/iwmc3200wifi/debugfs.c index be992ca41cf1..c29c994de0e2 100644 --- a/drivers/net/wireless/iwmc3200wifi/debugfs.c +++ b/drivers/net/wireless/iwmc3200wifi/debugfs.c | |||
| @@ -89,7 +89,7 @@ static int iwm_debugfs_dbg_modules_write(void *data, u64 val) | |||
| 89 | for (i = 0; i < __IWM_DM_NR; i++) | 89 | for (i = 0; i < __IWM_DM_NR; i++) |
| 90 | iwm->dbg.dbg_module[i] = 0; | 90 | iwm->dbg.dbg_module[i] = 0; |
| 91 | 91 | ||
| 92 | for_each_bit(bit, &iwm->dbg.dbg_modules, __IWM_DM_NR) | 92 | for_each_set_bit(bit, &iwm->dbg.dbg_modules, __IWM_DM_NR) |
| 93 | iwm->dbg.dbg_module[bit] = iwm->dbg.dbg_level; | 93 | iwm->dbg.dbg_module[bit] = iwm->dbg.dbg_level; |
| 94 | 94 | ||
| 95 | return 0; | 95 | return 0; |
diff --git a/drivers/net/wireless/iwmc3200wifi/lmac.h b/drivers/net/wireless/iwmc3200wifi/lmac.h index a3a79b5e2898..a855a99e49b8 100644 --- a/drivers/net/wireless/iwmc3200wifi/lmac.h +++ b/drivers/net/wireless/iwmc3200wifi/lmac.h | |||
| @@ -262,7 +262,7 @@ struct iwm_ct_kill_cfg_cmd { | |||
| 262 | 262 | ||
| 263 | /* Power Management */ | 263 | /* Power Management */ |
| 264 | #define POWER_TABLE_CMD 0x77 | 264 | #define POWER_TABLE_CMD 0x77 |
| 265 | #define SAVE_RESTORE_ADRESS_CMD 0x78 | 265 | #define SAVE_RESTORE_ADDRESS_CMD 0x78 |
| 266 | #define REPLY_WATERMARK_CMD 0x79 | 266 | #define REPLY_WATERMARK_CMD 0x79 |
| 267 | #define PM_DEBUG_STATISTIC_NOTIFIC 0x7B | 267 | #define PM_DEBUG_STATISTIC_NOTIFIC 0x7B |
| 268 | #define PD_FLUSH_N_NOTIFICATION 0x7C | 268 | #define PD_FLUSH_N_NOTIFICATION 0x7C |
diff --git a/drivers/net/wireless/iwmc3200wifi/rx.c b/drivers/net/wireless/iwmc3200wifi/rx.c index ad8f7eabb5aa..8456b4dbd146 100644 --- a/drivers/net/wireless/iwmc3200wifi/rx.c +++ b/drivers/net/wireless/iwmc3200wifi/rx.c | |||
| @@ -1116,7 +1116,7 @@ static int iwm_ntf_stop_resume_tx(struct iwm_priv *iwm, u8 *buf, | |||
| 1116 | return -EINVAL; | 1116 | return -EINVAL; |
| 1117 | } | 1117 | } |
| 1118 | 1118 | ||
| 1119 | for_each_bit(bit, (unsigned long *)&tid_msk, IWM_UMAC_TID_NR) { | 1119 | for_each_set_bit(bit, (unsigned long *)&tid_msk, IWM_UMAC_TID_NR) { |
| 1120 | tid_info = &sta_info->tid_info[bit]; | 1120 | tid_info = &sta_info->tid_info[bit]; |
| 1121 | 1121 | ||
| 1122 | mutex_lock(&tid_info->mutex); | 1122 | mutex_lock(&tid_info->mutex); |
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index ee34c137e7cd..9b04964deced 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
| @@ -368,7 +368,7 @@ static int rt2500usb_config_key(struct rt2x00_dev *rt2x00dev, | |||
| 368 | 368 | ||
| 369 | /* | 369 | /* |
| 370 | * The encryption key doesn't fit within the CSR cache, | 370 | * The encryption key doesn't fit within the CSR cache, |
| 371 | * this means we should allocate it seperately and use | 371 | * this means we should allocate it separately and use |
| 372 | * rt2x00usb_vendor_request() to send the key to the hardware. | 372 | * rt2x00usb_vendor_request() to send the key to the hardware. |
| 373 | */ | 373 | */ |
| 374 | reg = KEY_ENTRY(key->hw_key_idx); | 374 | reg = KEY_ENTRY(key->hw_key_idx); |
| @@ -382,7 +382,7 @@ static int rt2500usb_config_key(struct rt2x00_dev *rt2x00dev, | |||
| 382 | /* | 382 | /* |
| 383 | * The driver does not support the IV/EIV generation | 383 | * The driver does not support the IV/EIV generation |
| 384 | * in hardware. However it demands the data to be provided | 384 | * in hardware. However it demands the data to be provided |
| 385 | * both seperately as well as inside the frame. | 385 | * both separately as well as inside the frame. |
| 386 | * We already provided the CONFIG_CRYPTO_COPY_IV to rt2x00lib | 386 | * We already provided the CONFIG_CRYPTO_COPY_IV to rt2x00lib |
| 387 | * to ensure rt2x00lib will not strip the data from the | 387 | * to ensure rt2x00lib will not strip the data from the |
| 388 | * frame after the copy, now we must tell mac80211 | 388 | * frame after the copy, now we must tell mac80211 |
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 5e4ee2023fcf..d27d7d5d850c 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
| @@ -99,7 +99,7 @@ static int rt2800usb_check_firmware(struct rt2x00_dev *rt2x00dev, | |||
| 99 | * There are 2 variations of the rt2870 firmware. | 99 | * There are 2 variations of the rt2870 firmware. |
| 100 | * a) size: 4kb | 100 | * a) size: 4kb |
| 101 | * b) size: 8kb | 101 | * b) size: 8kb |
| 102 | * Note that (b) contains 2 seperate firmware blobs of 4k | 102 | * Note that (b) contains 2 separate firmware blobs of 4k |
| 103 | * within the file. The first blob is the same firmware as (a), | 103 | * within the file. The first blob is the same firmware as (a), |
| 104 | * but the second blob is for the additional chipsets. | 104 | * but the second blob is for the additional chipsets. |
| 105 | */ | 105 | */ |
| @@ -117,7 +117,7 @@ static int rt2800usb_check_firmware(struct rt2x00_dev *rt2x00dev, | |||
| 117 | 117 | ||
| 118 | /* | 118 | /* |
| 119 | * 8kb firmware files must be checked as if it were | 119 | * 8kb firmware files must be checked as if it were |
| 120 | * 2 seperate firmware files. | 120 | * 2 separate firmware files. |
| 121 | */ | 121 | */ |
| 122 | while (offset < len) { | 122 | while (offset < len) { |
| 123 | if (!rt2800usb_check_crc(data + offset, 4096)) | 123 | if (!rt2800usb_check_crc(data + offset, 4096)) |
diff --git a/drivers/net/wireless/rt2x00/rt2x00debug.c b/drivers/net/wireless/rt2x00/rt2x00debug.c index 70c04c282efc..28a1c46ec4eb 100644 --- a/drivers/net/wireless/rt2x00/rt2x00debug.c +++ b/drivers/net/wireless/rt2x00/rt2x00debug.c | |||
| @@ -109,7 +109,7 @@ struct rt2x00debug_intf { | |||
| 109 | 109 | ||
| 110 | /* | 110 | /* |
| 111 | * HW crypto statistics. | 111 | * HW crypto statistics. |
| 112 | * All statistics are stored seperately per cipher type. | 112 | * All statistics are stored separately per cipher type. |
| 113 | */ | 113 | */ |
| 114 | struct rt2x00debug_crypto crypto_stats[CIPHER_MAX]; | 114 | struct rt2x00debug_crypto crypto_stats[CIPHER_MAX]; |
| 115 | 115 | ||
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index b93731b79903..dd5ab8fe2321 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
| @@ -394,7 +394,7 @@ void rt2x00lib_rxdone(struct rt2x00_dev *rt2x00dev, | |||
| 394 | /* | 394 | /* |
| 395 | * Hardware might have stripped the IV/EIV/ICV data, | 395 | * Hardware might have stripped the IV/EIV/ICV data, |
| 396 | * in that case it is possible that the data was | 396 | * in that case it is possible that the data was |
| 397 | * provided seperately (through hardware descriptor) | 397 | * provided separately (through hardware descriptor) |
| 398 | * in which case we should reinsert the data into the frame. | 398 | * in which case we should reinsert the data into the frame. |
| 399 | */ | 399 | */ |
| 400 | if ((rxdesc.dev_flags & RXDONE_CRYPTO_IV) && | 400 | if ((rxdesc.dev_flags & RXDONE_CRYPTO_IV) && |
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index 0b4801a14601..5b6b789cad3d 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c | |||
| @@ -497,7 +497,7 @@ int rt2x00queue_write_tx_frame(struct data_queue *queue, struct sk_buff *skb, | |||
| 497 | /* | 497 | /* |
| 498 | * When hardware encryption is supported, and this frame | 498 | * When hardware encryption is supported, and this frame |
| 499 | * is to be encrypted, we should strip the IV/EIV data from | 499 | * is to be encrypted, we should strip the IV/EIV data from |
| 500 | * the frame so we can provide it to the driver seperately. | 500 | * the frame so we can provide it to the driver separately. |
| 501 | */ | 501 | */ |
| 502 | if (test_bit(ENTRY_TXD_ENCRYPT, &txdesc.flags) && | 502 | if (test_bit(ENTRY_TXD_ENCRYPT, &txdesc.flags) && |
| 503 | !test_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc.flags)) { | 503 | !test_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc.flags)) { |
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index e2da928dd9f0..177472742172 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
| @@ -476,7 +476,7 @@ static int rt61pci_config_pairwise_key(struct rt2x00_dev *rt2x00dev, | |||
| 476 | * The driver does not support the IV/EIV generation | 476 | * The driver does not support the IV/EIV generation |
| 477 | * in hardware. However it doesn't support the IV/EIV | 477 | * in hardware. However it doesn't support the IV/EIV |
| 478 | * inside the ieee80211 frame either, but requires it | 478 | * inside the ieee80211 frame either, but requires it |
| 479 | * to be provided seperately for the descriptor. | 479 | * to be provided separately for the descriptor. |
| 480 | * rt2x00lib will cut the IV/EIV data out of all frames | 480 | * rt2x00lib will cut the IV/EIV data out of all frames |
| 481 | * given to us by mac80211, but we must tell mac80211 | 481 | * given to us by mac80211, but we must tell mac80211 |
| 482 | * to generate the IV/EIV data. | 482 | * to generate the IV/EIV data. |
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 47f3e4a26d77..290d70bc5d22 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
| @@ -339,7 +339,7 @@ static int rt73usb_config_shared_key(struct rt2x00_dev *rt2x00dev, | |||
| 339 | * The driver does not support the IV/EIV generation | 339 | * The driver does not support the IV/EIV generation |
| 340 | * in hardware. However it doesn't support the IV/EIV | 340 | * in hardware. However it doesn't support the IV/EIV |
| 341 | * inside the ieee80211 frame either, but requires it | 341 | * inside the ieee80211 frame either, but requires it |
| 342 | * to be provided seperately for the descriptor. | 342 | * to be provided separately for the descriptor. |
| 343 | * rt2x00lib will cut the IV/EIV data out of all frames | 343 | * rt2x00lib will cut the IV/EIV data out of all frames |
| 344 | * given to us by mac80211, but we must tell mac80211 | 344 | * given to us by mac80211, but we must tell mac80211 |
| 345 | * to generate the IV/EIV data. | 345 | * to generate the IV/EIV data. |
| @@ -439,7 +439,7 @@ static int rt73usb_config_pairwise_key(struct rt2x00_dev *rt2x00dev, | |||
| 439 | * The driver does not support the IV/EIV generation | 439 | * The driver does not support the IV/EIV generation |
| 440 | * in hardware. However it doesn't support the IV/EIV | 440 | * in hardware. However it doesn't support the IV/EIV |
| 441 | * inside the ieee80211 frame either, but requires it | 441 | * inside the ieee80211 frame either, but requires it |
| 442 | * to be provided seperately for the descriptor. | 442 | * to be provided separately for the descriptor. |
| 443 | * rt2x00lib will cut the IV/EIV data out of all frames | 443 | * rt2x00lib will cut the IV/EIV data out of all frames |
| 444 | * given to us by mac80211, but we must tell mac80211 | 444 | * given to us by mac80211, but we must tell mac80211 |
| 445 | * to generate the IV/EIV data. | 445 | * to generate the IV/EIV data. |
| @@ -1661,7 +1661,7 @@ static void rt73usb_fill_rxdone(struct queue_entry *entry, | |||
| 1661 | 1661 | ||
| 1662 | /* | 1662 | /* |
| 1663 | * Hardware has stripped IV/EIV data from 802.11 frame during | 1663 | * Hardware has stripped IV/EIV data from 802.11 frame during |
| 1664 | * decryption. It has provided the data seperately but rt2x00lib | 1664 | * decryption. It has provided the data separately but rt2x00lib |
| 1665 | * should decide if it should be reinserted. | 1665 | * should decide if it should be reinserted. |
| 1666 | */ | 1666 | */ |
| 1667 | rxdesc->flags |= RX_FLAG_IV_STRIPPED; | 1667 | rxdesc->flags |= RX_FLAG_IV_STRIPPED; |
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c index e24099613d91..00e09e26c826 100644 --- a/drivers/net/wireless/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zd1211rw/zd_mac.c | |||
| @@ -374,7 +374,7 @@ static void zd_mac_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
| 374 | * zd_mac_tx_failed - callback for failed frames | 374 | * zd_mac_tx_failed - callback for failed frames |
| 375 | * @dev: the mac80211 wireless device | 375 | * @dev: the mac80211 wireless device |
| 376 | * | 376 | * |
| 377 | * This function is called if a frame couldn't be successfully be | 377 | * This function is called if a frame couldn't be successfully |
| 378 | * transferred. The first frame from the tx queue, will be selected and | 378 | * transferred. The first frame from the tx queue, will be selected and |
| 379 | * reported as error to the upper layers. | 379 | * reported as error to the upper layers. |
| 380 | */ | 380 | */ |
