Manish Chopra
2343f06a8c
qlcnic: qlcnic_get_board_name() function cleanup
...
Signed-off-by: Manish Chopra <manish.chopra@qlogic.com >
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 23:05:05 -07:00
Himanshu Madhani
487042af92
qlcnic: Implement GET_LED_STATUS command for 82xx adapter.
...
o GET_LED_STATUS command will be used by driver to get
current beacon state from 82xx adapter.
o Refactored qlcnic_store_beacon() to split 8200 and 8300
specific calls.
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com >
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 23:05:05 -07:00
Sony Chacko
099907fac6
qlcnic: modify reset recovery path in diag mode
...
Provide diagnostics routines enough time to unwind before
proceeding with reset recovery.
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com >
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 23:04:54 -07:00
Sony Chacko
4690a7e48a
qlcnic: diagnostics routine changes
...
Test and set diagnostics mode bit before starting
diagnostics tests. Stop diagnostics tests if adapter is resetting.
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com >
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 23:04:54 -07:00
Jitendra Kalsaria
b17f2ccaee
qlcnic: Convert nested if-else to switch-case
...
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com >
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 23:04:54 -07:00
Sucheta Chakraborty
1267ff962f
qlcnic: Initialize trans_work and idc_aen_work at VF probe.
...
o work_struct should be initialized before cancel_delayed_work
call to destroy it.
Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com >
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 23:04:54 -07:00
Shahed Shaikh
7e8fd003c9
qlcnic: Remove qlcnic_config_npars module parameter
...
qlcnic_config_npars module parameter is used to configure NPAR
operational modes where NPAR function is used for PCI passthrough.
Removing this paramter as PCI passthrough is not supported for
NPAR functions.
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 23:04:54 -07:00
Himanshu Madhani
aa2a80340c
qlcnic: Update IRQ name for 8200 and 8300 Series adapter.
...
o Updated IRQ name for 8200 and 8300 Series adapter as per
format used by other multiqueue drivers.
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com >
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 23:04:54 -07:00
Himanshu Madhani
45ef92ed58
qlcnic: Disable INT-x interrupt for 83xx on driver unload
...
o Set HW mask for 8300 Series adapter, in INT-x mode, to
stop generating interrupt during driver unload.
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com >
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 23:04:54 -07:00
Rajesh Borundia
a80be5a58e
qlcnic: Support spoof check config.
...
o Add support for spoof check configuration per VF using
iproute2 tool.
Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com >
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 23:04:53 -07:00
Nithin Sujir
f2068b80ca
tg3: Remove unnecessary lock around tg3_flag_set
...
The spinlock was needed when flags used to be a u32 and set/cleared
using bit operations. Now that we use the atomic set_bit, this lock
isn't needed.
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com >
Signed-off-by: Michael Chan <mchan@broadcom.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 22:23:30 -07:00
Nithin Sujir
7c10ee32f3
tg3: Fix misplaced empty line
...
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com >
Signed-off-by: Michael Chan <mchan@broadcom.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 22:23:30 -07:00
Nithin Sujir
4a5f46f2fe
tg3: Use descriptive label names in tg3_start
...
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com >
Signed-off-by: Michael Chan <mchan@broadcom.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 22:23:29 -07:00
Nithin Sujir
328947ff26
tg3: Make tg3_rings_reset() more concise
...
Simplify the rings reset function and increase readability by moving the
control block disable code into separate functions.
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com >
Signed-off-by: Michael Chan <mchan@broadcom.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 22:23:29 -07:00
Nithin Sujir
32ba19efc0
tg3: Simplify ring control block setup
...
The current code calls tg3_set_bdinfo() separately on napi0, followed by
a loop that does napi1+. Simplify it by setting bdinfo in the loop for
all napi contexts.
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com >
Signed-off-by: Michael Chan <mchan@broadcom.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 22:23:29 -07:00
Nithin Sujir
2e460fc07e
tg3: Split APE driver state change out of boot reset signature update
...
Unlike the boot signature that needs to be set before every reset, the
ape state only needs to be updated to tell the firmware that the driver
is now taking/releasing control of the hardware. Move the calls to
tg3_ape_driver_state_change() to better, more appropriate places.
Also, the firmware does not distinguish between SUSPEND and START states
anymore. Remove the SUSPEND case in the switch.
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com >
Signed-off-by: Michael Chan <mchan@broadcom.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 22:23:29 -07:00
David S. Miller
e6ff4c75f9
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
...
Merge net into net-next because some upcoming net-next changes
build on top of bug fixes that went into net.
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-05-24 16:48:28 -07:00
Johannes Berg
dde7dc759b
Merge remote-tracking branch 'mac80211/master' into mac80211-next
2013-05-25 00:01:30 +02:00
Nishant Sarmukadam
bbf71a8f35
mwl8k: Fix the firmware hang issue for 8764
...
The firmware hang issue is not seen very often,
though it is still seen sometimes (once in 12
hours in local tests). The changes in the driver
,to interrupt the firmware, are needed when we
detect that firmware is stuck and when the host
queues are full and we begin to drop packets.
This is to ensure that the firmware does not
miss any PPA_RDY interrupts to cause the firmware
restart dont miss PPA_READY interrupt for SC2
Signed-off-by: Nishant Sarmukadam <nishants@marvell.com >
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:22 -04:00
Wei Yongjun
110dea0008
wil6210: use kfree_skb() instead of kfree()
...
Use kfree_skb() instead of kfree() to free sk_buff.
Introduced by commit e270045b56
(wil6210: Sanity check for reported DMA length)
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:22 -04:00
Stanislaw Gruszka
32ef8f4992
rt2800: move 53xx specific bbp initialization
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:21 -04:00
Stanislaw Gruszka
6addb24eef
rt2800: move 3290 specific bbp initialization
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:21 -04:00
Stanislaw Gruszka
c2da5273ae
rt2800: move 3352 specific bbp initialization
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:21 -04:00
Stanislaw Gruszka
5df1ff3a22
rt2800: initialize BBP_R108 on proper subroutines
...
Create helper function and move initialization to subroutines.
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:20 -04:00
Stanislaw Gruszka
b7feb9ba64
rt2800: initialize BBP_R104 on 3352 subroutine
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:20 -04:00
Stanislaw Gruszka
7291714099
rt2800: initialize BBP_R134 & BBP_R135 on 53xx subroutine
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:20 -04:00
Stanislaw Gruszka
f2b6777cb6
rt2800: initialize BBP_R128 on proper subroutines
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:19 -04:00
Stanislaw Gruszka
46b90d3216
rt2800: initialize BBP_R120 on 3352 subroutine
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:19 -04:00
Stanislaw Gruszka
f867085ede
rt2800: initialize BBP_R106 on all subroutines (except 5592)
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:18 -04:00
Stanislaw Gruszka
49d611186a
rt2800: initialize BBP_R105 on all subroutines (except 5592)
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:18 -04:00
Stanislaw Gruszka
1ad4408a1e
rt2800: initialize BBP_R104 on proper subroutines
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:18 -04:00
Stanislaw Gruszka
672d118898
rt2800: initialize BBP_R103 on all subroutines (except 5592)
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:17 -04:00
Stanislaw Gruszka
90fed53561
rt2800: move initialization of BBP_95 & BBP_98 to 53xx subroutine
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:17 -04:00
Stanislaw Gruszka
b4e121d1d2
rt2800: initialize BBP_R92 on all subroutines (except 5592)
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:16 -04:00
Stanislaw Gruszka
7af987420e
rt2800: initialize BBP_R91 on all subroutines (except 5592)
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:16 -04:00
Stanislaw Gruszka
9400fa8745
rt2800: initialize BBP_R88 on proper subroutines
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:16 -04:00
Stanislaw Gruszka
aef9f38b8d
rt2800: initialize BBP_R86 on all subroutines (except 5592)
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:15 -04:00
Stanislaw Gruszka
3c20a1229d
rt2800: initialize BBP_R84 on all subroutines (except 5592)
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:15 -04:00
Stanislaw Gruszka
885f241436
rt2800: initialize BBP_R83 on all subroutines (except 5592)
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:14 -04:00
Stanislaw Gruszka
fa1e34243f
rt2800: initialize BBP_R82 on all subroutines (except 5592)
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:14 -04:00
Stanislaw Gruszka
43f535e2f9
rt2800: initialize BBP_R74 - BBP_R80 on all subroutines (except 5592)
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:14 -04:00
Stanislaw Gruszka
8d97be3864
rt2800: initialize BBP_R70 on all subroutines (except 5592)
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:13 -04:00
Stanislaw Gruszka
72ffe1426b
rt2800: initialize BBP_R69 - BBP_R77 on proper subroutines
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:13 -04:00
Stanislaw Gruszka
59dcabb5c1
rt2800: initialize BBP_R68 on proper subroutines
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:13 -04:00
Stanislaw Gruszka
e379de1297
rt2800: initialize BBP_R65 & BBP_R66 on all subroutines (except 5592)
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:12 -04:00
Stanislaw Gruszka
3420f79753
rt2800: initialize BBP_R47 on 3352 subroutine
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:12 -04:00
Stanislaw Gruszka
b2f8e0bd26
rt2800: initialize BBP_R31 on proper subroutines
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:11 -04:00
Stanislaw Gruszka
c322357352
rt2800: move rt2800_bbp4_mac_if_ctrl to proper subroutines
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:11 -04:00
Stanislaw Gruszka
29f3a58b90
rt2800: move 3352 bbp specific code
...
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:11 -04:00
Stanislaw Gruszka
dae62957ff
rt2800: add rt2800_init_bbp_305x_soc subroutine
...
New routine for SOC specific BBP initialization, empty for now.
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl >
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com >
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2013-05-24 13:18:10 -04:00