Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xcap
xcap-capability-linux
Commits
c1e48efc
Commit
c1e48efc
authored
Apr 07, 2011
by
David S. Miller
Browse files
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/benet/be_main.c
parents
912d398d
1b86a58f
Changes
49
Hide whitespace changes
Inline
Side-by-side
MAINTAINERS
View file @
c1e48efc
...
...
@@ -6916,6 +6916,13 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86.
S: Maintained
F: drivers/platform/x86
XEN NETWORK BACKEND DRIVER
M: Ian Campbell <ian.campbell@citrix.com>
L: xen-devel@lists.xensource.com (moderated for non-subscribers)
L: netdev@vger.kernel.org
S: Supported
F: drivers/net/xen-netback/*
XEN PCI SUBSYSTEM
M: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
L: xen-devel@lists.xensource.com (moderated for non-subscribers)
...
...
drivers/net/benet/be.h
View file @
c1e48efc
...
...
@@ -155,7 +155,7 @@ struct be_eq_obj {
u16
min_eqd
;
/* in usecs */
u16
max_eqd
;
/* in usecs */
u16
cur_eqd
;
/* in usecs */
u8
msix_vec
_idx
;
u8
eq
_idx
;
struct
napi_struct
napi
;
};
...
...
@@ -292,7 +292,7 @@ struct be_adapter {
u32
num_rx_qs
;
u32
big_page_size
;
/* Compounded page size shared by rx wrbs */
u8
msix_vec
_next_idx
;
u8
eq
_next_idx
;
struct
be_drv_stats
drv_stats
;
struct
vlan_group
*
vlan_grp
;
...
...
drivers/net/benet/be_main.c
View file @
c1e48efc
...
...
@@ -1509,7 +1509,7 @@ static int be_tx_queues_create(struct be_adapter *adapter)
if
(
be_cmd_eq_create
(
adapter
,
eq
,
adapter
->
tx_eq
.
cur_eqd
))
goto
tx_eq_free
;
adapter
->
tx_eq
.
msix_vec
_idx
=
adapter
->
msix_vec
_next_idx
++
;
adapter
->
tx_eq
.
eq
_idx
=
adapter
->
eq
_next_idx
++
;
/* Alloc TX eth compl queue */
...
...
@@ -1621,7 +1621,7 @@ static int be_rx_queues_create(struct be_adapter *adapter)
if
(
rc
)
goto
err
;
rxo
->
rx_eq
.
msix_vec
_idx
=
adapter
->
msix_vec
_next_idx
++
;
rxo
->
rx_eq
.
eq
_idx
=
adapter
->
eq
_next_idx
++
;
/* CQ */
cq
=
&
rxo
->
cq
;
...
...
@@ -1697,11 +1697,11 @@ static irqreturn_t be_intx(int irq, void *dev)
if
(
!
isr
)
return
IRQ_NONE
;
if
((
1
<<
adapter
->
tx_eq
.
msix_vec
_idx
&
isr
))
if
((
1
<<
adapter
->
tx_eq
.
eq
_idx
&
isr
))
event_handle
(
adapter
,
&
adapter
->
tx_eq
);
for_all_rx_queues
(
adapter
,
rxo
,
i
)
{
if
((
1
<<
rxo
->
rx_eq
.
msix_vec
_idx
&
isr
))
if
((
1
<<
rxo
->
rx_eq
.
eq
_idx
&
isr
))
event_handle
(
adapter
,
&
rxo
->
rx_eq
);
}
}
...
...
@@ -1964,7 +1964,7 @@ static void be_sriov_disable(struct be_adapter *adapter)
static
inline
int
be_msix_vec_get
(
struct
be_adapter
*
adapter
,
struct
be_eq_obj
*
eq_obj
)
{
return
adapter
->
msix_entries
[
eq_obj
->
msix_vec
_idx
].
vector
;
return
adapter
->
msix_entries
[
eq_obj
->
eq
_idx
].
vector
;
}
static
int
be_request_irq
(
struct
be_adapter
*
adapter
,
...
...
@@ -2356,6 +2356,7 @@ static int be_clear(struct be_adapter *adapter)
be_mcc_queues_destroy
(
adapter
);
be_rx_queues_destroy
(
adapter
);
be_tx_queues_destroy
(
adapter
);
adapter
->
eq_next_idx
=
0
;
if
(
be_physfn
(
adapter
)
&&
adapter
->
sriov_enabled
)
for
(
vf
=
0
;
vf
<
num_vfs
;
vf
++
)
...
...
@@ -3152,11 +3153,13 @@ static int be_resume(struct pci_dev *pdev)
static
void
be_shutdown
(
struct
pci_dev
*
pdev
)
{
struct
be_adapter
*
adapter
=
pci_get_drvdata
(
pdev
);
struct
net_device
*
netdev
=
adapter
->
netdev
;
if
(
!
adapter
)
return
;
cancel_delayed_work_sync
(
&
adapter
->
work
);
netif_device_detach
(
netdev
);
netif_device_detach
(
adapter
->
netdev
);
be_cmd_reset_function
(
adapter
);
...
...
drivers/net/bna/bfa_ioc.c
View file @
c1e48efc
...
...
@@ -2219,13 +2219,9 @@ bfa_nw_ioc_get_mac(struct bfa_ioc *ioc)
static
void
bfa_ioc_recover
(
struct
bfa_ioc
*
ioc
)
{
u16
bdf
;
bdf
=
(
ioc
->
pcidev
.
pci_slot
<<
8
|
ioc
->
pcidev
.
pci_func
<<
3
|
ioc
->
pcidev
.
device_id
);
pr_crit
(
"Firmware heartbeat failure at %d"
,
bdf
);
BUG_ON
(
1
);
pr_crit
(
"Heart Beat of IOC has failed
\n
"
);
bfa_ioc_stats
(
ioc
,
ioc_hbfails
);
bfa_fsm_send_event
(
ioc
,
IOC_E_HBFAIL
);
}
static
void
...
...
drivers/net/can/mcp251x.c
View file @
c1e48efc
...
...
@@ -931,7 +931,8 @@ static int mcp251x_open(struct net_device *net)
priv
->
tx_len
=
0
;
ret
=
request_threaded_irq
(
spi
->
irq
,
NULL
,
mcp251x_can_ist
,
IRQF_TRIGGER_FALLING
,
DEVICE_NAME
,
priv
);
pdata
->
irq_flags
?
pdata
->
irq_flags
:
IRQF_TRIGGER_FALLING
,
DEVICE_NAME
,
priv
);
if
(
ret
)
{
dev_err
(
&
spi
->
dev
,
"failed to acquire irq %d
\n
"
,
spi
->
irq
);
if
(
pdata
->
transceiver_enable
)
...
...
drivers/net/pppoe.c
View file @
c1e48efc
...
...
@@ -317,7 +317,7 @@ static void pppoe_flush_dev(struct net_device *dev)
lock_sock
(
sk
);
if
(
po
->
pppoe_dev
==
dev
&&
sk
->
sk_state
&
(
PPPOX_CONNECTED
|
PPPOX_BOUND
))
{
sk
->
sk_state
&
(
PPPOX_CONNECTED
|
PPPOX_BOUND
|
PPPOX_ZOMBIE
))
{
pppox_unbind_sock
(
sk
);
sk
->
sk_state
=
PPPOX_ZOMBIE
;
sk
->
sk_state_change
(
sk
);
...
...
drivers/net/smsc911x.c
View file @
c1e48efc
...
...
@@ -1818,6 +1818,7 @@ static int __devinit smsc911x_init(struct net_device *dev)
SMSC_TRACE
(
pdata
,
probe
,
"PHY will be autodetected."
);
spin_lock_init
(
&
pdata
->
dev_lock
);
spin_lock_init
(
&
pdata
->
mac_lock
);
if
(
pdata
->
ioaddr
==
0
)
{
SMSC_WARN
(
pdata
,
probe
,
"pdata->ioaddr: 0x00000000"
);
...
...
@@ -1897,8 +1898,11 @@ static int __devinit smsc911x_init(struct net_device *dev)
/* workaround for platforms without an eeprom, where the mac address
* is stored elsewhere and set by the bootloader. This saves the
* mac address before resetting the device */
if
(
pdata
->
config
.
flags
&
SMSC911X_SAVE_MAC_ADDRESS
)
if
(
pdata
->
config
.
flags
&
SMSC911X_SAVE_MAC_ADDRESS
)
{
spin_lock_irq
(
&
pdata
->
mac_lock
);
smsc911x_read_mac_address
(
dev
);
spin_unlock_irq
(
&
pdata
->
mac_lock
);
}
/* Reset the LAN911x */
if
(
smsc911x_soft_reset
(
pdata
))
...
...
@@ -2058,8 +2062,6 @@ static int __devinit smsc911x_drv_probe(struct platform_device *pdev)
"Network interface:
\"
%s
\"
"
,
dev
->
name
);
}
spin_lock_init
(
&
pdata
->
mac_lock
);
retval
=
smsc911x_mii_init
(
pdev
,
dev
);
if
(
retval
)
{
SMSC_WARN
(
pdata
,
probe
,
"Error %i initialising mii"
,
retval
);
...
...
drivers/net/wireless/ath/ath9k/hw.c
View file @
c1e48efc
...
...
@@ -2546,6 +2546,7 @@ static struct {
{
AR_SREV_VERSION_9287
,
"9287"
},
{
AR_SREV_VERSION_9271
,
"9271"
},
{
AR_SREV_VERSION_9300
,
"9300"
},
{
AR_SREV_VERSION_9485
,
"9485"
},
};
/* For devices with external radios */
...
...
drivers/net/wireless/b43/dma.c
View file @
c1e48efc
...
...
@@ -1536,7 +1536,7 @@ static void dma_rx(struct b43_dmaring *ring, int *slot)
dmaaddr
=
meta
->
dmaaddr
;
goto
drop_recycle_buffer
;
}
if
(
unlikely
(
len
>
ring
->
rx_buffersize
))
{
if
(
unlikely
(
len
+
ring
->
frameoffset
>
ring
->
rx_buffersize
))
{
/* The data did not fit into one descriptor buffer
* and is split over multiple buffers.
* This should never happen, as we try to allocate buffers
...
...
drivers/net/wireless/b43/dma.h
View file @
c1e48efc
...
...
@@ -163,7 +163,7 @@ struct b43_dmadesc_generic {
/* DMA engine tuning knobs */
#define B43_TXRING_SLOTS 256
#define B43_RXRING_SLOTS 64
#define B43_DMA0_RX_BUFFERSIZE IEEE80211_MAX_FRAME_LEN
#define B43_DMA0_RX_BUFFERSIZE
(B43_DMA0_RX_FRAMEOFFSET +
IEEE80211_MAX_FRAME_LEN
)
/* Pointer poison */
#define B43_DMA_PTR_POISON ((void *)ERR_PTR(-ENOMEM))
...
...
drivers/net/wireless/iwlwifi/iwl-eeprom.h
View file @
c1e48efc
...
...
@@ -241,7 +241,7 @@ struct iwl_eeprom_enhanced_txpwr {
/* 6x00 Specific */
#define EEPROM_6000_TX_POWER_VERSION (4)
#define EEPROM_6000_EEPROM_VERSION (0x43
4
)
#define EEPROM_6000_EEPROM_VERSION (0x4
2
3)
/* 6x50 Specific */
#define EEPROM_6050_TX_POWER_VERSION (4)
...
...
drivers/net/wireless/p54/p54usb.c
View file @
c1e48efc
...
...
@@ -56,6 +56,7 @@ static struct usb_device_id p54u_table[] __devinitdata = {
{
USB_DEVICE
(
0x0846
,
0x4210
)},
/* Netgear WG121 the second ? */
{
USB_DEVICE
(
0x0846
,
0x4220
)},
/* Netgear WG111 */
{
USB_DEVICE
(
0x09aa
,
0x1000
)},
/* Spinnaker Proto board */
{
USB_DEVICE
(
0x0bf8
,
0x1007
)},
/* Fujitsu E-5400 USB */
{
USB_DEVICE
(
0x0cde
,
0x0006
)},
/* Medion 40900, Roper Europe */
{
USB_DEVICE
(
0x0db0
,
0x6826
)},
/* MSI UB54G (MS-6826) */
{
USB_DEVICE
(
0x107b
,
0x55f2
)},
/* Gateway WGU-210 (Gemtek) */
...
...
@@ -68,6 +69,7 @@ static struct usb_device_id p54u_table[] __devinitdata = {
{
USB_DEVICE
(
0x1915
,
0x2235
)},
/* Linksys WUSB54G Portable OEM */
{
USB_DEVICE
(
0x2001
,
0x3701
)},
/* DLink DWL-G120 Spinnaker */
{
USB_DEVICE
(
0x2001
,
0x3703
)},
/* DLink DWL-G122 */
{
USB_DEVICE
(
0x2001
,
0x3762
)},
/* Conceptronic C54U */
{
USB_DEVICE
(
0x5041
,
0x2234
)},
/* Linksys WUSB54G */
{
USB_DEVICE
(
0x5041
,
0x2235
)},
/* Linksys WUSB54G Portable */
...
...
drivers/net/wireless/rt2x00/rt2x00dev.c
View file @
c1e48efc
...
...
@@ -1062,8 +1062,10 @@ void rt2x00lib_remove_dev(struct rt2x00_dev *rt2x00dev)
* Stop all work.
*/
cancel_work_sync
(
&
rt2x00dev
->
intf_work
);
cancel_work_sync
(
&
rt2x00dev
->
rxdone_work
);
cancel_work_sync
(
&
rt2x00dev
->
txdone_work
);
if
(
rt2x00_is_usb
(
rt2x00dev
))
{
cancel_work_sync
(
&
rt2x00dev
->
rxdone_work
);
cancel_work_sync
(
&
rt2x00dev
->
txdone_work
);
}
destroy_workqueue
(
rt2x00dev
->
workqueue
);
/*
...
...
drivers/net/wireless/rtlwifi/efuse.c
View file @
c1e48efc
...
...
@@ -685,7 +685,7 @@ static int efuse_pg_packet_read(struct ieee80211_hw *hw, u8 offset, u8 *data)
u8
efuse_data
,
word_cnts
=
0
;
u16
efuse_addr
=
0
;
u8
hworden
;
u8
hworden
=
0
;
u8
tmpdata
[
8
];
if
(
data
==
NULL
)
...
...
drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c
View file @
c1e48efc
...
...
@@ -303,7 +303,7 @@ static void _rtl92c_fill_h2c_command(struct ieee80211_hw *hw,
u16
box_reg
,
box_extreg
;
u8
u1b_tmp
;
bool
isfw_read
=
false
;
u8
buf_index
;
u8
buf_index
=
0
;
bool
bwrite_sucess
=
false
;
u8
wait_h2c_limmit
=
100
;
u8
wait_writeh2c_limmit
=
100
;
...
...
drivers/net/wireless/rtlwifi/usb.c
View file @
c1e48efc
...
...
@@ -246,7 +246,7 @@ static void _rtl_usb_io_handler_init(struct device *dev,
static
void
_rtl_usb_io_handler_release
(
struct
ieee80211_hw
*
hw
)
{
struct
rtl_priv
*
rtlpriv
=
rtl_priv
(
hw
);
struct
rtl_priv
__maybe_unused
*
rtlpriv
=
rtl_priv
(
hw
);
mutex_destroy
(
&
rtlpriv
->
io
.
bb_mutex
);
}
...
...
drivers/net/wireless/wl12xx/sdio.c
View file @
c1e48efc
...
...
@@ -340,7 +340,7 @@ module_init(wl1271_init);
module_exit
(
wl1271_exit
);
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Luciano Coelho <
luciano.
coelho@
nokia
.com>"
);
MODULE_AUTHOR
(
"Luciano Coelho <coelho@
ti
.com>"
);
MODULE_AUTHOR
(
"Juuso Oikarinen <juuso.oikarinen@nokia.com>"
);
MODULE_FIRMWARE
(
WL1271_FW_NAME
);
MODULE_FIRMWARE
(
WL1271_AP_FW_NAME
);
drivers/net/wireless/wl12xx/spi.c
View file @
c1e48efc
...
...
@@ -487,7 +487,7 @@ module_init(wl1271_init);
module_exit
(
wl1271_exit
);
MODULE_LICENSE
(
"GPL"
);
MODULE_AUTHOR
(
"Luciano Coelho <
luciano.
coelho@
nokia
.com>"
);
MODULE_AUTHOR
(
"Luciano Coelho <coelho@
ti
.com>"
);
MODULE_AUTHOR
(
"Juuso Oikarinen <juuso.oikarinen@nokia.com>"
);
MODULE_FIRMWARE
(
WL1271_FW_NAME
);
MODULE_FIRMWARE
(
WL1271_AP_FW_NAME
);
...
...
drivers/net/wireless/wl12xx/testmode.c
View file @
c1e48efc
...
...
@@ -204,7 +204,10 @@ static int wl1271_tm_cmd_nvs_push(struct wl1271 *wl, struct nlattr *tb[])
kfree
(
wl
->
nvs
);
wl
->
nvs
=
kzalloc
(
sizeof
(
struct
wl1271_nvs_file
),
GFP_KERNEL
);
if
(
len
!=
sizeof
(
struct
wl1271_nvs_file
))
return
-
EINVAL
;
wl
->
nvs
=
kzalloc
(
len
,
GFP_KERNEL
);
if
(
!
wl
->
nvs
)
{
wl1271_error
(
"could not allocate memory for the nvs file"
);
ret
=
-
ENOMEM
;
...
...
drivers/net/wireless/zd1211rw/zd_usb.c
View file @
c1e48efc
...
...
@@ -643,7 +643,7 @@ static void rx_urb_complete(struct urb *urb)
usb
=
urb
->
context
;
rx
=
&
usb
->
rx
;
zd_usb_reset_rx_idle_timer
(
usb
);
tasklet_schedule
(
&
rx
->
reset_timer_tasklet
);
if
(
length
%
rx
->
usb_packet_size
>
rx
->
usb_packet_size
-
4
)
{
/* If there is an old first fragment, we don't care. */
...
...
@@ -812,6 +812,7 @@ void zd_usb_disable_rx(struct zd_usb *usb)
__zd_usb_disable_rx
(
usb
);
mutex_unlock
(
&
rx
->
setup_mutex
);
tasklet_kill
(
&
rx
->
reset_timer_tasklet
);
cancel_delayed_work_sync
(
&
rx
->
idle_work
);
}
...
...
@@ -1106,6 +1107,13 @@ static void zd_rx_idle_timer_handler(struct work_struct *work)
zd_usb_reset_rx
(
usb
);
}
static
void
zd_usb_reset_rx_idle_timer_tasklet
(
unsigned
long
param
)
{
struct
zd_usb
*
usb
=
(
struct
zd_usb
*
)
param
;
zd_usb_reset_rx_idle_timer
(
usb
);
}
void
zd_usb_reset_rx_idle_timer
(
struct
zd_usb
*
usb
)
{
struct
zd_usb_rx
*
rx
=
&
usb
->
rx
;
...
...
@@ -1127,6 +1135,7 @@ static inline void init_usb_interrupt(struct zd_usb *usb)
static
inline
void
init_usb_rx
(
struct
zd_usb
*
usb
)
{
struct
zd_usb_rx
*
rx
=
&
usb
->
rx
;
spin_lock_init
(
&
rx
->
lock
);
mutex_init
(
&
rx
->
setup_mutex
);
if
(
interface_to_usbdev
(
usb
->
intf
)
->
speed
==
USB_SPEED_HIGH
)
{
...
...
@@ -1136,11 +1145,14 @@ static inline void init_usb_rx(struct zd_usb *usb)
}
ZD_ASSERT
(
rx
->
fragment_length
==
0
);
INIT_DELAYED_WORK
(
&
rx
->
idle_work
,
zd_rx_idle_timer_handler
);
rx
->
reset_timer_tasklet
.
func
=
zd_usb_reset_rx_idle_timer_tasklet
;
rx
->
reset_timer_tasklet
.
data
=
(
unsigned
long
)
usb
;
}
static
inline
void
init_usb_tx
(
struct
zd_usb
*
usb
)
{
struct
zd_usb_tx
*
tx
=
&
usb
->
tx
;
spin_lock_init
(
&
tx
->
lock
);
atomic_set
(
&
tx
->
enabled
,
0
);
tx
->
stopped
=
0
;
...
...
@@ -1671,6 +1683,10 @@ static void iowrite16v_urb_complete(struct urb *urb)
if
(
urb
->
status
&&
!
usb
->
cmd_error
)
usb
->
cmd_error
=
urb
->
status
;
if
(
!
usb
->
cmd_error
&&
urb
->
actual_length
!=
urb
->
transfer_buffer_length
)
usb
->
cmd_error
=
-
EIO
;
}
static
int
zd_submit_waiting_urb
(
struct
zd_usb
*
usb
,
bool
last
)
...
...
@@ -1805,7 +1821,7 @@ int zd_usb_iowrite16v_async(struct zd_usb *usb, const struct zd_ioreq16 *ioreqs,
usb_fill_int_urb
(
urb
,
udev
,
usb_sndintpipe
(
udev
,
EP_REGS_OUT
),
req
,
req_len
,
iowrite16v_urb_complete
,
usb
,
ep
->
desc
.
bInterval
);
urb
->
transfer_flags
|=
URB_FREE_BUFFER
|
URB_SHORT_NOT_OK
;
urb
->
transfer_flags
|=
URB_FREE_BUFFER
;
/* Submit previous URB */
r
=
zd_submit_waiting_urb
(
usb
,
false
);
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment