From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C73903EBF35 for ; Mon, 30 Mar 2026 22:37:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774910276; cv=none; b=mSUyHLi/kXfjeoAJehaS7otgaeGgeRQyqMmV9XIkse+FFVGgx7ac1YO5x2qRbBiFLp1WEL0mXWi+zS84BlpsFFF/dCZQdOixE6vED6L+axENFzi27krbqzIA4zPzY9IWKQtfOvEkvSkxlb99MoAPwtDZuNCRcMAMctk0adHmDgg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774910276; c=relaxed/simple; bh=EQimx+QysHLjjgSi9/ePA+PjBK6gGiEFjWC4RPJeIv8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QvUuDP8exVWTgG24LttPoMyWTpxEs/Lv6z7Fzf4fBqvocW6d1tVpOP0xdXGmAU22Ac0grepkJyrj7XJSIGeYpo3Rv4JQp+2Qk1NNIsagz3G7sOL+dWOb3D7knTA5yXJL7J6ElUjXDzOyjwN10XBlnKlb4fJMFxaPZxb3wIku0pU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UE7cC5U5; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UE7cC5U5" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4832c8f9d87so7109735e9.3 for ; Mon, 30 Mar 2026 15:37:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774910265; x=1775515065; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3jfJJje0KBtM9hz5w5lHt1nnYJf3r1NFmOVPbBE39ug=; b=UE7cC5U5fTRYpE7ImKu2qQHK2s4yHX1nWr9iiSS5gZpGBZpsFvzNLPJ/v+yhJ5L8VQ JnF/MHhy3pcy4X49sNnJG8oUtLJuao+wVd6l4x5uc91fk+hafx0vYe7ZE3KB5l/1lb56 Xjxt1IpJus9WOylHD52QflZ6mawaFG++EoWAWOaRxo9o1+LdOOxVBXVq1P3FKozDMnqd osvCcBgcX1HUbFuLpAQPfhxS45UWG4rvyw8fk0seCxgiNU/tSbTEBbu9PptKjgkSwseX 1A2qwYx8GTVpjiMKT+wUmUDY2Ka1BhVVrZO5zXik0wL2C5XwIAZgHDhJWB0GTxyI9eqL q0CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774910265; x=1775515065; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3jfJJje0KBtM9hz5w5lHt1nnYJf3r1NFmOVPbBE39ug=; b=gpmTY+JBFSc4FYBqnkeX1SLrwIWUM4S1Lbw3FnECWiIceviRWZouC2XHQtGH636owU XrNWy7UAVe3huqVBjmBAQWAsPSaOpqpyk97OjXA9a7CLjPx3w2Pw0VQvR78cpcB6nuio +ERvuiI7Uu8kLsOwESpl+OWAwNaDYeZ6bsFoVpaDtBC5KDP6zVzg/FZBFz5VWlb+/j2C 7pYllfYxJvSU+46Rkiwpe7wKWdmSX1Dd8p4ZP3Jb+3ZEgJtsAWQLi4i09H43cvH9Qcgx nVhVaJRc7bphIZfcS2MVAvQbez6/bZO72GxOYidj+iS24kyMjlvT/76W2hy7iA0H6MOc rTdQ== X-Forwarded-Encrypted: i=1; AJvYcCXmMdh2XVRR1KmXyTuQX2NV3KVU/I3ILlEvWGMMexQMvm+37oalaVloW5ItRjergvIDWSSGeKb1MK2Iw84=@vger.kernel.org X-Gm-Message-State: AOJu0YzMRohvvHBgm+In4E1mOy4vHSRoHVeKHLGJ9hxuLRnarsZhKlbN Shma1kWgm1VqPBo1rFXPGLRMxhj7ed707BScULSWRGlPSR5H2lu8XtQy X-Gm-Gg: ATEYQzwAr/zxorI+MfZ/lPZdfphbgjrWsLUiXD8+Jnc8viBMWAIGgpDokrrqVTMaQ1D AYcP0XZsSZ8KKo/zYdampsuK6BftO5uX37GRnP9UWVG5Z6pagBX3u+Dic8F6w0KVob8NyYwWTq3 LmdnsDUf/SHboQzDmeu1s6wL0ijJSOmEbP/kynCO58zutiq8ZxeHtPXQtCkYNetKm8HFyfnnd8r NBdCN3FhfaZc0TM3gB4MJaBh8YvKtTL0K5vXCljqPZBf4aKxYoVdFJ5wk0RdAokHZe1cKBDwbFv n8a3UeH8ROfQvqH8+eOx6OGKET4Gufb0QU+Urx6CwhEhaiwu+Wt+aKqqcSI6/dEV7mrXEwTWVHF qWg0QlmLSJM1C7y6xT+dRAFE8Twz1ruLb17PlbPN9yr2UlJpsa0oCHmE0jiDrWEYAuGliuW4a5g fMtvKRo6VI7gMR7oMeHwnoG7775Q== X-Received: by 2002:a05:6000:4014:b0:43c:fd96:2b8a with SMTP id ffacd0b85a97d-43cfd963552mr5568854f8f.2.1774910265013; Mon, 30 Mar 2026 15:37:45 -0700 (PDT) Received: from skbuf ([2a02:2f04:d50a:b400:fc92:d05b:3301:b722]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43cf24739easm23222604f8f.30.2026.03.30.15.37.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2026 15:37:44 -0700 (PDT) Date: Tue, 31 Mar 2026 01:37:41 +0300 From: Vladimir Oltean To: Nora Schiffer Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Siddharth Vadapalli , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Neil Armstrong , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux@ew.tq-group.com Subject: Re: [PATCH v2 5/7] phy: ti: gmii-sel: add support for J722S SoC family Message-ID: <20260330223741.pmrx25cslrlpbcea@skbuf> References: <5d00697f133cd33a1df62ac7ebf73e507e49ed2f.1774354734.git.nora.schiffer@ew.tq-group.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5d00697f133cd33a1df62ac7ebf73e507e49ed2f.1774354734.git.nora.schiffer@ew.tq-group.com> Hi Nora, On Tue, Mar 24, 2026 at 01:29:41PM +0100, Nora Schiffer wrote: > The J722S gmii-sel is mostly identical to the AM64's, but additionally > supports SGMII. > > Signed-off-by: Nora Schiffer > --- > drivers/phy/ti/phy-gmii-sel.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/phy/ti/phy-gmii-sel.c b/drivers/phy/ti/phy-gmii-sel.c > index 6213c2b6005a5..4e242b1892334 100644 > --- a/drivers/phy/ti/phy-gmii-sel.c > +++ b/drivers/phy/ti/phy-gmii-sel.c > @@ -251,6 +251,13 @@ struct phy_gmii_sel_soc_data phy_gmii_sel_soc_am654 = { > .regfields = phy_gmii_sel_fields_am654, > }; > > +static const > +struct phy_gmii_sel_soc_data phy_gmii_sel_soc_j722s = { > + .use_of_data = true, > + .regfields = phy_gmii_sel_fields_am654, > + .extra_modes = BIT(PHY_INTERFACE_MODE_SGMII), I'm not familiar with the hardware, but "mostly identical to AM64, but additionally supports SGMII" does not explain why j722s does not inherit the features that am654 has (PHY_GMII_SEL_RGMII_ID_MODE and BIT(PHY_GMII_SEL_FIXED_TX_DELAY). The phy-gmii-sel from j722s does support RGMII, right? Because in lack of the PHY_GMII_SEL_RGMII_ID_MODE feature, phy_gmii_sel_mode() will just silently skip the regmap_field_write(regfield, rgmii_id) call, and return successfully despite an incomplete configuration. We have the phy_validate() call and phy_ops::validate() through which the PHY can report to the Ethernet controller which phy_interface_t it supports and which it doesn't. If the j722s doesn't support RGMII, maybe it should implement this method. > +}; > +