<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/ethernet/xilinx, branch linux-5.11.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.11.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.11.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-04-21T11:13:19Z</updated>
<entry>
<title>net: axienet: allow setups without MDIO</title>
<updated>2021-04-21T11:13:19Z</updated>
<author>
<name>Daniel Mack</name>
</author>
<published>2021-03-24T13:05:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=10c717b978a992fd925bb58e210af46bdeade3e2'/>
<id>urn:sha1:10c717b978a992fd925bb58e210af46bdeade3e2</id>
<content type='text'>
[ Upstream commit de9c7854e6e1589f639c6352112956d08243b659 ]

In setups with fixed-link settings there is no mdio node in DTS.
axienet_probe() already handles that gracefully but lp-&gt;mii_bus is
then NULL.

Fix code that tries to blindly grab the MDIO lock by introducing two helper
functions that make the locking conditional.

Signed-off-by: Daniel Mack &lt;daniel@zonque.org&gt;
Reviewed-by: Radhey Shyam Pandey &lt;radhey.shyam.pandey@xilinx.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: axienet: Fix probe error cleanup</title>
<updated>2021-03-30T12:30:27Z</updated>
<author>
<name>Robert Hancock</name>
</author>
<published>2021-03-11T20:05:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ea2702b8f8bccd5d886bb9ecd60ef4fef87d9fc6'/>
<id>urn:sha1:ea2702b8f8bccd5d886bb9ecd60ef4fef87d9fc6</id>
<content type='text'>
[ Upstream commit 59cd4f19267a0aab87a8c07e4426eb7187ee548d ]

The driver did not always clean up all allocated resources when probe
failed. Fix the probe cleanup path to clean up everything that was
allocated.

Fixes: 57baf8cc70ea ("net: axienet: Handle deferred probe on clock properly")
Signed-off-by: Robert Hancock &lt;robert.hancock@calian.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: axienet: Handle deferred probe on clock properly</title>
<updated>2021-03-04T11:13:55Z</updated>
<author>
<name>Robert Hancock</name>
</author>
<published>2021-02-13T00:17:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=77371ababba81ce7039dfcce02942a3b8541e066'/>
<id>urn:sha1:77371ababba81ce7039dfcce02942a3b8541e066</id>
<content type='text'>
[ Upstream commit 57baf8cc70ea4cf5503c9d42f31f6a86d7f5ff1a ]

This driver is set up to use a clock mapping in the device tree if it is
present, but still work without one for backward compatibility. However,
if getting the clock returns -EPROBE_DEFER, then we need to abort and
return that error from our driver initialization so that the probe can
be retried later after the clock is set up.

Move clock initialization to earlier in the process so we do not waste as
much effort if the clock is not yet available. Switch to use
devm_clk_get_optional and abort initialization on any error reported.
Also enable the clock regardless of whether the controller is using an MDIO
bus, as the clock is required in any case.

Fixes: 09a0354cadec267be7f ("net: axienet: Use clock framework to get device clock rate")
Signed-off-by: Robert Hancock &lt;robert.hancock@calian.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>Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net</title>
<updated>2020-12-12T06:29:38Z</updated>
<author>
<name>Jakub Kicinski</name>
</author>
<published>2020-12-12T04:12:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=46d5e62dd3c34770f3bfd0642daa9a7772a00362'/>
<id>urn:sha1:46d5e62dd3c34770f3bfd0642daa9a7772a00362</id>
<content type='text'>
xdp_return_frame_bulk() needs to pass a xdp_buff
to __xdp_return().

strlcpy got converted to strscpy but here it makes no
functional difference, so just keep the right code.

Conflicts:
	net/netfilter/nf_tables_api.c

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: ll_temac: Fix potential NULL dereference in temac_probe()</title>
<updated>2020-12-09T00:15:46Z</updated>
<author>
<name>Zhang Changzhong</name>
</author>
<published>2020-12-08T01:53:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cc6596fc7295e9dcd78156ed42f9f8e1221f7530'/>
<id>urn:sha1:cc6596fc7295e9dcd78156ed42f9f8e1221f7530</id>
<content type='text'>
platform_get_resource() may fail and in this case a NULL dereference
will occur.

