Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2679285pxp; Tue, 22 Mar 2022 04:00:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySOw47zZk+oGoknsbM633lOUYYxhbeZsx/Hd0Firj95rRLIgTd5bvferVoe3P9ApVxxwBO X-Received: by 2002:a17:907:3f25:b0:6b0:5e9a:83 with SMTP id hq37-20020a1709073f2500b006b05e9a0083mr25852749ejc.659.1647946818475; Tue, 22 Mar 2022 04:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647946818; cv=none; d=google.com; s=arc-20160816; b=bgnRySYZ/wBm03NxaSW6rbVcYUq6ovsiLHRfQ+JH6Rxgpk93tcIzOa98TiyUSu1RuE 6kozrFsdE2PR7DTugBijFcH6KiMk2uccXcykKdF9JNLSy6VuEMBoubzjiRK0wwiCB4Xt bb0rtPXiYgyMsVdjf5BiZ6x5mxR2h8Nbv5SPLM2rY6YEaqc6irgT+HsWAP+k/WRaEQ0k TPZ5hS1JO1pqSeG4be8rnHUpz+fCerk4Mo4nYaSBDDMcPqctm1uGypixFwYOm4qZ98v2 XW5pPfxSbiz1AydLm2IJ7QSG0b96LiX6uD0RHchr8Q5rkm5wUulkR5cq9XRCVgtoPLSI xRog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=+4mayXbyZCrWFWhxy8/MJdHca6IV6FiNiV24r3picro=; b=r4tm7XJMtn3QZo9hwALFzDQQ8+vXmC2QtKAyMEibE8WNt/rtDxmRGiTJ2xVcEI7iY+ ixqvXhqskd/X5nZGWT8sSFLi9Mq+x/MQsFXi9I70z0Pslaw1peFrm1K3Vi79GBQgdrKc iz9g9JRtnRZnqV2oP45N6JRgKILyFvAWhj3cFVHLBw0tCNJyIZ1npc/oo41XgqsQ4QkP 7ep+vyAehU7DHDw2y1jIr0Z/1vpj8rKaL5C8/tINCtHrbF6HlR96O7kimRA3IfsWz9CD +JPw0rdJB3a+0ejfh3vhN6rh6iuBaizHich1CDla7a0bb/K9Aj7X14wYCl1KrmMQDcW6 s1NA== 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 ko1-20020a170907986100b006df76385db4si8374767ejc.596.2022.03.22.03.59.50; Tue, 22 Mar 2022 04:00:18 -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 S231587AbiCVJKN convert rfc822-to-8bit (ORCPT + 99 others); Tue, 22 Mar 2022 05:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230391AbiCVJKN (ORCPT ); Tue, 22 Mar 2022 05:10:13 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FDD65F270 for ; Tue, 22 Mar 2022 02:08:46 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nWaV3-0002h8-Qv; Tue, 22 Mar 2022 10:08:21 +0100 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nWaUn-002G5K-VH; Tue, 22 Mar 2022 10:08:08 +0100 Received: from pza by lupine with local (Exim 4.94.2) (envelope-from ) id 1nWaUq-00015B-0c; Tue, 22 Mar 2022 10:08:08 +0100 Message-ID: Subject: Re: [PATCH v2 3/3] ARM: dts: aspeed: add reset properties into MDIO nodes From: Philipp Zabel To: Dylan Hung , Andrew Lunn Cc: Krzysztof Kozlowski , "robh+dt@kernel.org" , "joel@jms.id.au" , "andrew@aj.id.au" , "hkallweit1@gmail.com" , "linux@armlinux.org.uk" , "davem@davemloft.net" , "kuba@kernel.org" , "pabeni@redhat.com" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-aspeed@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , BMC-SW , "stable@vger.kernel.org" Date: Tue, 22 Mar 2022 10:08:07 +0100 In-Reply-To: References: <20220321095648.4760-1-dylan_hung@aspeedtech.com> <20220321095648.4760-4-dylan_hung@aspeedtech.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Di, 2022-03-22 at 03:22 +0000, Dylan Hung wrote: > > -----Original Message----- > > From: Andrew Lunn [mailto:andrew@lunn.ch] > > Sent: 2022年3月22日 11:01 AM > > To: Dylan Hung > > Cc: Krzysztof Kozlowski ; robh+dt@kernel.org; > > joel@jms.id.au; andrew@aj.id.au; hkallweit1@gmail.com; > > linux@armlinux.org.uk; davem@davemloft.net; kuba@kernel.org; > > pabeni@redhat.com; p.zabel@pengutronix.de; > > devicetree@vger.kernel.org; > > linux-arm-kernel@lists.infradead.org; > > linux-aspeed@lists.ozlabs.org; > > linux-kernel@vger.kernel.org; netdev@vger.kernel.org; BMC-SW > > ; stable@vger.kernel.org > > Subject: Re: [PATCH v2 3/3] ARM: dts: aspeed: add reset properties > > into MDIO > > nodes > > > > On Tue, Mar 22, 2022 at 02:32:13AM +0000, Dylan Hung wrote: > > > > -----Original Message----- > > > > From: Krzysztof Kozlowski [mailto:krzk@kernel.org] > > > > Sent: 2022年3月21日 11:53 PM > > > > To: Dylan Hung ; robh+dt@kernel.org; > > > > joel@jms.id.au; andrew@aj.id.au; andrew@lunn.ch; > > > > hkallweit1@gmail.com; linux@armlinux.org.uk; > > > > davem@davemloft.net; > > > > kuba@kernel.org; pabeni@redhat.com; p.zabel@pengutronix.de; > > > > devicetree@vger.kernel.org; > > > > linux-arm-kernel@lists.infradead.org; > > > > linux-aspeed@lists.ozlabs.org; linux-kernel@vger.kernel.org; > > > > netdev@vger.kernel.org > > > > Cc: BMC-SW ; stable@vger.kernel.org > > > > Subject: Re: [PATCH v2 3/3] ARM: dts: aspeed: add reset > > > > properties > > > > into MDIO nodes > > > > > > > > On 21/03/2022 10:56, Dylan Hung wrote: > > > > > Add reset control properties into MDIO nodes.  The 4 MDIO > > > > > controllers in > > > > > AST2600 SOC share one reset control bit SCU50[3]. > > > > > > > > > > Signed-off-by: Dylan Hung > > > > > Cc: stable@vger.kernel.org > > > > > > > > Please describe the bug being fixed. See stable-kernel-rules. > > > > > > Thank you for your comment. > > > The reset deassertion of the MDIO device was usually done by the > > bootloader (u-boot). > > > However, one of our clients uses proprietary bootloader and > > > doesn't > > > deassert the MDIO reset so failed to access the HW in kernel > > > driver. > > > > So are you saying mainline u-boot releases the reset? > > > Yes, if the mdio devices are used in u-boot. > > > > The reset deassertion is missing in the kernel driver since it > > > was > > > created, should I add a BugFix for the first commit of this > > > driver? > > > > Yes, that is normal. Ideally the kernel should not depend on u- > > boot, because > > often people want to use other bootloaders, e.g. barebox. You > > should also > > consider kexec, where one kernel hands over to another kernel, > > without the > > bootloader being involved. In such a situation, you ideally want to > > assert and > > deassert the reset just to clean away any state the old kernel left > > around. > > > > But please do note, that the reset is optional, since you need to > > be able to > > work with old DT blobs which don't have the reset property in them. > > > > Thank you. I will let the reset property be optional and modify the > error-checking in the driver accordingly in V3. No need to change the error checking, just use devm_reset_control_get_optional_shared(). regards Philipp