Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2183048rdd; Fri, 12 Jan 2024 01:43:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwUYS6hJEjNM6W4Y5occNIHTn/jgLsBoS83Ws82VuYE13iJdjjYZ6q/AMilHqAMlbCyjMj X-Received: by 2002:a05:6a20:cc55:b0:199:a963:45a3 with SMTP id hq21-20020a056a20cc5500b00199a96345a3mr618400pzb.66.1705052607151; Fri, 12 Jan 2024 01:43:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705052607; cv=none; d=google.com; s=arc-20160816; b=j4/rxpUl8x1d0SHttlo3eqVb2khmwoRZiqXTBW2IdH9+3ZnftiSEwR0H54l4u0p7Hj h4gRMZq6YMeHIjFcoXHUN3Gi42s4820EaNbzx8Hu5OUnaI36TbDRcB/psO3eu5q22SYM 6wiTukeeWYT2TixpWD9rROyWsPLV9Y7lykxPf81zqWHuCWFJlMC6pmBtCOdfMfShAXKE KIUnQiM7zaJG08cThAuL66bPNt9ZNaAfRqzIx7xmq1a4BnRMMuAnAp0h/5smUGbaP6k8 RPg5tOCi5J8G4DR5fpYwf0u1tvCKCsIhtNwGZtlhfXi4JjS/9be7C7Y3ElRwzLLRLZKz PrNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=7SOKaW2woRervs3SEctxvdhsDA2CX0fXEo5IZIZEkjI=; fh=IrwoJYUDa9lDUyaoR+15VQGAYMp3wWBDYQF1OkU1F3I=; b=jeI2KUAPhOOU5ckiyKmaAOJbIOZ35+9AF1WNEYm4fq1bQt4Z9J0vdK3yZkQ4qBOVJ8 hscRRbebmK/inZuvHKo5Ef9BQCv+oM9KzqWN65ClCoM9d965/fD2Crv5qNwhLyFY+TYN z5ezTiGlWcnXfc2jBJkPq+boxLPDREcAPDSJk4qTx7pAlxxC8L6CFH7umHkH4zpUR257 2I9mJ14t5bovaHinRyRTI/UmejcIyqrRXaHEBlg1zmjAGuUnTMF89LgCEp0qT8f7hc/q No83TtYvIhtdxhmdtlKlR54w6zdlP8NaCSKjCHO2YbN5VKqnv5coo95X5luQkW+BXYWx 28CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=TXwmvMkQ; spf=pass (google.com: domain of linux-wireless+bounces-1805-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1805-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id kz5-20020a170902f9c500b001d4e1d45a73si2897401plb.99.2024.01.12.01.43.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:43:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1805-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=TXwmvMkQ; spf=pass (google.com: domain of linux-wireless+bounces-1805-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1805-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 64266B23489 for ; Fri, 12 Jan 2024 09:43:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B577456B9F; Fri, 12 Jan 2024 09:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="TXwmvMkQ" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com [209.85.222.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73C5156B9A for ; Fri, 12 Jan 2024 09:43:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-ua1-f49.google.com with SMTP id a1e0cc1a2514c-7cc92a83200so1497550241.3 for ; Fri, 12 Jan 2024 01:43:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1705052595; x=1705657395; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7SOKaW2woRervs3SEctxvdhsDA2CX0fXEo5IZIZEkjI=; b=TXwmvMkQt1bOumNT9ex0KA1MwvpznXy0lLXDMsJFXN+cnNl2GWlLSfZaFxsjYsWF9q KQuvfv4cjMnyMvqCIC8QnRA4z2lrgXxakAnNvkb7iDmqX1X59vyi9F8ASou8YzD8BknU ZjMlx7pocpxBBPNoGDAN4oCPgtF7Noz0slVoAEAP8mKPbVnnmnqTfrr6OVBLPsTvnCI8 qJIrBAILq9vRyzZqZuBhhQYoJOWNGAqiBRiDdJW0f2/D52c9XwRhccAncOdIceHb6YLf 1YK/T8iE0U3rl9C3fw0UqyHc4Al6UJVfBS0ZUCswy9SsL4dyz54iGYahruAMR97cI7rG hdJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705052595; x=1705657395; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7SOKaW2woRervs3SEctxvdhsDA2CX0fXEo5IZIZEkjI=; b=at14S16cFk5woBDG4+9W+xnnqm5/blB2HAs19bWXkGKjzAF3Fqec6OinXyWPPo6DQ0 awX9//BjrEsHqlY9vlsX+niNm+JKcqqgs/2diZqtFVJJCFlJCOqxnFDt1Z0LmENXI0h9 MNFhqbjohWszmmLVCqDCElthAo/MKkxHrO1s3H5TiOg/4FONDlFINyk4OgtDu+vkHLRU E2xQ/hDWFfMqmFpvFhMlJXtXBHm2KEELPz/CoSojGB1S7jXU5/Z9xNeVSAlQJJuhJzfq d5OyKIBz4eheWvm3phybrfk/gl/L8WcS+M1LjfIodA35TIXJhSppSos/Yjye5fHPVDvV wMNA== X-Gm-Message-State: AOJu0Yznrzv/hMJ2qsUm/ZNJepL+Zi8uI+Yfw+ObEp8NV4ok87KQRzLL I0onWoRrDSdzYBsj/69MUNaoH5gZBZQxZorFpf7A682AhrOTJw== X-Received: by 2002:a05:6122:3b88:b0:4b6:aeb7:3f1d with SMTP id fs8-20020a0561223b8800b004b6aeb73f1dmr839449vkb.9.1705052595200; Fri, 12 Jan 2024 01:43:15 -0800 (PST) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240104130123.37115-1-brgl@bgdev.pl> <20240104130123.37115-4-brgl@bgdev.pl> <20240109144327.GA10780@wunner.de> <20240110132853.GA6860@wunner.de> <20240110164105.GA13451@wunner.de> <20240111104211.GA32504@wunner.de> <20240111150201.GA28409@wunner.de> In-Reply-To: From: Bartosz Golaszewski Date: Fri, 12 Jan 2024 10:43:04 +0100 Message-ID: Subject: Re: [RFC 3/9] PCI/portdrv: create platform devices for child OF nodes To: Geert Uytterhoeven Cc: Lukas Wunner , 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 , =?UTF-8?B?TsOtY29sYXMgRiAuIFIgLiBBIC4gUHJhZG8=?= , Marek Szyprowski , Peng Fan , Robert Richter , Dan Williams , Jonathan Cameron , Terry Bowman , Kuppuswamy Sathyanarayanan , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 11, 2024 at 10:44=E2=80=AFPM Geert Uytterhoeven wrote: > > Hi Bartosz, > > On Thu, Jan 11, 2024 at 5:16=E2=80=AFPM Bartosz Golaszewski wrote: > > 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 (!). > > Huh? Config PCI_DYNAMIC_OF_NODES does select OF_DYNAMIC. > Indeed, I got something wrong. But in any case: we *don't* need dynamic OF nodes as we don't create new ones. We use the ones that already exist. This is logically a wrong place to add this. Lukas, Terry: am I getting this right - is the port driver supposed to go away at some point? Because I'm not sure I understand what the problem is here. To me it seems that when we create a real device for the PCIe port, then it's only normal to populate its child devices from the port driver. Bartosz > Gr{oetje,eeting}s, > > Geert > > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m6= 8k.org > > In personal conversations with technical people, I call myself a hacker. = But > when I'm talking to journalists I just say "programmer" or something like= that. > -- Linus Torvalds >