From nobody Mon Sep 15 01:56:03 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 059D6C004D4 for ; Thu, 19 Jan 2023 10:02:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229606AbjASKCx (ORCPT ); Thu, 19 Jan 2023 05:02:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230269AbjASKCb (ORCPT ); Thu, 19 Jan 2023 05:02:31 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2477D6CCC7; Thu, 19 Jan 2023 02:02:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1674122541; x=1705658541; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BTaC+eTDiqpxNaBodV9SnvUdwz1kIcjygsdvDJtO7y0=; b=ZgAS2VtMnrx4PBwaITSkU79qF32+HWwysjWO/UIJLN8QwYLb8WkTI3G0 smBKQ8NXvyoaBTW9rfSLOeOQGYohpeiVgZrKjLAornZ2pXsUxuwL/9k9L VC54VXWYO0RJ4VmymSKqL71Uihx/nfOp3OFh+kkqstROp5eRP9NfTNkMh 6fvj/6R/WD7MQMNY/aY9rHq6MebrANTUCopTL7yAq4fZoj9Cb5PlDWnXn V3DA0fS+A78jyjhOedmXZazSTT052yecXIpBmfnmSBSgeW8XhXc+oz/ka 6uv8Vdlu+EMoKkNeHoC7PxP4UtrJsr+4mnroIBhre+HVB4XXKAEVq4pIj w==; X-IronPort-AV: E=Sophos;i="5.97,228,1669100400"; d="scan'208";a="197274452" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Jan 2023 03:02:20 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Thu, 19 Jan 2023 03:02:20 -0700 Received: from che-dk-unglab44lx.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Thu, 19 Jan 2023 03:02:17 -0700 From: Pavithra Sathyanarayanan To: , CC: , , , , , Subject: [PATCH net-next 1/3] net: lan743x: remove unwanted interface select settings Date: Tue, 17 Jan 2023 19:46:12 +0530 Message-ID: <20230117141614.4411-2-Pavithra.Sathyanarayanan@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230117141614.4411-1-Pavithra.Sathyanarayanan@microchip.com> References: <20230117141614.4411-1-Pavithra.Sathyanarayanan@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Remove the MII/RGMII Selection settings in driver as it is preset by the EEPROM and has the required configurations before the driver loads for LAN743x. Signed-off-by: Pavithra Sathyanarayanan --- drivers/net/ethernet/microchip/lan743x_main.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/et= hernet/microchip/lan743x_main.c index e205edf477de..c4d16f4654b5 100644 --- a/drivers/net/ethernet/microchip/lan743x_main.c +++ b/drivers/net/ethernet/microchip/lan743x_main.c @@ -1418,14 +1418,6 @@ static void lan743x_phy_link_status_change(struct ne= t_device *netdev) =20 data =3D lan743x_csr_read(adapter, MAC_CR); =20 - /* set interface mode */ - if (phy_interface_is_rgmii(phydev)) - /* RGMII */ - data &=3D ~MAC_CR_MII_EN_; - else - /* GMII */ - data |=3D MAC_CR_MII_EN_; - /* set duplex mode */ if (phydev->duplex) data |=3D MAC_CR_DPX_; --=20 2.25.1