diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-20 16:43:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-20 16:43:21 -0400 |
commit | 06f4e926d256d902dd9a53dcb400fd74974ce087 (patch) | |
tree | 0b438b67f5f0eff6fd617bc497a9dace6164a488 /drivers/atm | |
parent | 8e7bfcbab3825d1b404d615cb1b54f44ff81f981 (diff) | |
parent | d93515611bbc70c2fe4db232e5feb448ed8e4cc9 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1446 commits)
macvlan: fix panic if lowerdev in a bond
tg3: Add braces around 5906 workaround.
tg3: Fix NETIF_F_LOOPBACK error
macvlan: remove one synchronize_rcu() call
networking: NET_CLS_ROUTE4 depends on INET
irda: Fix error propagation in ircomm_lmp_connect_response()
irda: Kill set but unused variable 'bytes' in irlan_check_command_param()
irda: Kill set but unused variable 'clen' in ircomm_connect_indication()
rxrpc: Fix set but unused variable 'usage' in rxrpc_get_transport()
be2net: Kill set but unused variable 'req' in lancer_fw_download()
irda: Kill set but unused vars 'saddr' and 'daddr' in irlan_provider_connect_indication()
atl1c: atl1c_resume() is only used when CONFIG_PM_SLEEP is defined.
rxrpc: Fix set but unused variable 'usage' in rxrpc_get_peer().
rxrpc: Kill set but unused variable 'local' in rxrpc_UDP_error_handler()
rxrpc: Kill set but unused variable 'sp' in rxrpc_process_connection()
rxrpc: Kill set but unused variable 'sp' in rxrpc_rotate_tx_window()
pkt_sched: Kill set but unused variable 'protocol' in tc_classify()
isdn: capi: Use pr_debug() instead of ifdefs.
tg3: Update version to 3.119
tg3: Apply rx_discards fix to 5719/5720
...
Fix up trivial conflicts in arch/x86/Kconfig and net/mac80211/agg-tx.c
as per Davem.
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/eni.c | 5 | ||||
-rw-r--r-- | drivers/atm/he.c | 4 | ||||
-rw-r--r-- | drivers/atm/idt77252.c | 52 | ||||
-rw-r--r-- | drivers/atm/iphase.c | 14 | ||||
-rw-r--r-- | drivers/atm/solos-pci.c | 3 |
5 files changed, 10 insertions, 68 deletions
diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c index c495fae74200..3230ea0df83c 100644 --- a/drivers/atm/eni.c +++ b/drivers/atm/eni.c | |||
@@ -1469,10 +1469,7 @@ if (eni_boards) printk(KERN_INFO "loss: %ld\n",ENI_DEV(eni_boards)->lost); | |||
1469 | 1469 | ||
1470 | static void bug_int(struct atm_dev *dev,unsigned long reason) | 1470 | static void bug_int(struct atm_dev *dev,unsigned long reason) |
1471 | { | 1471 | { |
1472 | struct eni_dev *eni_dev; | ||
1473 | |||
1474 | DPRINTK(">bug_int\n"); | 1472 | DPRINTK(">bug_int\n"); |
1475 | eni_dev = ENI_DEV(dev); | ||
1476 | if (reason & MID_DMA_ERR_ACK) | 1473 | if (reason & MID_DMA_ERR_ACK) |
1477 | printk(KERN_CRIT DEV_LABEL "(itf %d): driver error - DMA " | 1474 | printk(KERN_CRIT DEV_LABEL "(itf %d): driver error - DMA " |
1478 | "error\n",dev->number); | 1475 | "error\n",dev->number); |
@@ -1900,7 +1897,6 @@ static void eni_close(struct atm_vcc *vcc) | |||
1900 | 1897 | ||
1901 | static int eni_open(struct atm_vcc *vcc) | 1898 | static int eni_open(struct atm_vcc *vcc) |
1902 | { | 1899 | { |
1903 | struct eni_dev *eni_dev; | ||
1904 | struct eni_vcc *eni_vcc; | 1900 | struct eni_vcc *eni_vcc; |
1905 | int error; | 1901 | int error; |
1906 | short vpi = vcc->vpi; | 1902 | short vpi = vcc->vpi; |
@@ -1910,7 +1906,6 @@ static int eni_open(struct atm_vcc *vcc) | |||
1910 | EVENT("eni_open\n",0,0); | 1906 | EVENT("eni_open\n",0,0); |
1911 | if (!test_bit(ATM_VF_PARTIAL,&vcc->flags)) | 1907 | if (!test_bit(ATM_VF_PARTIAL,&vcc->flags)) |
1912 | vcc->dev_data = NULL; | 1908 | vcc->dev_data = NULL; |
1913 | eni_dev = ENI_DEV(vcc->dev); | ||
1914 | if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC) | 1909 | if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC) |
1915 | set_bit(ATM_VF_ADDR,&vcc->flags); | 1910 | set_bit(ATM_VF_ADDR,&vcc->flags); |
1916 | if (vcc->qos.aal != ATM_AAL0 && vcc->qos.aal != ATM_AAL5) | 1911 | if (vcc->qos.aal != ATM_AAL0 && vcc->qos.aal != ATM_AAL5) |
diff --git a/drivers/atm/he.c b/drivers/atm/he.c index 6cf59bf281dc..9a51df4f5b74 100644 --- a/drivers/atm/he.c +++ b/drivers/atm/he.c | |||
@@ -1801,7 +1801,7 @@ return_host_buffers: | |||
1801 | next_rbrq_entry: | 1801 | next_rbrq_entry: |
1802 | he_dev->rbrq_head = (struct he_rbrq *) | 1802 | he_dev->rbrq_head = (struct he_rbrq *) |
1803 | ((unsigned long) he_dev->rbrq_base | | 1803 | ((unsigned long) he_dev->rbrq_base | |
1804 | RBRQ_MASK(++he_dev->rbrq_head)); | 1804 | RBRQ_MASK(he_dev->rbrq_head + 1)); |
1805 | 1805 | ||
1806 | } | 1806 | } |
1807 | read_unlock(&vcc_sklist_lock); | 1807 | read_unlock(&vcc_sklist_lock); |
@@ -1884,7 +1884,7 @@ next_tbrq_entry: | |||
1884 | pci_pool_free(he_dev->tpd_pool, tpd, TPD_ADDR(tpd->status)); | 1884 | pci_pool_free(he_dev->tpd_pool, tpd, TPD_ADDR(tpd->status)); |
1885 | he_dev->tbrq_head = (struct he_tbrq *) | 1885 | he_dev->tbrq_head = (struct he_tbrq *) |
1886 | ((unsigned long) he_dev->tbrq_base | | 1886 | ((unsigned long) he_dev->tbrq_base | |
1887 | TBRQ_MASK(++he_dev->tbrq_head)); | 1887 | TBRQ_MASK(he_dev->tbrq_head + 1)); |
1888 | } | 1888 | } |
1889 | 1889 | ||
1890 | if (updated) { | 1890 | if (updated) { |
diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c index 048f99fe6f83..1f8d724a18bf 100644 --- a/drivers/atm/idt77252.c +++ b/drivers/atm/idt77252.c | |||
@@ -1261,14 +1261,13 @@ idt77252_rx_raw(struct idt77252_dev *card) | |||
1261 | PCI_DMA_FROMDEVICE); | 1261 | PCI_DMA_FROMDEVICE); |
1262 | 1262 | ||
1263 | while (head != tail) { | 1263 | while (head != tail) { |
1264 | unsigned int vpi, vci, pti; | 1264 | unsigned int vpi, vci; |
1265 | u32 header; | 1265 | u32 header; |
1266 | 1266 | ||
1267 | header = le32_to_cpu(*(u32 *) &queue->data[0]); | 1267 | header = le32_to_cpu(*(u32 *) &queue->data[0]); |
1268 | 1268 | ||
1269 | vpi = (header & ATM_HDR_VPI_MASK) >> ATM_HDR_VPI_SHIFT; | 1269 | vpi = (header & ATM_HDR_VPI_MASK) >> ATM_HDR_VPI_SHIFT; |
1270 | vci = (header & ATM_HDR_VCI_MASK) >> ATM_HDR_VCI_SHIFT; | 1270 | vci = (header & ATM_HDR_VCI_MASK) >> ATM_HDR_VCI_SHIFT; |
1271 | pti = (header & ATM_HDR_PTI_MASK) >> ATM_HDR_PTI_SHIFT; | ||
1272 | 1271 | ||
1273 | #ifdef CONFIG_ATM_IDT77252_DEBUG | 1272 | #ifdef CONFIG_ATM_IDT77252_DEBUG |
1274 | if (debug & DBG_RAW_CELL) { | 1273 | if (debug & DBG_RAW_CELL) { |
@@ -2709,53 +2708,10 @@ idt77252_proc_read(struct atm_dev *dev, loff_t * pos, char *page) | |||
2709 | static void | 2708 | static void |
2710 | idt77252_collect_stat(struct idt77252_dev *card) | 2709 | idt77252_collect_stat(struct idt77252_dev *card) |
2711 | { | 2710 | { |
2712 | u32 cdc, vpec, icc; | 2711 | (void) readl(SAR_REG_CDC); |
2712 | (void) readl(SAR_REG_VPEC); | ||
2713 | (void) readl(SAR_REG_ICC); | ||
2713 | 2714 | ||
2714 | cdc = readl(SAR_REG_CDC); | ||
2715 | vpec = readl(SAR_REG_VPEC); | ||
2716 | icc = readl(SAR_REG_ICC); | ||
2717 | |||
2718 | #ifdef NOTDEF | ||
2719 | printk("%s:", card->name); | ||
2720 | |||
2721 | if (cdc & 0x7f0000) { | ||
2722 | char *s = ""; | ||
2723 | |||
2724 | printk(" ["); | ||
2725 | if (cdc & (1 << 22)) { | ||
2726 | printk("%sRM ID", s); | ||
2727 | s = " | "; | ||
2728 | } | ||
2729 | if (cdc & (1 << 21)) { | ||
2730 | printk("%sCON TAB", s); | ||
2731 | s = " | "; | ||
2732 | } | ||
2733 | if (cdc & (1 << 20)) { | ||
2734 | printk("%sNO FB", s); | ||
2735 | s = " | "; | ||
2736 | } | ||
2737 | if (cdc & (1 << 19)) { | ||
2738 | printk("%sOAM CRC", s); | ||
2739 | s = " | "; | ||
2740 | } | ||
2741 | if (cdc & (1 << 18)) { | ||
2742 | printk("%sRM CRC", s); | ||
2743 | s = " | "; | ||
2744 | } | ||
2745 | if (cdc & (1 << 17)) { | ||
2746 | printk("%sRM FIFO", s); | ||
2747 | s = " | "; | ||
2748 | } | ||
2749 | if (cdc & (1 << 16)) { | ||
2750 | printk("%sRX FIFO", s); | ||
2751 | s = " | "; | ||
2752 | } | ||
2753 | printk("]"); | ||
2754 | } | ||
2755 | |||
2756 | printk(" CDC %04x, VPEC %04x, ICC: %04x\n", | ||
2757 | cdc & 0xffff, vpec & 0xffff, icc & 0xffff); | ||
2758 | #endif | ||
2759 | } | 2715 | } |
2760 | 2716 | ||
2761 | static irqreturn_t | 2717 | static irqreturn_t |
diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c index 1c674a91f146..dee4f01a64d8 100644 --- a/drivers/atm/iphase.c +++ b/drivers/atm/iphase.c | |||
@@ -613,7 +613,6 @@ static int ia_que_tx (IADEV *iadev) { | |||
613 | struct sk_buff *skb; | 613 | struct sk_buff *skb; |
614 | int num_desc; | 614 | int num_desc; |
615 | struct atm_vcc *vcc; | 615 | struct atm_vcc *vcc; |
616 | struct ia_vcc *iavcc; | ||
617 | num_desc = ia_avail_descs(iadev); | 616 | num_desc = ia_avail_descs(iadev); |
618 | 617 | ||
619 | while (num_desc && (skb = skb_dequeue(&iadev->tx_backlog))) { | 618 | while (num_desc && (skb = skb_dequeue(&iadev->tx_backlog))) { |
@@ -627,7 +626,6 @@ static int ia_que_tx (IADEV *iadev) { | |||
627 | printk("Free the SKB on closed vci %d \n", vcc->vci); | 626 | printk("Free the SKB on closed vci %d \n", vcc->vci); |
628 | break; | 627 | break; |
629 | } | 628 | } |
630 | iavcc = INPH_IA_VCC(vcc); | ||
631 | if (ia_pkt_tx (vcc, skb)) { | 629 | if (ia_pkt_tx (vcc, skb)) { |
632 | skb_queue_head(&iadev->tx_backlog, skb); | 630 | skb_queue_head(&iadev->tx_backlog, skb); |
633 | } | 631 | } |
@@ -823,8 +821,6 @@ static void IaFrontEndIntr(IADEV *iadev) { | |||
823 | volatile IA_SUNI *suni; | 821 | volatile IA_SUNI *suni; |
824 | volatile ia_mb25_t *mb25; | 822 | volatile ia_mb25_t *mb25; |
825 | volatile suni_pm7345_t *suni_pm7345; | 823 | volatile suni_pm7345_t *suni_pm7345; |
826 | u32 intr_status; | ||
827 | u_int frmr_intr; | ||
828 | 824 | ||
829 | if(iadev->phy_type & FE_25MBIT_PHY) { | 825 | if(iadev->phy_type & FE_25MBIT_PHY) { |
830 | mb25 = (ia_mb25_t*)iadev->phy; | 826 | mb25 = (ia_mb25_t*)iadev->phy; |
@@ -832,18 +828,18 @@ static void IaFrontEndIntr(IADEV *iadev) { | |||
832 | } else if (iadev->phy_type & FE_DS3_PHY) { | 828 | } else if (iadev->phy_type & FE_DS3_PHY) { |
833 | suni_pm7345 = (suni_pm7345_t *)iadev->phy; | 829 | suni_pm7345 = (suni_pm7345_t *)iadev->phy; |
834 | /* clear FRMR interrupts */ | 830 | /* clear FRMR interrupts */ |
835 | frmr_intr = suni_pm7345->suni_ds3_frm_intr_stat; | 831 | (void) suni_pm7345->suni_ds3_frm_intr_stat; |
836 | iadev->carrier_detect = | 832 | iadev->carrier_detect = |
837 | Boolean(!(suni_pm7345->suni_ds3_frm_stat & SUNI_DS3_LOSV)); | 833 | Boolean(!(suni_pm7345->suni_ds3_frm_stat & SUNI_DS3_LOSV)); |
838 | } else if (iadev->phy_type & FE_E3_PHY ) { | 834 | } else if (iadev->phy_type & FE_E3_PHY ) { |
839 | suni_pm7345 = (suni_pm7345_t *)iadev->phy; | 835 | suni_pm7345 = (suni_pm7345_t *)iadev->phy; |
840 | frmr_intr = suni_pm7345->suni_e3_frm_maint_intr_ind; | 836 | (void) suni_pm7345->suni_e3_frm_maint_intr_ind; |
841 | iadev->carrier_detect = | 837 | iadev->carrier_detect = |
842 | Boolean(!(suni_pm7345->suni_e3_frm_fram_intr_ind_stat&SUNI_E3_LOS)); | 838 | Boolean(!(suni_pm7345->suni_e3_frm_fram_intr_ind_stat&SUNI_E3_LOS)); |
843 | } | 839 | } |
844 | else { | 840 | else { |
845 | suni = (IA_SUNI *)iadev->phy; | 841 | suni = (IA_SUNI *)iadev->phy; |
846 | intr_status = suni->suni_rsop_status & 0xff; | 842 | (void) suni->suni_rsop_status; |
847 | iadev->carrier_detect = Boolean(!(suni->suni_rsop_status & SUNI_LOSV)); | 843 | iadev->carrier_detect = Boolean(!(suni->suni_rsop_status & SUNI_LOSV)); |
848 | } | 844 | } |
849 | if (iadev->carrier_detect) | 845 | if (iadev->carrier_detect) |
@@ -2660,7 +2656,6 @@ static void ia_close(struct atm_vcc *vcc) | |||
2660 | 2656 | ||
2661 | static int ia_open(struct atm_vcc *vcc) | 2657 | static int ia_open(struct atm_vcc *vcc) |
2662 | { | 2658 | { |
2663 | IADEV *iadev; | ||
2664 | struct ia_vcc *ia_vcc; | 2659 | struct ia_vcc *ia_vcc; |
2665 | int error; | 2660 | int error; |
2666 | if (!test_bit(ATM_VF_PARTIAL,&vcc->flags)) | 2661 | if (!test_bit(ATM_VF_PARTIAL,&vcc->flags)) |
@@ -2668,7 +2663,6 @@ static int ia_open(struct atm_vcc *vcc) | |||
2668 | IF_EVENT(printk("ia: not partially allocated resources\n");) | 2663 | IF_EVENT(printk("ia: not partially allocated resources\n");) |
2669 | vcc->dev_data = NULL; | 2664 | vcc->dev_data = NULL; |
2670 | } | 2665 | } |
2671 | iadev = INPH_IA_DEV(vcc->dev); | ||
2672 | if (vcc->vci != ATM_VPI_UNSPEC && vcc->vpi != ATM_VCI_UNSPEC) | 2666 | if (vcc->vci != ATM_VPI_UNSPEC && vcc->vpi != ATM_VCI_UNSPEC) |
2673 | { | 2667 | { |
2674 | IF_EVENT(printk("iphase open: unspec part\n");) | 2668 | IF_EVENT(printk("iphase open: unspec part\n");) |
@@ -3052,11 +3046,9 @@ static int ia_pkt_tx (struct atm_vcc *vcc, struct sk_buff *skb) { | |||
3052 | static int ia_send(struct atm_vcc *vcc, struct sk_buff *skb) | 3046 | static int ia_send(struct atm_vcc *vcc, struct sk_buff *skb) |
3053 | { | 3047 | { |
3054 | IADEV *iadev; | 3048 | IADEV *iadev; |
3055 | struct ia_vcc *iavcc; | ||
3056 | unsigned long flags; | 3049 | unsigned long flags; |
3057 | 3050 | ||
3058 | iadev = INPH_IA_DEV(vcc->dev); | 3051 | iadev = INPH_IA_DEV(vcc->dev); |
3059 | iavcc = INPH_IA_VCC(vcc); | ||
3060 | if ((!skb)||(skb->len>(iadev->tx_buf_sz-sizeof(struct cpcs_trailer)))) | 3052 | if ((!skb)||(skb->len>(iadev->tx_buf_sz-sizeof(struct cpcs_trailer)))) |
3061 | { | 3053 | { |
3062 | if (!skb) | 3054 | if (!skb) |
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index cd0ff66469b2..5d1d07645132 100644 --- a/drivers/atm/solos-pci.c +++ b/drivers/atm/solos-pci.c | |||
@@ -527,7 +527,6 @@ static int flash_upgrade(struct solos_card *card, int chip) | |||
527 | { | 527 | { |
528 | const struct firmware *fw; | 528 | const struct firmware *fw; |
529 | const char *fw_name; | 529 | const char *fw_name; |
530 | uint32_t data32 = 0; | ||
531 | int blocksize = 0; | 530 | int blocksize = 0; |
532 | int numblocks = 0; | 531 | int numblocks = 0; |
533 | int offset; | 532 | int offset; |
@@ -576,7 +575,7 @@ static int flash_upgrade(struct solos_card *card, int chip) | |||
576 | 575 | ||
577 | dev_info(&card->dev->dev, "Changing FPGA to Update mode\n"); | 576 | dev_info(&card->dev->dev, "Changing FPGA to Update mode\n"); |
578 | iowrite32(1, card->config_regs + FPGA_MODE); | 577 | iowrite32(1, card->config_regs + FPGA_MODE); |
579 | data32 = ioread32(card->config_regs + FPGA_MODE); | 578 | (void) ioread32(card->config_regs + FPGA_MODE); |
580 | 579 | ||
581 | /* Set mode to Chip Erase */ | 580 | /* Set mode to Chip Erase */ |
582 | if(chip == 0 || chip == 2) | 581 | if(chip == 0 || chip == 2) |