Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp248682lqb; Tue, 28 May 2024 14:31:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJcE34cE5z0boUENaQ/pTep0gmIsEV/SPVAP0tG/VKAvjhwtaPrc2UuW4WGXKCJHFAIcajZK3u1fivZ2qxjbM4FCtb3VPqfHEbg/PsNA== X-Google-Smtp-Source: AGHT+IENKRnBHM17XA2vxTWJyTFjRf/2V0yz6Cz3ABnq7VIlCtkZXTmipjG6644LmWbKukUJOTOb X-Received: by 2002:a05:6214:564d:b0:6ac:78b2:749e with SMTP id 6a1803df08f44-6ac78b2774fmr130042776d6.35.1716931882755; Tue, 28 May 2024 14:31:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716931882; cv=pass; d=google.com; s=arc-20160816; b=hlVteUzFo2IQCEWWok6zEl6q6etv3QNZcakqyUkN6LvK1BZH1sOwnt8UQxvNLWTDHX 2CSNzGAIBPX5nsbgMgqSo6nQc0pUZcVfR6GKwUN4gcheMPu68VwAzeW4Y4+a33FAYArc y/NGIqRmm4DgZWIJt8qH3YcTUIDBTLLdTz/G6cMxPEFCH/TLCZbvs9ScnK4O2ub96izD 3F9BNKZ4e0j3Yl1YNmK3F0c9ahCgwmhMHwpRqYKR+w8MerculD5SaB7PM+dTX4mKUTCc FLQejpC3Zlj29SBda3aRa+vf95mTJ+fT2HS0qtf3M8GSuNO0GMOXL1KPzd/iDedgUNrD WKkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature; bh=EIep8qKIxaxlFHNTt62vElnKz3kcgYrlT/Yvgu0K6eQ=; fh=cGRrRHfMJzgfDpBcpAP9imVgaa0LYdnnOHP6nh4bcsI=; b=aIr8vgqKatXmPUtIXzhEhLLbDF1nEe9iQlde9DqVT4ERT3ONa5dAu4v7xGjnwUudF9 sPZfi8H2vV/D/njP63kvlXv/omjUPP31oEjtN4Brb+mHKuhBMARWZJLUZ79M6quQ8J6E budfVaNwdlucgnD5v6pSFTkwhOmX6t2wJlNabJyLZDUFVKKS2NwCkXWkdGutgZ8ToQHk W+6u2Ywl/86hDmu2jipSHpR/LR9aeI2j4/nq58TxvCjR4n/vsXXj3f1VXi7jk3oBnxzv HmLC2bkF1hGU5toNA0kSmvdnUjrNBDb4Qb2F0cRuN3jBHR29onfjt5NGQmwELmcWnIAZ KXFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=g5TU9e63; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-193116-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac162b296bsi114355046d6.441.2024.05.28.14.31.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 14:31:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193116-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=g5TU9e63; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-193116-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microchip.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7C85C1C22B30 for ; Tue, 28 May 2024 21:31:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32E1E17B4FA; Tue, 28 May 2024 21:31:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="g5TU9e63" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 83B912FB2; Tue, 28 May 2024 21:31:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716931874; cv=none; b=BN4DECeJGtnFvGF5X1hcflaMH1PHTOP6TzNFgKNeZzO03tb8S3wdNbBKwJoz5tu+Gx/fUiBbW7ugJTLgX28jKiwUlQeBb9ppvuiESFkrvxn9sETpuMEZhH9peLuWbr4+dOofIL2C6x2Nk+SnUIr2NAWGCWi6EFmEAp7sJTKlESI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716931874; c=relaxed/simple; bh=qhikkG0+J3ao9eUj/gAqD8DTEQECSMaXK+bVgpJ4E1s=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=i7ujkgUQyQsmmGWGQtKr5mG1g7njwxWXL1qzf69Zi0A8rurTGMCW5Noih2F+W8n2vfn+2OrQOwF7N9ibGcYJKBoWMZlw0RkSeY+1qfl9y7TGGV+suMa6YVz+KAXLIkmikWq3/MxT+2HxANk2yH4SUVu1hHWX8EJ4XFwa/Sp0Pw8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=g5TU9e63; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1716931873; x=1748467873; h=from:to:cc:subject:date:message-id:mime-version; bh=qhikkG0+J3ao9eUj/gAqD8DTEQECSMaXK+bVgpJ4E1s=; b=g5TU9e639SuOhYJRrE0Oe3L7LRtXLPVlb7OM4JjqED83PPTl9MtGw6wN +K3SR/mYDl55KFrj4LBstIOz4Oly4Mxmr0JQFeA+DGgeeVTSiJbhCtoXz KDFb/rLTDY2Yc88z+Jz0ldyNC8EX4rCOyy51AsClMnfLQK0yq2I8nyGZw ctWImbjVAE4B3QEQV7KXm7cDTyTxFMfcwcOgMXLbpcFHSILZkHJs24Oz4 /+RY2EXgshujKpfWNWDiG/TAc4FlDkxaPl1nssShzeu8hN9UvBb4vwLj9 LB84M+fw69ywm11Nds6gbkvhVpQ4cu/G9k28xfQUBtEkEZILGbseN2bwO A==; X-CSE-ConnectionGUID: /9I5zD/kRmu9YPlRbLYtAg== X-CSE-MsgGUID: Oe2pBzO0RKiwpp5fvrsyVw== X-IronPort-AV: E=Sophos;i="6.08,196,1712646000"; d="scan'208";a="26625587" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 28 May 2024 14:31:07 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 28 May 2024 14:31:05 -0700 Received: from hat-linux.microchip.com (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 28 May 2024 14:31:04 -0700 From: To: Woojung Huh , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean CC: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , , , , Tristram Ha Subject: [PATCH net] net: dsa: microchip: fix RGMII error in KSZ DSA driver Date: Tue, 28 May 2024 14:34:26 -0700 Message-ID: <1716932066-3342-1-git-send-email-Tristram.Ha@microchip.com> X-Mailer: git-send-email 1.9.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain From: Tristram Ha The driver should return RMII interface when XMII is running in RMII mode. Fixes: 0ab7f6bf1675 ("net: dsa: microchip: ksz9477: use common xmii function") Signed-off-by: Tristram Ha Acked-by: Arun Ramadoss Acked-by: Jerry Ray --- drivers/net/dsa/microchip/ksz_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c index 1e0085cd9a9a..2818e24e2a51 100644 --- a/drivers/net/dsa/microchip/ksz_common.c +++ b/drivers/net/dsa/microchip/ksz_common.c @@ -3142,7 +3142,7 @@ phy_interface_t ksz_get_xmii(struct ksz_device *dev, int port, bool gbit) else interface = PHY_INTERFACE_MODE_MII; } else if (val == bitval[P_RMII_SEL]) { - interface = PHY_INTERFACE_MODE_RGMII; + interface = PHY_INTERFACE_MODE_RMII; } else { interface = PHY_INTERFACE_MODE_RGMII; if (data8 & P_RGMII_ID_EG_ENABLE) -- 2.34.1