Fix it to use devm_platform_ioremap_resource() instead of calling
platform_get_resource() and devm_ioremap().

This is detected by Coccinelle semantic patch.

@@
expression pdev, res, n, t, e, e1, e2;
@@

res = \(platform_get_resource\|platform_get_resource_byname\)(pdev, t, n);
+ if (!res)
+   return -EINVAL;
... when != res == NULL
e = devm_ioremap(e1, res-&gt;start, e2);

Fixes: 8425c41d1ef7 ("net: ll_temac: Extend support to non-device-tree platforms")
Signed-off-by: Zhang Changzhong &lt;zhangchangzhong@huawei.com&gt;
Acked-by: Esben Haabendal &lt;esben@geanix.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>drivers: net: xilinx_emaclite: Add COMPILE_TEST support</title>
<updated>2020-11-12T22:32:31Z</updated>
<author>
<name>Andrew Lunn</name>
</author>
<published>2020-11-10T02:40:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=03dfd157670bd715306dce1507b8998cabd38539'/>
<id>urn:sha1:03dfd157670bd715306dce1507b8998cabd38539</id>
<content type='text'>
To improve build testing of this driver, add COMPILE_TEST support.

Acked-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
Signed-off-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>drivers: net: xilinx_emaclite: Fix -Wpointer-to-int-cast warnings with W=1</title>
<updated>2020-11-12T22:32:31Z</updated>
<author>
<name>Andrew Lunn</name>
</author>
<published>2020-11-10T02:40:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eccd5403814b4e762e270ef0464bb86fb217b1bf'/>
<id>urn:sha1:eccd5403814b4e762e270ef0464bb86fb217b1bf</id>
<content type='text'>
drivers/net/ethernet//xilinx/xilinx_emaclite.c:341:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  341 |   addr = (void __iomem __force *)((u32 __force)addr ^

Use uintptr_t instead of u32 to avoid problems on 64 bit systems.

Also, cast the address to an unsigned long for printing.

Signed-off-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>drivers: net: xilinx_emaclite: Add missing parameter kerneldoc</title>
<updated>2020-11-12T22:32:30Z</updated>
<author>
<name>Andrew Lunn</name>
</author>
<published>2020-11-10T02:40:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=27b42557988d40340c9eb219f8f756f821f3649c'/>
<id>urn:sha1:27b42557988d40340c9eb219f8f756f821f3649c</id>
<content type='text'>
The txqueue parameter to the watchdog callback is unused in this
driver. But it still needs to be documented.

Reviewed-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
Signed-off-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: xilinx: axiethernet: Enable dynamic MDIO MDC</title>
<updated>2020-11-07T19:13:52Z</updated>
<author>
<name>Clayton Rayment</name>
</author>
<published>2020-11-03T11:26:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=253761a0e61b7128460e26e74f57356e3eb2072e'/>
<id>urn:sha1:253761a0e61b7128460e26e74f57356e3eb2072e</id>
<content type='text'>
MDIO spec does not require an MDC at all times, only when MDIO
transactions are occurring. This patch allows the xilinx_axienet
driver to disable the MDC when not in use, and re-enable it when
needed. It also simplifies the driver by removing MDC disable
and enable in device reset sequence.

Signed-off-by: Clayton Rayment &lt;clayton.rayment@xilinx.com&gt;
Signed-off-by: Radhey Shyam Pandey &lt;radhey.shyam.pandey@xilinx.com&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: xilinx: axiethernet: Introduce helper functions for MDC enable/disable</title>
<updated>2020-11-07T19:13:51Z</updated>
<author>
<name>Radhey Shyam Pandey</name>
</author>
<published>2020-11-03T11:26:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6c3cbaa0f0cb86376010ffa045334a1ec34689ac'/>
<id>urn:sha1:6c3cbaa0f0cb86376010ffa045334a1ec34689ac</id>
<content type='text'>
Introduce helper functions to enable/disable MDIO interface clock. This
change serves a preparatory patch for the coming feature to dynamically
control the management bus clock.

Signed-off-by: Radhey Shyam Pandey &lt;radhey.shyam.pandey@xilinx.com&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
</feed>
