From patchwork Wed Apr 27 03:54:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Hung X-Patchwork-Id: 12828924 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 1CB57C433F5 for ; Wed, 27 Apr 2022 14:52:45 +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=rC6v05dhgfmsbAEFmw1Hf7ydqqxc5TtE8/HSnwa4wJg=; b=p2FR6+LASBTJkq lGAUrj6xS4uKlE55ZLtmiEI+VMxer19UxP+JfI6U37xKykXLL1T/CkQVpZgSZjhHNpBG+vU/uywO9 4Sb2jyMww5GLYltjCuYmImbYEVm8IHAjCNro+eQHpoGyqPvXcRfiiVeoLEoP5P8BPpx/+KfjokbJN xdeUpBE35SJ9tHSKa+H4EiLfKWL+Xrt6PENTMj0FckS9L6nWWFZOLB3G2Ow12lqkVPAAGsYwCrTtG s9OErPHpuNemK1tTdO20/uhXLXgL+UUqzzxU2NvTo/cV2QwZc7g+460dU/qLbO2YeTmN3PEzFOyre KlQqJP4fOpsE7J0dP+TQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1njj1D-001s2I-Ox; Wed, 27 Apr 2022 14:51:51 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1njj0o-001ryv-7c for linux-arm-kernel@bombadil.infradead.org; Wed, 27 Apr 2022 14:51:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=N5JGQAncgKtgLzg9t4OVatYpxa2Cm3K9zRkWxDJ+5d8=; b=fDT4dsEj8o33E6BCFvWl3CbZCb bdfBx6NDrwx5rn0yOuLNGhCbydXbbOcdA2+X5jM4CbXXCm8v8Jf/DP2VV3f0wA6NQAs3GfTzRdlIr w6m/lm4XKrGAEcEP3r3sPRJszpMG7gnBwHPIUnIqq3MbNr/riMDJcXeUAE0QJuq6AhOrTD7D4fe9p UHHphiBm123KRkRtrLS43xRVnSrjsLKvEQ6RxpxBUqGCyzL4xtSLrY3Sp/0Edl29SWMBQzpirQ3qh wdP1GyVhGqFMROSkRmkHFX8vleHYUOmK+U0vyvnUQTYVDfPXEOkRIQOLih19C9ESdl6JH0J9I0fjN YHbBXEdA==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1njYmp-008x6k-W2 for linux-arm-kernel@lists.infradead.org; Wed, 27 Apr 2022 03:56:22 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 23R3gS9v032326; Wed, 27 Apr 2022 11:42:28 +0800 (GMT-8) (envelope-from dylan_hung@aspeedtech.com) Received: from DylanHung-PC.aspeed.com (192.168.2.216) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 27 Apr 2022 11:54:58 +0800 From: Dylan Hung To: , , , , , , , , , , , , , , , CC: Subject: [PATCH net-next v6 0/3] Add reset deassertion for Aspeed MDIO Date: Wed, 27 Apr 2022 11:54:58 +0800 Message-ID: <20220427035501.17500-1-dylan_hung@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [192.168.2.216] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 23R3gS9v032326 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220427_045620_755639_9497EB34 X-CRM114-Status: GOOD ( 11.11 ) 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 Add missing reset deassertion for Aspeed MDIO bus controller. The reset is asserted by the hardware when power-on so the driver only needs to deassert it. To be able to work with the old DT blobs, the reset is optional since it may be deasserted by the bootloader or the previous kernel. V6: - fix merge conflict for net-next V5: - fix error of dt_binding_check V4: - use ASPEED_RESET_MII instead of hardcoding in dt-binding example V3: - remove reset property from the required list of the device tree bindings - remove "Cc: stable@vger.kernel.org" from the commit messages - add more description in the commit message of the dt-binding V2: - add reset property in the device tree bindings - add reset assertion in the error path and driver remove Dylan Hung (3): dt-bindings: net: add reset property for aspeed, ast2600-mdio binding net: mdio: add reset control for Aspeed MDIO ARM: dts: aspeed: add reset properties into MDIO nodes .../bindings/net/aspeed,ast2600-mdio.yaml | 6 ++++++ arch/arm/boot/dts/aspeed-g6.dtsi | 4 ++++ drivers/net/mdio/mdio-aspeed.c | 15 ++++++++++++++- 3 files changed, 24 insertions(+), 1 deletion(-)