Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2796670lqo; Tue, 14 May 2024 09:20:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUVK7GIF716XjCuzcAhZfTfNEWsGycWM6/lUekKtAoWfXClDuAJFB6F3m/De4rw4p5CwbgQwi6wRSehvUh2QAdnCHqoSJdd47pUAYtmKA== X-Google-Smtp-Source: AGHT+IHXZY0tliV/py1uEgRJUeZNVRHITJEnc9qDLaocHQH4f7I11U7iK2ZhIsADaf/z9zRLR54b X-Received: by 2002:a17:902:7608:b0:1e2:817b:460a with SMTP id d9443c01a7336-1ef43e293e4mr134739355ad.34.1715703612757; Tue, 14 May 2024 09:20:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715703612; cv=pass; d=google.com; s=arc-20160816; b=RP6Nz56GxyMie0z95Uw5soOFQQ8AHVJaLHu0qqZ4RUC0CG8SJNFAtCL2uoY9dmkpoP j5iW8tPBB2kDfyZGM4VdbyKSHwOpZi47sY96VZXyAPXlFxASCxxm+qMU52/a0u+uw4Z6 1WoVB+sOwiJH+CSy1wN+ER5AstTIxuVOkwVVguw11EFP/mrANYLzy3GeEraNO/Unygoz GusGv8L1qD8fHrrW/bVUguhn8o/O4JxR1cjRSkqNUgNjMlFQkuZRKjTD6n+jlI/mylp/ mbz1/hUacZaw9xarkOliWSbUNO/l3iahZt7lZuRp9vMm4KbSWNuJ7qkaTe45s8xdhq21 vNOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hvq3vXQtPyfB87Ws5zCdXGhwZMa+XbmLTwbYBUinQuM=; fh=7osyf1H14MsGOkRevWEejQqlYML0oxr0LzZjpQlXM/E=; b=D5FEouauCmmjal709/yyfeUAFzY9mnyE3zilN8TQ3TC9eX+CM/Jdz9Jgjnan5+xBWQ Hga+h/37VqCzubR70lAln7qBOGiWIu3sgxiWRnXdgkEIWULXrO/gKw8YJtU8ujvPpW2e oeC7kKpDh68KLH5/aCkB84VbG1aenhAKzcpTQBRuxllkEK1oncEF3o6WynMvdOL0KEyu bBFCY24659f1Bg1llO2c6peBTduKhMuJmbhrUdm0ijvSe57BCnn+I3UoNuue1aaBHEnj naSnqjPUR1PA6Zst6OV1LEmYHqiZVBC1R6qNrcluldi6RPHBYHgleU257xaUA5A5FzM7 fmyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=THYMR3UD; 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-178942-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178942-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 d9443c01a7336-1ef0b9cff98si119524705ad.72.2024.05.14.09.20.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 09:20:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178942-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=THYMR3UD; 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-178942-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178942-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 23501283955 for ; Tue, 14 May 2024 16:19:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1618E17F36C; Tue, 14 May 2024 16:17:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="THYMR3UD" 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 9B1B71802B8 for ; Tue, 14 May 2024 16:17:30 +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=1715703453; cv=none; b=hc01LI8twfCD5fzdTwZO1rvArl2RwP93U1aVs9lrK4xSy2yRQuwPLkCp+O2d1lTuUZdNuMGvcCMSKb3dDecrj2huJ25fsqNW3Y2f8Qrmig9fqAfDyi7R1/pD00sU6rcaWiURQH1p1jxsWeQ3unSjOOGEywJl+QQuw0ukhmDKqJI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715703453; c=relaxed/simple; bh=zvOVv3+ivmY4QFFVbdYxHcA7EI1kFoZjcLjdZuXCnbc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QbKXnXJ9dWogWoUqrFNLYsHdATrPba+sIGsa7uQWLx2Dz7qPrWcaZBJUkZ0xTOCBofk9NkdYQ3t8XmIjJ1rJ/Sg7lwLBFi7L6AA1WV0BtcK0G4KeZQ3lg2LvjWMDu/QbO5Q76ftgeojHqZ0nrLSdxv96ZQFtGdcRGdl8QxVZVhM= 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=THYMR3UD; 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-Transfer-Encoding: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=hvq3vXQtPyfB87Ws5zCdXGhwZMa+XbmLTwbYBUinQuM=; b=TH YMR3UDPptwNktXUqLIzBrRV2/mPInYHrIyReZG09qn9gs/TBMSNdDdmz8NcWhwHrF64dcEwMpJzu3 KJr/js4Wot/gPMK6ZoLo1jdNXOvls+xV/Ybyuca4jap9n41dcTFYfri3LMl9pzodf7VTe30V/Tlj3 EU9ucQxuq45DRdY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s6uqF-00FOrN-VL; Tue, 14 May 2024 18:17:27 +0200 Date: Tue, 14 May 2024 18:17:27 +0200 From: Andrew Lunn To: Stephen Langstaff Cc: Florian Fainelli , linux-kernel@vger.kernel.org, OlteanV@gmail.com Subject: Re: drivers/net/dsa/dsa_loop_bdinfo.c build problems Message-ID: <949fcbea-23dc-44c1-9146-c358b15b9253@lunn.ch> References: <212a9464-d52b-4730-95b9-5a0aebd38c91@gmail.com> <688e54ec-3b29-4e3b-a2c3-f2c83b9c97b7@lunn.ch> <732d8bb2-1d4f-4958-b130-0bd15a407271@gmail.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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, May 14, 2024 at 05:08:24PM +0100, Stephen Langstaff wrote: > On Tue, May 14, 2024 at 1:32 PM Andrew Lunn wrote: > > > So try to making FIXED_PHY = m, and load it after dsa_loop_bdinfo.ko. > > In my configuration FIXED_PHY is selected by several other modules: > │ Selected by [y]: > │ - FSL_DPAA_ETH [=y] && NETDEVICES [=y] && ETHERNET [=y] && > NET_VENDOR_FREESCALE [=y] && FSL_DPAA [=y] && FSL_FMAN [=y] > │ - FWNODE_MDIO [=y] && NETDEVICES [=y] && MDIO_DEVICE [=y] && > (ACPI [=y] || OF [=y] || COMPILE_TEST [=n]) > │ - OF_MDIO [=y] && NETDEVICES [=y] && MDIO_DEVICE [=y] && OF [=y] > && PHYLIB [=y] > > ...so it looks pretty tied up with the MDIO support which I guess I > will need for the real PHY! > > If I sorted out building the dsa_loop_bdinfo.c code as a built-in do > you think that would solve the ordering issue? Probably. Florian test setup shows it can work. This mdio board info stuff is based on the same concept for I2C devices. However, it is simplified a bit, since it is not really meant for production use. What i suspect the I2C version does is that when a new board info is registers, it walks all the existing I2C busses and sees if there is a match. The MDIO version is missing this, it only runs the match when a bus is added. So it is less forgiving of order. Andrew