From patchwork Wed Apr 13 12:10:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Hung X-Patchwork-Id: 12811993 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 A7DB9C433EF for ; Wed, 13 Apr 2022 12:50:36 +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=vPE6f6I1N6Xy105tdpWw+W3tSIicwvcxtBlsWx4U6dk=; b=oXqrASxThW4l/m Qqzfq8+E4fsxdwBfZwyrKYLeYArFz9ypZ6zBXq20pEDEyBaWjPPYMLEtE6AC1IO0IRQfAg2sebATI cLJVN3qnoyh4n10G6D4AKfE8/HKU1NnjsMOuHkku+8bHo0O1envEkbzVqeWN7BSwQq+Qal+x6Zv4/ 9KDJ4O/OTwzNK/Ajpyognxtm7cBa3IA6IJDUPRSwPtJBo8NIYm3F+hMuCx35eh5IaMW2M03TkDNq+ 6SS2ORq6/7JNjdqVqg7THRzsEKLBKs4V40sJufrNnTzPXVd8ZnC0tePsXNRpIgbUYb80l5V8/C3Sp 2WQETJci9oNFRV1b+h1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1necR4-0014Wp-Is; Wed, 13 Apr 2022 12:49:27 +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 1necQI-0014DB-Fu for linux-arm-kernel@bombadil.infradead.org; Wed, 13 Apr 2022 12:48:38 +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=II2SZwExf/I2tDvYSzH7atBqfs34WMKzLQFRLcmwl+c=; b=Co/uJ50zF8eoTX1/fTk5mQp89w Hr1mAfHwIF5X/Muo3CYnFyY/If27eO72GlaBXtd8vPVuEVh0+UmXFuqOMPGmPorp92ucy2PCfkNM1 n/x1OQvryx5qDxJjQHrMMrgj+R9SG7wnAWu7jRhhOVvMFKYsxHggTXEIC+ssKKpEsoQh0yZ2KbTmk JHhvtkIAqUKocEsrD/+VW55CCtar+pWFb6hVs+HMDj/U2PT+5MtZwawTVa77eOZww9FRJnbvoKArk PORDY3oW3ABVnSDLmkQDzc6nkJigeE1oFKgLkfHEuIYQpclj3CzPP/2LKUyWFWXlQCJS/vcA6Ypa3 LhDrQ8Xw==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1neboa-004dwA-4r for linux-arm-kernel@lists.infradead.org; Wed, 13 Apr 2022 12:09:42 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 23DBusIX017388; Wed, 13 Apr 2022 19:56:54 +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, 13 Apr 2022 20:08:38 +0800 From: Dylan Hung To: , , , , , , , , , , , , , , , CC: Subject: [PATCH v5 0/3] Add reset deassertion for Aspeed MDIO Date: Wed, 13 Apr 2022 20:10:34 +0800 Message-ID: <20220413121037.23748-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 23DBusIX017388 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220413_130940_995898_B78E1D9B X-CRM114-Status: GOOD ( 11.15 ) 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. 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(-)