Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1287439rdb; Tue, 30 Jan 2024 13:54:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHncyIYa0dt3MWmpsTosUIQH3G7lsgfxXsDRTiub86DiOZA7kldXY0IZf1GkjK0XDyWc4f6 X-Received: by 2002:a05:6830:1281:b0:6e1:c7e:f3fe with SMTP id z1-20020a056830128100b006e10c7ef3femr11107055otp.50.1706651662407; Tue, 30 Jan 2024 13:54:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706651662; cv=pass; d=google.com; s=arc-20160816; b=Ib6p+OReIhvQQclcN2/f8vAZm/ny6nkMfK7CpxI17JgybvhA6eA4c2JFB5oywAcr31 fazBKj28Z+3ehC3sCbrRFMeG31Ko78BMfx9nXCgNnr4lFKuswHZAT6lJVspzoJ+i0UA8 8VaIMn42Uzhf5vBgj6HetO+687xDQiZVUSrEojk8DubmGsNIzMbJ05XGP440OlASj6Z/ A77nRdcJSHlbDt6Xwue4bB2H6S9csK39V/aRv4k38lZpQfepcED9Bi9i2cMXKI3l1Ab1 heHRHuCqnJU0MObucAGSqOGnVBy+uNas3w7/JlBNrg2RMAs9FLQLNTZoO++S1ftRvUAZ 0Qdg== 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=jHTVPJvoxflsvWNDAAL7sEMlVWc1+ls/n8KvZtL2+XU=; fh=MG7Q9AYC1m0NJ/a9X7N34kZS/Sd0t8AuWYhiaHbQVhA=; b=SzorU/Q3k2YUY9+jRE8UhKU4DaP1lE6j4j/y3LdWOq1Q0Q0bTrbgobTiHop+9UJNBP kivwKG/G56z5OFvyavAwn4ctqngml68nUDJJVKUfxtMcFvIUGeJS+pdoaJEK1vWZHEWQ HD8+S0kIMaY+9h0hGNmSW0d2jlAy4FKXSU3d7OwxlqAl7aJuYvvzNuuFqnkVuCOcJrzq jNAuYUbqqNtdd7Wucu5966Ydr1HylA5MS1GZq21u4tHqOmad9RSKNF/NyQvTp90ClN5S Of0WQ/TndWXUFMaaeBNCHG+nR2hyOMIbJKTtbkM85Abk2MdSNqtcjlZIaBjhD2qfm9gh UPOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d9uVnBa8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-2855-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2855-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUUBU345UR7NbGiWiUFpM9p9KZl66o4QvtMix4SsVu3O+iGGIcbGz97CBB+o0YobzNwWdA6pNzkR+iRmeR3htUqll60ebyM5srD9hEQow== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h184-20020a6383c1000000b005d8b9ada80esi6136369pge.657.2024.01.30.13.54.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 13:54:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2855-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d9uVnBa8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-2855-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2855-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DCB47284700 for ; Tue, 30 Jan 2024 21:54:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6872F7D3EA; Tue, 30 Jan 2024 21:54:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="d9uVnBa8" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 278457D3E3; Tue, 30 Jan 2024 21:54:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706651656; cv=none; b=MSLRyESbpHNIekqzJ5IvSWjRxsruUR4iZl1wd/yB4d5k/aGuohLAIbraLWvLHnVCoBat/KLsWzSq0QtFoGYu1K7INRH0oi0RHzjKffhINu9vXTPmZ+zgA6u5d620Qa9+mpxwdEi4ctQy82Cd5ZdlTrmK5+DvwtR6DBJrJePZVW4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706651656; c=relaxed/simple; bh=LTMVYrnQ0Ac5UrUfHkqd52vj2qm9n46fuacsL4mVVR8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CT5c683JYJ/sloXDikQCsJ9kI1N9+q+5z6aaLXVtoSsjJWHN6I5WOEHfTWdTjBIYci3CM40L5d4kSMOEKp7Lhfyif39km5fwc23zSqUztDWdVvQknPw+93o2jpSTsA85G0lIXDhtrfGwxe6yM/XdBWvMEPcbOgxqzBDqtxs0uJw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d9uVnBa8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B482CC433F1; Tue, 30 Jan 2024 21:54:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706651655; bh=LTMVYrnQ0Ac5UrUfHkqd52vj2qm9n46fuacsL4mVVR8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d9uVnBa8V4EX3P0L1wK1PVj+miY4+RIkfPIpH2K9TfKIAIQN9ZgpI+Ru+O9K0+Cde YKHMlEpMJ3tf1RwQ90YWtoBLJvxkS5uP5vAO914uS1bErG4AX1gB3ja33Nnpb8obPw vvomTc7HUQSZ3vqbhEm7l3Jq0JrL5ZmjRchPK+b+pRY1DLx2gnBBjVc+9hgleG3odt JXOwZu8e7iPvzuvHTQZV9CTGrBAIVR0aNv6qwPnyfu3foshVlhkE6Hrh4Q7dgbloL8 cBFVhghTwNmG/tvmyoVAbKAXhwG1H9IdWkfbUz/WvPYTgDCqUybPNsVpRTzqeQLBfL 7Eh52wD8vn8hQ== Date: Tue, 30 Jan 2024 15:54:10 -0600 From: Bjorn Andersson To: Greg Kroah-Hartman Cc: Bartosz Golaszewski , Kalle Valo , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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?TsOtY29sYXMgRiAuIFIgLiBBIC4=?= Prado , Marek Szyprowski , Peng Fan , Robert Richter , Dan Williams , Jonathan Cameron , Terry Bowman , Lukas Wunner , Huacai Chen , Alex Elder , Srini Kandagatla , Abel Vesa , 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: Re: [PATCH 4/9] PCI: create platform devices for child OF nodes of the port node Message-ID: References: <20240117160748.37682-1-brgl@bgdev.pl> <20240117160748.37682-5-brgl@bgdev.pl> <2024011707-alibi-pregnancy-a64b@gregkh> <2024011836-wok-treadmill-c517@gregkh> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2024011836-wok-treadmill-c517@gregkh> On Thu, Jan 18, 2024 at 12:15:27PM +0100, Greg Kroah-Hartman wrote: > On Thu, Jan 18, 2024 at 11:58:50AM +0100, Bartosz Golaszewski wrote: > > On Wed, Jan 17, 2024 at 5:45 PM Greg Kroah-Hartman > > wrote: > > > > > > On Wed, Jan 17, 2024 at 05:07:43PM +0100, Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski > > > > > > > > In order to introduce PCI power-sequencing, we need to create platform > > > > devices for child nodes of the port node. > > > > > > Ick, why a platform device? What is the parent of this device, a PCI > > > device? If so, then this can't be a platform device, as that's not what > > > it is, it's something else so make it a device of that type,. > > > > > > > Greg, > > > > This is literally what we agreed on at LPC. In fact: during one of the > > hall track discussions I said that you typically NAK any attempts at > > using the platform bus for "fake" devices but you responded that this > > is what the USB on-board HUB does and while it's not pretty, this is > > what we need to do. > > Ah, you need to remind me of these things, this changelog was pretty > sparse :) > I believe I missed this part of the discussion, why does this need to be a platform_device? What does the platform_bus bring that can't be provided by some other bus? (I'm not questioning the need for having a bus, creating devices, and matching/binding them to a set of drivers) Regards, Bjorn > > Now as for the implementation, the way I see it we have two solutions: > > either we introduce a fake, top-level PCI slot platform device device > > that will reference the PCI host controller by phandle or we will live > > with a secondary, "virtual" platform device for power sequencing that > > is tied to the actual PCI device. The former requires us to add DT > > bindings, add a totally fake DT node representing the "slot" which > > doesn't really exist (and Krzysztof already expressed his negative > > opinion of that) and then have code that will be more complex than it > > needs to be. The latter allows us to not change DT at all (other than > > adding regulators, clocks and GPIOs to already existing WLAN nodes), > > reuse the existing parent-child relationship between the port node and > > the instantiated platform device as well as result in simpler code. > > > > Given that DT needs to be stable while the underlying C code can > > freely change if we find a better solution, I think that the second > > option is a no-brainer here. > > Ok, I remove my objections, sorry about that, my confusion. > > greg k-h