Commit graph android_kernel_sony_sdm845/drivers/net
Message SHA1
[PATCH] 3c59x: bounds checking for hw_checksums
Add bounds checking to usage of hw_checksums module parameter array.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

John W. Linville   authored and   Linus Torvalds   commited 2005-11-07 07:53:25 -08:00
32fb5f06db
[PATCH] 3c59x: avoid blindly reading link status twice
In order to spare some I/O operations, be more intelligent about when to
read from the PHY.

Pointed out by Bogdan Costescu.

Signed-off-by: Tommy S. Christensen <tommy.christensen@tpack.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Tommy Christensen   authored and   Linus Torvalds   commited 2005-11-07 07:53:25 -08:00
d9e46de34e
[PATCH] 3c59x: cleanup of mdio_read routines to use MII_* macros
Clean up mdio_read routines in 3c59x.c to use the MII_* macros defined in
include/linux/mii.h

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Neil Horman   authored and   Linus Torvalds   commited 2005-11-07 07:53:24 -08:00
106427e65d
[PATCH] 3c59x: convert to use of pci_iomap API
Convert 3c59x driver to use pci_iomap API.  This makes it easier to enable
the use of memory-mapped PCI I/O resources.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

John W. Linville   authored and   Linus Torvalds   commited 2005-11-07 07:53:24 -08:00
62afe595de
[PATCH] b44: late request_irq in b44_open
Don't request_irq before the registers are reset/init.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

Francois Romieu   authored and   Jeff Garzik   commited 2005-11-07 03:37:05 -05:00
6c2f426783
[PATCH] b44: s/spin_lock_irqsave/spin_lock/ in b44_interrupt
There is no need to save/restore the irq state as the irq are always
locally disabled when b44_interrupt is issued.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

Francois Romieu   authored and   Jeff Garzik   commited 2005-11-07 03:37:05 -05:00
65b984f26f
[PATCH] b44: expose counters through ethtool
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

Francois Romieu   authored and   Jeff Garzik   commited 2005-11-07 03:37:05 -05:00
3353930d9d
[PATCH] b44: miscellaneous cleanup
- remove unneeded forward declarations
- s/kmalloc + memset/kzalloc/
- whitespace readjustement can't hurt
- wrong comment: b44_init_rings _is_ called with a spinlock held in
  b44_{open/set_ringparam/set_pauseparam/etc}.
  Actually, it does not need to be able to sleep
- b44_remove_one() can not be issued with a NULL device in its
  private member: remove the test.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

Francois Romieu   authored and   Jeff Garzik   commited 2005-11-07 03:37:05 -05:00
874a6214bc
[PATCH] b44: b44_start_xmit returns with a lock held when it fails allocating
The patch simply factors out the release of the lock.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

Francois Romieu   authored and   Jeff Garzik   commited 2005-11-07 03:37:05 -05:00
c719369350
Merge branch 'master'
Jeff Garzik   commited 2005-11-06 23:01:34 -05:00
b78612b796
Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel
Linus Torvalds   commited 2005-11-06 16:58:38 -08:00
6adfd34e85
[netdrvr s2io] warning fixes
From Andrew Morton.

