Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2440202pxp; Mon, 21 Mar 2022 20:32:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFYORhCEVieIZE17ltBQRsqH/tUWcnRUQX2K7ZNpD4pLy0liLrMVEREILL2ZY8t/cOKOFy X-Received: by 2002:a17:902:ce8e:b0:154:2ebc:8d49 with SMTP id f14-20020a170902ce8e00b001542ebc8d49mr14434782plg.135.1647919928445; Mon, 21 Mar 2022 20:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647919928; cv=none; d=google.com; s=arc-20160816; b=HHOK4Zyu5U/P8F23jQPFJczjgmBKLFAYzggvilqXfBfkftIq/0okfrKY2T49UgviZV 28jZR+AiOzzTgTJGG/orddzNRY3aJy7hWiAt3ipIU85EaLCbQmGvtRywJazegQ388odI DdekBkYOY4LjVcSPzbz11cLixVZj7UDcq3XJu7Ncjldbo67JFLd4kd38bgP5t/78NXoM yFAI3jGWzHnVTPLnrclOMjxsfkaURBtig5A/M51WR7TkIG90Zs1H0aY/4soonBOJ/suO MLCtZZq7/pK9SsmfslY38ry4++V9woO+rFIJ1VpYPtxLenUohzX41mKFXiDLrbVUFCHv gUsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=b9U/YwFXv20yTfLFWbuRAqJRHhEpMtnMkWj3xf7Fzmc=; b=0UrfbJqiYb8LrUft92/mkeAPOi7xWmD18A+bFBHAlVnC5yoNSladrj4cxy0f3VJxfa iz0dhoZEaN9stoQiFZ5IjUNXzYKyfmr9YdXWA6QOYF64vSAHtcy1NTrpDCgl27gMbGMu fjYjq684GWPW/C97BWYSz7m/orGNGXFL+bioFM/pG6yW2iSDnMWkRIHWOF0FIt25g4Fu yOi8h/xfQunyqbrmOQCkACliQS3d4FnHHnZESu9Q99ws7XXliZLGQgmSJpDbwDwrr+wC vDw4MycBw1OM5q3G0lht+BF6UqB/zq4O6efkBQ+V2oL2kuqP55qFTQs6jfNlxXjKmBql IsAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=UIEEw8H1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p7-20020a62ab07000000b004faa62f1024si3616183pff.370.2022.03.21.20.32.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 20:32:08 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=UIEEw8H1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4CB9A132E8C; Mon, 21 Mar 2022 20:01:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235773AbiCVDCm (ORCPT + 99 others); Mon, 21 Mar 2022 23:02:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235759AbiCVDCl (ORCPT ); Mon, 21 Mar 2022 23:02:41 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3044541A2; Mon, 21 Mar 2022 20:01:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=b9U/YwFXv20yTfLFWbuRAqJRHhEpMtnMkWj3xf7Fzmc=; b=UI EEw8H1dCe2232LDPhplovW5e6NBNhkEiNVcTx8Gi+C/x/aWmMF0oZf5UfZpX9ycafyR2rIwhvk8lb S/63ptPf6TBvFK8o+Ed2oh96jDXeLIDwEiH9B/Kpyln2pE00hYBEMbinj77+zZNRU1jjfimUnpmqq vVUHfXSoVMB8oGM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nWUlH-00C3s4-PQ; Tue, 22 Mar 2022 04:00:43 +0100 Date: Tue, 22 Mar 2022 04:00:43 +0100 From: Andrew Lunn 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 Message-ID: References: <20220321095648.4760-1-dylan_hung@aspeedtech.com> <20220321095648.4760-4-dylan_hung@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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? > 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. Andrew