<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/net/phy, branch v2024.07-rc1</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/net/phy?h=v2024.07-rc1</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/net/phy?h=v2024.07-rc1'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2024-03-26T23:58:26Z</updated>
<entry>
<title>net: phy: Factor out PHY GPIO reset code</title>
<updated>2024-03-26T23:58:26Z</updated>
<author>
<name>Marek Vasut</name>
<email>marek.vasut+renesas@mailbox.org</email>
</author>
<published>2024-03-18T14:57:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e99a6efa80eaf69aa07d5845f6d2bb362a81c0dd'/>
<id>urn:sha1:e99a6efa80eaf69aa07d5845f6d2bb362a81c0dd</id>
<content type='text'>
Pull the PHY GPIO reset code into separate function, since
this is and will be reused multiple times. Set up default
reset assert and deassert timing to generous 20ms and 1ms
for maximum compatibility in case those DT properties are
missing.

Reviewed-by: Ramon Fried &lt;rfried.dev@gmail.com&gt;
Signed-off-by: Marek Vasut &lt;marek.vasut+renesas@mailbox.org&gt;
</content>
</entry>
<entry>
<title>net: phy: ncsi: reslove the unaligned access issue</title>
<updated>2024-03-26T23:58:26Z</updated>
<author>
<name>Jacky Chou</name>
<email>jacky_chou@aspeedtech.com</email>
</author>
<published>2024-02-05T08:13:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=cc09160f30b33ea365e89c445edfb4f3b985911b'/>
<id>urn:sha1:cc09160f30b33ea365e89c445edfb4f3b985911b</id>
<content type='text'>
From the ethernet header is not on aligned, because the length
of the ethernet header is 14 bytes.
Therefore, unaligned access must be done here.

Signed-off-by: Jacky Chou &lt;jacky_chou@aspeedtech.com&gt;
</content>
</entry>
<entry>
<title>net: phy: ncsi: Correct the endian of the checksum</title>
<updated>2024-03-26T23:58:26Z</updated>
<author>
<name>Jacky Chou</name>
<email>jacky_chou@aspeedtech.com</email>
</author>
<published>2024-02-05T08:02:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=60d77b6f91f08d3be3b03d188c30c9b47e800a62'/>
<id>urn:sha1:60d77b6f91f08d3be3b03d188c30c9b47e800a62</id>
<content type='text'>
There is no need to perform the endian twice here.

Signed-off-by: Jacky Chou &lt;jacky_chou@aspeedtech.com&gt;
Reviewed-by: Dan Carpenter &lt;dan.carpenter@linaro.org&gt;
</content>
</entry>
<entry>
<title>net: phy: the NC-SI phy device do not require mdio bus</title>
<updated>2024-03-26T23:58:26Z</updated>
<author>
<name>Jacky Chou</name>
<email>jacky_chou@aspeedtech.com</email>
</author>
<published>2024-01-15T10:34:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f146c446e51184a33deb798e8169aaf654c044a6'/>
<id>urn:sha1:f146c446e51184a33deb798e8169aaf654c044a6</id>
<content type='text'>
As with fixed-link phy device, the NC-SI phy devive does not
require an mdio bus. So, a condition is added to check the
NC-SI phy id to avoid accessing the bus pointer that is NULL.

Signed-off-by: Jacky Chou &lt;jacky_chou@aspeedtech.com&gt;
</content>
</entry>
<entry>
<title>net: phy: Fix signed shift overflow</title>
<updated>2024-03-26T23:58:26Z</updated>
<author>
<name>Eugeniu Rosca</name>
<email>erosca@de.adit-jv.com</email>
</author>
<published>2024-01-04T04:26:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f5dbfc82a90b2333bfee76906df883ba86a85f56'/>
<id>urn:sha1:f5dbfc82a90b2333bfee76906df883ba86a85f56</id>
<content type='text'>
Booting R-Car Gen3 arm64 U-Boot with CONFIG_UBSAN=y resulted in:

 =====================================================================
 UBSAN: Undefined behaviour in drivers/net/phy/phy.c:728:19
 left shift of 1 by 31 places cannot be represented in type 'int'
 =====================================================================

Fix it by appending the UL suffix to the numeric literal. While at it,
convert the type of "addr" variable from signed to unsigned, to protect
against shifting the numeric literal by a negative value (which would
lead to yet another undefined behavior).

