Commit graph android_kernel_sony_sdm845/drivers/net
Message SHA1
[PATCH] r8169: new PCI id
The USR 997902 is based on the 8169 chipset.

The value has been extracted from the sources of the driver which
comes with the manufacturer's cdrom. Heads-up and test by TommyDrum
<mycooc@yahoo.it>.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>

Francois Romieu   commited 2005-05-27 21:11:33 +02:00
a7b6459de1
Automatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git branch HEAD
  authored and   Jeff Garzik   commited 2005-05-26 21:40:25 -04:00
462cee2964
Automatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
Linus Torvalds   commited 2005-05-26 13:54:33 -07:00
4ec5240ec3
[BNX2]: New Broadcom gigabit network driver.
A new driver bnx2 for Broadcom bcm5706 is available.

The patch also includes new 1000BASE-X advertisement bit definitions in
mii.h

Thanks to David Miller and Jeff Garzik for reviewing and their valuable
feedback.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Michael Chan   authored and   David S. Miller   commited 2005-05-26 13:03:09 -07:00
b6016b7673
[BONDING]: bonding using arp_ip_target may stay down with active path
Correcting the list traversal makes the problem go away.

Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Jay Vosburgh   authored and   David S. Miller   commited 2005-05-26 12:56:59 -07:00
2f872f0401
Automatic merge of /spare/repo/netdev-2.6 branch tlan
  authored and   Jeff Garzik   commited 2005-05-25 22:11:38 -04:00
ad6a9984ee
Automatic merge of /spare/repo/netdev-2.6 branch sis900
  authored and   Jeff Garzik   commited 2005-05-25 22:11:28 -04:00
38778204a1
Automatic merge of /spare/repo/netdev-2.6 branch veth
  authored and   Jeff Garzik   commited 2005-05-25 22:11:14 -04:00
8cf0d9d075
Automatic merge of /spare/repo/netdev-2.6 branch ns83820
  authored and   Jeff Garzik   commited 2005-05-25 22:10:53 -04:00
f5a702b26a
Automatic merge of /spare/repo/netdev-2.6 branch natsemi
  authored and   Jeff Garzik   commited 2005-05-25 22:10:38 -04:00
5ea6f2c33f
Automatic merge of /spare/repo/netdev-2.6 branch forcedeth
  authored and   Jeff Garzik   commited 2005-05-25 22:10:25 -04:00
acb969560d
Automatic merge of /spare/repo/netdev-2.6 branch airo
  authored and   Jeff Garzik   commited 2005-05-25 22:09:52 -04:00
ee03a68c10
Automatic merge of /spare/repo/netdev-2.6 branch atmel
  authored and   Jeff Garzik   commited 2005-05-25 22:07:51 -04:00
0c2fc10901
Automatic merge of /spare/repo/netdev-2.6 branch amd8111
  authored and   Jeff Garzik   commited 2005-05-25 13:57:36 -04:00
f6f3a488e5
Automatic merge of /spare/repo/netdev-2.6 branch pcnet32
  authored and   Jeff Garzik   commited 2005-05-25 13:57:25 -04:00
a58eae6480
Automatic merge of /spare/repo/netdev-2.6 branch ixgb
  authored and   Jeff Garzik   commited 2005-05-25 13:57:15 -04:00
09e62666d8
Automatic merge of /spare/repo/netdev-2.6 branch e1000
  authored and   Jeff Garzik   commited 2005-05-25 13:57:03 -04:00
34812c9e18
Automatic merge of /spare/repo/netdev-2.6 branch e100
  authored and   Jeff Garzik   commited 2005-05-25 13:56:55 -04:00
d6d78f63ce
[PATCH] tulip: add return to ULI526X clause in tulip_mdio_write
The 'if' clause for ULI526X in tulip_mdio_write allows for
spin_unlock_irqrestore to be called twice for tp->mii_lock.  I believe
this is caused by the unintentional omission of a return at the end
of that clause.  This patch adds that return.

Signed-off-by: John W. Linville <linville@tuxdriver.com>

John W. Linville   authored and   Jeff Garzik   commited 2005-05-24 00:26:12 -04:00
9092f46b5a
[TG3]: Update driver version.
Signed-off-by: David S. Miller <davem@davemloft.net>