Jeff Garzik   commited 2005-11-05 23:40:46 -05:00
50eb800680
[netdrvr] fac_8xx build fix
Jeff Garzik   commited 2005-11-05 23:40:16 -05:00
ecf8b596cf
Remove linux/version.h include from drivers/net/phy/* and net/ieee80211/*.
Unused, and causes the files to be needlessly rebuilt in some cases.

Jeff Garzik   commited 2005-11-05 23:39:54 -05:00
a10b5aacea
[PATCH] airo.c/airo_cs.c: correct prototypes
This patch creates a file airo.h containing prototypes of the global
functions in airo.c used by airo_cs.c .

If you got strange problems with either airo_cs devices or in any other
completely unrelated part of the kernel shortly or long after a airo_cs
device was detected by the kernel, this might have been caused by the
fact that caller and callee disagreed regarding the size of the first
argument to init_airo_card()...

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Adrian Bunk   authored and   John W. Linville   commited 2005-11-05 21:00:03 -05:00
d38087609a
[PATCH] bnx2: update version and minor fixes
Some book keeping and a style fix.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Michael Chan   authored and   John W. Linville   commited 2005-11-05 21:00:03 -05:00
05d0f1cf69
[PATCH] bnx2: refine bnx2_poll
Refine bnx2_poll() logic to write back the most up-to-date status tag
when all work has been processed. This eliminates some occasional
extra interrupts when a older status tag is written even though all
work has been processed.

The idea is to read the status tag just before exiting bnx2_poll() and
then check again for any new work. If no new work is pending, the
status tag written back will not generate any extra interrupt. This
logic is similar to the changes David Miller did to tg3_poll().

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Michael Chan   authored and   John W. Linville   commited 2005-11-05 21:00:03 -05:00
f4e418f7f3
[PATCH] bnx2: update firmware handshake for 5708
Dynamically determine the shared memory location where eeprom
parameters are stored instead of using a fixed location.

Add speed reporting to management firmware. This allows management
firmware to know the current speed without contending for MII
registers.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Michael Chan   authored and   John W. Linville   commited 2005-11-05 21:00:03 -05:00
e3648b3d8d
[PATCH] bnx2: update nvram code for 5708
Update bnx2 nvram code with support for 5708.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Michael Chan   authored and   John W. Linville   commited 2005-11-05 21:00:02 -05:00
371377091d
[PATCH] bnx2: update firmware for 5708
Update bnx2 firmware with support for 5708.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Michael Chan   authored and   John W. Linville   commited 2005-11-05 21:00:02 -05:00
12d30d89e5
[PATCH] bnx2: add 5708 support
Add 5708 copper and serdes basic support, including 2.5 Gbps support
on 5708 serdes. SPEED_2500 is also added to ethtool.h

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Michael Chan   authored and   John W. Linville   commited 2005-11-05 21:00:02 -05:00
5b0c76ad94
[PATCH] prism54: Remove redundant assignment
The last patch I sent in ("prism54: Free skb after disabling
interrupts") included a redundant NULL assignment. Thanks to Herbert
Xu for pointing it out.

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Daniel Drake   authored and   John W. Linville   commited 2005-11-05 21:00:02 -05:00
17ecc1e63b
[PATCH] drivers/net/hamradio/dmascc.c: remove dmascc_setup()
It seems dmascc_setup() is a leftover time before dmascc_init() was
there.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Adrian Bunk   authored and   John W. Linville   commited 2005-11-05 21:00:01 -05:00
e6b365f61e
[PATCH] drivers/net/e1000/: possible cleanups
This patch contains the following possible cleanups:
- make needlessly global code static
- #if 0 the following unused global functions:
  - e1000_hw.c: e1000_mc_addr_list_update
  - e1000_hw.c: e1000_read_reg_io
  - e1000_hw.c: e1000_enable_pciex_master

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Adrian Bunk   authored and   John W. Linville   commited 2005-11-05 21:00:01 -05:00
3ad2cc6798
[PATCH] drivers/net/ixgb/: make some code static
This patch makes some needlessly global code static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Adrian Bunk   authored and   John W. Linville   commited 2005-11-05 21:00:01 -05:00
e9ab1d1453
[DRIVER MODEL] Fix macsonic
Release code in driver modules is a potential cause of oopsen.
The device may be in use by a userspace process, which will keep
a reference to the device.  If the module is unloaded, the module
text will be freed.  Subsequently, when the last reference is
dropped, the release code will be called, which no longer exists.

Use generic platform device allocation/release code in modules.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>

Russell King   commited 2005-11-05 21:21:10 +00:00
09c6518ca0
[DRIVER MODEL] Fix jazzsonic
Release code in driver modules is a potential cause of oopsen.
The device may be in use by a userspace process, which will keep
a reference to the device.  If the module is unloaded, the module
text will be freed.  Subsequently, when the last reference is
dropped, the release code will be called, which no longer exists.

Use generic platform device allocation/release code in modules.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>

Russell King   commited 2005-11-05 21:20:47 +00:00
95cb5d954e
[DRIVER MODEL] Fix depca
Release code in driver modules is a potential cause of oopsen.
The device may be in use by a userspace process, which will keep
a reference to the device.  If the module is unloaded, the module
text will be freed.  Subsequently, when the last reference is
dropped, the release code will be called, which no longer exists.

Use generic platform device allocation/release code in modules.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>

Russell King   commited 2005-11-05 21:20:21 +00:00
5d994b7f5d
Merge branch 'master'
Jeff Garzik   commited 2005-11-05 15:39:24 -05:00
7211bb9b64
Merge branch 'master'
Jeff Garzik   commited 2005-11-05 15:38:13 -05:00
87199134b4
Merge branch 'master'
Jeff Garzik   commited 2005-11-05 15:37:24 -05:00
d40d9d29c0
[PATCH] phy address mask support for generic phy layer
Adds a phy_mask field to struct mii_bus and uses it.  This field
indicates each phy address to be ignored when probing the mdio bus.

This support is needed for the fs_enet and ibm_emac drivers to be
converted to the generic phy layer among other drivers. Many systems
lock up on probing certain phy addresses or probing doesn't return
0xffff when nothing is found at the address. A new driver I'm
working on also makes use of this mask.

Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

Matt Porter   authored and   Jeff Garzik   commited 2005-11-05 14:40:55 -05:00
f896424cbc
[PATCH] pcnet32: Prevent hang with 79c976
Some boards using the 79c976 pcnet32 chip will hang the system if the
ethtool --register-dump is performed with the device operational.  The
request to read bcr30 is retried by the PCI device infinitely without
returning data, hanging the system.

Tested ia32 and ppc64.

Signed-off-by:  Don Fry <brazilnut@us.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

Don Fry   authored and   Jeff Garzik   commited 2005-11-05 14:40:55 -05:00
4371dc6c60
[PATCH] pcnet32: AT2700/2701 and Bugzilla 2699 & 4551
This patch is a better fix for Allied Telesyn 2700/2701 FX boards than
the change made in early January this year.  It allows the user to
select the speed/duplex via module_param, but if no selection is made,
forces the speed to 100 FD.  It fixes both Bugzilla bugs 2669 and 4551.
Tested ia32 and ppc64 by myself, and by the originator of bug 2669.

Signed-off-by: Don Fry <brazilnut@us.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

Don Fry   authored and   Jeff Garzik   commited 2005-11-05 14:40:55 -05:00
2964bbd704
[PATCH] pcnet32: show name of failing device
Display the name eth%d or pci_name() of device which fails to allocate
memory.  When changing ring size via ethtool, it also releases the
lock before returning on error.  Added comment that the caller of
pcnet32_alloc_ring must call pcnet32_free_ring on error, to avoid leak.
Tested ia32 by forcing allocation errors.

Signed-off-by: Don Fry <brazilnut@us.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

Don Fry   authored and   Jeff Garzik   commited 2005-11-05 14:40:55 -05:00
a88c844c17
[PATCH] S2io: Multi buffer mode support
Hi,
This patch  provides dynamic two buffer-mode and 3 buffer-mode options.
Previously 2 buffer-mode was compilation option. Now with this patch applied
one can load driver in 2 buffer-mode with module-load parameter

ie.
#insmod s2io.ko rx_ring_mode=2

This patch also provides 3 buffer-mode which provides header separation
functionality. In 3 buffer-mode skb->data will have L2/L3/L4 headers and
"skb_shinfo(skb)->frag_list->data" will have have L4 payload.
one can load driver in 3 buffer-mode with same above module-load parameter

ie.
#insmod s2io.ko rx_ring_mode=3

Please review the patch.

Signed-off-by: Ananda Raju <ananda.raju@neterion.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

Ananda Raju   authored and   Jeff Garzik   commited 2005-11-05 14:40:27 -05:00
da6971d8ec
[PATCH] drivers/net/wireless/airo.c unsigned comparason
fid is declared as a u32 (unsigned int), and then a few lines later, it is checked for a value < 0, which is clearly useless.
In the two locations this function is used, in one it is *explicitly* given a negative number, which would be ignored with the
current definition.

Thanks to LinuxICC (http://linuxicc.sf.net).

Signed-off-by: Gabriel A. Devenyi <ace@staticwave.ca>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

Gabriel A. Devenyi   authored and   Jeff Garzik   commited 2005-11-05 14:40:26 -05:00
29b09fcc34
Merge branch 'master'
Jeff Garzik   commited 2005-11-05 14:38:55 -05:00
328198acb7
[netdrvr 8139too] use rtnl_shlock_nowait() rather than rtnl_lock_interruptible()
Jeff Garzik   commited 2005-11-04 22:46:35 -05:00
96a71d52bb
[netdrvr 8139too] use cancel_rearming_delayed_work() to cancel thread
Noted by Herbert Xu.

Jeff Garzik   commited 2005-11-04 22:36:28 -05:00
38b492a21a
Merge master.kernel.org:/pub/scm/linux/kernel/git/paulus/powerpc-merge
Linus Torvalds   commited 2005-11-04 16:27:50 -08:00
602d4a7e2f
[PATCH] ARM: Reverted 2919/1: CS8900A ethernet driver modifications for the Comdial MP1000
No longer maintained

Russell King   commited 2005-11-04 17:26:56 +00:00
e399822da0
Merge Paulus' tree
Stephen Rothwell   commited 2005-11-02 18:15:43 +11:00
2be7a90675
[PATCH] ibmveth fix panic in initial replenish cycle
This patch fixes a panic in the current tree caused by a race condition between the initial replenish cycle and the rx processing of the first packets trying to replenish the buffers.

Signed-off-by: Santiago Leon <santil@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Santiago Leon   authored and   Linus Torvalds   commited 2005-11-01 21:56:40 -08:00
6c2af71f7f
Merge master.kernel.org:/home/rmk/linux-2.6-arm
Linus Torvalds   commited 2005-11-01 21:32:14 -08:00
7f36b1e958
merge filename and modify references to iSeries/mf.h
Signed-off-by: Kelly Daly <kelly@au.ibm.com>

Kelly Daly   commited 2005-11-02 15:10:38 +11:00
bbc8b628b0
merge filename and modify references to iseries/hv_types.h
Signed-off-by: Kelly Daly <kelly@au.ibm.com>

Kelly Daly   commited 2005-11-02 13:46:07 +11:00
1ec65d76f3
merge filename and modify references to iseries/hv_lp_event.h
Signed-off-by: Kelly Daly <kelly@au.ibm.com>

Kelly Daly   commited 2005-11-02 12:08:31 +11:00
e45423eac2
merge filename and modify reference to iseries/hv_lp_config.h
Signed-off-by: Kelly Daly <kelly@au.ibm.com>

Kelly Daly   commited 2005-11-02 11:55:28 +11:00
15b1718948
[ARM] Convert EBSA110 network driver to a platform driver
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

Russell King   commited 2005-10-31 17:14:57 +00:00
37bb30e86b