Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1389486rdb; Mon, 19 Feb 2024 14:05:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWLDdEL/U7a0ZrsiFhHGjZNwHfdnGJfwff6JOQ7TfGuSUqRDWp6zGh+qo22ydOif9fBxlhwhh18yMmQ9waebvOryOi1FstCIddiQHDEmA== X-Google-Smtp-Source: AGHT+IElc5N575YtQdWfWYymgh40KgW040QLiK/X87qqiOA121V6nsXlwwdAGLr2VlWHoD8AEcXZ X-Received: by 2002:a05:6a00:80d4:b0:6e2:de02:598e with SMTP id ei20-20020a056a0080d400b006e2de02598emr5550663pfb.33.1708380353635; Mon, 19 Feb 2024 14:05:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708380353; cv=pass; d=google.com; s=arc-20160816; b=eHhhYbii/s16kAe5pYWx8oVEZjTM86gnpv1+k9BoE0BRrUFZt4l14fkRz0Ieoz3GCN +y7xbPNeTGz3w8VpVA+XHCdR5f36Nsp06Nawsv/ulyNSdqptcZz2tTnXUh6ZU+eB0AAD d9IiQ2HZBWdX3X9g2wsIZ/OVYpI1mzEUe5jU+ZwNwnpG3puOmIMVpVO2DSFKLpaMeJUW sjlWE0YPy2JMNsibZajV8HR0GzrnCxFnVgFKtLnP4b4VptrNc4CbEJhKmB0qvbdqmKFp aTXI/u5RGd/YKey19A2DJfqjQrPq4IsNssL/yzD0Xz0/XnPOm++76l7DlWttg3yvHJlu rLHA== 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=ttqw/VOatjQjjBR0zQPHDaRkA8aGduPx/uYnTvuNi/k=; fh=Vu5oR2yWRWjzZc8mheCeXqC4k8l+KJqriw7nJR+XBLc=; b=hA3SQh5246wNzbLYFqip23PEKoS0UMBcJB+UWTqH2MNDBos0iwjFvqvqj3eO7Qm03F J8EA8uMivlWkXaSlZKtMFy3QIyIHikOdIkp55V3MhLiBRR+nVclPV7Ez4dKzclrUplh1 MRLRZq2UCnSzXXNbl/pNUeSeGN2rgDCfWpMAQUjIl5xWLKYDIRK9t0aqFBQJunPYZnzu 8SeN9Nwz4ZoGlRd6mBUR9gS3oULdEcsfOpDKBbAe5axeRQfmgHrny66QSkdh6tSg/VRn l5Zcd6kt699im39bM1OXvaJ2NMSrcNNIfszWZR3zQ+GOt9epFmBpOLNIVmuALRJf4x8u +wmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VFPptt+c; 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-72041-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72041-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. [139.178.88.99]) by mx.google.com with ESMTPS id y29-20020a056a00181d00b006e46277db8bsi2286342pfa.315.2024.02.19.14.05.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 14:05:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72041-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VFPptt+c; 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-72041-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72041-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 5AFDD284922 for ; Mon, 19 Feb 2024 22:05:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7962B54FA9; Mon, 19 Feb 2024 22:05:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="VFPptt+c" 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 1EA4A5475D; Mon, 19 Feb 2024 22:05:42 +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=1708380344; cv=none; b=Me7tKDi19dNtWconIrI+1F48jxCE9mihl4wLmXXqKcXpXNG/fwxJ4ZklUlJApAO8H3CkN1vUGD+DTxpuUX44o9y2fibb3IMT1eI5ULg2QUjOdvyYedUvGGYiIIcA6lfg4+yOji8bLyFBPY53KChyzVlBMN/beYlfk97VFh/jYbg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708380344; c=relaxed/simple; bh=CfdV8lh0vB5U6rIXeDqDUnBfZgpMWKXBhIyl8zGtYOo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ok3viBGU9zlypavZ1VSfXPx94qfkHUn1vGg6Y3dammZr+FEYe+/t9+Pfb+f0dlN01UHp6KHdobdiqrsSAk7pRVfzowaCBDWTGan1jtBj7d6w3Fa722+MccWtRsf6v/3R1N766XuL+R0MI603k+UwWdCZHqr8cs5ZbASdkzMokX8= 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=VFPptt+c; 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=ttqw/VOatjQjjBR0zQPHDaRkA8aGduPx/uYnTvuNi/k=; b=VFPptt+crIZYg4GR716kVOk9ZJ 5Yk84Z1B1m/9oOSnXYMa73+/m9lMTIMqeuBvs2IGvT+F8LJ90aRhFssLoOj3mYGXODv5TbreaZFHQ 8cpOF/H7ZOl6QX5ur2X5t0Jl38Zz6XyJbbIS1eG51XPJQwmQww0iYPFoQl+WGSXQiC90=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rcBlc-008EcA-Kb; Mon, 19 Feb 2024 23:05:40 +0100 Date: Mon, 19 Feb 2024 23:05:40 +0100 From: Andrew Lunn To: Yang Xiwen Cc: Yisen Zhuang , Salil Mehta , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH net-next v3 3/6] net: hisilicon: add support for hisi_femac core on Hi3798MV200 Message-ID: <0beab72d-2919-447f-88ff-fb7c92b28b61@lunn.ch> References: <20240220-net-v3-0-b68e5b75e765@outlook.com> <20240220-net-v3-3-b68e5b75e765@outlook.com> <29fc21f0-0e46-4d0f-8d4b-c4dbd1689c55@lunn.ch> <5572f4dd-dcf2-42ec-99c8-51bf4d1f28ba@lunn.ch> 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: > It's not MAC which behaves wrongly, it's the MDIO bus. If we don't follow > the reset procedure properly. The MDIO bus fails to respond to any > write/read commands. But i believe MAC controller and PHY are still working. > I recalled that it can still transfer network packets, though it fails to > read PHY registers from MDIO bus so only 10Mbps is available (And the phy id > read out is always 0x0, normally it's 0x20669853). > > Maybe during initialization, PHY sent some garbage to MDIO bus and killed > it. MDIO bus masters are really simple things, not much more than a shift register. I find it hard to believe the MDIO bus master breaks because of reset order. If the MDIO pins went to SoC pins, it would be simple to prove, a bus-pirate or similar can capture the signals and sigrok can decode MDIO. To me, its more likely the PHY side of the MDIO bus is broken somehow. Andrew