<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/dsa/b53, branch linux-4.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-08-11T15:33:56Z</updated>
<entry>
<title>net: dsa: b53: Add missing ARL entries for BCM53125</title>
<updated>2017-08-11T15:33:56Z</updated>
<author>
<name>Florian Fainelli</name>
</author>
<published>2017-07-20T19:25:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c141ec8071f00ff86541de66cf4449f26812642d'/>
<id>urn:sha1:c141ec8071f00ff86541de66cf4449f26812642d</id>
<content type='text'>
[ Upstream commit be35e8c516c1915a3035d266a2015b41f73ba3f9 ]

The BCM53125 entry was missing an arl_entries member which would
basically prevent the ARL search from terminating properly. This switch
has 4 ARL entries, so add that.

Fixes: 1da6df85c6fb ("net: dsa: b53: Implement ARL add/del/dump operations")
Signed-off-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Reviewed-by: Vivien Didelot &lt;vivien.didelot@savoirfairelinux.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>net: dsa: b53: Fix CPU port for 58xx devices</title>
<updated>2017-04-24T22:28:56Z</updated>
<author>
<name>Florian Fainelli</name>
</author>
<published>2017-04-24T21:27:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bfcda65c9ba57004533c12673347503f250c3290'/>
<id>urn:sha1:bfcda65c9ba57004533c12673347503f250c3290</id>
<content type='text'>
The 58xx devices (Northstar Plus) do actually have their CPU port wired
at port 8, it was unfortunately set to port 5 (B53_CPU_PORT_25) which is
incorrect, since that is the second possible management port.

Fixes: 991a36bb4645 ("net: dsa: b53: Add support for BCM585xx/586xx/88312 integrated switch")
Reported-by: Eric Anholt &lt;eric@anholt.net&gt;
Signed-off-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: b53: Implement software reset for 58xx devices</title>
<updated>2017-04-24T22:28:56Z</updated>
<author>
<name>Florian Fainelli</name>
</author>
<published>2017-04-24T21:27:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3fb22b0534e412569dd67dec625b4a051c7c2d7e'/>
<id>urn:sha1:3fb22b0534e412569dd67dec625b4a051c7c2d7e</id>
<content type='text'>
Implement the correct software reset sequence for 58xx devices by
setting all 3 reset bits and polling for the SW_RST bit to clear itself
without a given timeout. We cannot use is58xx() here because that would
also include the 7445/7278 Starfighter 2 which have their own driver
doing the reset earlier on due to the HW specific integration.

Fixes: 991a36bb4645 ("net: dsa: b53: Add support for BCM585xx/586xx/88312 integrated switch")
Signed-off-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: b53: Include IMP/CPU port in dumb forwarding mode</title>
<updated>2017-04-24T22:28:56Z</updated>
<author>
<name>Florian Fainelli</name>
</author>
<published>2017-04-24T21:27:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a424f0de61638cbb5047e0a888c54da9cf471f90'/>
<id>urn:sha1:a424f0de61638cbb5047e0a888c54da9cf471f90</id>
<content type='text'>
Since Broadcom tags are not enabled in b53 (DSA_PROTO_TAG_NONE), we need
to make sure that the IMP/CPU port is included in the forwarding
decision.

Without this change, switching between non-management ports would work,
but not between management ports and non-management ports thus breaking
the default state in which DSA switch are brought up.

Fixes: 967dd82ffc52 ("net: dsa: b53: Add support for Broadcom RoboSwitch")
Reported-by: Eric Anholt &lt;eric@anholt.net&gt;
Signed-off-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: b53: Add support for port mirroring</title>
<updated>2017-01-30T20:55:47Z</updated>
<author>
<name>Florian Fainelli</name>
</author>
<published>2017-01-30T20:41:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ed3af5fd08ebe3b39cdd37ec2a473ef98e05ce39'/>
<id>urn:sha1:ed3af5fd08ebe3b39cdd37ec2a473ef98e05ce39</id>
<content type='text'>
Add support for configuring port mirroring through the cls_matchall
classifier. We do a full ingress or egress capture towards the capture
port. Future improvements could include leveraging the divider to allow
less frames to be captured, as well as matching specific MAC DA/SA.

