<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/ethernet/altera, branch linux-4.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-06-14T14:52:39Z</updated>
<entry>
<title>net: altera: Fix refcount leak in altera_tse_mdio_create</title>
<updated>2022-06-14T14:52:39Z</updated>
<author>
<name>Miaoqian Lin</name>
</author>
<published>2022-06-07T04:11:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a013fa884d8738ad8455aa1a843b8c9d80c6c833'/>
<id>urn:sha1:a013fa884d8738ad8455aa1a843b8c9d80c6c833</id>
<content type='text'>
[ Upstream commit 11ec18b1d8d92b9df307d31950dcba0b3dd7283c ]

Every iteration of for_each_child_of_node() decrements
the reference count of the previous node.
When break from a for_each_child_of_node() loop,
we need to explicitly call of_node_put() on the child node when
not need anymore.
Add missing of_node_put() to avoid refcount leak.

Fixes: bbd2190ce96d ("Altera TSE: Add main and header file for Altera Ethernet Driver")
Signed-off-by: Miaoqian Lin &lt;linmq006@gmail.com&gt;
Link: https://lore.kernel.org/r/20220607041144.7553-1-linmq006@gmail.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: altera: set a couple error code in probe()</title>
<updated>2021-12-14T09:04:49Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2021-12-03T10:11:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=150d7662a23464d8704a890cca17855ec28267d4'/>
<id>urn:sha1:150d7662a23464d8704a890cca17855ec28267d4</id>
<content type='text'>
commit badd7857f5c933a3dc34942a2c11d67fdbdc24de upstream.

There are two error paths which accidentally return success instead of
a negative error code.

Fixes: bbd2190ce96d ("Altera TSE: Add main and header file for Altera Ethernet Driver")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.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: altera_tse: fix msgdma_tx_completion on non-zero fill_level case</title>
<updated>2019-03-13T21:04:56Z</updated>
<author>
<name>Tomonori Sakita</name>
</author>
<published>2019-01-25T02:02:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cdf3d54517b5afda3a85ed737917ab1a820f5c9a'/>
<id>urn:sha1:cdf3d54517b5afda3a85ed737917ab1a820f5c9a</id>
<content type='text'>
[ Upstream commit 6571ebce112a21ec9be68ef2f53b96fcd41fd81b ]

If fill_level was not zero and status was not BUSY,
result of "tx_prod - tx_cons - inuse" might be zero.
Subtracting 1 unconditionally results invalid negative return value
on this case.
Make sure not to return an negative value.

Signed-off-by: Tomonori Sakita &lt;tomonori.sakita@sord.co.jp&gt;
Signed-off-by: Atsushi Nemoto &lt;atsushi.nemoto@sord.co.jp&gt;
Reviewed-by: Dalon L Westergreen &lt;dalon.westergreen@linux.intel.com&gt;
Acked-by: Thor Thayer &lt;thor.thayer@linux.intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: altera_tse: fix connect_local_phy error path</title>
<updated>2019-03-05T16:57:05Z</updated>
<author>
<name>Atsushi Nemoto</name>
</author>
<published>2019-01-21T08:26:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=18b37b6b4250f76108cd4a50249887410cabbb63'/>
<id>urn:sha1:18b37b6b4250f76108cd4a50249887410cabbb63</id>
<content type='text'>
[ Upstream commit 17b42a20d7ca59377788c6a2409e77569570cc10 ]

The connect_local_phy should return NULL (not negative errno) on
error, since its caller expects it.

