<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/ethernet/arc, 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>2021-10-27T07:33:58Z</updated>
<entry>
<title>net: arc: select CRC32</title>
<updated>2021-10-27T07:33:58Z</updated>
<author>
<name>Vegard Nossum</name>
</author>
<published>2021-10-12T09:34:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=15e1de09debc5844e7a4776cb7ea9eed8de3196f'/>
<id>urn:sha1:15e1de09debc5844e7a4776cb7ea9eed8de3196f</id>
<content type='text'>
commit e599ee234ad4fdfe241d937bbabd96e0d8f9d868 upstream.

Fix the following build/link error by adding a dependency on the CRC32
routines:

  ld: drivers/net/ethernet/arc/emac_main.o: in function `arc_emac_set_rx_mode':
  emac_main.c:(.text+0xb11): undefined reference to `crc32_le'

The crc32_le() call comes through the ether_crc_le() call in
arc_emac_set_rx_mode().

[v2: moved the select to ARC_EMAC_CORE; the Makefile is a bit confusing,
but the error comes from emac_main.o, which is part of the arc_emac module,
which in turn is enabled by CONFIG_ARC_EMAC_CORE. Note that arc_emac is
different from emac_arc...]

Fixes: 775dd682e2b0ec ("arc_emac: implement promiscuous mode and multicast filtering")
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Vegard Nossum &lt;vegard.nossum@oracle.com&gt;
Link: https://lore.kernel.org/r/20211012093446.1575-1-vegard.nossum@oracle.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>net: arc_emac: Fix memleak in arc_mdio_probe</title>
<updated>2020-09-12T09:47:34Z</updated>
<author>
<name>Dinghao Liu</name>
</author>
<published>2020-08-23T08:56:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3af826c80d371b3ba4511cf5315acbac064c6f5c'/>
<id>urn:sha1:3af826c80d371b3ba4511cf5315acbac064c6f5c</id>
<content type='text'>
[ Upstream commit e2d79cd8875fa8c3cc7defa98a8cc99a1ed0c62f ]

When devm_gpiod_get_optional() fails, bus should be
freed just like when of_mdiobus_register() fails.

Fixes: 1bddd96cba03d ("net: arc_emac: support the phy reset for emac driver")
Signed-off-by: Dinghao Liu &lt;dinghao.liu@zju.edu.cn&gt;
Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&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: arc: add the missed clk_disable_unprepare</title>
<updated>2019-11-12T18:16:06Z</updated>
<author>
<name>Chuhong Yuan</name>
</author>
<published>2019-11-01T12:17:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0e63ae78bcc78220fe282cfed99bee14711be3be'/>
<id>urn:sha1:0e63ae78bcc78220fe282cfed99bee14711be3be</id>
<content type='text'>
[ Upstream commit 4202e219edd6cc164c042e16fa327525410705ae ]

The remove misses to disable and unprepare priv-&gt;macclk like what is done
when probe fails.
Add the missed call in remove.

Signed-off-by: Chuhong Yuan &lt;hslester96@gmail.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: arc: Fix a potential memory leak if an optional regulator is deferred</title>
<updated>2018-03-31T16:11:34Z</updated>
<author>
<name>Christophe JAILLET</name>
</author>
<published>2018-03-18T22:59:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e9f83a8b4aaba8f458c244c7455f8a4ea31e8a28'/>
<id>urn:sha1:e9f83a8b4aaba8f458c244c7455f8a4ea31e8a28</id>
<content type='text'>
[ Upstream commit 00777fac28ba3e126b9e63e789a613e8bd2cab25 ]

If the optional regulator is deferred, we must release some resources.
They will be re-allocated when the probe function will be called again.

Fixes: 6eacf31139bf ("ethernet: arc: Add support for Rockchip SoC layer device tree bindings")
Signed-off-by: Christophe JAILLET &lt;christophe.jaillet@wanadoo.fr&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: arc_emac: fix arc_emac_rx() error paths</title>
<updated>2018-03-03T09:23:22Z</updated>
<author>
<name>Alexander Kochetkov</name>
</author>
<published>2017-12-15T17:20:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=95e094a709eabaede6c53272b2d90925c55c02e0'/>
<id>urn:sha1:95e094a709eabaede6c53272b2d90925c55c02e0</id>
<content type='text'>
[ Upstream commit e688822d035b494071ecbadcccbd6f3325fb0f59 ]