David S. Miller   commited 2005-05-23 14:00:44 -07:00
d1faeaeb95
[TG3]: Increase TEST_BUFFER_SIZE to 8K.
This makes the DMA bug workaround test more likely
to find the problem on some systems.

Signed-off-by: David S. Miller <davem@davemloft.net>

David S. Miller   commited 2005-05-23 13:59:47 -07:00
ded7340d9d
[TG3]: Update driver version and reldate.
Signed-off-by: David S. Miller <davem@davemloft.net>

David S. Miller   commited 2005-05-23 13:13:15 -07:00
413f5431a5
[TG3]: Add 5752M device ID.
Add 0x1601 as 5752M, it's a 5752 but for mobile PCs.
Stolen from Broadcom bcm5700-8.1.55 driver.

Someone forgot to add it to tg3 ;-)

Signed-off-by: David S. Miller <davem@davemloft.net>

Xose Vazquez Perez   authored and   David S. Miller   commited 2005-05-23 12:54:51 -07:00
d8659255c5
[TG3]: In tg3_poll(), resample status_tag after doing work.
Signed-off-by: David S. Miller <davem@davemloft.net>

David S. Miller   commited 2005-05-18 22:50:53 -07:00
f7383c2224
[TG3]: Refine DMA boundary setting.
Extract DMA boundary bit selection into a seperate
function, tg3_calc_dma_bndry().  Call this from
tg3_test_dma().

Make DMA test more reliable by using no DMA boundry
setting during the test.  If the test passes, then
use the setting we selected before the test.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Michael Chan <mchan@broadcom.com>

David S. Miller   commited 2005-05-18 22:50:10 -07:00
59e6b43432
[TG3]: Set minimal hw interrupt mitigation.
Even though we do software interrupt mitigation
via NAPI, it still helps to have some minimal
hw assisted mitigation.

This helps, particularly, on systems where register
I/O overhead is much greater than the CPU horsepower.

For example, it helps on NUMA systems.  In such cases
the PIO overhead to disable interrupts for NAPI accounts
for the majority of the packet processing cost.  The
CPU is fast enough such that only a single packet is
processed by each NAPI poll call.

Thanks to Michael Chan for reviewing this patch.

Signed-off-by: David S. Miller <davem@davemloft.net>

David S. Miller   commited 2005-05-18 22:49:26 -07:00
15f9850d3c
[TG3]: Add tagged status support.
When supported, use the TAGGED interrupt processing support
the chip provides.  In this mode, instead of a "on/off" binary
semaphore, an incrementing tag scheme is used to ACK interrupts.

All MSI supporting chips support TAGGED mode, so the tg3_msi()
interrupt handler uses it unconditionally.  This invariant is
verified when MSI support is tested.

Since we can invoke tg3_poll() multiple times per interrupt under
high packet load, we fetch a new copy of the tag value in the
status block right before we actually do the work.

Also, because the tagged status tells the chip exactly which
work we have processed, we can make two optimizations:

1) tg3_restart_ints() need not check tg3_has_work()
2) the tg3_timer() need not poke the chip 10 times per
   second to keep from losing interrupt events

Based upon valuable feedback from Michael Chan <mchan@broadcom.com>

Signed-off-by: David S. Miller <davem@davemloft.net>

David S. Miller   commited 2005-05-18 22:46:34 -07:00
fac9b83ea7
[PATCH] wireless: 3CRWE154G72 Kconfig help fix
Version 2 of the 3com OfficeConnect 11g Cardbus Card aka 3CRWE154G72 is not
supported by the prism54 project.  To stop confusion, the kernel
documentation should state so as 3com made a good job hiding the version.

Signed-off-by: Andrew Morton <akpm@osdl.org>

diff -puN drivers/net/wireless/Kconfig~wireless-3crwe154g72-kconfig-help-fix drivers/net/wireless/Kconfig

Daniel Andersen   authored and   Jeff Garzik   commited 2005-05-16 00:04:29 -04:00
c8920ba041
[PATCH] Typo in tulip driver
This patch fixes a typo in tulip driver in 2.6.12-rc3.

