Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp228143iob; Mon, 2 May 2022 17:51:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycV7ZEK0+SdS/4gULQvxtiOY3nOjMBzdN2mPiJsXxCwCt1eQYYH3XJNZd9xjv+OiY+4xpC X-Received: by 2002:a62:1687:0:b0:50d:3364:46d4 with SMTP id 129-20020a621687000000b0050d336446d4mr13802096pfw.74.1651539066171; Mon, 02 May 2022 17:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651539066; cv=none; d=google.com; s=arc-20160816; b=Ac781Ig+tYBA5q/QIph0zAqtHT2iqXt00QLay2COhAXkuLMe3KT/0rQKNC5eP7rD3X /uqRaIJ1EOCyRMLT0YkrVNTmQzfjtMQDLrJBt1vtO+Sn4ZMHgErHkMbyoDiGbkLQJ727 Ird8syuPvfXWErPmiqEfD/kG4sOlMXj+XuGKGFqhajNwQFxLhQNV/ifouXzCAwtCJPHZ yCS7lwxqM1bJL2qxaOCDe3pLW8j7qN/+jHgHoowXs7g9LKcXu6NFjnLhxGCTKFs9mPlv ACq/j5IWAe0YGBE/9EbxEKsk6zsA+yVHkpzDpKQxW7+nXhFTVO5MUfn44uGZdw286BI1 ah8g== 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=NhyUX8NrB9R4zw/4LqnaXeXcLnYWsky0fsM9I1Ry8ms=; b=PrxoCW6UFcY1IyF7HrgbXI31YrjZt21aN7bdIuORVsMHRT8/r+f3fLIG7iCpNX+D79 5CybXVpoGzg9ZeACAnvu4lpj9PZvljIJ6W6+88TEdzT4muXZOYSKzGOvqxdRjF7o87J6 D47ioqpHtZI8Z6QvtxJKl63n7T23wNShxpyZNWEoQT+ojzX5x+bg5Lr2SvQ/u3B7jweo 4v8XXJUmkXdCyC7fo0qHLMBHObWjeYyeI2CG6vsMoMpSxF4aAw+syDsLYs2+mLY1bfgx KaaIOeVchc99MQXw+xo1wuufkBqXm0DdEaRFwDA12rllzPhm6REuabM6eh4zXxRobQPB z1Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="bBHRS/eF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f1-20020a656281000000b003aa9fda3738si15255182pgv.824.2022.05.02.17.51.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:51:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="bBHRS/eF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E7F064ECF2; Mon, 2 May 2022 17:38:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345661AbiD1LoW (ORCPT + 99 others); Thu, 28 Apr 2022 07:44:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345601AbiD1LoL (ORCPT ); Thu, 28 Apr 2022 07:44:11 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2897C62122; Thu, 28 Apr 2022 04:40:57 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 1075722249; Thu, 28 Apr 2022 13:40:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1651146055; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NhyUX8NrB9R4zw/4LqnaXeXcLnYWsky0fsM9I1Ry8ms=; b=bBHRS/eF+qx7+M7ubFA7WnWqkGl7OON36c98mWO3YYXffzf23bCJa6ooJviw7xreBBqncK rwwC9mUJ+vbyEmnkGLWBzeO2mQbQENVjOopV2uFcW7qS3Abpx2YE3EgVF3wqThRR+QVlAf CpettRDw7Q+HbjhEgQHvBzIWKIycPbA= From: Michael Walle To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Horatiu Vultur Cc: UNGLinuxDriver@microchip.com, Philipp Zabel , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle Subject: [PATCH net-next 2/2] net: lan966x: remove PHY reset support Date: Thu, 28 Apr 2022 13:40:49 +0200 Message-Id: <20220428114049.1456382-3-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220428114049.1456382-1-michael@walle.cc> References: <20220428114049.1456382-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 The PHY subsystem as well as the MIIM mdio driver (in case of the integrated PHYs) will take care of the resets. A separate reset driver isn't needed. There is no in-tree user of this feature. Remove the support. Signed-off-by: Michael Walle --- drivers/net/ethernet/microchip/lan966x/lan966x_main.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c index 6579c7062aa5..138718f33dbd 100644 --- a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c +++ b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c @@ -937,7 +937,7 @@ static int lan966x_ram_init(struct lan966x *lan966x) static int lan966x_reset_switch(struct lan966x *lan966x) { - struct reset_control *switch_reset, *phy_reset; + struct reset_control *switch_reset; int val = 0; int ret; @@ -946,13 +946,7 @@ static int lan966x_reset_switch(struct lan966x *lan966x) return dev_err_probe(lan966x->dev, PTR_ERR(switch_reset), "Could not obtain switch reset"); - phy_reset = devm_reset_control_get_shared(lan966x->dev, "phy"); - if (IS_ERR(phy_reset)) - return dev_err_probe(lan966x->dev, PTR_ERR(phy_reset), - "Could not obtain phy reset\n"); - reset_control_reset(switch_reset); - reset_control_reset(phy_reset); lan_wr(SYS_RESET_CFG_CORE_ENA_SET(0), lan966x, SYS_RESET_CFG); lan_wr(SYS_RAM_INIT_RAM_INIT_SET(1), lan966x, SYS_RAM_INIT); -- 2.30.2