From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0C8037AA9E; Mon, 3 Aug 2026 10:15:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785752120; cv=none; b=DoZsixHBnks9ySQsXIRVamitqY7DC/ttbkAUFUbGOG0GRRqxhbNJOZSzDYjrRharraJEKL+Tx+9sv81ZtOKjB3L3aPAAfKTlE+jTNWwkHZyGglUb6yrQUdk2/T9E87zXhQyJS+FSC1ly/wO8Ci8+JqRefxUeeiQAucoYmCWxvXM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785752120; c=relaxed/simple; bh=QOzvt9t/MIRWZBLs3wy9qmzt+LKR/lt21R4C8HB6byU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mv+0w2LxWE+L+/ufDagqtexc3LLQ3gjmf1ZrggPLhAENPFJ64d3O5EzYFd2dFwnGoc0edIegKKB1Uhvp2nA0spiNWED/C4I0LpxjbaBSiHGbXhu/AT5cTDoKVGaRnjrUkTsmIKCByMzbP/kBWRkZorZ609NTgaJDobyfpJz1Exc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=GOmfoRQb; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="GOmfoRQb" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0A2A115A1; Mon, 3 Aug 2026 03:15:14 -0700 (PDT) Received: from e142021.fritz.box (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 901A83F632; Mon, 3 Aug 2026 03:15:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1785752118; bh=QOzvt9t/MIRWZBLs3wy9qmzt+LKR/lt21R4C8HB6byU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GOmfoRQbY+zr8SjY5r3n9rMeI5Q7MMm+HUliKJZf5pZmLr4Si9fDOV/myP9Dvmiit YmNcfVuGzl4znJ63ZvzGg+XzMuWnT7Vne6VZRhmWaUusehotNYa4ncOyfV2IUuqdXm Bo/dsIJSuQq0t9nGHmFc8+7CJON0vCNpN8o5FUDE= From: Andre Przywara To: Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Heiner Kallweit , Russell King Cc: Liu Changjie , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/6] net: phy: maxio: extend PHY ID matching Date: Mon, 3 Aug 2026 12:14:50 +0200 Message-ID: <20260803101452.2993721-5-andre.przywara@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260803101452.2993721-1-andre.przywara@arm.com> References: <20260803101452.2993721-1-andre.przywara@arm.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Currently the maxio Ethernet PHY driver expects a PHY matching exactly the one ID provided: 0x7b744412. The Maxio MAE0621A-Q3C model used on the Allwinner based X96QPro+ TV box uses a slightly different PHY ID: 0x7b744411. Replace the "exact match" requirement with the more relaxed "model match" version, which ignores the lowest 4 bits of the PHY ID. Both PHYs should now be recognised by the driver. Signed-off-by: Andre Przywara --- drivers/net/phy/maxio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/maxio.c b/drivers/net/phy/maxio.c index 5fabf99fb90f..d97fb50cdbe1 100644 --- a/drivers/net/phy/maxio.c +++ b/drivers/net/phy/maxio.c @@ -87,7 +87,7 @@ static int maxio_mae0621a_config_init(struct phy_device *phydev) static struct phy_driver maxio_drivers[] = { { - PHY_ID_MATCH_EXACT(MAXIO_MAE0621A_PHY_ID), + PHY_ID_MATCH_MODEL(MAXIO_MAE0621A_PHY_ID), .name = "Maxio MAE0621A", .probe = maxio_mae0621a_probe, .config_init = maxio_mae0621a_config_init, @@ -100,7 +100,7 @@ static struct phy_driver maxio_drivers[] = { module_phy_driver(maxio_drivers); static const struct mdio_device_id __maybe_unused maxio_tbl[] = { - { PHY_ID_MATCH_EXACT(MAXIO_MAE0621A_PHY_ID) }, + { PHY_ID_MATCH_MODEL(MAXIO_MAE0621A_PHY_ID) }, { } }; MODULE_DEVICE_TABLE(mdio, maxio_tbl); -- 2.43.0