Jiri Benc   authored and   Jeff Garzik   commited 2005-05-15 23:18:48 -04:00
c4cc26d331
[PATCH] smc91c92_cs: Reduce stack usage in smc91c92_event()
This patch reduces the stack usage of the function smc91c92_event() in
smc91c92_cs driver from 3540 to 132.  Currently this is the highest stack
user in linux-2.6.12-rc2-mm3.  I used a patched version of gcc 3.4.3 on
i386 with -fno-unit-at-a-time disabled.

The patch has only been compile tested.

Acked-by: Jörn Engel <joern@wohnheim.fh-wedel.de>
Acked-by: Randy Dunlap <rddunlap@osdl.org>
Signed-off-by: Yum Rayan <yum.rayan@gmail.com>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>

Yum Rayan   authored and   Jeff Garzik   commited 2005-05-15 23:16:30 -04:00
4638aef40b
[PATCH] fix PROMISC/bridging in TLAN driver
This has been a problem for me for ages.  When using bridging, the driver
is switched into promiscuous mode before the link init is complete.  The
init complete routine then resets the promisc bit on the card so the kernel
still thinks the card is in promiscuous mode but the card isn't.  doh.

I think this bug only shows up in bridging when the bridge is started at
boot time (or something else that sets promisc at the same time the card
was started).  If promisc is enabled later it works.

Here's a trivial (and hopefully correct) patch that works for me. It
just calls the promisc/multicast setup routine after init.

Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>

James Harper   authored and   Jeff Garzik   commited 2005-05-15 22:47:56 -04:00
562faf469f
[PATCH] {PATCH] Fix IBM EMAC driver ioctl bug
Fix IBM EMAC driver ioctl bug.

I found IBM EMAC driver bug.
So mii-tool command print wrong status.

  # mii-tool
  eth0: 10 Mbit, half duplex, no link
  eth1: 10 Mbit, half duplex, no link

I can get correct status on fixed kernel.

  # mii-tool
  eth0: negotiated 100baseTx-FD, link okZZ
  eth1: negotiated 100baseTx-FD, link ok

Hiroaki Fuse

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> for CELF

Geoff Levand   authored and   Jeff Garzik   commited 2005-05-15 22:44:26 -04:00
99718699f5
[PATCH] ns83820 update
Changes:
- improved DAC ifdefs from Andi Kleen
- removal of dead code from Adrian Bunk
- fix half duplex collision behaviour

Benjamin LaHaise   authored and   Jeff Garzik   commited 2005-05-15 22:26:45 -04:00
c16ef1ceed
[PATCH] Generic HDLC update
The attached patch updates generic HDLC to version 1.18.
FR Cisco LMI production-tested. Please apply to Linux 2.6. Thanks.

Changes:
- doc updates
- added Cisco LMI support to Frame-Relay code
- cleaned hdlc_fr.c a bit, removed some orphaned #defines etc.
- fixed a problem with non-functional LMI in FR DCE mode.
- changed diagnostic messages to better conform to FR standards
- all protocols: information about carrier changes (DCD line) is now
  printed to kernel logs.

Signed-Off-By: Krzysztof Halasa <khc@pm.waw.pl>

Krzysztof Halasa   authored and   Jeff Garzik   commited 2005-05-15 22:24:12 -04:00
b3dd65f958
[PATCH] drivers/net/wireless enabled by wrong option
NET_WIRELESS is only a subset of the stuff in drivers/net/wireless;
NET_RADIO is what covers all of them.
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>

Al Viro   authored and   Jeff Garzik   commited 2005-05-15 22:22:32 -04:00
f7a3aae172
[PATCH] pcnet_cs cleanup
killed abuse of ->rmem_end

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>

Al Viro   authored and   Jeff Garzik   commited 2005-05-15 22:21:07 -04:00
99417769ba
[PATCH] etherh iomem annotations
the usual
echo Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>

Al Viro   authored and   Jeff Garzik   commited 2005-05-15 22:21:07 -04:00
507ef165e8
[PATCH] skge 64bit portability
ptrdiff_t is %td, not %d
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>

Al Viro   authored and   Jeff Garzik   commited 2005-05-15 22:19:48 -04:00
0b2d7fea1c
[PATCH] skge missing include
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>

