diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-25 19:59:51 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-25 19:59:51 -0400 |
| commit | b1cdc4670b9508fcd47a15fbd12f70d269880b37 (patch) | |
| tree | fea9e2650170886d539488f8b1e064f6ca60ad36 | |
| parent | ce7d0226198aac42ed311dd2783232adc16b296d (diff) | |
| parent | f925b1303e0672effc78547353bd2ddfe11f5b5f (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (63 commits)
drivers/net/usb/asix.c: Fix pointer cast.
be2net: Bug fix to avoid disabling bottom half during firmware upgrade.
proc_dointvec: write a single value
hso: add support for new products
Phonet: fix potential use-after-free in pep_sock_close()
ath9k: remove VEOL support for ad-hoc
ath9k: change beacon allocation to prefer the first beacon slot
sock.h: fix kernel-doc warning
cls_cgroup: Fix build error when built-in
macvlan: do proper cleanup in macvlan_common_newlink() V2
be2net: Bug fix in init code in probe
net/dccp: expansion of error code size
ath9k: Fix rx of mcast/bcast frames in PS mode with auto sleep
wireless: fix sta_info.h kernel-doc warnings
wireless: fix mac80211.h kernel-doc warnings
iwlwifi: testing the wrong variable in iwl_add_bssid_station()
ath9k_htc: rare leak in ath9k_hif_usb_alloc_tx_urbs()
ath9k_htc: dereferencing before check in hif_usb_tx_cb()
rt2x00: Fix rt2800usb TX descriptor writing.
rt2x00: Fix failed SLEEP->AWAKE and AWAKE->SLEEP transitions.
...
75 files changed, 679 insertions, 360 deletions
diff --git a/drivers/isdn/capi/kcapi.c b/drivers/isdn/capi/kcapi.c index bd00dceacaf0..bde3c88b8b27 100644 --- a/drivers/isdn/capi/kcapi.c +++ b/drivers/isdn/capi/kcapi.c | |||
| @@ -1147,6 +1147,12 @@ load_unlock_out: | |||
| 1147 | if (ctr->state == CAPI_CTR_DETECTED) | 1147 | if (ctr->state == CAPI_CTR_DETECTED) |
| 1148 | goto reset_unlock_out; | 1148 | goto reset_unlock_out; |
| 1149 | 1149 | ||
| 1150 | if (ctr->reset_ctr == NULL) { | ||
| 1151 | printk(KERN_DEBUG "kcapi: reset: no reset function\n"); | ||
| 1152 | retval = -ESRCH; | ||
| 1153 | goto reset_unlock_out; | ||
| 1154 | } | ||
| 1155 | |||
| 1150 | ctr->reset_ctr(ctr); | 1156 | ctr->reset_ctr(ctr); |
| 1151 | 1157 | ||
| 1152 | retval = wait_on_ctr_state(ctr, CAPI_CTR_DETECTED); | 1158 | retval = wait_on_ctr_state(ctr, CAPI_CTR_DETECTED); |
diff --git a/drivers/isdn/gigaset/capi.c b/drivers/isdn/gigaset/capi.c index ac4cfeed3946..8f78f15c8ef7 100644 --- a/drivers/isdn/gigaset/capi.c +++ b/drivers/isdn/gigaset/capi.c | |||
| @@ -922,30 +922,6 @@ void gigaset_isdn_stop(struct cardstate *cs) | |||
| 922 | */ | 922 | */ |
| 923 | 923 | ||
| 924 | /* | 924 | /* |
| 925 | * load firmware | ||
| 926 | */ | ||
| 927 | static int gigaset_load_firmware(struct capi_ctr *ctr, capiloaddata *data) | ||
| 928 | { | ||
| 929 | struct cardstate *cs = ctr->driverdata; | ||
| 930 | |||
| 931 | /* AVM specific operation, not needed for Gigaset -- ignore */ | ||
| 932 | dev_notice(cs->dev, "load_firmware ignored\n"); | ||
| 933 | |||
| 934 | return 0; | ||
| 935 | } | ||
| 936 | |||
| 937 | /* | ||
| 938 | * reset (deactivate) controller | ||
| 939 | */ | ||
| 940 | static void gigaset_reset_ctr(struct capi_ctr *ctr) | ||
| 941 | { | ||
| 942 | struct cardstate *cs = ctr->driverdata; | ||
| 943 | |||
| 944 | /* AVM specific operation, not needed for Gigaset -- ignore */ | ||
| 945 | dev_notice(cs->dev, "reset_ctr ignored\n"); | ||
| 946 | } | ||
| 947 | |||
| 948 | /* | ||
| 949 | * register CAPI application | 925 | * register CAPI application |
| 950 | */ | 926 | */ |
| 951 | static void gigaset_register_appl(struct capi_ctr *ctr, u16 appl, | 927 | static void gigaset_register_appl(struct capi_ctr *ctr, u16 appl, |
| @@ -2202,8 +2178,8 @@ int gigaset_isdn_regdev(struct cardstate *cs, const char *isdnid) | |||
| 2202 | iif->ctr.driverdata = cs; | 2178 | iif->ctr.driverdata = cs; |
| 2203 | strncpy(iif->ctr.name, isdnid, sizeof(iif->ctr.name)); | 2179 | strncpy(iif->ctr.name, isdnid, sizeof(iif->ctr.name)); |
| 2204 | iif->ctr.driver_name = "gigaset"; | 2180 | iif->ctr.driver_name = "gigaset"; |
| 2205 | iif->ctr.load_firmware = gigaset_load_firmware; | 2181 | iif->ctr.load_firmware = NULL; |
| 2206 | iif->ctr.reset_ctr = gigaset_reset_ctr; | 2182 | iif->ctr.reset_ctr = NULL; |
| 2207 | iif->ctr.register_appl = gigaset_register_appl; | 2183 | iif->ctr.register_appl = gigaset_register_appl; |
| 2208 | iif->ctr.release_appl = gigaset_release_appl; | 2184 | iif->ctr.release_appl = gigaset_release_appl; |
| 2209 | iif->ctr.send_message = gigaset_send_message; | 2185 | iif->ctr.send_message = gigaset_send_message; |
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h index 373c1a563474..b46be490cd2a 100644 --- a/drivers/net/benet/be.h +++ b/drivers/net/benet/be.h | |||
| @@ -283,6 +283,8 @@ struct be_adapter { | |||
| 283 | u8 port_type; | 283 | u8 port_type; |
| 284 | u8 transceiver; | 284 | u8 transceiver; |
| 285 | u8 generation; /* BladeEngine ASIC generation */ | 285 | u8 generation; /* BladeEngine ASIC generation */ |
| 286 | u32 flash_status; | ||
| 287 | struct completion flash_compl; | ||
| 286 | 288 | ||
| 287 | bool sriov_enabled; | 289 | bool sriov_enabled; |
| 288 | u32 vf_if_handle[BE_MAX_VF]; | 290 | u32 vf_if_handle[BE_MAX_VF]; |
diff --git a/drivers/net/benet/be_cmds.c b/drivers/net/benet/be_cmds.c index e79bf8b9af3b..c911bfb55b19 100644 --- a/drivers/net/benet/be_cmds.c +++ b/drivers/net/benet/be_cmds.c | |||
| @@ -59,6 +59,13 @@ static int be_mcc_compl_process(struct be_adapter *adapter, | |||
| 59 | 59 | ||
| 60 | compl_status = (compl->status >> CQE_STATUS_COMPL_SHIFT) & | 60 | compl_status = (compl->status >> CQE_STATUS_COMPL_SHIFT) & |
| 61 | CQE_STATUS_COMPL_MASK; | 61 | CQE_STATUS_COMPL_MASK; |
| 62 | |||
| 63 | if ((compl->tag0 == OPCODE_COMMON_WRITE_FLASHROM) && | ||
| 64 | |||
