<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/ethernet/mediatek, branch linux-5.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-06-03T07:09:50Z</updated>
<entry>
<title>net: ethernet: mtk_eth_soc: Fix packet statistics support for MT7628/88</title>
<updated>2021-06-03T07:09:50Z</updated>
<author>
<name>Stefan Roese</name>
</author>
<published>2021-05-22T07:56:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=486737ba60210a5e6b0a9e0ac8003cd72e518a7d'/>
<id>urn:sha1:486737ba60210a5e6b0a9e0ac8003cd72e518a7d</id>
<content type='text'>
[ Upstream commit ad79fd2c42f7626bdf6935cd72134c2a5a59ff2d ]

The MT7628/88 SoC(s) have other (limited) packet counter registers than
currently supported in the mtk_eth_soc driver. This patch adds support
for reading these registers, so that the packet statistics are correctly
updated.

Additionally the defines for the non-MT7628 variant packet counter
registers are added and used in this patch instead of using hard coded
values.

Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
Fixes: 296c9120752b ("net: ethernet: mediatek: Add MT7628/88 SoC support")
Cc: Felix Fietkau &lt;nbd@nbd.name&gt;
Cc: John Crispin &lt;john@phrozen.org&gt;
Cc: Ilya Lipnitskiy &lt;ilya.lipnitskiy@gmail.com&gt;
Cc: Reto Schneider &lt;code@reto-schneider.ch&gt;
Cc: Reto Schneider &lt;reto.schneider@husqvarnagroup.com&gt;
Cc: David S. Miller &lt;davem@davemloft.net&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: mtk_eth_soc: fix RX VLAN offload</title>
<updated>2021-05-19T08:56:19Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2021-04-23T05:20:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d363d36093115c4597af6c17c0d305dec82f8d99'/>
<id>urn:sha1:d363d36093115c4597af6c17c0d305dec82f8d99</id>
<content type='text'>
[ Upstream commit 3f57d8c40fea9b20543cab4da12f4680d2ef182c ]

The VLAN ID in the rx descriptor is only valid if the RX_DMA_VTAG bit is
set. Fixes frames wrongly marked with VLAN tags.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
[Ilya: fix commit message]
Signed-off-by: Ilya Lipnitskiy &lt;ilya.lipnitskiy@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: mtk-star-emac: fix wrong unmap in RX handling</title>
<updated>2021-03-02T23:28:07Z</updated>
<author>
<name>Biao Huang</name>
</author>
<published>2021-03-02T03:33:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=95b39f07a17faef3a9b225248ba449b976e529c8'/>
<id>urn:sha1:95b39f07a17faef3a9b225248ba449b976e529c8</id>
<content type='text'>
mtk_star_dma_unmap_rx() should unmap the dma_addr of old skb rather than
that of new skb.
Assign new_dma_addr to desc_data.dma_addr after all handling of old skb
ends to avoid unexpected receive side error.

Fixes: f96e9641e92b ("net: ethernet: mtk-star-emac: fix error path in RX handling")
Signed-off-by: Biao Huang &lt;biao.huang@mediatek.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: ethernet: mediatek: support setting MTU</title>
<updated>2021-01-26T02:23:14Z</updated>
<author>
<name>DENG Qingfang</name>
</author>
<published>2021-01-25T04:20:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4fd59792097a6b2fb949d41264386a7ecade469e'/>
<id>urn:sha1:4fd59792097a6b2fb949d41264386a7ecade469e</id>
<content type='text'>
MT762x HW, except for MT7628, supports frame length up to 2048
(maximum length on GDM), so allow setting MTU up to 2030.

Also set the default frame length to the hardware default 1518.

Signed-off-by: DENG Qingfang &lt;dqfext@gmail.com&gt;
Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Link: https://lore.kernel.org/r/20210125042046.5599-1-dqfext@gmail.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: mtk_eth: simplify the mediatek code return expression</title>
<updated>2020-12-15T01:51:26Z</updated>
<author>
<name>Zheng Yongjun</name>
</author>
<published>2020-12-11T08:38:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bb7eae6dd230c52d2f8d4666ecc1da3ba0d687ab'/>
<id>urn:sha1:bb7eae6dd230c52d2f8d4666ecc1da3ba0d687ab</id>
<content type='text'>
Simplify the return expression at mtk_eth_path.c file, simplify this all.

