diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-04 14:47:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-04 14:47:58 -0400 |
commit | 6ba74014c1ab0e37af7de6f64b4eccbbae3cb9e7 (patch) | |
tree | 8f3892fc44f1e403675a6d7e88fda5c70e56ee4c /drivers/usb | |
parent | 5abd9ccced7a726c817dd6b5b96bc933859138d1 (diff) | |
parent | 3ff1c25927e3af61c6bf0e4ed959504058ae4565 (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: (1443 commits)
phy/marvell: add 88ec048 support
igb: Program MDICNFG register prior to PHY init
e1000e: correct MAC-PHY interconnect register offset for 82579
hso: Add new product ID
can: Add driver for esd CAN-USB/2 device
l2tp: fix export of header file for userspace
can-raw: Fix skb_orphan_try handling
Revert "net: remove zap_completion_queue"
net: cleanup inclusion
phy/marvell: add 88e1121 interface mode support
u32: negative offset fix
net: Fix a typo from "dev" to "ndev"
igb: Use irq_synchronize per vector when using MSI-X
ixgbevf: fix null pointer dereference due to filter being set for VLAN 0
e1000e: Fix irq_synchronize in MSI-X case
e1000e: register pm_qos request on hardware activation
ip_fragment: fix subtracting PPPOE_SES_HLEN from mtu twice
net: Add getsockopt support for TCP thin-streams
cxgb4: update driver version
cxgb4: add new PCI IDs
...
Manually fix up conflicts in:
- drivers/net/e1000e/netdev.c: due to pm_qos registration
infrastructure changes
- drivers/net/phy/marvell.c: conflict between adding 88ec048 support
and cleaning up the IDs
- drivers/net/wireless/ipw2x00/ipw2100.c: trivial ipw2100_pm_qos_req
conflict (registration change vs marking it static)
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/atm/cxacru.c | 18 | ||||
-rw-r--r-- | drivers/usb/atm/speedtch.c | 10 | ||||
-rw-r--r-- | drivers/usb/atm/ueagle-atm.c | 13 | ||||
-rw-r--r-- | drivers/usb/gadget/rndis.c | 5 |
4 files changed, 27 insertions, 19 deletions
diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c index c89990f5e018..101ffc965ee0 100644 --- a/drivers/usb/atm/cxacru.c +++ b/drivers/usb/atm/cxacru.c | |||
@@ -866,50 +866,50 @@ static void cxacru_poll_status(struct work_struct *work) | |||
866 | instance->line_status = buf[CXINF_LINE_STATUS]; | 866 | instance->line_status = buf[CXINF_LINE_STATUS]; |
867 | switch (instance->line_status) { | 867 | switch (instance->line_status) { |
868 | case 0: | 868 | case 0: |
869 | atm_dev->signal = ATM_PHY_SIG_LOST; | 869 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
870 | atm_info(usbatm, "ADSL line: down\n"); | 870 | atm_info(usbatm, "ADSL line: down\n"); |
871 | break; | 871 | break; |
872 | 872 | ||
873 | case 1: | 873 | case 1: |
874 | atm_dev->signal = ATM_PHY_SIG_LOST; | 874 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
875 | atm_info(usbatm, "ADSL line: attempting to activate\n"); | 875 | atm_info(usbatm, "ADSL line: attempting to activate\n"); |
876 | break; | 876 | break; |
877 | 877 | ||
878 | case 2: | 878 | case 2: |
879 | atm_dev->signal = ATM_PHY_SIG_LOST; | 879 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
880 | atm_info(usbatm, "ADSL line: training\n"); | 880 | atm_info(usbatm, "ADSL line: training\n"); |
881 | break; | 881 | break; |
882 | 882 | ||
883 | case 3: | 883 | case 3: |
884 | atm_dev->signal = ATM_PHY_SIG_LOST; | 884 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
885 | atm_info(usbatm, "ADSL line: channel analysis\n"); | 885 | atm_info(usbatm, "ADSL line: channel analysis\n"); |
886 | break; | 886 | break; |
887 | 887 | ||
888 | case 4: | 888 | case 4: |
889 | atm_dev->signal = ATM_PHY_SIG_LOST; | 889 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
890 | atm_info(usbatm, "ADSL line: exchange\n"); | 890 | atm_info(usbatm, "ADSL line: exchange\n"); |
891 | break; | 891 | break; |
892 | 892 | ||
893 | case 5: | 893 | case 5: |
894 | atm_dev->link_rate = buf[CXINF_DOWNSTREAM_RATE] * 1000 / 424; | 894 | atm_dev->link_rate = buf[CXINF_DOWNSTREAM_RATE] * 1000 / 424; |
895 | atm_dev->signal = ATM_PHY_SIG_FOUND; | 895 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_FOUND); |
896 | 896 | ||
897 | atm_info(usbatm, "ADSL line: up (%d kb/s down | %d kb/s up)\n", | 897 | atm_info(usbatm, "ADSL line: up (%d kb/s down | %d kb/s up)\n", |
898 | buf[CXINF_DOWNSTREAM_RATE], buf[CXINF_UPSTREAM_RATE]); | 898 | buf[CXINF_DOWNSTREAM_RATE], buf[CXINF_UPSTREAM_RATE]); |
899 | break; | 899 | break; |
900 | 900 | ||
901 | case 6: | 901 | case 6: |
902 | atm_dev->signal = ATM_PHY_SIG_LOST; | 902 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
903 | atm_info(usbatm, "ADSL line: waiting\n"); | 903 | atm_info(usbatm, "ADSL line: waiting\n"); |
904 | break; | 904 | break; |
905 | 905 | ||
906 | case 7: | 906 | case 7: |
907 | atm_dev->signal = ATM_PHY_SIG_LOST; | 907 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
908 | atm_info(usbatm, "ADSL line: initializing\n"); | 908 | atm_info(usbatm, "ADSL line: initializing\n"); |
909 | break; | 909 | break; |
910 | 910 | ||
911 | default: | 911 | default: |
912 | atm_dev->signal = ATM_PHY_SIG_UNKNOWN; | 912 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_UNKNOWN); |
913 | atm_info(usbatm, "Unknown line state %02x\n", instance->line_status); | 913 | atm_info(usbatm, "Unknown line state %02x\n", instance->line_status); |
914 | break; | 914 | break; |
915 | } | 915 | } |
diff --git a/drivers/usb/atm/speedtch.c b/drivers/usb/atm/speedtch.c index 1335456b4f93..80f9617d3a15 100644 --- a/drivers/usb/atm/speedtch.c +++ b/drivers/usb/atm/speedtch.c | |||
@@ -525,7 +525,7 @@ static void speedtch_check_status(struct work_struct *work) | |||
525 | 525 | ||
526 | switch (status) { | 526 | switch (status) { |
527 | case 0: | 527 | case 0: |
528 | atm_dev->signal = ATM_PHY_SIG_LOST; | 528 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
529 | if (instance->last_status) | 529 | if (instance->last_status) |
530 | atm_info(usbatm, "ADSL line is down\n"); | 530 | atm_info(usbatm, "ADSL line is down\n"); |
531 | /* It may never resync again unless we ask it to... */ | 531 | /* It may never resync again unless we ask it to... */ |
@@ -533,12 +533,12 @@ static void speedtch_check_status(struct work_struct *work) | |||
533 | break; | 533 | break; |
534 | 534 | ||
535 | case 0x08: | 535 | case 0x08: |
536 | atm_dev->signal = ATM_PHY_SIG_UNKNOWN; | 536 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_UNKNOWN); |
537 | atm_info(usbatm, "ADSL line is blocked?\n"); | 537 | atm_info(usbatm, "ADSL line is blocked?\n"); |
538 | break; | 538 | break; |
539 | 539 | ||
540 | case 0x10: | 540 | case 0x10: |
541 | atm_dev->signal = ATM_PHY_SIG_LOST; | 541 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_LOST); |
542 | atm_info(usbatm, "ADSL line is synchronising\n"); | 542 | atm_info(usbatm, "ADSL line is synchronising\n"); |
543 | break; | 543 | break; |
544 | 544 | ||
@@ -554,7 +554,7 @@ static void speedtch_check_status(struct work_struct *work) | |||
554 | } | 554 | } |
555 | 555 | ||
556 | atm_dev->link_rate = down_speed * 1000 / 424; | 556 | atm_dev->link_rate = down_speed * 1000 / 424; |
557 | atm_dev->signal = ATM_PHY_SIG_FOUND; | 557 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_FOUND); |
558 | 558 | ||
559 | atm_info(usbatm, | 559 | atm_info(usbatm, |
560 | "ADSL line is up (%d kb/s down | %d kb/s up)\n", | 560 | "ADSL line is up (%d kb/s down | %d kb/s up)\n", |
@@ -562,7 +562,7 @@ static void speedtch_check_status(struct work_struct *work) | |||
562 | break; | 562 | break; |
563 | 563 | ||
564 | default: | 564 | default: |
565 | atm_dev->signal = ATM_PHY_SIG_UNKNOWN; | 565 | atm_dev_signal_change(atm_dev, ATM_PHY_SIG_UNKNOWN); |
566 | atm_info(usbatm, "unknown line state %02x\n", status); | 566 | atm_info(usbatm, "unknown line state %02x\n", status); |
567 | break; | 567 | break; |
568 | } | 568 | } |
diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c index e213d3fa4920..ebae94480140 100644 --- a/drivers/usb/atm/ueagle-atm.c +++ b/drivers/usb/atm/ueagle-atm.c | |||
@@ -575,6 +575,13 @@ MODULE_PARM_DESC(annex, | |||
575 | sc->usbatm->atm_dev->type = val; \ | 575 | sc->usbatm->atm_dev->type = val; \ |
576 | } while (0) | 576 | } while (0) |
577 | 577 | ||
578 | #define UPDATE_ATM_SIGNAL(val) \ | ||
579 | do { \ | ||
580 | if (sc->usbatm->atm_dev) \ | ||
581 | atm_dev_signal_change(sc->usbatm->atm_dev, val); \ | ||
582 | } while (0) | ||
583 | |||
584 | |||
578 | /* Firmware loading */ | 585 | /* Firmware loading */ |
579 | #define LOAD_INTERNAL 0xA0 | 586 | #define LOAD_INTERNAL 0xA0 |
580 | #define F8051_USBCS 0x7f92 | 587 | #define F8051_USBCS 0x7f92 |
@@ -1359,7 +1366,7 @@ static int uea_stat_e1(struct uea_softc *sc) | |||
1359 | /* always update it as atm layer could not be init when we switch to | 1366 | /* always update it as atm layer could not be init when we switch to |
1360 | * operational state | 1367 | * operational state |
1361 | */ | 1368 | */ |
1362 | UPDATE_ATM_STAT(signal, ATM_PHY_SIG_FOUND); | 1369 | UPDATE_ATM_SIGNAL(ATM_PHY_SIG_FOUND); |
1363 | 1370 | ||
1364 | /* wake up processes waiting for synchronization */ | 1371 | /* wake up processes waiting for synchronization */ |
1365 | wake_up(&sc->sync_q); | 1372 | wake_up(&sc->sync_q); |
@@ -1498,7 +1505,7 @@ static int uea_stat_e4(struct uea_softc *sc) | |||
1498 | /* always update it as atm layer could not be init when we switch to | 1505 | /* always update it as atm layer could not be init when we switch to |
1499 | * operational state | 1506 | * operational state |
1500 | */ | 1507 | */ |
1501 | UPDATE_ATM_STAT(signal, ATM_PHY_SIG_FOUND); | 1508 | UPDATE_ATM_SIGNAL(ATM_PHY_SIG_FOUND); |
1502 | 1509 | ||
1503 | /* wake up processes waiting for synchronization */ | 1510 | /* wake up processes waiting for synchronization */ |
1504 | wake_up(&sc->sync_q); | 1511 | wake_up(&sc->sync_q); |
@@ -1825,7 +1832,7 @@ static int uea_start_reset(struct uea_softc *sc) | |||
1825 | * So we will failed to wait Ready CMV. | 1832 | * So we will failed to wait Ready CMV. |
1826 | */ | 1833 | */ |
1827 | sc->cmv_ack = 0; | 1834 | sc->cmv_ack = 0; |
1828 | UPDATE_ATM_STAT(signal, ATM_PHY_SIG_LOST); | 1835 | UPDATE_ATM_SIGNAL(ATM_PHY_SIG_LOST); |
1829 | 1836 | ||
1830 | /* reset statistics */ | 1837 | /* reset statistics */ |
1831 | memset(&sc->stats, 0, sizeof(struct uea_stats)); | 1838 | memset(&sc->stats, 0, sizeof(struct uea_stats)); |
diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c index 5c0d06c79a81..020fa5a25fda 100644 --- a/drivers/usb/gadget/rndis.c +++ b/drivers/usb/gadget/rndis.c | |||
@@ -171,7 +171,8 @@ gen_ndis_query_resp (int configNr, u32 OID, u8 *buf, unsigned buf_len, | |||
171 | int i, count; | 171 | int i, count; |
172 | rndis_query_cmplt_type *resp; | 172 | rndis_query_cmplt_type *resp; |
173 | struct net_device *net; | 173 | struct net_device *net; |
174 | const struct net_device_stats *stats; | 174 | struct rtnl_link_stats64 temp; |
175 | const struct rtnl_link_stats64 *stats; | ||
175 | 176 | ||
176 | if (!r) return -ENOMEM; | 177 | if (!r) return -ENOMEM; |
177 | resp = (rndis_query_cmplt_type *) r->buf; | 178 | resp = (rndis_query_cmplt_type *) r->buf; |
@@ -194,7 +195,7 @@ gen_ndis_query_resp (int configNr, u32 OID, u8 *buf, unsigned buf_len, | |||
194 | resp->InformationBufferOffset = cpu_to_le32 (16); | 195 | resp->InformationBufferOffset = cpu_to_le32 (16); |
195 | 196 | ||
196 | net = rndis_per_dev_params[configNr].dev; | 197 | net = rndis_per_dev_params[configNr].dev; |
197 | stats = dev_get_stats(net); | 198 | stats = dev_get_stats(net, &temp); |
198 | 199 | ||
199 | switch (OID) { | 200 | switch (OID) { |
200 | 201 | ||