Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp235981lqh; Mon, 6 May 2024 18:21:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqAMWzq1rN+xa/BFvBvkDWwFhV4JgkQIj9ULwWM3b9Tx8nTODlrReA1fLhNYZx6+sB++9EjcSH0Zj70EGpECsPXNgd8hZ9jmQe/ZYbKQ== X-Google-Smtp-Source: AGHT+IGo/tZg6WXXeWQ71oGmNVLBbwx5hFLcuSRoADJ20jHncRGgHGlWqrmtW1ZF1qyw4+7cRYk4 X-Received: by 2002:a50:9e25:0:b0:572:6af5:1b61 with SMTP id z34-20020a509e25000000b005726af51b61mr10103537ede.6.1715044877552; Mon, 06 May 2024 18:21:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715044877; cv=pass; d=google.com; s=arc-20160816; b=mnWO8l+tVzpm3ze44RF2/77B44v/7z/g0oZChWtiSC8mv2vL+Zzn5iktXGsr7E/IpN GWWMBhr15WpAkKC1lejMH4WFrs3tXou1mFzdq0AiMydqRrYMSjwk/TYKZhp39BB1jt3b blL1URnIFgGZKIM/YPb5vDojLVUm8TAYDOu2WUuohWFF6MzgCHS6FHbGLozmFmDW+zmI WRpnxpgrD+c/P9kLTqNRXXc1FWo3rYwHfljsH6SokYl0Ke/j3HmUEjWNb54GAamcekqN PsK/6scaw5HmmEo9RRu1lqyHJMQQVRMy5qHdIlNmIkgmxIaRksAwqx66ZfaLlN9iwQLq BqjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fYpJZptr+CFQVFJZql4DSBtvy01u2b9drswZ42yZ9Oo=; fh=nFxlm+Y+/1Irsc3ckH6d7lYsu4xHSN/Dr3p9NKq/q9U=; b=cC2h8SQSKT4l0+o0mcqOVOrWlb3x+lu9x+PO1CGBOU+0t3Fb96EWNdjrAUzQLEvUtl ak5VDxUuD/0YgBvduKxPRYLi00bIQTs+6BEeQ8kDytyDRoKLmCx+FyBqYYviEsBKAvzQ P3QZkltgVNqzJesQDg1rEDH9BnFydQG52xW75Izb6VNVhAUdl73PvWPXov8UOIC+tEVn 8Uat3QW3JDdzlX4XA03lhBQW8eoaKdbkjxTI1RyIno2SbfXDPiumrZgX5K8EyWSrll/W 1mt/1k9pE9vHZmuss8Mkoz6h/UzCWBg+w/ulXWEy8nv//+Jjt3moNEvURSKDTpGq+30i VzVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="fzY+tXi/"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-170541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170541-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p26-20020a50cd9a000000b00572abf6f656si5403256edi.451.2024.05.06.18.21.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 18:21:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="fzY+tXi/"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-170541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170541-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3F6921F21E65 for ; Tue, 7 May 2024 01:21:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2DE33FEF; Tue, 7 May 2024 01:21:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="fzY+tXi/" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 41D781862; Tue, 7 May 2024 01:21:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715044868; cv=none; b=YTBYHgFGrZSvksIt+hSd78LjcVKHNA3QhyGwCk1qtTuIevvlibX5bwFB9CmXZhguAragMrJ92bp3w2YCDxExiHODvEmKbFTtLZccJ8bxcWSuzuLQlBGpTBrxvwE8TxTog4GVTvUW75a1cwXbOmxGFcyPvq/DmZGqVmjGReQ1EeQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715044868; c=relaxed/simple; bh=F+aIFNOTgHondlXqavvm/br/vmlFTyMWVANA4aI+mjg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XefUvsOWHKFvZnL2ZOgQTD/239D0c3fmj6M5FHTUvCTDGg4sBN4VtnxN8hNpkOhjYcZWwB+dbEIT+X/XAPhY/ljZaTNkM44eqOK6Ld8HmRfHHay+EijBTBsFYrPTPE7lz7xmpdjc0YOQkVxkdD+hlw+42M7N7uKKaTZT3zWnGSM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=fzY+tXi/; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=fYpJZptr+CFQVFJZql4DSBtvy01u2b9drswZ42yZ9Oo=; b=fzY+tXi/UsTDExwmPFhCAbXewZ lsK2vDYSdz8FqNFQQ2eZPjxsNprlfX6702/O/6xy5Arh+dlo2hBmw2Ui9DScqeAr14sC1VYM46qTA tCw9c1tY2CDe1anO5oki7aDzMmeYzrDyVahiOOFXkl05vbBaB7DDml4QjMZ6M1NE+UAE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s49Vi-00EoGZ-0X; Tue, 07 May 2024 03:20:50 +0200 Date: Tue, 7 May 2024 03:20:49 +0200 From: Andrew Lunn To: Christian Marangi Cc: Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [net-next PATCH] net: stmmac: dwmac-ipq806x: account for rgmii-txid/rxid/id phy-mode Message-ID: <33b28b54-dd25-4ec2-a3b2-89c223e16057@lunn.ch> References: <20240506123248.17740-1-ansuelsmth@gmail.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: <20240506123248.17740-1-ansuelsmth@gmail.com> On Mon, May 06, 2024 at 02:32:46PM +0200, Christian Marangi wrote: > Currently the ipq806x dwmac driver is almost always used attached to the > CPU port of a switch and phy-mode was always set to "rgmii" or "sgmii". > > Some device came up with a special configuration where the PHY is > directly attached to the GMAC port and in those case phy-mode needs to > be set to "rgmii-id" to make the PHY correctly work and receive packets. > > Since the driver supports only "rgmii" and "sgmii" mode, when "rgmii-id" > (or variants) mode is set, the mode is rejected and probe fails. > > Add support also for these phy-modes to correctly setup PHYs that requires > delay applied to tx/rx. > > Signed-off-by: Christian Marangi Reviewed-by: Andrew Lunn Andrew