<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/net/ethernet/ti/netcp_ethss.c, branch linux-4.3.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.3.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.3.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2015-10-27T05:08:10Z</updated>
<entry>
<title>net: netcp: add missing of_node_put</title>
<updated>2015-10-27T05:08:10Z</updated>
<author>
<name>Julia Lawall</name>
<email>julia.lawall@lip6.fr</email>
</author>
<published>2015-10-25T13:57:01Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=bd252796852193277a07da505601a2f407c70e0b'/>
<id>urn:sha1:bd252796852193277a07da505601a2f407c70e0b</id>
<content type='text'>
for_each_child_of_node performs an of_node_get on each iteration, so
a break out of the loop requires an of_node_put.

A simplified version of the semantic patch that fixes this problem is as
follows (http://coccinelle.lip6.fr):

// &lt;smpl&gt;
@@
local idexpression r.n;
expression r,e;
@@

 for_each_child_of_node(r,n) {
   ...
(
   of_node_put(n);
|
   e = n
|
+  of_node_put(n);
?  break;
)
   ...
 }
... when != n
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: netcp: ethss: fix error in calling sgmii api with incorrect offset</title>
<updated>2015-09-23T21:37:36Z</updated>
<author>
<name>WingMan Kwok</name>
<email>w-kwok2@ti.com</email>
</author>
<published>2015-09-23T17:37:05Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8c85151ddec66f78fbf997e35be005a322fbb9c9'/>
<id>urn:sha1:8c85151ddec66f78fbf997e35be005a322fbb9c9</id>
<content type='text'>
On K2HK, sgmii module registers of slave 0 and 1 are mem
mapped to one contiguous block, while those of slave 2
and 3 are mapped to another contiguous block.  However,
on K2E and K2L, sgmii module registers of all slaves are
mem mapped to one contiguous block.  SGMII APIs expect
slave 0 sgmii base when API is invoked for slave 0 and 1,
and slave 2 sgmii base when invoked for other slaves.
Before this patch, slave 0 sgmii base is always passed to
sgmii API for K2E regardless which slave is the API invoked
for.  This patch fixes the problem.

Signed-off-by: WingMan Kwok &lt;w-kwok2@ti.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net</title>
<updated>2015-08-01T06:52:20Z</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2015-08-01T06:52:20Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=5510b3c2a173921374ec847848fb20b98e1c698a'/>
<id>urn:sha1:5510b3c2a173921374ec847848fb20b98e1c698a</id>
<content type='text'>
Conflicts:
	arch/s390/net/bpf_jit_comp.c
	drivers/net/ethernet/ti/netcp_ethss.c
	net/bridge/br_multicast.c
	net/ipv4/ip_fragment.c

All four conflicts were cases of simple overlapping
changes.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: netcp: ethss: cleanup gbe_probe() and gbe_remove() functions</title>
<updated>2015-07-30T01:37:41Z</updated>
<author>
<name>Karicheri, Muralidharan</name>
<email>m-karicheri2@ti.com</email>
</author>
<published>2015-07-28T22:20:14Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=31a184b7acbc06d894c562ef884a94d6d78d0236'/>
<id>urn:sha1:31a184b7acbc06d894c562ef884a94d6d78d0236</id>
<content type='text'>
This patch clean up error handle code to use goto label properly. In some
cases, the code unnecessarily use goto instead of just returning the error
code.  Code also make explicit calls to devm_* APIs on error which is
not necessary. In the gbe_remove() also it makes similar calls which is
also unnecessary.

Also fix few checkpatch warnings

Signed-off-by: Murali Karicheri &lt;m-karicheri2@ti.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: netcp: ethss: fix up incorrect use of list api</title>
<updated>2015-07-30T01:37:40Z</updated>
<author>
<name>Karicheri, Muralidharan</name>
<email>m-karicheri2@ti.com</email>
</author>
<published>2015-07-28T22:20:13Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c20afae75c32ec69eccc4ee432fa27d426e85a83'/>
<id>urn:sha1:c20afae75c32ec69eccc4ee432fa27d426e85a83</id>
<content type='text'>
The code seems to assume a null is returned when the list is empty
from first_sec_slave() to break the loop which is incorrect. Fix the
code by using list_empty().

Signed-off-by: Murali Karicheri &lt;m-karicheri2@ti.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: netcp: Fixes SGMII reset on network interface shutdown</title>
<updated>2015-07-27T08:14:26Z</updated>
<author>
<name>WingMan Kwok</name>
<email>w-kwok2@ti.com</email>
</author>
<published>2015-07-24T19:02:29Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=7025e88a79d64aa4ba58fd03d630a78b12cce6ae'/>
<id>urn:sha1:7025e88a79d64aa4ba58fd03d630a78b12cce6ae</id>
<content type='text'>
This patch asserts SGMII RTRESET, i.e. resetting the SGMII Tx/Rx
logic,  during network interface shutdown to avoid having the
hardware wedge when shutting down with high incoming traffic rates.
This is cleared (brought out of RTRESET) when the interface is
brought back up.

Signed-off-by: WingMan Kwok &lt;w-kwok2@ti.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: netcp: Adds missing statistics for K2L and K2E</title>
<updated>2015-07-27T07:18:40Z</updated>
<author>
<name>WingMan Kwok</name>
<email>w-kwok2@ti.com</email>
</author>
<published>2015-07-23T19:57:24Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=5be4001eccb954da7f8ae68248167d3dbb6e7177'/>
<id>urn:sha1:5be4001eccb954da7f8ae68248167d3dbb6e7177</id>
<content type='text'>
This patch adds the missing statistics for the host
and slave ports of the CPSW on K2L and K2E platforms.

Signed-off-by: WingMan Kwok &lt;w-kwok2@ti.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: netcp: Fixes to CPSW statistics collection</title>
<updated>2015-07-27T07:18:40Z</updated>
<author>
<name>WingMan Kwok</name>
<email>w-kwok2@ti.com</email>
</author>
<published>2015-07-23T19:57:23Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=489e8a2f09d772afc98a85ca477bb6bc52400c26'/>
<id>urn:sha1:489e8a2f09d772afc98a85ca477bb6bc52400c26</id>
<content type='text'>
In certain applications it's beneficial to allow the CPSW h/w
stats counters to continue to increment even while the kernel
polls them. This patch implements this behavior for both 1G
and 10G ethernet subsystem modules.

Signed-off-by: WingMan Kwok &lt;w-kwok2@ti.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: netcp: Consolidates statistics collection code</title>
<updated>2015-07-27T07:18:40Z</updated>
<author>
<name>WingMan Kwok</name>
<email>w-kwok2@ti.com</email>
</author>
<published>2015-07-23T19:57:22Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=fbf64c1915b964c05edd4434250fbbb31ded38c6'/>
<id>urn:sha1:fbf64c1915b964c05edd4434250fbbb31ded38c6</id>
<content type='text'>
Different Keystone2 platforms have different number and
layouts of hw statistics modules.  This patch consolidates
the statistics processing of different Keystone2 platforms
for easy maintenance.

Signed-off-by: WingMan Kwok &lt;w-kwok2@ti.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: netcp: Fixes error in oversized memory allocation for statistics storage</title>
<updated>2015-07-27T07:18:39Z</updated>
<author>
<name>WingMan Kwok</name>
<email>w-kwok2@ti.com</email>
</author>
<published>2015-07-23T19:57:21Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=208c6b9a49df8b69ab698d9f53d40d25f143dbde'/>
<id>urn:sha1:208c6b9a49df8b69ab698d9f53d40d25f143dbde</id>
<content type='text'>
The CPSW driver keeps internally some, but not all, of
the statistics available in the hw statistics modules.  Furthermore,
some of the locations in the hw statistics modules are reserved and
contain no useful information.  Prior to this patch, the driver
allocates memory of the size of the the whole hw statistics modules,
instead of the size of statistics-entries-interested-in (i.e. et_stats),
for internal storage.  This patch fixes that.

Signed-off-by: WingMan Kwok &lt;w-kwok2@ti.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