Fixes: 1adb406b0141 ("phy: add phy_find_by_mask/phy_connect_dev")
Signed-off-by: Eugeniu Rosca &lt;erosca@de.adit-jv.com&gt;

* Using U-suffix for integer is sufficient.
* ffs() of non-zero value cannot be 0. But addr being unsigned is
* preferable.
Signed-off-by: Heinrich Schuchardt &lt;heinrich.schuchardt@canonical.com&gt;
</content>
</entry>
<entry>
<title>net: phy: broadcom: Configure LEDs on BCM54210E</title>
<updated>2024-03-26T23:58:26Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2024-01-01T21:07:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=388cb2d321dd0bc5b0dc6e7f8e96d6d0f2929736'/>
<id>urn:sha1:388cb2d321dd0bc5b0dc6e7f8e96d6d0f2929736</id>
<content type='text'>
Configure LEDs on BCM54210E so they would blink on activity
and indicate link speed. Without this the LEDs are always on
if cable is plugged in.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
<entry>
<title>net: phy: ncsi: fixed not nullify the pointers after free</title>
<updated>2024-03-26T23:58:26Z</updated>
<author>
<name>Jacky Chou</name>
<email>jacky_chou@aspeedtech.com</email>
</author>
<published>2023-12-29T01:45:55Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=22f314e01ce249ec1649623ef725552f677beb62'/>
<id>urn:sha1:22f314e01ce249ec1649623ef725552f677beb62</id>
<content type='text'>
The issue occurs the UAF (use-after-free) to cause double free
when do the realloc function for the pointers during the
reinitialization NC-SI process, and it will cause the memory
management occurs error.
So, nullify these pointers after free.

Signed-off-by: Jacky Chou &lt;jacky_chou@aspeedtech.com&gt;
</content>
</entry>
<entry>
<title>net: phy: Use PHY MDIO address from DT if available</title>
<updated>2024-03-09T15:58:48Z</updated>
<author>
<name>Marek Vasut</name>
<email>marek.vasut+renesas@mailbox.org</email>
</author>
<published>2024-01-28T01:19:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=91e70367a5dcfe04227d6b85a4a88c7a5b43f472'/>
<id>urn:sha1:91e70367a5dcfe04227d6b85a4a88c7a5b43f472</id>
<content type='text'>
In case the PHY is fully described in DT, use PHY MDIO address
from DT directly instead of always using auto-detection. This
also fixes the behavior of 'mdio list' in such DT setup, which
now prints the PHY connected to the MAC correctly.

Signed-off-by: Marek Vasut &lt;marek.vasut+renesas@mailbox.org&gt;
Reviewed-by: Paul Barker &lt;paul.barker.ct@bp.renesas.com&gt;
</content>
</entry>
<entry>
<title>net: phy: nxp-c45-tja11xx: add tja1120 support</title>
<updated>2024-02-08T02:41:24Z</updated>
<author>
<name>Radu Pirea (NXP OSS)</name>
<email>radu-nicolae.pirea@oss.nxp.com</email>
</author>
<published>2023-12-13T16:14:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=55fc0cbbd6c973849371bb21b45981ad26847a4b'/>
<id>urn:sha1:55fc0cbbd6c973849371bb21b45981ad26847a4b</id>
<content type='text'>
Add TJA1120 driver structure and report 1G speed.

Signed-off-by: "Radu Pirea (NXP OSS)" &lt;radu-nicolae.pirea@oss.nxp.com&gt;
</content>
</entry>
<entry>
<title>net: phy: nxp-c45-tja11xx: rename nxp_c45_tja11xx structure</title>
<updated>2024-02-08T02:41:24Z</updated>
<author>
<name>Radu Pirea (NXP OSS)</name>
<email>radu-nicolae.pirea@oss.nxp.com</email>
</author>
<published>2023-12-13T16:14:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7e02c3accb464871bcdd11597b1afc72c3b46593'/>
<id>urn:sha1:7e02c3accb464871bcdd11597b1afc72c3b46593</id>
<content type='text'>
Rename nxp_c45_tja11xx structure to nxp_c45_tja1103. The driver will
support more PHYs and nxp_c45_tja11xx is too generic.

Signed-off-by: "Radu Pirea (NXP OSS)" &lt;radu-nicolae.pirea@oss.nxp.com&gt;
</content>
</entry>
</feed>
