[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e62af3a7-c228-4523-a1fb-330f4f96f28c@lunn.ch>
Date: Thu, 13 Mar 2025 17:45:05 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Michael Klein <michael@...sekall.de>
Cc: Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] net: phy: realtek: Add support for PHY LEDs on
RTL8211E
On Wed, Mar 12, 2025 at 08:36:27PM +0100, Michael Klein wrote:
> Like the RTL8211F, the RTL8211E PHY supports up to three LEDs.
> Add netdev trigger support for them, too.
>
> Signed-off-by: Michael Klein <michael@...sekall.de>
> ---
> drivers/net/phy/realtek.c | 120 ++++++++++++++++++++++++++++++++++++--
What tree is this based on?
ommit 1416a9b2ba710d31954131c06d46f298e340aa2c
Author: Heiner Kallweit <hkallweit1@...il.com>
Date: Sat Jan 11 21:50:19 2025 +0100
net: phy: move realtek PHY driver to its own subdirectory
In preparation of adding a source file with hwmon support, move the
Realtek PHY driver to its own subdirectory and rename realtek.c to
realtek_main.c.
https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html
> +static int rtl8211e_led_hw_control_get(struct phy_device *phydev, u8 index,
> + unsigned long *rules)
> +{
> + int oldpage, ret;
> + u16 cr1, cr2;
> +
> + if (index >= RTL8211x_LED_COUNT)
> + return -EINVAL;
> +
> + oldpage = phy_select_page(phydev, 0x7);
> + if (oldpage < 0)
> + goto err_restore_page;
> +
> + ret = __phy_write(phydev, RTL821x_EXT_PAGE_SELECT, 0x2c);
> + if (ret)
> + goto err_restore_page;
What is happening here? You select page 0x7, and then use
RTL821x_EXT_PAGE_SELECT to select 0x2c? Does this hardware have pages
within pages?
Andrew
Powered by blists - more mailing lists