arc_emac_rx() has some issues found by code review.

In case netdev_alloc_skb_ip_align() or dma_map_single() failure
rx fifo entry will not be returned to EMAC.

In case dma_map_single() failure previously allocated skb became
lost to driver. At the same time address of newly allocated skb
will not be provided to EMAC.

Signed-off-by: Alexander Kochetkov &lt;al.kochet@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>net: ethernet: arc: fix error handling in emac_rockchip_probe</title>
<updated>2018-02-25T10:05:48Z</updated>
<author>
<name>Branislav Radocaj</name>
</author>
<published>2017-12-06T23:07:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=472a0d5bc8ec20eda9d1abe89b24acf6a8c78f04'/>
<id>urn:sha1:472a0d5bc8ec20eda9d1abe89b24acf6a8c78f04</id>
<content type='text'>
[ Upstream commit e46772a6946a7d1f3fbbc1415871851d6651f1d4 ]

If clk_set_rate() fails, we should disable clk before return.
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Branislav Radocaj &lt;branislav@radocaj.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>net: arc_emac: don't pass multicast packets to kernel in non-multicast mode</title>
<updated>2016-11-16T00:58:13Z</updated>
<author>
<name>Alexander Kochetkov</name>
</author>
<published>2016-11-14T13:32:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d0e3f65b34c528ec2b7d1ba9a620b483f71788d3'/>
<id>urn:sha1:d0e3f65b34c528ec2b7d1ba9a620b483f71788d3</id>
<content type='text'>
The patch disable capturing multicast packets when multicast mode
disabled for ethernet ('ifconfig eth0 -multicast'). In that case
no multicast packet will be passed to kernel.

Signed-off-by: Alexander Kochetkov &lt;al.kochet@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: arc_emac: annonce IFF_MULTICAST support</title>
<updated>2016-11-16T00:58:13Z</updated>
<author>
<name>Alexander Kochetkov</name>
</author>
<published>2016-11-14T13:32:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c7a4e3d8c0d43a4f31f8b2ccf476e5a26eb85142'/>
<id>urn:sha1:c7a4e3d8c0d43a4f31f8b2ccf476e5a26eb85142</id>
<content type='text'>
Multicast support was implemented by commit 775dd682e2b0ec7
('arc_emac: implement promiscuous mode and multicast filtering').

It can be enabled explicity using 'ifconfig eth0 multicast'.
The patch is needed in order to remove explicit configuration
as most devices has multicast mode enabled by default.

Signed-off-by: Alexander Kochetkov &lt;al.kochet@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: arc_emac: mark arc_mdio_reset() static</title>
<updated>2016-09-06T22:58:59Z</updated>
<author>
<name>Baoyou Xie</name>
</author>
<published>2016-09-06T08:21:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3f591997b1484cbf869d21b511c8d84902444cfb'/>
<id>urn:sha1:3f591997b1484cbf869d21b511c8d84902444cfb</id>
<content type='text'>
We get 1 warning when building kernel with W=1:
drivers/net/ethernet/arc/emac_mdio.c:107:5: warning: no previous prototype for 'arc_mdio_reset' [-Wmissing-prototypes]

In fact, this function is only used in the file in which it is
declared and don't need a declaration, but can be made static.
so this patch marks this function with 'static'.

Signed-off-by: Baoyou Xie &lt;baoyou.xie@linaro.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: arc_emac: add missing of_node_put() in arc_emac_probe()</title>
<updated>2016-08-06T04:07:38Z</updated>
<author>
<name>Wei Yongjun</name>
</author>
<published>2016-08-03T10:58:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=54447f1ad73414ebb052e9a33d079cabed3a03e8'/>
<id>urn:sha1:54447f1ad73414ebb052e9a33d079cabed3a03e8</id>
<content type='text'>
commit a94efbd7cc45 ("ethernet: arc: emac_main: add missing of_node_put
after calling of_parse_phandle") added missing of_node_put after calling
of_parse_phandle, but missing the devm_ioremap_resource() error handling
case.

Signed-off-by: Wei Yongjun &lt;weiyj.lk@gmail.com&gt;
Reviewed-by: Peter Chen &lt;peter.chen@nxp.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
