The temperature sensor is actually part of the integrated PHY and available
also on the standalone versions of the PHY. Therefore hwmon support will
be added to the Realtek PHY driver and can be removed here.
Fixes: 1ffcc8d41306 ("r8169: add support for the temperature sensor being available from RTL8125B")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
v2:
- rebase patch on net
---
drivers/net/ethernet/realtek/r8169_main.c | 44 -----------------------
1 file changed, 44 deletions(-)
@@ -5563,12 +5525,6 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)if(rc)returnrc;-/* The temperature sensor is available from RTl8125B */-if(IS_REACHABLE(CONFIG_HWMON)&&tp->mac_version>=RTL_GIGA_MAC_VER_63)-/* ignore errors */-devm_hwmon_device_register_with_info(&pdev->dev,"nic_temp",tp,-&r8169_hwmon_chip_info,-NULL);rc=register_netdev(dev);if(rc)returnrc;
From: Jacob Keller <jacob.e.keller@intel.com> Date: 2025-01-10 01:12:51
On 1/9/2025 2:43 PM, Heiner Kallweit wrote:
The temperature sensor is actually part of the integrated PHY and available
also on the standalone versions of the PHY. Therefore hwmon support will
be added to the Realtek PHY driver and can be removed here.
Fixes: 1ffcc8d41306 ("r8169: add support for the temperature sensor being available from RTL8125B")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
v2:
- rebase patch on net
From: Jacob Keller <jacob.e.keller@intel.com> Date: 2025-01-10 01:14:43
On 1/9/2025 2:43 PM, Heiner Kallweit wrote:
The temperature sensor is actually part of the integrated PHY and available
also on the standalone versions of the PHY. Therefore hwmon support will
be added to the Realtek PHY driver and can be removed here.
Fixes: 1ffcc8d41306 ("r8169: add support for the temperature sensor being available from RTL8125B")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
Can you explain what user-facing issues this fixes? Do we get conflicts
when multiple hwmon sensors are registered? I'm not sure this counts as
a 'net' fix, unless we can identify the user-facing behavior that is
problematic?
The temperature sensor is actually part of the integrated PHY and available
also on the standalone versions of the PHY. Therefore hwmon support will
be added to the Realtek PHY driver and can be removed here.
Fixes: 1ffcc8d41306 ("r8169: add support for the temperature sensor being available from RTL8125B")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
Can you explain what user-facing issues this fixes? Do we get conflicts
when multiple hwmon sensors are registered? I'm not sure this counts as
a 'net' fix, unless we can identify the user-facing behavior that is
problematic?
The same sensor would be exposed twice, by the MAC and the PHY driver.
Support in the MAC driver was added for 6.13, so it's still in the rc
version only and not yet part of a released kernel version.
From: Jacob Keller <jacob.e.keller@intel.com> Date: 2025-01-11 00:53:31
On 1/9/2025 10:45 PM, Heiner Kallweit wrote:
On 10.01.2025 02:14, Jacob Keller wrote:
quoted
On 1/9/2025 2:43 PM, Heiner Kallweit wrote:
quoted
The temperature sensor is actually part of the integrated PHY and available
also on the standalone versions of the PHY. Therefore hwmon support will
be added to the Realtek PHY driver and can be removed here.
Fixes: 1ffcc8d41306 ("r8169: add support for the temperature sensor being available from RTL8125B")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
Can you explain what user-facing issues this fixes? Do we get conflicts
when multiple hwmon sensors are registered? I'm not sure this counts as
a 'net' fix, unless we can identify the user-facing behavior that is
problematic?
The same sensor would be exposed twice, by the MAC and the PHY driver.
Support in the MAC driver was added for 6.13, so it's still in the rc
version only and not yet part of a released kernel version.
I guess I'm failing to understand what the user repercussions of having
multiple sensors would be?
I suppose that it is confusing and could lead to issues when userspace
is checking or controlling the sensor, and fixing this via net before it
makes it into a full release is good.
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:
On Thu, 9 Jan 2025 23:43:12 +0100 you wrote:
The temperature sensor is actually part of the integrated PHY and available
also on the standalone versions of the PHY. Therefore hwmon support will
be added to the Realtek PHY driver and can be removed here.
Fixes: 1ffcc8d41306 ("r8169: add support for the temperature sensor being available from RTL8125B")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
[...]