<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/net/ethoc.c, branch v3.0.86</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/net/ethoc.c?h=v3.0.86</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/net/ethoc.c?h=v3.0.86'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2011-03-31T14:26:23Z</updated>
<entry>
<title>Fix common misspellings</title>
<updated>2011-03-31T14:26:23Z</updated>
<author>
<name>Lucas De Marchi</name>
<email>lucas.demarchi@profusion.mobi</email>
</author>
<published>2011-03-31T01:57:33Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=25985edcedea6396277003854657b5f3cb31a628'/>
<id>urn:sha1:25985edcedea6396277003854657b5f3cb31a628</id>
<content type='text'>
Fixes generated by 'codespell' and manually reviewed.

Signed-off-by: Lucas De Marchi &lt;lucas.demarchi@profusion.mobi&gt;
</content>
</entry>
<entry>
<title>driver-core: remove conditionals around devicetree pointers</title>
<updated>2011-01-21T16:24:48Z</updated>
<author>
<name>Grant Likely</name>
<email>grant.likely@secretlab.ca</email>
</author>
<published>2011-01-21T16:24:48Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c9e358dfc4a8cb2227172ef77908c2e0ee17bcb9'/>
<id>urn:sha1:c9e358dfc4a8cb2227172ef77908c2e0ee17bcb9</id>
<content type='text'>
Having conditional around the of_match_table and the of_node pointers
turns out to make driver code use ugly #ifdef blocks.  Drop the
conditionals and remove the #ifdef blocks from the affected drivers.

Also tidy up minor whitespace issues within the same hunks.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Acked-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>ethoc: remove division from loops</title>
<updated>2010-11-28T19:16:38Z</updated>
<author>
<name>Jonas Bonn</name>
<email>jonas@southpole.se</email>
</author>
<published>2010-11-25T02:30:32Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=6a632625c7da7594d059b88dae0e9c591af147ba'/>
<id>urn:sha1:6a632625c7da7594d059b88dae0e9c591af147ba</id>
<content type='text'>
Calculating the BD entry using a modulus operation isn't optimal, especially
inside the loop.  This patch removes the modulus operations in favour of:

i)  simply checking for wrapping in the case of cur_rx
ii) forcing num_tx to be a power of two and using it to mask out the
    entry from cur_tx

The also prevents possible issues related overflow of the cur_rx and cur_tx
counters.

Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethoc: fix function return type</title>
<updated>2010-11-28T19:16:37Z</updated>
<author>
<name>Jonas Bonn</name>
<email>jonas@southpole.se</email>
</author>
<published>2010-11-25T02:30:31Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4f64bcb2fc093a3a9d7d41220004491ce88e4dd3'/>
<id>urn:sha1:4f64bcb2fc093a3a9d7d41220004491ce88e4dd3</id>
<content type='text'>
update_ethoc_tx_stats doesn't need to return anything so make its return
type void in order to avoid an unnecessary cast when the function is called.

Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethoc: rework mdio read/write</title>
<updated>2010-11-28T19:16:37Z</updated>
<author>
<name>Jonas Bonn</name>
<email>jonas@southpole.se</email>
</author>
<published>2010-11-25T02:30:30Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8dac428ae9ae54d8e8540ac157d92925dd7ebed8'/>
<id>urn:sha1:8dac428ae9ae54d8e8540ac157d92925dd7ebed8</id>
<content type='text'>
MDIO read and write were checking whether a timeout had expired to determine
whether to recheck the result of the MDIO operation.  Under heavy CPU usage,
however, it was possible for the timeout to expire before the routine got
around to be able to check a second time even, thus erroneousy returning an
-EBUSY.

This patch changes the the MDIO IO routines to try up to five times to complete
the operation before giving up, thus lessening the dependency on CPU load.

This resolves a problem whereby a ping flood would keep the CPU so busy that
the above problem would manifest itself; the MDIO command to check link status
would fail and the interface would erroneously be shut down.

Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethoc: rework interrupt handling</title>
<updated>2010-11-28T19:16:36Z</updated>
<author>
<name>Jonas Bonn</name>
<email>jonas@southpole.se</email>
</author>
<published>2010-11-25T02:30:29Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=fa98eb0e867c6c16e239545d4deb7ad8f40631b3'/>
<id>urn:sha1:fa98eb0e867c6c16e239545d4deb7ad8f40631b3</id>
<content type='text'>
The old interrupt handling was incorrect in that it did not account for the
fact that the interrupt source bits get set irregardless of whether or not
their corresponding mask is set.  This patch fixes that by masking off the
source bits for masked interrupts.

Furthermore, the handling of transmission events is moved to the NAPI polling
handler alongside the reception handler, thus preventing a whole bunch of
interrupts during heavy traffic.

Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethoc: Double check pending RX packet</title>
<updated>2010-11-28T19:16:36Z</updated>
<author>
<name>Jonas Bonn</name>
<email>jonas@southpole.se</email>
</author>
<published>2010-11-25T02:30:28Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=20f70ddd6558a39a89dba4af675686c5a8dbd7b3'/>
<id>urn:sha1:20f70ddd6558a39a89dba4af675686c5a8dbd7b3</id>
<content type='text'>
An interrupt may occur between checking bd.stat and clearing the
interrupt source register which would result in the packet going totally
unnoticed as the interrupt will be missed.  Double check bd.stat after
clearing the interrupt source register to guard against such an
occurrence.

Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethoc: enable interrupts after napi_complete</title>
<updated>2010-11-28T19:16:35Z</updated>
<author>
<name>Adam Edvardsson</name>
<email>adam.edvardsson@orsoc.se</email>
</author>
<published>2010-11-25T02:30:27Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7438a5455734d109fdf18d97147dc57a6dbe5a44'/>
<id>urn:sha1:7438a5455734d109fdf18d97147dc57a6dbe5a44</id>
<content type='text'>
Occasionally, it seems that some race is causing the interrupts to not be
reenabled otherwise with the end result that networking just stops working.
Enabling interrupts after calling napi_complete is more in line with what
other drivers do.

Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethoc: remove unused spinlock</title>
<updated>2010-11-28T19:16:35Z</updated>
<author>
<name>Jonas Bonn</name>
<email>jonas@southpole.se</email>
</author>
<published>2010-11-25T02:30:26Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=eac0d3ff5a92de410964fdf0d072314821ca39fc'/>
<id>urn:sha1:eac0d3ff5a92de410964fdf0d072314821ca39fc</id>
<content type='text'>
Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethoc: Add device tree configuration</title>
<updated>2010-11-28T19:16:34Z</updated>
<author>
<name>Jonas Bonn</name>
<email>jonas@southpole.se</email>
</author>
<published>2010-11-25T02:30:25Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e0f4258be2515afce8ef1e6fb22312525c281798'/>
<id>urn:sha1:e0f4258be2515afce8ef1e6fb22312525c281798</id>
<content type='text'>
This patch adds the ability to describe ethernet devices via a flattened
device tree.  As device tree remains an optional feature, these bits all
need to be guarded by CONFIG_OF ifdefs.

MAC address is settable via the device tree parameter "local-mac-address";
however, the selection of the phy id is limited to probing, for now.

Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