Al Viro   authored and   Jeff Garzik   commited 2005-05-15 22:19:48 -04:00
4075400b8b
[PATCH] A new 10GB Ethernet Driver by Chelsio Communications
A Linux driver for the Chelsio 10Gb Ethernet Network Controller by Chelsio
(http://www.chelsio.com).  This driver supports the Chelsio N210 NIC and is
backward compatible with the Chelsio N110 model 10Gb NICs.  It supports
AMD64, EM64T and x86 systems.

Signed-off-by: Tina Yang <tinay@chelsio.com>
Signed-off-by: Scott Bardone <sbardone@chelsio.com>
Signed-off-by: Christoph Lameter <christoph@lameter.com>

Adrian said:

- my3126.c is unused (because t1_my3126_ops isn't used anywhere)
- what are the EXTRA_CFLAGS in drivers/net/chelsio/Makefile for?
- $(cxgb-y) in drivers/net/chelsio/Makefile seems to be unneeded
- completely unused global functions:
  - espi.c: t1_espi_get_intr_counts
  - sge.c: t1_sge_get_intr_counts
- the following functions can be made static:
  - sge.c: t1_espi_workaround
  - sge.c: t1_sge_tx
  - subr.c: __t1_tpi_read
  - subr.c: __t1_tpi_write
  - subr.c: t1_wait_op_done

shemminger said:

The performance recommendations in cxgb.txt are common to all fast devices,
and should be in one file rather than just for this device. I would rather
see ip-sysctl.txt updated or a new file on tuning recommendations started.
Some of them have consequences that aren't documented well.
For example, turning off TCP timestamps risks data corruption from sequence wrap.

A new driver shouldn't need so may #ifdef's unless you want to putit on older
vendor versions of 2.4

Some accessor and wrapper functions like:
        t1_pci_read_config_4
        adapter_name
        t1_malloc
are just annoying noise.

Why have useless dead code like:

/* Interrupt handler */
+static int pm3393_interrupt_handler(struct cmac *cmac)
+{
+       u32 master_intr_status;
+/*
+    1. Read master interrupt register.
+    2. Read BLOCK's interrupt status registers.
+    3. Handle BLOCK interrupts.
+*/

Jeff said:

step 1:  kill all the OS wrappers.

 And do you really need hooks for multiple MACs, when only one MAC is
 really supported?  Typically these hooks are at a higher level anyway --
 struct net_device.

From: Christoph Lameter <christoph@lameter

Driver modified as suggested by Pekka Enberg, Stephen Hemminger and Andrian
Bunk.  Reduces the size of the driver to ~260k.

- clean up tabs
- removed my3126.c
- removed 85% of suni1x10gexp_regs.h
- removed 80% of regs.h
- removed various calls, renamed variables/functions.
- removed system specific and other wrappers (usleep, msleep)
- removed dead code
- dropped redundant casts in osdep.h
- dropped redundant check of kfree
- dropped weird code (MODVERSIONS stuff)
- reduced number of #ifdefs
- use kcalloc now instead of kmalloc
- Add information about known issues with the driver
- Add information about authors

Signed-off-by: Scott Bardone <sbardone@chelsio.com>
Signed-off-by: Christoph Lameter <christoph@lameter.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>

diff -puN /dev/null Documentation/networking/cxgb.txt

Christoph Lameter   authored and   Jeff Garzik   commited 2005-05-15 19:15:02 -04:00
8199d3a79c
[PATCH] remove drivers/net/skfp/lnkstat.c
This patch removes a file that seems to be used only on AIX (sic).

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>

Adrian Bunk   authored and   Jeff Garzik   commited 2005-05-15 18:54:49 -04:00
54d06c3184
[PATCH] DM9000 network driver
This patch adds support for the davicom dm9000 network driver.  The dm9000
is found on some embedded arm boards such as the pimx1 or the scb9328.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>

diff -puN /dev/null drivers/net/dm9000.c

Sascha Hauer   authored and   Jeff Garzik   commited 2005-05-15 18:31:07 -04:00
a1365275e7
[PATCH] tlan: restore deleted module parameters.
The module parameter values got lost in the conversion to the new module_param
interface. This should fix it.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>

Index: tlan/drivers/net/tlan.c
===================================================================

Stephen Hemminger   authored and   Jeff Garzik   commited 2005-05-15 18:25:23 -04:00
15efa9bb2d
[PATCH] SIS900 must select MII
This patch fixes the following compile error caused by bk-netdev:

<--  snip  -->

...
  LD      .tmp_vmlinux1
drivers/built-in.o(.text+0x98528): In function `sis900_get_settings':
: undefined reference to `mii_ethtool_gset'
drivers/built-in.o(.text+0x98538): In function `sis900_set_settings':
: undefined reference to `mii_ethtool_sset'
drivers/built-in.o(.text+0x98517): In function `sis900_get_link':
: undefined reference to `mii_link_ok'
drivers/built-in.o(.text+0x98547): In function `sis900_nway_reset':
: undefined reference to `mii_nway_restart'
make: *** [.tmp_vmlinux1] Error 1

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Daniele Venzano <venza@brownhat.org>

Adrian Bunk   authored and   Jeff Garzik   commited 2005-05-15 18:24:14 -04:00
6da0f68593
[PATCH] pcnet32: fix resource leak with loopback test
When running the loopback test, resources are not properly released on
completion.  This patch frees all transmit resources after running the
loopback test.  Tested on ia32 and ppc64 hardware.

Signed-off-by: Don Fry <brazilnut@us.ibm.com>

Don Fry   authored and   Jeff Garzik   commited 2005-05-15 18:22:29 -04:00
1bcd315362
[PATCH] wireless/airo: WEXT and quality corrections
This patch brings the airo driver into line with the current
WEXT specification of signal quality.  It also fixes the values
used to determine signal quality and level for MPI & PCMCIA 350
cards.  It turns out that BSSListRid.rssi was actually in dBm
for 350 series cards, and that we can use the normalized
signal strength reported by the card as our "quality" value, on
a scale of 0 - 100.  Since signal level values are in dBm for
this driver, max_qual->level MUST be 0, as specified in the WEXT
spec.  This patch also uses the IW_QUAL constants new in WEXT
version 17.

Signed-off-by: Dan Williams <dcbw@redhat.com>

Dan Williams   authored and   Jeff Garzik   commited 2005-05-15 18:20:57 -04:00
41480af27a
[PATCH] Fw: [Bugme-new] [Bug 4482] New: natsemi: incorrect initialization of IPv6 Neighbor-discovery multicast
On Wed, Apr 13, 2005 at 05:36:42PM +0000, Andrew Morton wrote:
>            Summary: natsemi: incorrect initialization of IPv6 Neighbor-
>                     discovery multicast

I've got a pair of FA312 cards and this problem has bothered me
for ages.  This has finally prompted me to do something about it :)

Turns out that somebody wasn't following the documentation.  We were
doing 16-bit writes to 32-bit registers which led to some addresses
working and others not so lucky.

This patch should fix the problem.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Herbert Xu   authored and   Jeff Garzik   commited 2005-05-15 18:18:56 -04:00
760f86d78d
[PATCH] atmel wireless
Below is a one-liner for the atmel wireless driver, just adding
another card to the table.

simon@thekelleys.org.uk   authored and   Jeff Garzik   commited 2005-05-15 18:11:54 -04:00
e885b5e839
[PATCH] forcedeth: Update error handling
Ayaz wrote an update to the error handling for forcedeth (which I
modified heavily, thus all bugs are mine):
The ERROR4 bit is not a fatal error, it just indicates a mismatch
between the actual packet len and the len according to the 802.3 header.
The patch adds proper handling.
The patch also removes the code that drops all packets with RX_ERROR &
(!RX_FRAMINGERR): ERROR4 errors are also not fatal.

Manfred Spraul   authored and   Jeff Garzik   commited 2005-05-15 18:10:01 -04:00
22c6d143f3
[PATCH] iseries_veth: Cleanup skbs to prevent unregister_netdevice() hanging
Hi Andrew, Jeff,

The iseries_veth driver is badly behaved in that it will keep TX packets
hanging around forever if they're not ACK'ed and the queue never fills up.

This causes the unregister_netdevice code to wait forever when we try to take
the device down, because there's still skbs around with references to our
struct net_device.

There's already code to cleanup any un-ACK'ed packets in veth_stop_connection()
but it's being called after we unregister the net_device, which is too late.

The fix is to rearrange the module exit function so that we cleanup any
outstanding skbs and then unregister the driver.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>

Michael Ellerman   authored and   Jeff Garzik   commited 2005-05-15 18:08:06 -04:00
b2e0852e1e