<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/net/r8169.c, branch v2.6.25.10</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>r8169: fix oops in r8169_get_mac_version</title>
<updated>2008-05-15T14:50:07+00:00</updated>
<author>
<name>Ivan Vecera</name>
<email>ivecera@redhat.com</email>
</author>
<published>2008-05-11T09:00:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=05d5b6cf37de1a9ceb873b770de113861a5b3df9'/>
<id>05d5b6cf37de1a9ceb873b770de113861a5b3df9</id>
<content type='text'>
commit 21e197f231343201368338603cb0909a13961bac upstream.

r8169_get_mac_version crashes when it meets an unknown MAC
due to tp-&gt;pci_dev not being set. Initialize it early.

Signed-off-by: Ivan Vecera &lt;ivecera@redhat.com&gt;
Acked-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 21e197f231343201368338603cb0909a13961bac upstream.

r8169_get_mac_version crashes when it meets an unknown MAC
due to tp-&gt;pci_dev not being set. Initialize it early.

Signed-off-by: Ivan Vecera &lt;ivecera@redhat.com&gt;
Acked-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>r8169: fix past rtl_chip_info array size for unknown chipsets</title>
<updated>2008-05-15T14:50:06+00:00</updated>
<author>
<name>Roel Kluin</name>
<email>12o3l@tiscali.nl</email>
</author>
<published>2008-05-11T08:59:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=fa5c104c2465470dc316bf211257f9e67e0ba602'/>
<id>fa5c104c2465470dc316bf211257f9e67e0ba602</id>
<content type='text'>
commit cee60c377de6d9d10f0a2876794149bd79a15020 upstream.

'i' is unsigned.

Signed-off-by: Roel Kluin &lt;12o3l@tiscali.nl&gt;
Acked-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit cee60c377de6d9d10f0a2876794149bd79a15020 upstream.

'i' is unsigned.

Signed-off-by: Roel Kluin &lt;12o3l@tiscali.nl&gt;
Acked-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>r8169: fix missing loop variable increment</title>
<updated>2008-01-12T22:41:04+00:00</updated>
<author>
<name>Francois Romieu</name>
<email>romieu@fr.zoreil.com</email>
</author>
<published>2008-01-03T22:38:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=cadf1855e9f97d3f6857a168e1e7798fe27530a1'/>
<id>cadf1855e9f97d3f6857a168e1e7798fe27530a1</id>
<content type='text'>
Spotted-by: Citizen Lee &lt;citizen_lee@thecus.com&gt;
Signed-off-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
Signed-off-by: Jeff Garzik &lt;jeff@garzik.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Spotted-by: Citizen Lee &lt;citizen_lee@thecus.com&gt;
Signed-off-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
Signed-off-by: Jeff Garzik &lt;jeff@garzik.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[NET]: Fix drivers to handle napi_disable() disabling interrupts.</title>
<updated>2008-01-09T07:30:12+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2008-01-08T04:53:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d1d08d1265810ef1f165864850416dcbc9725ee7'/>
<id>d1d08d1265810ef1f165864850416dcbc9725ee7</id>
<content type='text'>
When we add the generic napi_disable_pending() breakout
logic to net_rx_action() it means that napi_disable()
can cause NAPI poll interrupt events to be disabled.

And this is exactly what we want.  If a napi_disable()
is pending, and we are looping in the -&gt;poll(), we want
-&gt;poll() event interrupts to stay disabled and we want
to complete the NAPI poll ASAP.

When -&gt;poll() break out during device down was being handled on a
per-driver basis, often these drivers would turn interrupts back on
when '!netif_running()' was detected.

And this would just cause a reschedule of the NAPI -&gt;poll() in the
interrupt handler before the napi_disable() could get in there and
grab the NAPI_STATE_SCHED bit.

The vast majority of drivers don't care if napi_disable() might have
the side effect of disabling NAPI -&gt;poll() event interrupts.  In all
such cases, when a napi_disable() is performed, the driver just
disabled interrupts or is about to.

However there were three exceptions to this in PCNET32, R8169, and
SKY2.  To fix those cases, at the subsequent napi_enable() points, I
added code to ensure that the -&gt;poll() interrupt events are enabled in
the hardware.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Acked-by:  Don Fry &lt;pcnet32@verizon.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When we add the generic napi_disable_pending() breakout
logic to net_rx_action() it means that napi_disable()
can cause NAPI poll interrupt events to be disabled.

And this is exactly what we want.  If a napi_disable()
is pending, and we are looping in the -&gt;poll(), we want
-&gt;poll() event interrupts to stay disabled and we want
to complete the NAPI poll ASAP.

When -&gt;poll() break out during device down was being handled on a
per-driver basis, often these drivers would turn interrupts back on
when '!netif_running()' was detected.

And this would just cause a reschedule of the NAPI -&gt;poll() in the
interrupt handler before the napi_disable() could get in there and
grab the NAPI_STATE_SCHED bit.

The vast majority of drivers don't care if napi_disable() might have
the side effect of disabling NAPI -&gt;poll() event interrupts.  In all
such cases, when a napi_disable() is performed, the driver just
disabled interrupts or is about to.

