<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/net/s2io.c, branch v2.6.32.45</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>s2io: fixing a ethtool test that is broken</title>
<updated>2009-11-14T03:56:53+00:00</updated>
<author>
<name>Breno Leitao</name>
<email>leitao@linux.vnet.ibm.com</email>
</author>
<published>2009-11-10T09:44:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b8a623bf836ccfab09a5a6daf62116f455082e6e'/>
<id>b8a623bf836ccfab09a5a6daf62116f455082e6e</id>
<content type='text'>
Due commit 4b77b0a2ba27d64f58f16d8d4d48d8319dda36ff, it is not more
possible to pci_restore_state() more than once without calling
pci_save_state() in the middle.

Actually running a ethtool test on s2io makes the card inactive,
and it needs to unload/reload the module to fix.

This patch just save the state just after it restore in order to
keep the old behaviour

Signed-off-by: Breno Leitao &lt;leitao@linux.vnet.ibm.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Due commit 4b77b0a2ba27d64f58f16d8d4d48d8319dda36ff, it is not more
possible to pci_restore_state() more than once without calling
pci_save_state() in the middle.

Actually running a ethtool test on s2io makes the card inactive,
and it needs to unload/reload the module to fix.

This patch just save the state just after it restore in order to
keep the old behaviour

Signed-off-by: Breno Leitao &lt;leitao@linux.vnet.ibm.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>netdev: convert bulk of drivers to netdev_tx_t</title>
<updated>2009-09-01T08:14:07+00:00</updated>
<author>
<name>Stephen Hemminger</name>
<email>shemminger@vyatta.com</email>
</author>
<published>2009-08-31T19:50:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=61357325f377889a1daffa14962d705dc814dd0e'/>
<id>61357325f377889a1daffa14962d705dc814dd0e</id>
<content type='text'>
In a couple of cases collapse some extra code like:
   int retval = NETDEV_TX_OK;
   ...
   return retval;
into
   return NETDEV_TX_OK;

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In a couple of cases collapse some extra code like:
   int retval = NETDEV_TX_OK;
   ...
   return retval;
into
   return NETDEV_TX_OK;

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s2io: Generate complete messages using single line DBG_PRINTs</title>
<updated>2009-08-31T05:35:11+00:00</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2009-08-25T08:52:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=9e39f7c5b311a306977c5471f9e2ce4c456aa038'/>
<id>9e39f7c5b311a306977c5471f9e2ce4c456aa038</id>
<content type='text'>
Single line log messages should be emitted by a single call
where possible.

Converted multiple calls to DBG_PRINT to single call form.
Removed "s2io:" preface from DBG_PRINTs.

The DBG_PRINT macro now emits a log level and is surrounded by
a do {...} while (0)

All s2io log output is now prefaced with KBUILD_MODNAME ": "
via pr_fmt.

The DBG_PRINT macro should probably be converted to use the
dev_&lt;level&gt; form eventually.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Single line log messages should be emitted by a single call
where possible.

Converted multiple calls to DBG_PRINT to single call form.
Removed "s2io:" preface from DBG_PRINTs.

The DBG_PRINT macro now emits a log level and is surrounded by
a do {...} while (0)

All s2io log output is now prefaced with KBUILD_MODNAME ": "
via pr_fmt.

The DBG_PRINT macro should probably be converted to use the
dev_&lt;level&gt; form eventually.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s2io.c: Convert skipped nic-&gt;config.tx_cfg[i]. to tx_cfg-&gt;</title>
<updated>2009-08-31T05:35:08+00:00</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2009-08-24T17:29:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=82c2d02356229c66daa6b6e51f8da559327b87b0'/>
<id>82c2d02356229c66daa6b6e51f8da559327b87b0</id>
<content type='text'>
Missed doing the conversion in earlier patch.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Missed doing the conversion in earlier patch.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s2io.c: Standardize statistics accessors</title>
<updated>2009-08-31T05:35:06+00:00</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2009-08-24T17:29:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ffb5df6ce776a05eec1fbe4876cc6603c6336140'/>
<id>ffb5df6ce776a05eec1fbe4876cc6603c6336140</id>
<content type='text'>
Regularize the declaration and uses of
	struct config_param *config = &amp;sp-&gt;config;
	struct mac_info *mac_control = &amp;sp-&gt;mac_control;
