Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2040287lqa; Tue, 30 Apr 2024 06:56:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUD1CvDVQ6dw9CVQWD5Z7iJZJyYujGGPSTFDQ2x7PAogn0ByLv+ckHsWaU2odbNGIYR+h5dZeDjnF6gwApcqwg/vNjOkL6968as8m2/KA== X-Google-Smtp-Source: AGHT+IEDRB9m0hi7Bl0PeMxaOfFCr1Of3H5PXEmw69YhWhfvlnXHqyrAnZ9BaDErPC/n8kdSyAvB X-Received: by 2002:a05:6a20:8404:b0:1ad:9202:2391 with SMTP id c4-20020a056a20840400b001ad92022391mr16150044pzd.2.1714485382590; Tue, 30 Apr 2024 06:56:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714485382; cv=pass; d=google.com; s=arc-20160816; b=tRU8HreDQsC4Z9TNhxjrsSPjhsCIfReia6+CJydVzLwa3npq7cKY4u3hn47zeYHR2f QsA1IKhhLr93EtG/W1Tudw0XqPF2t4kN/uLmgUrfNeV+3u3fiduJhd6jnodM8cJKxPl+ pZWROpaBzBx3AQYCtT6zhYNDNANEHpSVN0mNIbzm6INq21ZJwfiN+PXAW/Q311Q1QnKA 6AJZIkJI2oKwgaXRIobfPmrQMLCyQFsy1EbmZuzC499MwGWm/CV6eofE0MONwED4EmAJ MYFlzZ61T9gwy2kaIQGNydgjW5daTJ1tuDVjHtpuKBqYaVVrW7xNJjvP3clQ8DuylkA5 xz6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dH9Hrnu56eQ6hZPqq2X0hsqCxQsq5z3exzFLte5ULcw=; fh=3TmNhjFEaW0+dp4Alb3S7AKFnuUA1DYKb/r+1z5uzsg=; b=VZg5oFPTrmI13Cw0KRJQT8xQo1YU5AiGtQEqxXVcqAMbYp1YeXJ7qU/5aYnusRp2g3 uOomSYM1Ubc491O5hxgFNV9GgaU0KATM2Q/8eE90wNZIQF8gYvjGThxaF2PuNaiYqWfC h2ZmxKLNUHTnjCsdwqUk5IoeFKG7SPMlEsRCiVx0QXX8e2kqgZvPAfWWazOUCaYeQzsK qjhYBSwp2ubqRh3NGmNC2k/PG9xYMjiu9t25iwKucUzXBCPZ4NyQYqflYodvD9Pg/2H1 l7tkYx6crGa8YD363shHbQFeQJdFX7NvxeNqHs+0alH4ila5x3z9ChVmuK0/JEtQtl4s t2tg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Gq+InA1z; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-164047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164047-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id my9-20020a17090b4c8900b002ae895d5f26si14147693pjb.94.2024.04.30.06.56.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 06:56:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Gq+InA1z; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-164047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164047-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 24D43284184 for ; Tue, 30 Apr 2024 13:56:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 204D2172BC6; Tue, 30 Apr 2024 13:56:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="Gq+InA1z" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCD283AC16; Tue, 30 Apr 2024 13:56:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714485371; cv=none; b=YQqNKC0haB1FeGrXU3elKVo4adaiHo8jFOKpDJN8l1kXkGNCeV0d7SSEuenaBZvwXsUHT4EJZEm2RrWa6T1DkWnDsyvXyVh1P0/kXbHFLfROzXZqKiD7JJLgf9y2fxWsJ7+WmtdFvj8iTm82TD1eCjg62yJmdvb3zrs0/enZSvE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714485371; c=relaxed/simple; bh=KJAUaEgFcZsb19v2jnocVjIWhEitYWWvWoQpiXDUSVI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ey3gJt59tpT7iyyhBNpZCPc16fGx6HO2BOoZM47+el4uZcTo6aJut8OIXlWTdJjBJOKJ9aEZqBwWwygmATuDID7xHeqrZwbuzHe88wQxrM/7YwsBNy8xmGZrc8mzAvqqMKPoCf4ejGksXdy5gsdcZVclN9k1YcENc/5Y9I+Kg5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=Gq+InA1z; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To: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=dH9Hrnu56eQ6hZPqq2X0hsqCxQsq5z3exzFLte5ULcw=; b=Gq+InA1z/ou0yW4hfvqA5DzEkK fmHae/3NoDsB16hdWZ1IlOweivHyhah+zXNF/gO84adewtCO7zPXb+QEpsr3smHaVpqabfWzPP36i hOwOrlUdFwRHN1ydlQer3QvO/hd1wa5GBmRzB13HPTCsfxf3L2vW469+0TSkId8OPVU8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s1nxe-00ELPE-K0; Tue, 30 Apr 2024 15:55:58 +0200 Date: Tue, 30 Apr 2024 15:55:58 +0200 From: Andrew Lunn To: Herve Codina Cc: Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lee Jones , Arnd Bergmann , Horatiu Vultur , UNGLinuxDriver@microchip.com, Heiner Kallweit , Russell King , Saravana Kannan , Bjorn Helgaas , Philipp Zabel , Lars Povlsen , Steen Hegelund , Daniel Machon , Alexandre Belloni , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Allan Nielsen , Luca Ceresoli , Thomas Petazzoni Subject: Re: [PATCH 06/17] dt-bindings: net: mscc-miim: Add resets property Message-ID: <5d899584-38ed-4eee-9ba5-befdedbc5734@lunn.ch> References: <20240430083730.134918-1-herve.codina@bootlin.com> <20240430083730.134918-7-herve.codina@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240430083730.134918-7-herve.codina@bootlin.com> On Tue, Apr 30, 2024 at 10:37:15AM +0200, Herve Codina wrote: > Add the (optional) resets property. > The mscc-miim device is impacted by the switch reset especially when the > mscc-miim device is used as part of the LAN966x PCI device. > > Signed-off-by: Herve Codina > --- > Documentation/devicetree/bindings/net/mscc,miim.yaml | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/mscc,miim.yaml b/Documentation/devicetree/bindings/net/mscc,miim.yaml > index 5b292e7c9e46..a8c92cec85a6 100644 > --- a/Documentation/devicetree/bindings/net/mscc,miim.yaml > +++ b/Documentation/devicetree/bindings/net/mscc,miim.yaml > @@ -38,6 +38,14 @@ properties: > > clock-frequency: true > > + resets: > + items: > + - description: Reset controller used for switch core reset (soft reset) A follow up to the comment on the next patch. I think it should be made clear in the patch and the binding, the aim is to reset the MDIO bus master, not the switch. It just happens that the MDIO bus master is within the domain of the switch core, and so the switch core reset also resets the MDIO bus master. Architecturally, this is important. I would not expect the MDIO driver to be resetting the switch, the switch driver should be doing that. But we have seen some odd Qualcomm patches where the MDIO driver has been doing things outside the scope of MDIO, playing with resets and clocks which are not directly related to the MDIO bus master. I want to avoid any confusion here, especially when Qualcomm tries again, and maybe points at this code. Andrew