Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2034661lqa; Tue, 30 Apr 2024 06:46:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWpmQUoQ/UQCG/hlGX1kFMkVjwSiZEBIH7WcILRwgzFFMNTpDJV9rx1CFizhyekisz0wJ7FMXjy76kTt+E0Sws7a00suejVXmtrD3+7Dw== X-Google-Smtp-Source: AGHT+IGPIs28Q6ntbtSYVjqLhOoa2gG0gIuHn2rzw7Dnk2J/2LS0eiJzyZqBGTDqicV/A4MmvFgB X-Received: by 2002:a05:622a:507:b0:43a:ed9c:36f3 with SMTP id l7-20020a05622a050700b0043aed9c36f3mr5971121qtx.42.1714484802308; Tue, 30 Apr 2024 06:46:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714484802; cv=pass; d=google.com; s=arc-20160816; b=ZWoirPUsWJARNSK1V2o68hTGsCpL7vkLOMcJjM5kj/VYU4ODhtxY9NTgLpu5a8iwN5 P16cJLQ1TBxJhL5FXFEfh2T8ZE0P/j3SSksA8in7DRvcMMaFkGTsGcgrwfT/XEiuiIOS fLKmRrJZ6ktkUQJj9m5Yw3b/NVx6wHlhlujz+bITuRGit7KjDHb/52ruX8I6YVYld8n9 jplFi1+K4QkbdOMcOcapa5SQpHvAWgPnQ/c84HGs4g/SG/JWM2tAtFrtwZMEW3Bq38gF d/b/ToF8zW1/+RvNb3wQg4z6rgmLk2ogJG2KPWzcsIif1RPQZOqUNn4gASRXlgdx0cxp wibw== 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=DmItdwrvtWkHQ1poDnp7KwnHSSMiTJm6aaPxu9AvxOE=; fh=3TmNhjFEaW0+dp4Alb3S7AKFnuUA1DYKb/r+1z5uzsg=; b=RoofRUCiI4NWLevlMkGJXYf+zgOPR0gbOAqa5GMSkDNpUl5SvKDqjuKYHp48fNIonT ccD6VqU9Bbuji40uLJ7VUeO+c+gAAMkL9LL0rS5J01QLSRs+i1mEApKZEBoCEzhmr+fr /cP5hSF/uoJmA9nNw4khFh8edkqpJ8qxpmrkQDwYl5bI1ShGxaGEVSSUzHjVaSuFEnjJ MPk+is6BkIadkttsO5zKYS0fMtntAPOcKwVPsHoE5VHnME8mhmA8UY/0R10xUq4hzc1z 8S2wsJU0SZ+D+0MhV80frgVLbuR6JLAvUVQ48Od+6kBZULNeBCLvwWS9ICDUS9Cu1UDj XUaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=tYr7GrB9; 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-164038-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164038-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m18-20020a05622a055200b0043af1150f4bsi4392205qtx.247.2024.04.30.06.46.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 06:46:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164038-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=tYr7GrB9; 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-164038-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164038-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0D4F91C225EC for ; Tue, 30 Apr 2024 13:46:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA47B172BB2; Tue, 30 Apr 2024 13:46:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="tYr7GrB9" 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 87EE1171E6E; Tue, 30 Apr 2024 13:46:28 +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=1714484790; cv=none; b=E/Xhj33vgngWObGf02gD6AjSY3uMqaTVhM1bMcI2RNlBxbBjJunuTPVUPASXbyPQwcRHhrj+WkV/2U9k3hsD1cRyyVUHLaxF0mFm8/9iKAQSGUr36Z/e+g592cduYiSK4OM1i0/oYpqHR46P9z3b7TyDGTPm3Ry3czsMHHq6CbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714484790; c=relaxed/simple; bh=yMY0E7DO6GwkuZa6LT1cc1T3vKerp03DvKfrKAuiXcw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TjsC8zWVTY8X8eGrFxzOeIbT9YujOMFe15/3qL183U96qBD4EIGSZSQrt/Kij57hlvDUqbJodO/Pw4I+hhBqrp+PDpj8bOi3fsoBfX/E3fwVxAiqBNyJcHOyYINkqEjbVNNflvEaeIDdh0lyqrBaZNJs1k7ektF7ZuJGDt2FoRU= 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=tYr7GrB9; 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=DmItdwrvtWkHQ1poDnp7KwnHSSMiTJm6aaPxu9AvxOE=; b=tYr7GrB9EG9BkbGcCbfYtCxiuZ 4wBgwayVXypgMQfbCASK2sRmN6vIoUS9Q3KcB9AxhfXEJUI3GmlMV/6vNO/2CKLZvxv8uDjXzVRGm ri8V+oQrnyGG4a7jsMP0GSAgZFKFTjf4w017pe90jclJmBSKDBrA/fuCF5n0en+5WLEM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s1noI-00ELLM-H9; Tue, 30 Apr 2024 15:46:18 +0200 Date: Tue, 30 Apr 2024 15:46:18 +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 07/17] net: mdio: mscc-miim: Handle the switch reset Message-ID: <74e40e5d-e71f-4909-811e-7e9fc1120360@lunn.ch> References: <20240430083730.134918-1-herve.codina@bootlin.com> <20240430083730.134918-8-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-8-herve.codina@bootlin.com> On Tue, Apr 30, 2024 at 10:37:16AM +0200, Herve Codina wrote: > The mscc-miim device can be impacted by the switch reset, at least when > this device is part of the LAN966x PCI device. Just to be sure i understand this correctly. The MDIO bus master can be reset using the "switch" reset. So you are adding code to ensure the "switch" reset is out of reset state, so the MDIO bus master works. Given that this is a new property, maybe give it a better name to indicate it resets both the switch and the MDIO bus master? Andrew