and use
	struct stat_block *stats = mac_control-&gt;stats_info;
	struct swStat *swstats = &amp;stats-&gt;sw_stat;
	struct xpakStat *xstats = &amp;stats-&gt;xpak_stat;
and convert the longish uses like
	nic-&gt;mac_control.stats_info-&gt;sw_stat.&lt;foo&gt;
to
	swstats-&gt;&lt;foo&gt;
etc.

This also makes the statistics code marginally smaller
and presumably faster.

Old:
$ size s2io.o
   text	   data	    bss	    dec	    hex	filename
 114289	    516	  33360	 148165	  242c5	s2io.o
New:
$ size s2io.o
   text	   data	    bss	    dec	    hex	filename
 114097	    516	  33360	 147973	  24205	s2io.o

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Regularize the declaration and uses of
	struct config_param *config = &amp;sp-&gt;config;
	struct mac_info *mac_control = &amp;sp-&gt;mac_control;
and use
	struct stat_block *stats = mac_control-&gt;stats_info;
	struct swStat *swstats = &amp;stats-&gt;sw_stat;
	struct xpakStat *xstats = &amp;stats-&gt;xpak_stat;
and convert the longish uses like
	nic-&gt;mac_control.stats_info-&gt;sw_stat.&lt;foo&gt;
to
	swstats-&gt;&lt;foo&gt;
etc.

This also makes the statistics code marginally smaller
and presumably faster.

Old:
$ size s2io.o
   text	   data	    bss	    dec	    hex	filename
 114289	    516	  33360	 148165	  242c5	s2io.o
New:
$ size s2io.o
   text	   data	    bss	    dec	    hex	filename
 114097	    516	  33360	 147973	  24205	s2io.o

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s2io.c: fix spelling explaination</title>
<updated>2009-08-31T05:35:01+00:00</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2009-08-24T17:29:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a2a20aef44da92b1c3b8c86ea069117dc3bc8bd6'/>
<id>a2a20aef44da92b1c3b8c86ea069117dc3bc8bd6</id>
<content type='text'>
Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s2io.c: convert printks to pr_&lt;level&gt;</title>
<updated>2009-08-31T05:34:55+00:00</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2009-08-24T17:29:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6cef2b8eb73f1a8fd7c0ed528091ddc406fef950'/>
<id>6cef2b8eb73f1a8fd7c0ed528091ddc406fef950</id>
<content type='text'>
Fixed trivial typo as well

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixed trivial typo as well

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s2io.c: Make more conforming to normal kernel style</title>
<updated>2009-08-31T05:34:51+00:00</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2009-08-24T17:29:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d44570e4067aa8b832b1c1e1eb6da079f590d501'/>
<id>d44570e4067aa8b832b1c1e1eb6da079f590d501</id>
<content type='text'>
Still has a few long lines.

checkpatch was:
	total: 263 errors, 53 warnings, 8751 lines checked
is:
	total: 4 errors, 35 warnings, 8767 lines checked

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Still has a few long lines.

checkpatch was:
	total: 263 errors, 53 warnings, 8751 lines checked
is:
	total: 4 errors, 35 warnings, 8767 lines checked

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s2io.c: use kzalloc</title>
<updated>2009-08-31T05:34:46+00:00</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2009-08-24T17:29:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=44364a035a4f7c5b58fd96b1a90b52746d1aab6b'/>
<id>44364a035a4f7c5b58fd96b1a90b52746d1aab6b</id>
<content type='text'>
Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s2io.c: Use calculated size in kmallocs</title>
<updated>2009-08-31T05:34:43+00:00</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2009-08-24T17:29:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4f87032021be1aa0c3bb66b0c89d30cb35b57f8f'/>
<id>4f87032021be1aa0c3bb66b0c89d30cb35b57f8f</id>
<content type='text'>
Use consistent style.  Don't calculate the kmalloc size multiple times

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use consistent style.  Don't calculate the kmalloc size multiple times

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Sreenivasa Honnur &lt;sreenivasa.honnur@neterion.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
