From nobody Sat Feb 7 15:29:39 2026 Received: from mxout4.routing.net (mxout4.routing.net [134.0.28.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 209B822B8D9; Sat, 10 May 2025 17:58:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746899886; cv=none; b=fLqgzw+gUCKDyyMh1VAVVHAB2o8X2kvrNll6L1nhKKkHE7x1EvRqWLcUB1mwIa4wRB9UxpHPfDgVEj8SC/bCkoihh0y7FaPOpqGR5r5FaD61djCs3SzjWtgs+DnfigKkpd2pXR8EkaCo2wH/0ifLiwIjHvQVVXixoeAcl5dgFuQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746899886; c=relaxed/simple; bh=QQf//rEMyNITbaywNt9GDXiXMR5B3IjJlWxUEQrvqOo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XJYvxiP8gcyrNE+yKxip02wLRKf0scPn30+OevHkgRjMlHhuZf2qnD5i5UT5yEl5sKr3B/porApczrpmJMhQcrVYRMNCKuB37/oWgoreoydX6WZnpKJXOmA5Vyfje6lIcZT7IQ/0VE0Kf/274GZzkGTnH5MOYHKpqUQZhlYjNdY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=N6baxT28; arc=none smtp.client-ip=134.0.28.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="N6baxT28" Received: from mxbox4.masterlogin.de (unknown [192.168.10.79]) by mxout4.routing.net (Postfix) with ESMTP id 0FB381003BB; Sat, 10 May 2025 17:50:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1746899400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ZJk9iIuV2ZtYqSNu6/IHDZogtwF6sWyClO8J6khSNsA=; b=N6baxT28joV5PobXemFEQf3aHy//NBRJu5h1FppZg7CUlO5K2vaKkykWWLWuFN3Z5Qi+m/ 4aUx9ZMqr3ub0pMZqD8QDhU6T6lONQ+lChXAVa/DTw7j+e/isAzXlf5pL4el4CuZJcjGcw fu+v8GDpfkTETMeyTdQWmeuRmmtKR5k= Received: from frank-u24.. (fttx-pool-157.180.226.129.bambit.de [157.180.226.129]) by mxbox4.masterlogin.de (Postfix) with ESMTPSA id C0A5980236; Sat, 10 May 2025 17:49:58 +0000 (UTC) From: Frank Wunderlich To: Daniel Golle , Qingfang Deng , SkyLake Huang , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [net-next, PATCH v2] net: phy: mediatek: do not require syscon compatible for pio property Date: Sat, 10 May 2025 19:49:32 +0200 Message-ID: <20250510174933.154589-1-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: c1fe3543-f69b-41e4-8960-f64da6740af7 Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Current implementation requires syscon compatible for pio property which is used for driving the switch leds on mt7988. Replace syscon_regmap_lookup_by_phandle with of_parse_phandle and device_node_to_regmap to get the regmap already assigned by pinctrl driver. Signed-off-by: Frank Wunderlich --- v2: - out of RFC --- drivers/net/phy/mediatek/mtk-ge-soc.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/mediatek/mtk-ge-soc.c b/drivers/net/phy/mediat= ek/mtk-ge-soc.c index 175cf5239bba..21975ef946d5 100644 --- a/drivers/net/phy/mediatek/mtk-ge-soc.c +++ b/drivers/net/phy/mediatek/mtk-ge-soc.c @@ -7,6 +7,7 @@ #include #include #include +#include =20 #include "../phylib.h" #include "mtk.h" @@ -1319,6 +1320,7 @@ static int mt7988_phy_probe_shared(struct phy_device = *phydev) { struct device_node *np =3D dev_of_node(&phydev->mdio.bus->dev); struct mtk_socphy_shared *shared =3D phy_package_get_priv(phydev); + struct device_node *pio_np; struct regmap *regmap; u32 reg; int ret; @@ -1336,7 +1338,13 @@ static int mt7988_phy_probe_shared(struct phy_device= *phydev) * The 4 bits in TPBANK0 are kept as package shared data and are used to * set LED polarity for each of the LED0. */ - regmap =3D syscon_regmap_lookup_by_phandle(np, "mediatek,pio"); + pio_np =3D of_parse_phandle(np, "mediatek,pio", 0); + if (!pio_np) + return -ENODEV; + + regmap =3D device_node_to_regmap(pio_np); + of_node_put(pio_np); + if (IS_ERR(regmap)) return PTR_ERR(regmap); =20 --=20 2.43.0