Signed-off-by: Atsushi Nemoto &lt;atsushi.nemoto@sord.co.jp&gt;
Acked-by: Thor Thayer &lt;thor.thayer@linux.intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: ethernet: altera: TSE: do not use tx queue lock in tx completion handler</title>
<updated>2016-12-02T17:10:25Z</updated>
<author>
<name>Lino Sanfilippo</name>
</author>
<published>2016-11-30T22:48:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2219d5ed77e8bdc2ef1f0b79f34d2cc0be802b25'/>
<id>urn:sha1:2219d5ed77e8bdc2ef1f0b79f34d2cc0be802b25</id>
<content type='text'>
The driver already uses its private lock for synchronization between xmit
and xmit completion handler making the additional use of the xmit_lock
unnecessary.
Furthermore the driver does not set NETIF_F_LLTX resulting in xmit to be
called with the xmit_lock held and then taking the private lock while xmit
completion handler does the reverse, first take the private lock, then the
xmit_lock.
Fix these issues by not taking the xmit_lock in the tx completion handler.

Signed-off-by: Lino Sanfilippo &lt;LinoSanfilippo@gmx.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: ethernet: altera: TSE: Remove unneeded dma sync for tx buffers</title>
<updated>2016-12-02T17:10:24Z</updated>
<author>
<name>Lino Sanfilippo</name>
</author>
<published>2016-11-30T22:48:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=151a14db228181fb49abaf83e13f3be58ec102c4'/>
<id>urn:sha1:151a14db228181fb49abaf83e13f3be58ec102c4</id>
<content type='text'>
An explicit dma sync for device directly after mapping as well as an
explicit dma sync for cpu directly before unmapping is unnecessary and
costly on the hotpath. So remove these calls.

Signed-off-by: Lino Sanfilippo &lt;LinoSanfilippo@gmx.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: ethernet: altera: fix fixed-link phydev leaks</title>
<updated>2016-11-30T04:17:02Z</updated>
<author>
<name>Johan Hovold</name>
</author>
<published>2016-11-28T18:24:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5a89394ad2a5b94885bdbbb611518b0cc70bf354'/>
<id>urn:sha1:5a89394ad2a5b94885bdbbb611518b0cc70bf354</id>
<content type='text'>
Make sure to deregister and free any fixed-link PHY registered using
of_phy_register_fixed_link() on probe errors and on driver unbind.

Fixes: 7cdbc6f74f8e ("altera tse: add support for fixed-links.")
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ethernet: altera: add missing of_node_put</title>
<updated>2016-08-02T04:42:57Z</updated>
<author>
<name>Peter Chen</name>
</author>
<published>2016-08-01T07:02:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5d97222ae0f578a91166804cb62dbf4a5c9202db'/>
<id>urn:sha1:5d97222ae0f578a91166804cb62dbf4a5c9202db</id>
<content type='text'>
of_node_put needs to be called when the device node which is got
from of_parse_phandle (or of_node_get) has finished using.

Signed-off-by: Peter Chen &lt;peter.chen@nxp.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: ethernet: altera_tse: use phy_ethtool_{get|set}_link_ksettings</title>
<updated>2016-06-22T20:22:41Z</updated>
<author>
<name>Philippe Reynes</name>
</author>
<published>2016-06-18T14:37:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=11bbb171b921dc777113a2383c945d66db229eaf'/>
<id>urn:sha1:11bbb171b921dc777113a2383c945d66db229eaf</id>
<content type='text'>
There are two generics functions phy_ethtool_{get|set}_link_ksettings,
so we can use them instead of defining the same code in the driver.

Signed-off-by: Philippe Reynes &lt;tremyfr@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: ethernet: altera_tse: use phydev from struct net_device</title>
<updated>2016-06-22T20:22:41Z</updated>
<author>
<name>Philippe Reynes</name>
</author>
<published>2016-06-18T14:37:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=941ea69e176bc5cc8a359c6b608250fc950be0b1'/>
<id>urn:sha1:941ea69e176bc5cc8a359c6b608250fc950be0b1</id>
<content type='text'>
The private structure contain a pointer to phydev, but the structure
net_device already contain such pointer. So we can remove the pointer
phydev in the private structure, and update the driver to use the
one contained in struct net_device.

Signed-off-by: Philippe Reynes &lt;tremyfr@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
