<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/dsa/slave.c, branch linux-4.5.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.5.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.5.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-02-18T03:05:16Z</updated>
<entry>
<title>net: dsa: Unregister slave_dev in error path</title>
<updated>2016-02-18T03:05:16Z</updated>
<author>
<name>Florian Fainelli</name>
</author>
<published>2016-02-18T02:43:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=73dcb556538a4192222c3a919a51e1701bae553b'/>
<id>urn:sha1:73dcb556538a4192222c3a919a51e1701bae553b</id>
<content type='text'>
With commit 0071f56e46da ("dsa: Register netdev before phy"), we are now trying
to free a network device that has been previously registered, and in case of
errors, this will make us hit the BUG_ON(dev-&gt;reg_state != NETREG_UNREGISTERED)
condition.

Fix this by adding a missing unregister_netdev() before free_netdev().

Fixes: 0071f56e46da ("dsa: Register netdev before phy")
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: remove phy_disconnect from error path</title>
<updated>2016-02-16T21:04:08Z</updated>
<author>
<name>Sascha Hauer</name>
</author>
<published>2016-02-11T10:44:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a407054f830ca9a28febdeeeaa34d2ed420b9ed3'/>
<id>urn:sha1:a407054f830ca9a28febdeeeaa34d2ed420b9ed3</id>
<content type='text'>
The phy has not been initialized, disconnecting it in the error
path results in a NULL pointer exception. Drop the phy_disconnect
from the error path.

Signed-off-by: Sascha Hauer &lt;s.hauer@pengutronix.de&gt;
Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Acked-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>dsa: Register netdev before phy</title>
<updated>2016-01-07T19:31:26Z</updated>
<author>
<name>Andrew Lunn</name>
</author>
<published>2016-01-06T19:11:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0071f56e46dadb88dc3ad1f8d9cf9c3ae014735d'/>
<id>urn:sha1:0071f56e46dadb88dc3ad1f8d9cf9c3ae014735d</id>
<content type='text'>
When the phy is connected, an info message is printed. If the netdev
it is attached to has not been registered yet, the name
'uninitialised' in the output. By registering the netdev first, then
connecting they phy, we can avoid this.

Signed-off-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>phy: Add API for {un}registering an mdio device to a bus.</title>
<updated>2016-01-07T19:31:26Z</updated>
<author>
<name>Andrew Lunn</name>
</author>
<published>2016-01-06T19:11:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7f854420fbfe9d49afe2ffb1df052cfe8e215541'/>
<id>urn:sha1:7f854420fbfe9d49afe2ffb1df052cfe8e215541</id>
<content type='text'>
Rather than have drivers directly manipulate the mii_bus structure,
provide and API for registering and unregistering devices on an MDIO
bus, and performing lookups.

Signed-off-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Reviewed-by: Florian Fainelli &lt;f.fainelli@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>phy: Centralise print about attached phy</title>
<updated>2016-01-07T19:31:25Z</updated>
<author>
<name>Andrew Lunn</name>
</author>
<published>2016-01-06T19:11:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2220943a21e26d97d7fd8f83c004b947326b469d'/>
<id>urn:sha1:2220943a21e26d97d7fd8f83c004b947326b469d</id>
<content type='text'>
Many Ethernet drivers contain the same netdev_info() print statement
about the attached phy. Move it into the phy device code. Additionally
add a varargs function which can be used to append additional
information.

Signed-off-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: move dsa slave destroy code to slave.c</title>
<updated>2015-12-07T21:35:50Z</updated>
<author>
<name>Neil Armstrong</name>
</author>
<published>2015-12-07T12:57:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cda5c15b23fb9d683a491e8bd137d11d8552ac02'/>
<id>urn:sha1:cda5c15b23fb9d683a491e8bd137d11d8552ac02</id>
<content type='text'>
Move dsa slave dedicated code from dsa_switch_destroy to a new
dsa_slave_destroy function in slave.c.
Add the netif_carrier_off and phy_disconnect calls in order to
correctly cleanup the netdev state and PHY state machine.

Signed-off-by: Frode Isaksen &lt;fisaksen@baylibre.com&gt;
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: dsa: use switchdev obj for VLAN add/del ops</title>
<updated>2015-11-01T20:56:11Z</updated>
<author>
<name>Vivien Didelot</name>
</author>
<published>2015-11-01T17:33:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=76e398a6271285c1f361d66445a55cdcee5c1b4b'/>
<id>urn:sha1:76e398a6271285c1f361d66445a55cdcee5c1b4b</id>
<content type='text'>
Simplify DSA by pushing the switchdev objects for VLAN add and delete
operations down to its drivers. Currently only mv88e6xxx is affected.

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: remove port_fdb_getnext</title>
<updated>2015-10-22T14:38:45Z</updated>
<author>
<name>Vivien Didelot</name>
</author>
<published>2015-10-22T13:34:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1a49a2fbf8c15d63a0b5e60d935ec7d5d3d07fd5'/>
<id>urn:sha1:1a49a2fbf8c15d63a0b5e60d935ec7d5d3d07fd5</id>
<content type='text'>
No driver implements port_fdb_getnext anymore, and port_fdb_dump is
preferred anyway, so remove this function from DSA.

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: add port_fdb_dump function</title>
<updated>2015-10-22T14:38:35Z</updated>
<author>
<name>Vivien Didelot</name>
</author>
<published>2015-10-22T13:34:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ea70ba980666cffacb57d90d867b2c7952d90700'/>
<id>urn:sha1:ea70ba980666cffacb57d90d867b2c7952d90700</id>
<content type='text'>
Not all switch chips support a Get Next operation to iterate on its FDB.
So add a more simple port_fdb_dump function for them.

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>switchdev: remove pointers from switchdev objects</title>
<updated>2015-10-15T13:09:49Z</updated>
<author>
<name>Jiri Pirko</name>
</author>
<published>2015-10-14T17:40:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=850d0cbc9171f63f0418afffb0d89a84db927851'/>
<id>urn:sha1:850d0cbc9171f63f0418afffb0d89a84db927851</id>
<content type='text'>
When object is used in deferred work, we cannot use pointers in
switchdev object structures because the memory they point at may be already
used by someone else. So rather do local copy of the value.

Signed-off-by: Jiri Pirko &lt;jiri@mellanox.com&gt;
Acked-by: Scott Feldman &lt;sfeldma@gmail.com&gt;
Reviewed-by: John Fastabend &lt;john.r.fastabend@intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
