Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2183154rdd; Fri, 12 Jan 2024 01:43:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4X2G3tnF5hSE03h0qVw5FscMeAkSbFbNzuW9y8W2JfaV4nw1tyc70tdJX1Wfr4ExxlMjI X-Received: by 2002:aa7:99c2:0:b0:6d9:b225:66c9 with SMTP id v2-20020aa799c2000000b006d9b22566c9mr613347pfi.38.1705052630527; Fri, 12 Jan 2024 01:43:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705052630; cv=none; d=google.com; s=arc-20160816; b=bBbmRtUf3ReKG/4/p51ezvPbs5y8HI0IWXNUH53V3Y7CiT6RQN5v2cZt7AfCd1y14W Z+LibkWXJwUC0Eten6KE05U4DEdNB+anUrFtBffKrcHM75JWsb+ZMvsxdlpDYyLu4tJ0 /PAlNUtY/xPgMeDhoHYxvPNg53RHzVjBUzPMz2nSw9ODgjzc/34+sZgpP52dTLNzeEUt IO/I4Gc4hpu0d5RoFYKLbocakSw9Omc5ktgi460rqI+ocoNnHPO36qpRaC9p7ugR0SQa V4EjaLDGuT4/xLrXIqDeDBTek1hLI/vFe47U607Fbo8nAe25SvDNGf5XHdwebTrIEiRX h/7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=Ptr6uaTWLo8SYXfUVbd+GMKIH7J5GQOeLCOAStqLxQY=; fh=J0fXr2XTQazfk/QHL/kMggvUdvjoAwM8TFsoE7HFOlw=; b=VwG8u1o/LLEX9vNxYkJmBFGsH27I1GBZJD3a3EWRvNBqkDWvapkiJ1a8H+KlapUjs+ tp+hWBWJQnn5kJhWifB+G+JXtOVv6jVc3eaa7dmpDAgtCxFxXEEhGGhhaEnXw7l+IddI 2EiTl9HpRziwnEnuyJNaKKx+Y/46Z84RJJu3gUNlP9tazbaMlBQb/eSkGcKYTfxQt+jT 9MBNCBa63ntJ9oJi3ghc9DZgewDnnvcwbeEmlpELlvJ3o4r6oTlZ4PkwUTc02Q4E1V0x Usp6KEGJ5iu+XML+H8DFCU8WgtxeSFFO/chLR4Z72AEnJerXc4qtiWB6UX2EnS6aHxwk VZaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1806-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1806-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ay38-20020a056a00302600b006db05567437si2926018pfb.75.2024.01.12.01.43.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:43:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1806-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1806-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1806-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C2A51B2369F for ; Fri, 12 Jan 2024 09:43:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7EDF5B5A2; Fri, 12 Jan 2024 09:43:19 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from bmailout2.hostsharing.net (bmailout2.hostsharing.net [83.223.78.240]) (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 C26DB54273; Fri, 12 Jan 2024 09:43:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=h08.hostsharing.net Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS RSA CA G1" (verified OK)) by bmailout2.hostsharing.net (Postfix) with ESMTPS id CAFF42800BB21; Fri, 12 Jan 2024 10:43:12 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id BEB0AF32; Fri, 12 Jan 2024 10:43:12 +0100 (CET) Date: Fri, 12 Jan 2024 10:43:12 +0100 From: Lukas Wunner To: Bartosz Golaszewski Cc: Kalle Valo , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Catalin Marinas , Will Deacon , Bjorn Helgaas , Heiko Stuebner , Jernej Skrabec , Chris Morgan , Linus Walleij , Geert Uytterhoeven , Arnd Bergmann , Neil Armstrong , =?iso-8859-1?Q?N=EDcolas_F_=2E_R_=2E_A_=2E?= Prado , Marek Szyprowski , Peng Fan , Robert Richter , Dan Williams , Jonathan Cameron , Terry Bowman , Kuppuswamy Sathyanarayanan , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Huacai Chen , Alex Elder , Srini Kandagatla , Greg Kroah-Hartman , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, Bartosz Golaszewski Subject: Re: [RFC 3/9] PCI/portdrv: create platform devices for child OF nodes Message-ID: <20240112094312.GA8704@wunner.de> References: <20240109144327.GA10780@wunner.de> <20240110132853.GA6860@wunner.de> <20240110164105.GA13451@wunner.de> <20240111104211.GA32504@wunner.de> <20240111150201.GA28409@wunner.de> Precedence: bulk X-Mailing-List: linux-wireless@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: User-Agent: Mutt/1.10.1 (2018-07-13) On Thu, Jan 11, 2024 at 05:16:45PM +0100, Bartosz Golaszewski wrote: > On Thu, Jan 11, 2024 at 4:02???PM Lukas Wunner wrote: > > On Wed, Jan 10, 2024 at 05:26:52PM +0100, Bartosz Golaszewski wrote: > > > if (pci_is_bridge(dev)) > > > of_pci_make_dev_node(dev); > > > > But perhaps of_pci_make_dev_node() returns immediately because: > > No, it was actually a no-op due to CONFIG_PCI_DYNAMIC_OF_NODES not > being set. But this is only available if CONFIG_OF_DYNAMIC is enabled > which requires OF_UNITTEST (!). > > We definitely don't need to enable dynamic OF nodes. We don't want to > modify the DT, we want to create devices for existing nodes. Consider refactoring of_pci_make_dev_node() to suit your needs or add a separate function call inside the "if (pci_is_bridge(dev))" clause which populates the child OF nodes. Thanks, Lukas