Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1563350pxb; Thu, 14 Apr 2022 08:45:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzerFfFafE6EueK8Y+zn0Z3sCToESPNSt3io6bIX0Y5FjLEDu36RcHuUIomSaViXyrBgizv X-Received: by 2002:a17:902:a9c2:b0:156:1859:2d05 with SMTP id b2-20020a170902a9c200b0015618592d05mr48949707plr.86.1649951139941; Thu, 14 Apr 2022 08:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649951139; cv=none; d=google.com; s=arc-20160816; b=UIPM0eCswCwquLOyCPoUVjTASTnju1Iptaxo+s0oqRdl5O3GFdBhJh7CL6aOf5PvmM GP0dtpsphcND9jOAceJHDOIw1Yhr9RB2lpGY+3BvjmJ5fpKH+z4K03m5V1YctoTQA3I2 yKoL5Rkodm8SHTsBSY6V1gm44bLNHHyAQmRiCQUaqCeIaxzjRkHfcJGfjfYMn066IxKr sC0PJ2EURK1A/kFJR8TV6SfLe6FdAohbrZ+XsEqPXWax7hr7e+zwbocFFU/n+h/KHWWO zXzB1UKaiNyH7r8LEEaTDQWUxJmZXa6tj0k/U+C7rqrjBwUOpe7CH2GAjAGxfJtxFQ45 9jXQ== 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 :message-id:date:subject:cc:to:from; bh=II2SZwExf/I2tDvYSzH7atBqfs34WMKzLQFRLcmwl+c=; b=lrlAxfChkTQMWkhjSt5fzpfiZF3iZnu/YCjkkPegzbbhuge6F6y/15Y3Pse1JXaraL eMUkuncR22q1iX921c0JL0X0AnesJeTAQ1X5r14kFzUBgFvEz+wH0LGYmHPSQWCEfksr /Kwr3l1fB4qMPmgXs19hD+q+7BzCNr3a8YMC7a/XyTuZ+7qLOinGgiLm9ueQM9mJZTXV LhYpksg+E0NANFcjZtl1K3q2QXYfPz20YNcg6N97liMqOw5J31rtV62fgfCR3jokdFgS 9a7zzamaPr+Kxx29urBZHQxGcqu7j7Eug1Fn4/hm1fHlUi30yJQksMT6iuTWf4hfjo6W p4ZQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7-20020a056a00008700b004fa3a8dffd2si236576pfj.137.2022.04.14.08.45.23; Thu, 14 Apr 2022 08:45:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235409AbiDMMLP (ORCPT + 99 others); Wed, 13 Apr 2022 08:11:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235401AbiDMMLL (ORCPT ); Wed, 13 Apr 2022 08:11:11 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 596DA5C875 for ; Wed, 13 Apr 2022 05:08:50 -0700 (PDT) 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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(-) -- 2.25.1