From patchwork Fri Aug 26 11:56:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 12955928 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9D4AECAAA3 for ; Fri, 26 Aug 2022 11:57:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ufx1hGl95g16nz72SfycrYFIN+UFYQwRR2e7qcOkjoQ=; b=2fXa6jVwjocF4y XyygghD9IcC4YGMchD7EOcGxmg3DeqQLTPGS97ZC8fUagkRQSN+tx9eZZyaLGsmZjqMghujN12kcv h259uBrNySkZS0ByS/YIn+kfJQfnzAB/52ky0G6PhSszR3jHIh30sxyisETUOxUGsQtwYjKTlFgVb k62o0kn5zQ4viC9q9tRHWo3fWY5eIjYmCuYugBCDF5JLLmsYNzsF3hOxe4grSYC9L8gM9zy0PJ2Dz RnfsSnd1pZVRIlMgp4RPIrtAuSqhThF6s33V3GFx4SJA+TTsAa57MBstCSoFW7HTxQ4tfv7xWCJF3 XzPTOvmGNjVwnuZ9th9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRXwf-002EDz-9A; Fri, 26 Aug 2022 11:56:17 +0000 Received: from 0001.3ffe.de ([2a01:4f8:c0c:9d57::1] helo=mail.3ffe.de) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRXwc-002E9H-AW for linux-arm-kernel@lists.infradead.org; Fri, 26 Aug 2022 11:56:15 +0000 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 X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 2F28D1256; Fri, 26 Aug 2022 13:56:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1661514972; 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; bh=dZVABsOehYFJTO+b7L5shbbQcFUZ3x5Ca2bLU8ZP05M=; b=P15TTMzec0t1FXE/YXMeK4Q3vtKIYcFAn7cI9U+iNNye15cusqys6V70YUY5xt8iTbqSUk zf6U/R8IVTQZYWZ3zD6nAp3SV7x/eLp7RRKBkOqDN/WlZCg/tqtIf8sp3He6zx6iaBs3gb ycZznaqIg0YYvG959vkk+YG7zre3otF7xD5wfyd2G22VXpsM0M0AkfihWDISh9UCZsbBfc eGbFipYGFJA2iiPTUG+CkUlZpZlHQEs0mTLq6JYrvc2MCll26nd+L4WlXO8emNYQIc5St9 veO26YKXRmjPZ/q7aN8i7HH7I+BLVkmrEoExFxX9yiErsu5zqIx5B0T/j+ohqA== From: Michael Walle To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Lars Povlsen , Steen Hegelund , Horatiu Vultur , Philipp Zabel Cc: UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Michael Walle Subject: [PATCH 0/3] reset: microchip-sparx5: fix the broken switch reset Date: Fri, 26 Aug 2022 13:56:04 +0200 Message-Id: <20220826115607.1148489-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam: Yes X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220826_045614_550745_B533CDF6 X-CRM114-Status: UNSURE ( 8.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The reset which is used by the switch to reset the switch core has many different side effects. It is not just a switch reset. Thus don't treat it as one, but just issue the reset early during boot. Michael Walle (3): reset: microchip-sparx5: issue a reset on startup dt-bindings: net: sparx5: don't require a reset line net: lan966x: make reset optional .../bindings/net/microchip,sparx5-switch.yaml | 2 -- .../ethernet/microchip/lan966x/lan966x_main.c | 3 ++- drivers/reset/reset-microchip-sparx5.c | 22 ++++++++++++++----- 3 files changed, 19 insertions(+), 8 deletions(-)