However there were three exceptions to this in PCNET32, R8169, and
SKY2.  To fix those cases, at the subsequent napi_enable() points, I
added code to ensure that the -&gt;poll() interrupt events are enabled in
the hardware.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Acked-by:  Don Fry &lt;pcnet32@verizon.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>r8169 endianness</title>
<updated>2007-12-23T03:53:07+00:00</updated>
<author>
<name>Al Viro</name>
<email>viro@ftp.linux.org.uk</email>
</author>
<published>2007-12-22T18:55:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=95e0918dbb6d83020ef3eb0a4276413264abd14d'/>
<id>95e0918dbb6d83020ef3eb0a4276413264abd14d</id>
<content type='text'>
missing conversions in a couple of places

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Jeff Garzik &lt;jeff@garzik.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
missing conversions in a couple of places

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Jeff Garzik &lt;jeff@garzik.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>r8169: prevent bit sign expansion error in mdio_write</title>
<updated>2007-11-10T09:25:16+00:00</updated>
<author>
<name>Francois Romieu</name>
<email>romieu@fr.zoreil.com</email>
</author>
<published>2007-11-08T22:23:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a6baf3af89a266a3d745117de570788b956396e7'/>
<id>a6baf3af89a266a3d745117de570788b956396e7</id>
<content type='text'>
Oops.

The current code does not like being given an u16 with the highest
bit set as an argument to mdio_write. Let's enforce a correct range of
values for both the register address and value (resp. 5 and 16 bits).

The callers are currently left as-is.

Signed-off-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
Cc: Edward Hsu &lt;edward_hsu@realtek.com.tw&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Oops.

The current code does not like being given an u16 with the highest
bit set as an argument to mdio_write. Let's enforce a correct range of
values for both the register address and value (resp. 5 and 16 bits).

The callers are currently left as-is.

Signed-off-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
Cc: Edward Hsu &lt;edward_hsu@realtek.com.tw&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>r8169: revert 7da97ec96a0934319c7fbedd3d38baf533e20640 (bis repetita)</title>
<updated>2007-11-10T09:25:15+00:00</updated>
<author>
<name>Mark Lord</name>
<email>mlord@pobox.com</email>
</author>
<published>2007-11-08T21:29:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=50d84c2dc00e48ff9ba018ed0dd23276cf79e566'/>
<id>50d84c2dc00e48ff9ba018ed0dd23276cf79e566</id>
<content type='text'>
RTL_GIGA_MAC_VER_17 breaks as well.

Signed-off-by: Mark Lord &lt;mlord@pobox.com&gt;
Signed-off-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
Cc: Edward Hsu &lt;edward_hsu@realtek.com.tw&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
RTL_GIGA_MAC_VER_17 breaks as well.

Signed-off-by: Mark Lord &lt;mlord@pobox.com&gt;
Signed-off-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
Cc: Edward Hsu &lt;edward_hsu@realtek.com.tw&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>r8169: revert 7da97ec96a0934319c7fbedd3d38baf533e20640 (partly)</title>
<updated>2007-11-10T09:25:10+00:00</updated>
<author>
<name>Mark Lord</name>
<email>mlord@pobox.com</email>
</author>
<published>2007-11-08T00:03:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b9d04e2401bf308df921d3bbbdacab40fadc27bb'/>
<id>b9d04e2401bf308df921d3bbbdacab40fadc27bb</id>
<content type='text'>
Various symptoms depending on the .config options:
- the card stops working after some (short) time
- the card does not work at all
- the card disappears (nothing in lspci/dmesg)

A real power-off is needed to recover the card.

Signed-off-by: Mark Lord &lt;mlord@pobox.com&gt;
Signed-off-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Various symptoms depending on the .config options:
- the card stops working after some (short) time
- the card does not work at all
- the card disappears (nothing in lspci/dmesg)

A real power-off is needed to recover the card.

Signed-off-by: Mark Lord &lt;mlord@pobox.com&gt;
Signed-off-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>r8169: do not enable the TBI for the 8168 and the 81x0</title>
<updated>2007-11-10T09:25:09+00:00</updated>
<author>
<name>Francois Romieu</name>
<email>romieu@fr.zoreil.com</email>
</author>
<published>2007-11-06T21:56:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=66ec5d4fb1ce6f0bd9df4bc4b758f0916d9f37ab'/>
<id>66ec5d4fb1ce6f0bd9df4bc4b758f0916d9f37ab</id>
<content type='text'>
The 8168c and the 8100e choke on it. I have not seen an indication
nor received a report that the TBI is being actively used on the
remaining 8168b and 8110. Let's disable it for now until someone
complains.

Signed-off-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
Cc: Matthias Winkler &lt;m.winkler@unicon-ka.de&gt;
Cc: Maarten Vanraes &lt;maarten.vanraes@gmail.com&gt;
Cc: Edward Hsu &lt;edward_hsu@realtek.com.tw&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The 8168c and the 8100e choke on it. I have not seen an indication
nor received a report that the TBI is being actively used on the
remaining 8168b and 8110. Let's disable it for now until someone
complains.

Signed-off-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
Cc: Matthias Winkler &lt;m.winkler@unicon-ka.de&gt;
Cc: Maarten Vanraes &lt;maarten.vanraes@gmail.com&gt;
Cc: Edward Hsu &lt;edward_hsu@realtek.com.tw&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>r8169: add PCI ID for the 8168 in the Abit Fatal1ty F-190HD motherboard</title>
<updated>2007-11-10T09:25:09+00:00</updated>
<author>
<name>Ciaran McCreesh</name>
<email>ciaran.mccreesh@blueyonder.co.uk</email>
</author>
<published>2007-11-01T21:48:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=11d2e28241e89227d88da53187224c84316acc86'/>
<id>11d2e28241e89227d88da53187224c84316acc86</id>
<content type='text'>
Signed-off-by: Ciaran McCreesh &lt;ciaran.mccreesh@blueyonder.co.uk&gt;
Signed-off-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
Cc: Edward Hsu &lt;edward_hsu@realtek.com.tw&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Ciaran McCreesh &lt;ciaran.mccreesh@blueyonder.co.uk&gt;
Signed-off-by: Francois Romieu &lt;romieu@fr.zoreil.com&gt;
Cc: Edward Hsu &lt;edward_hsu@realtek.com.tw&gt;
</pre>
</div>
</content>
</entry>
</feed>
