aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/cpu.c
diff options
context:
space:
mode:
authorOleksij Rempel <[email protected]>2025-07-03 11:49:40 +0000
committerJakub Kicinski <[email protected]>2025-07-09 01:12:49 +0000
commit0713e55533c88a20edb53eea6517dc56786a0078 (patch)
treece4af8d3343a73fabcdcba4a5f08c1eaaa90f073 /rust/helpers/cpu.c
parentnet: phy: smsc: Fix Auto-MDIX configuration when disabled by strap (diff)
downloadkernel-0713e55533c88a20edb53eea6517dc56786a0078.tar.gz
kernel-0713e55533c88a20edb53eea6517dc56786a0078.zip
net: phy: smsc: Force predictable MDI-X state on LAN87xx
Override the hardware strap configuration for MDI-X mode to ensure a predictable initial state for the driver. The initial mode of the LAN87xx PHY is determined by the AUTOMDIX_EN strap pin, but the driver has no documented way to read its latched status. This unpredictability means the driver cannot know if the PHY has initialized with Auto-MDIX enabled or disabled, preventing it from providing a reliable interface to the user. This patch introduces a `config_init` hook that forces the PHY into a known state by explicitly enabling Auto-MDIX. Fixes: 05b35e7eb9a1 ("smsc95xx: add phylib support") Signed-off-by: Oleksij Rempel <[email protected]> Cc: Andre Edich <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'rust/helpers/cpu.c')
0 files changed, 0 insertions, 0 deletions