Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2122098lqa; Tue, 30 Apr 2024 08:40:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWGiYgOpZUTlSpaxx9TtgJkoy8hn9AqIPt4scTWNMwcVhtjDOIDUxxxHQgGzN45iJg1ZpQRXiSmkexvTYos52EHuNTOV7hK6qaV0h42Sw== X-Google-Smtp-Source: AGHT+IFK6ilCF9kT3H0SNkIQg7o6rmnf1sFRuVyz60QTeB8CWpmyjJ2sdvUS6ZELo/UERvRaXDfa X-Received: by 2002:a17:906:4bd0:b0:a58:8491:29af with SMTP id x16-20020a1709064bd000b00a58849129afmr15832ejv.41.1714491653132; Tue, 30 Apr 2024 08:40:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714491653; cv=pass; d=google.com; s=arc-20160816; b=BHn0vQuWiAtArM59hfZgakkTpGNKMXOnUUJkplHdXQ0/WSBl3ItgnL96emuHHzjb0g iEvJU12IMt3Ms0/ThgCvHw73wIznxNz2ntZ0g9ZJxMnOolkUTMoy104dYxu+JmTIdpuw Ez2mM5XlBnEKVRi4UeFp+OcgXUVZ25UT5ko+bGI61vSr1TSaP+PWVkv4zaYoMI553iM3 JnSXCgw+n7Cxu01Ks/hh6L8rLNt5/BQD11kyGh0WWbC6YSZGSqdYpLfJhyY592FfpN1Q 8+SvBwuSoLWT6S+1AIOkg3h15k9DtTVcvFhkYOzsRddyi+uA4rD7XKevoiHfd6ulVtya 9/IA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=o+cbSiCWqxupPEH7bg78CMjuOeT84VG73wF/YcMcoBg=; fh=PDV4HMZK0MdoYaZ0h4Bz1NlbbzJrUm1aByq1+Ig2NhE=; b=k4QziCQjfv/SNgEP02VZSKbUO1Q67wcLd6KlqP2C2OF+APtuSxNk3imSUJsmN13etp yIYUWOs9NJg9D0gyuQ8LngyCrxK2ujBjgPBvWoXZaufgBLdXRXn7EyToTXh+bQbqV2F7 nfKy+ZRB6IXxNluNoQ5E6+8HaS4c3nksqkqjAjJZFNGT9fMQaR1O9iVd+ZAiYttxuOF1 h33yABbdesbwtvDDjODpiOfpVH5RO0tX5t1qPEYR7aTeAGi0zduVauxbFtmVxuOgv552 3Q5B9hC3ATlBR7T7ePQOfje9fi8/fNPZfzFXiqSlwHMNoju8NljN7n9HjlRdT0oq0dyq 6/NQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Asu18Cpb; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-164294-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a14-20020a1709064a4e00b00a58e608ea95si4345372ejv.50.2024.04.30.08.40.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 08:40:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164294-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Asu18Cpb; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-164294-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id D7F5D1F22760 for ; Tue, 30 Apr 2024 15:40:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 78225172BC1; Tue, 30 Apr 2024 15:40:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Asu18Cpb" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (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 6BBDA770F2; Tue, 30 Apr 2024 15:40:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714491639; cv=none; b=XiG/smNoEsPZhMXbQTrPcsU1l+YgO+njy8KA/uGioWIF6vCUcaIYJoIaRL9EnlSb1/U+n0oB3AbqgVw9iOMjTDEWmmGLLBgcaMSJquwv/JkIAVY69ie1KW2ntt50TfXbZL6R9BzIL5beSxZg5lON9m1vcmtyqNUv3qE2DOKR/Xg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714491639; c=relaxed/simple; bh=3YMP6pSgBBioceZpWJJBMi0WiZgs2qMWAZjRqieBRIk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VEfDCz78md7DoBYtkrBk5dAgVV8UhDcj25UxAULurhlQ6sZ6/QVO0yg2Gh7X8LjYp4SgwNRVh2YzwFv7jB1XYaYfDVvpqYfv8ZLL4AiSJJa5YCnDcNrwpk6w80XT13NrtAafn4B5PpSwE2GVCrtsIVbjr/m8HoIwklNXuomM+BY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Asu18Cpb; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id C3CD71BF207; Tue, 30 Apr 2024 15:40:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1714491629; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o+cbSiCWqxupPEH7bg78CMjuOeT84VG73wF/YcMcoBg=; b=Asu18CpbZFU7KZq8qT6sXy2TVSu2PEKElKdAxkrvGU3+Z/X9VRq3ii8G/8YyictrIDuCTh rlTz5HRbXlhZPOLHfVNMEksHnkfieaypj8/AVwsMiLK/BmeUsNsfXIq3vqYsGEYchIt1qD kwf5Xe8qWczC40Ddi/DM1Y+MVw0Yu8VQBPxeoDamtNuhTkHXE9LQTjUSPcZL/Nt6+KFt2B avZf/aImihbeaH8tv20TcLrpTthuxQrrvI9JuUm/BOZReJ4bTW1mQj38LWUDCSIHvZr6F3 UXgL+HJGWG1b5kPauMm+s/BvrMiEPwVrx2HGSWaEsExoHbCsMDET/JPmX/Ty7A== Date: Tue, 30 Apr 2024 17:40:23 +0200 From: Herve Codina To: Andrew Lunn 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: <20240430174023.4d15a8a4@bootlin.com> In-Reply-To: <5d899584-38ed-4eee-9ba5-befdedbc5734@lunn.ch> References: <20240430083730.134918-1-herve.codina@bootlin.com> <20240430083730.134918-7-herve.codina@bootlin.com> <5d899584-38ed-4eee-9ba5-befdedbc5734@lunn.ch> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) 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=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com Hi Andrew, On Tue, 30 Apr 2024 15:55:58 +0200 Andrew Lunn wrote: > 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. Exactly. > > 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. > Sure. We have the same construction with the pinctrl driver used in the LAN966x Documentation/devicetree/bindings/pinctrl/mscc,ocelot-pinctrl.yaml The reset name is 'switch' in the pinctrl binding. I can use the same description here as the one present in the pinctrl binding: description: Optional shared switch reset. and keep 'switch' as reset name here (consistent with pinctrl reset name). What do you think about that ? Best regards, Hervé -- Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com