Signed-off-by: Zheng Yongjun &lt;zhengyongjun3@huawei.com&gt;
Link: https://lore.kernel.org/r/20201211083801.1632-1-zhengyongjun3@huawei.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: mediatek: simplify the return expression of mtk_gmac_sgmii_path_setup()</title>
<updated>2020-12-10T21:02:16Z</updated>
<author>
<name>Zheng Yongjun</name>
</author>
<published>2020-12-10T13:50:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a76b6b1fe8312905e3f91279f93a4c0cf3b1707c'/>
<id>urn:sha1:a76b6b1fe8312905e3f91279f93a4c0cf3b1707c</id>
<content type='text'>
Simplify the return expression.

Signed-off-by: Zheng Yongjun &lt;zhengyongjun3@huawei.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: ethernet: mtk-star-emac: fix error return code in mtk_star_enable()</title>
<updated>2020-11-13T01:58:37Z</updated>
<author>
<name>Zhang Changzhong</name>
</author>
<published>2020-11-12T11:34:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=baee1991fad928d6c8dd5be3197ecb413c420c97'/>
<id>urn:sha1:baee1991fad928d6c8dd5be3197ecb413c420c97</id>
<content type='text'>
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 8c7bd5a454ff ("net: ethernet: mtk-star-emac: new driver")
Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Zhang Changzhong &lt;zhangchangzhong@huawei.com&gt;
Acked-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Link: https://lore.kernel.org/r/1605180879-2573-1-git-send-email-zhangchangzhong@huawei.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: ethernet: mtk-star-emac: return ok when xmit drops</title>
<updated>2020-11-13T01:05:15Z</updated>
<author>
<name>Vincent Stehlé</name>
</author>
<published>2020-11-12T08:48:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e8aa6d520b448efc88670a98eccd196713639f2f'/>
<id>urn:sha1:e8aa6d520b448efc88670a98eccd196713639f2f</id>
<content type='text'>
The ndo_start_xmit() method must return NETDEV_TX_OK if the DMA mapping
fails, after freeing the socket buffer.
Fix the mtk_star_netdev_start_xmit() function accordingly.

Fixes: 8c7bd5a454ff ("net: ethernet: mtk-star-emac: new driver")
Signed-off-by: Vincent Stehlé &lt;vincent.stehle@laposte.net&gt;
Acked-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Link: https://lore.kernel.org/r/20201112084833.21842-1-vincent.stehle@laposte.net
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: ethernet: mtk-star-emac: select REGMAP_MMIO</title>
<updated>2020-10-22T01:11:17Z</updated>
<author>
<name>Bartosz Golaszewski</name>
</author>
<published>2020-10-20T07:35:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5403caf21648d739bf2b1266c33e34384c313379'/>
<id>urn:sha1:5403caf21648d739bf2b1266c33e34384c313379</id>
<content type='text'>
The driver depends on mmio regmap API but doesn't select the appropriate
Kconfig option. This fixes it.

Fixes: 8c7bd5a454ff ("net: ethernet: mtk-star-emac: new driver")
Signed-off-by: Bartosz Golaszewski &lt;bgolaszewski@baylibre.com&gt;
Link: https://lore.kernel.org/r/20201020073515.22769-1-brgl@bgdev.pl
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>treewide: Use fallthrough pseudo-keyword</title>
<updated>2020-08-23T22:36:59Z</updated>
<author>
<name>Gustavo A. R. Silva</name>
</author>
<published>2020-08-23T22:36:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=df561f6688fef775baa341a0f5d960becd248b11'/>
<id>urn:sha1:df561f6688fef775baa341a0f5d960becd248b11</id>
<content type='text'>
Replace the existing /* fall through */ comments and its variants with
the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
fall-through markings when it is the case.

[1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Signed-off-by: Gustavo A. R. Silva &lt;gustavoars@kernel.org&gt;
</content>
</entry>
</feed>
