<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/drivers/net/phy/mediatek/mtk-ge.c, branch docs-fixes</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=docs-fixes</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=docs-fixes'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2025-02-18T00:22:36+00:00</updated>
<entry>
<title>net: phy: mediatek: Move some macros to phy-lib for later use</title>
<updated>2025-02-18T00:22:36+00:00</updated>
<author>
<name>Sky Huang</name>
<email>skylake.huang@mediatek.com</email>
</author>
<published>2025-02-13T08:05:53+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=be378ebd6cfb8e369d4aa03a551e594d00debda5'/>
<id>urn:sha1:be378ebd6cfb8e369d4aa03a551e594d00debda5</id>
<content type='text'>
Move some macros to phy-lib because MediaTek's 2.5G built-in
ethernet PHY will also use them.

Signed-off-by: Sky Huang &lt;skylake.huang@mediatek.com&gt;
Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Link: https://patch.msgid.link/20250213080553.921434-6-SkyLake.Huang@mediatek.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: phy: mediatek: Add token ring access helper functions in mtk-phy-lib</title>
<updated>2025-02-18T00:22:36+00:00</updated>
<author>
<name>Sky Huang</name>
<email>skylake.huang@mediatek.com</email>
</author>
<published>2025-02-13T08:05:50+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=afa08fde7c4780ea5556d9d4df6c1daa38ba0d6b'/>
<id>urn:sha1:afa08fde7c4780ea5556d9d4df6c1daa38ba0d6b</id>
<content type='text'>
This patch adds TR(token ring) manipulations and adds correct
macro names for those magic numbers. TR is a way to access
proprietary registers on page 52b5. Use these helper functions
so we can see which fields we're going to modify/set/clear.

TR functions with __* prefix mean that the operations inside
aren't wrapped by page select/restore functions.

This patch doesn't really change registers' settings but just
enhances readability and maintainability.

Signed-off-by: Sky Huang &lt;skylake.huang@mediatek.com&gt;
Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Link: https://patch.msgid.link/20250213080553.921434-3-SkyLake.Huang@mediatek.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: phy: mediatek: Change to more meaningful macros</title>
<updated>2025-02-18T00:22:36+00:00</updated>
<author>
<name>Sky Huang</name>
<email>skylake.huang@mediatek.com</email>
</author>
<published>2025-02-13T08:05:49+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=2f435137a0484f11b47554281091ef4908f8cb31'/>
<id>urn:sha1:2f435137a0484f11b47554281091ef4908f8cb31</id>
<content type='text'>
Replace magic number with more meaningful macros in mtk-ge.c.
Also, move some common macros into mtk-phy-lib.c.

Signed-off-by: Sky Huang &lt;skylake.huang@mediatek.com&gt;
Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Link: https://patch.msgid.link/20250213080553.921434-2-SkyLake.Huang@mediatek.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: phy: Constify struct mdio_device_id</title>
<updated>2025-01-14T23:01:32+00:00</updated>
<author>
<name>Christophe JAILLET</name>
<email>christophe.jaillet@wanadoo.fr</email>
</author>
<published>2025-01-12T14:14:50+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=b01b59a4fa87831b8504f1e8fc553ce599e7362d'/>
<id>urn:sha1:b01b59a4fa87831b8504f1e8fc553ce599e7362d</id>
<content type='text'>
'struct mdio_device_id' is not modified in these drivers.

Constifying these structures moves some data to a read-only section, so
increase overall security.

On a x86_64, with allmodconfig, as an example:
Before:
======
   text	   data	    bss	    dec	    hex	filename
  27014	  12792	      0	  39806	   9b7e	drivers/net/phy/broadcom.o

After:
=====
   text	   data	    bss	    dec	    hex	filename
  27206	  12600	      0	  39806	   9b7e	drivers/net/phy/broadcom.o

Signed-off-by: Christophe JAILLET &lt;christophe.jaillet@wanadoo.fr&gt;
Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Link: https://patch.msgid.link/403c381b7d9156b67ad68ffc44b8eee70c5e86a9.1736691226.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: phy: mediatek: add MT7530 &amp; MT7531's PHY ID macros</title>
<updated>2024-11-13T13:06:04+00:00</updated>
<author>
<name>SkyLake.Huang</name>
<email>skylake.huang@mediatek.com</email>
</author>
<published>2024-11-08T16:34:55+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=219cecbb3e864685a1f08bcb79ce07d9bc4f506e'/>
<id>urn:sha1:219cecbb3e864685a1f08bcb79ce07d9bc4f506e</id>
<content type='text'>
This patch adds MT7530 &amp; MT7531's PHY ID macros in mtk-ge.c so that
it follows the same rule of mtk-ge-soc.c.

Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Signed-off-by: SkyLake.Huang &lt;skylake.huang@mediatek.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: phy: mediatek: Integrate read/write page helper functions</title>
<updated>2024-11-13T13:06:04+00:00</updated>
<author>
<name>SkyLake.Huang</name>
<email>skylake.huang@mediatek.com</email>
</author>
<published>2024-11-08T16:34:54+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=3cb1a3c9cbaaadaf91437374b96ec72256c40db2'/>
<id>urn:sha1:3cb1a3c9cbaaadaf91437374b96ec72256c40db2</id>
<content type='text'>
This patch integrates read/write page helper functions as MTK phy lib.
They are basically the same in mtk-ge.c &amp; mtk-ge-soc.c.

Signed-off-by: SkyLake.Huang &lt;skylake.huang@mediatek.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: phy: mediatek: Re-organize MediaTek ethernet phy drivers</title>
<updated>2024-11-13T13:06:04+00:00</updated>
<author>
<name>SkyLake.Huang</name>
<email>skylake.huang@mediatek.com</email>
</author>
<published>2024-11-08T16:34:51+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=4c452f7ea86212934ae896842847d1671e13a18b'/>
<id>urn:sha1:4c452f7ea86212934ae896842847d1671e13a18b</id>
<content type='text'>
Re-organize MediaTek ethernet phy driver files and get ready to integrate
some common functions and add new 2.5G phy driver.
mtk-ge.c: MT7530 Gphy on MT7621 &amp; MT7531 Gphy
mtk-ge-soc.c: Built-in Gphy on MT7981 &amp; Built-in switch Gphy on MT7988
mtk-2p5ge.c: Planned for built-in 2.5G phy on MT7988

Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Signed-off-by: SkyLake.Huang &lt;skylake.huang@mediatek.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