Signed-off-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: b53: Add mirror capture register definitions</title>
<updated>2017-01-30T20:55:47Z</updated>
<author>
<name>Florian Fainelli</name>
</author>
<published>2017-01-30T20:41:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=151da0171e12607b987d9a028a046104358b7f0d'/>
<id>urn:sha1:151da0171e12607b987d9a028a046104358b7f0d</id>
<content type='text'>
Add definitions for the different Roboswitch registers relevant for
ingress and egress mirroring.

Signed-off-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: b53: use dsa_port's bridge pointer</title>
<updated>2017-01-29T23:42:46Z</updated>
<author>
<name>Vivien Didelot</name>
</author>
<published>2017-01-27T20:29:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ddd3a0c8408df9ec07279f1e3dc9a98781a5217e'/>
<id>urn:sha1:ddd3a0c8408df9ec07279f1e3dc9a98781a5217e</id>
<content type='text'>
Now that DSA exposes the bridge device pointer to which a port belongs,
use it when programming the port based VLANs and thus remove the cache.

Signed-off-by: Vivien Didelot &lt;vivien.didelot@savoirfairelinux.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: pass bridge device when a port leaves</title>
<updated>2017-01-29T23:42:46Z</updated>
<author>
<name>Vivien Didelot</name>
</author>
<published>2017-01-27T20:29:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f123f2fbedc7c2723ceb050cd88c2ea1d6a8be32'/>
<id>urn:sha1:f123f2fbedc7c2723ceb050cd88c2ea1d6a8be32</id>
<content type='text'>
Upon reception of the NETDEV_CHANGEUPPER, a leaving port is already
unbridged, so reflect this by assigning the port's bridge_dev pointer to
NULL before calling the port_bridge_leave DSA driver operation.

Now that the bridge_dev pointer is exposed to the drivers, reflecting
the current state of the DSA switch fabric is necessary for the drivers
to adjust their port based VLANs correctly.

Pass the bridge device pointer to the port_bridge_leave operation so
that drivers have all information to re-program their chips properly,
and do not need to cache it anymore.

Signed-off-by: Vivien Didelot &lt;vivien.didelot@savoirfairelinux.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: variable number of ports</title>
<updated>2017-01-29T23:42:46Z</updated>
<author>
<name>Vivien Didelot</name>
</author>
<published>2017-01-27T20:29:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a0c02161ecfc2f40a0837926efac5376bc6fd6d3'/>
<id>urn:sha1:a0c02161ecfc2f40a0837926efac5376bc6fd6d3</id>
<content type='text'>
Change the ports[DSA_MAX_PORTS] array of the dsa_switch structure for a
zero-length array, allocated at the same time as the dsa_switch
structure itself. A dsa_switch_alloc() helper is provided for that.

This commit brings no functional change yet since we pass DSA_MAX_PORTS
as the number of ports for the moment. Future patches can update the DSA
drivers separately to support dynamic number of ports.

Signed-off-by: Vivien Didelot &lt;vivien.didelot@savoirfairelinux.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: Pass device pointer to dsa_register_switch</title>
<updated>2017-01-26T20:43:52Z</updated>
<author>
<name>Florian Fainelli</name>
</author>
<published>2017-01-26T18:45:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=55ed0ce0898e15fec30d2ca2a563d7934b082375'/>
<id>urn:sha1:55ed0ce0898e15fec30d2ca2a563d7934b082375</id>
<content type='text'>
In preparation for allowing dsa_register_switch() to be supplied with
device/platform data, pass down a struct device pointer instead of a
struct device_node.

Signed-off-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
