Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2590298rwd; Fri, 26 May 2023 08:28:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7YhlPPTQr5RCcgosIVCI7OnFelzH+OCqcrZFXmaOLT/2NaItnsZ1ZAMSRNgK/er/0Y2nJd X-Received: by 2002:a05:6a20:3d21:b0:10c:6956:a23c with SMTP id y33-20020a056a203d2100b0010c6956a23cmr6594763pzi.25.1685114931292; Fri, 26 May 2023 08:28:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685114931; cv=none; d=google.com; s=arc-20160816; b=ndksfNzRoADy+oSxeUUF3JoxI4nKLSZyOAPyUWvPFRvhWMJ8z0KcSvswGXLxv3OQEw /hAxcs19w1U2Ea8Vhv64Ke+PA6hlt6P/wbOVi9c9QiqYgWed0LzkmwuvlAP5Fc9xyC4M srtP75gRaPGrJhKMln51tgAzlH2KCGP+FXzSRMl9Kz+3inuRuFXSAoPe/tlOGZ8q1uAI AAlJw76zTGtXvd6N4nc9s7GInVSKJ4f3khTddRe4sD38fpIxb9NxPoEVHuwcJj6++JyL vqm2mgAtsUwWwxvZViU7S65VHSfF5yoOkgOALgtveTGDAmYfpcUYfY0Z/ga26BRG0nW6 Kakw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4C/l9oIr9HPjuYIGjUOO+khuu8tSU2r/kFRfNAmihPk=; b=mxvlVP+SCdUkn6Kx8bIt12/31CdgjhMuxNNWtTJDidOUiITtt51IGGgehVmxdfhZsi xvxkeyW9QzLTIjQF+2vGEcwKuX0KcdOUcMJ0ws//Xm44csxwPuvt6pJcwDnuMFp1G0kG kYoyRfwu4Yeo/Gxcn/Hfs44BXz6b1Pqk11BgVf2Zq+unMNO17p0tToaKCU6jVANzNgBX ucBjncKpyGNeEUUgeMpaxtAUPfZExvQlrTc0VhQjhwbPWE1rHBz27rnTdFatYCENq/EV DTs9ozdPPoWFY4xQcqclE0rkDSa/gATNxkdwLaoKBAGtibl7IWvj3HtEbJaKgItRhQHu OJIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="dhTDAP9/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 201-20020a6306d2000000b0053b8f80c656si2340954pgg.781.2023.05.26.08.28.17; Fri, 26 May 2023 08:28:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="dhTDAP9/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244092AbjEZPXU (ORCPT + 99 others); Fri, 26 May 2023 11:23:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244076AbjEZPXO (ORCPT ); Fri, 26 May 2023 11:23:14 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03553187; Fri, 26 May 2023 08:23:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1685114589; x=1716650589; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Qrgla/+2XOvTx0c45l7lux957CyaIb6rgNHr3CTEZUM=; b=dhTDAP9/YjQ+PeRmC9tUaBfZfVJh6AHAkss1dDWby8fmBzQOGtjY/MAb /mgdHeDj4VGkZ8V3DaweaM8LRQSqV86WIW/tHbMi9vdREwOojxEa5wITL /3KtN5lThHLJ/sNTjLRY4eWwexNFTD7S3zwg5Hs3X/q4ortTfwgGLD+03 VnsXWPtLppFJOEeGEyih1OLgYsGGvftmhuX69wuM9CkEaoEKO7gzz5YLR OXhMGRXbIKa0GQYda4UH9yi+slXlhPSnAZJBA9ZJgDlTLjXU2lrMJvR6l Wg/yxtBkxSwZUJLwyF1SrP3KCVVycOIcwkp2V/YusrPgHfzqeBaxHCJ/5 A==; X-IronPort-AV: E=Sophos;i="6.00,194,1681196400"; d="scan'208";a="154119493" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 26 May 2023 08:23:09 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) 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.21; Fri, 26 May 2023 08:23:07 -0700 Received: from CHE-LT-I17164LX.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Fri, 26 May 2023 08:23:03 -0700 From: Parthiban Veerasooran To: , , , , , , , , , CC: , , , , "Parthiban Veerasooran" Subject: [PATCH net-next v4 5/6] net: phy: microchip_t1s: remove unnecessary interrupts disabling code Date: Fri, 26 May 2023 20:53:47 +0530 Message-ID: <20230526152348.70781-6-Parthiban.Veerasooran@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230526152348.70781-1-Parthiban.Veerasooran@microchip.com> References: <20230526152348.70781-1-Parthiban.Veerasooran@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org By default, except Reset Complete interrupt in the Interrupt Mask 2 Register all other interrupts are disabled/masked. As Reset Complete status is already handled, it doesn't make sense to disable it. Reviewed-by: Ramón Nordin Rodriguez Tested-by: Ramón Nordin Rodriguez Reviewed-by: Andrew Lunn Signed-off-by: Parthiban Veerasooran --- drivers/net/phy/microchip_t1s.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/net/phy/microchip_t1s.c b/drivers/net/phy/microchip_t1s.c index 0ecef87e5882..bcfcec56a6c7 100644 --- a/drivers/net/phy/microchip_t1s.c +++ b/drivers/net/phy/microchip_t1s.c @@ -12,8 +12,6 @@ #define PHY_ID_LAN867X_REVB1 0x0007C162 -#define LAN867X_REG_IRQ_1_CTL 0x001C -#define LAN867X_REG_IRQ_2_CTL 0x001D #define LAN867X_REG_STS2 0x0019 #define LAN867x_RESET_COMPLETE_STS BIT(11) @@ -89,17 +87,7 @@ static int lan867x_revb1_config_init(struct phy_device *phydev) return err; } - /* None of the interrupts in the lan867x phy seem relevant. - * Other phys inspect the link status and call phy_trigger_machine - * in the interrupt handler. - * This phy does not support link status, and thus has no interrupt - * for it either. - * So we'll just disable all interrupts on the chip. - */ - err = phy_write_mmd(phydev, MDIO_MMD_VEND2, LAN867X_REG_IRQ_1_CTL, 0xFFFF); - if (err != 0) - return err; - return phy_write_mmd(phydev, MDIO_MMD_VEND2, LAN867X_REG_IRQ_2_CTL, 0xFFFF); + return 0; } static int lan867x_read_status(struct phy_device *phydev) -- 2.34.1