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 97153621; Tue, 29 Oct 2024 12:46:37 +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=1730205999; cv=none; b=dkiC6jSajmUqKqlLbZwRQJ476vSO4YnWdo5Qafu+eOg2B/zRtxeYZz3Ga+cS93n4nFsmX/fqrsWfA6U8qYCF2bj5sxLph9JRX+CKDdQqq5zbjCZ9IhNEVZbqL3hQfYm2G8wfCzURFamZw3GVvWrcr87o6obfeJ9nia/qECELTIA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730205999; c=relaxed/simple; bh=VkaHfhcl4iLutH67vvLa9iiBPRXNUS1Ic8sKFpBMfwk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h4PqseOx1gfB4jM0/Yf1TEuH4UiZkq9YHc2icTspACppHL4pL6JA7w2Vg1JX6GnB4a9OEI3Wo15NbJw2NUFgpl91KdWp/7TwOBA/grPk3kRIJJjHAy1/0igqJz/KFfOis3yiDa5n8cZeKxUFNzBRRsuNPKOasHQAscDYBKbUx/M= 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=E4qziFBZ; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="E4qziFBZ" 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=LY7Fbz/Fi+xKC3ClkbwZw0JUxpl8Rh5O1YgX5ak65zY=; b=E4qziFBZet6GGyRwtWnnIH8NzW tw4gbTG06OaXGpVV3qabxpma9zubRNE+6cX/rT/XpKzBVbMhTwWy4B3A61oyvHCN4HQ5WZv6Z81mT mWZahB8nobf7eayLrxzKB4QGvXONabpryX/RkEc5m3izZSge1lq8f7YzQoVNe5HP9bQo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1t5lc8-00BZiY-Ox; Tue, 29 Oct 2024 13:46:24 +0100 Date: Tue, 29 Oct 2024 13:46:24 +0100 From: Andrew Lunn To: Andy Yan Cc: Johan Jonker , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, david.wu@rock-chips.com, andy.yan@rock-chips.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org Subject: Re: Re: [PATCH v1 2/2] net: arc: rockchip: fix emac mdio node support Message-ID: <9926fc06-7f64-4902-b933-23b68571db5b@lunn.ch> References: <250cdfef.1bfc.192cd6a1f72.Coremail.andyshrk@163.com> <0a60a838-42cb-4df8-ab1f-91002dcaaa14@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: On Tue, Oct 29, 2024 at 04:22:16PM +0800, Andy Yan wrote: > > Hi Andrew, > > At 2024-10-28 20:59:18, "Andrew Lunn" wrote: > >> Hello Johan, > >> Thanks for your patch. Maybe we need a Fixes tag here? > > > >What is actually broken? > > The emac failed to probe after bellow patch merged. > > [ 2.324583] loop: module loaded > [ 2.328435] SPI driver spidev has no spi_device_id for rockchip,spidev > [ 2.338688] tun: Universal TUN/TAP device driver, 1.6 > [ 2.345397] rockchip_emac 10200000.ethernet: no regulator found > [ 2.351892] rockchip_emac 10200000.ethernet: ARC EMAC detected with id: 0x7fd02 > [ 2.359331] rockchip_emac 10200000.ethernet: IRQ is 43 > [ 2.364719] rockchip_emac 10200000.ethernet: MAC address is now e6:58:d6:ec:d9:7c > [ 2.396993] mdio_bus Synopsys MII Bus: mdio has invalid PHY address > [ 2.403306] mdio_bus Synopsys MII Bus: scan phy mdio at address 0 > [ 2.508656] rockchip_emac 10200000.ethernet: of_phy_connect() failed > [ 2.516334] rockchip_emac 10200000.ethernet: failed to probe arc emac (-19) So it is failing to find the PHY, and given the 'mdio has invalid PHY address' it is probably looking in the wrong node. The commit message should explain this. Andrew