Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp517524rdb; Thu, 1 Feb 2024 16:03:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IE97iKP7fSF+dlcwdfYbSNKZXKmNXfRSPK7cb9G4/hsiGmk/yExZiw5kJ940rlcoLw1WSkw X-Received: by 2002:a17:902:e54e:b0:1d9:5bcc:e997 with SMTP id n14-20020a170902e54e00b001d95bcce997mr2943847plf.10.1706832205540; Thu, 01 Feb 2024 16:03:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706832205; cv=pass; d=google.com; s=arc-20160816; b=0U7aeZBsfs/o8dEsfzVIalRKqJzWFIOAqGfKo49dl2THdueK5EIMtJG0LoHmKYyjDq IXtr9MyxqHE62/F1PQuOcs9NEoYBo3NQR4a71o6o0h90ix2mJU6bFSLe5nt2wI8c9h+Q hHGpaHFxfcIBNtDNNoHymIhRevkBfsnZpQdU6ItX2gwD4wT/3JWsrD6gQy0Vc1i+OffJ nMFsnOhUX1Cpz34zWlywWKQf/uFIEBpxdeaLgoZODQzGOCM3uOT9iwIlqnbt6mt3exPw 3fgi6T9KI3evUUMqtuxwCWxkjO0PkwCpbtAiKPmiFSyA3NUOH0Gud+w6UoPgRe0zzd2b znSg== 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=P+1/+WAxQQpjQncMX+6kjiexAbeIEYnV63kgetJN/dA=; fh=S8lHirrEiRcXq8PdSApK1h2PEkWiQbZFRLTVuQRSAB8=; b=gACVEMoDle2pjRYjeSb5dtnZGSXsqWp+GkzYQcVPuYhBXOsgoCg+njMiDZfmRTEkPY Hr4Ckn1yAnP3p53avtxnvYTDMRKhM2A8dhvQRtHd6xK2wT7pkCwrCVCeC1s7jGm1sB3O gPzX29KozN9qV2XrLg8Cdl56GdPlqxyeoLbkYcvEU/feiYzpjzxz9xLgzjyN3ZQrZrtg gUsrjrGwk/s+eLBp9LA/MG+AWn/WDtJ4V6i1HrUvz1ud9JumtjgWE6rG1DXibQFGXvz5 5VBTMcmq70U681r7Q5ReaOYHvT9ZhRjAnZ+7VKdqW6dGrFvUE5hCzKa80twLFtdph/3Q totQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o1O0LXPh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-2978-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2978-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; AJvYcCWs8W8bcUA2X6oNnT5TNUh9NZCDxCFS6I7r1QfHzkViKpozwmK3E1V0rXP0/6v0abEtwustEX43VNqAFBWILsPLkkZuCCv5fFKkYIE2jQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q11-20020a170902c74b00b001d8ee2c7fcbsi600269plq.506.2024.02.01.16.03.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 16:03:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2978-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=o1O0LXPh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-2978-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2978-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 80C58289086 for ; Fri, 2 Feb 2024 00:03:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E5AA17CF; Fri, 2 Feb 2024 00:03:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o1O0LXPh" 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 E56BA4C71; Fri, 2 Feb 2024 00:03:17 +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=1706832198; cv=none; b=ZvLvFtPL76f50iY77iGChNyC9cKG45fNQwXHxLxcWlsj6EOOgB94RfBl8mWN4hT78f3ag10v5y0cKGil4zS6KAbqap3VUTB1pT8aafExvAqFNt+5RAvJE0h2PUDAEIA+ETz1pCu80QSp9lIEq1Mi/GLTWedUv6bbafd5d6xeStc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706832198; c=relaxed/simple; bh=S77eR3+aBnUK3p2BE5Am64ezv1OvD+YOIoEHYe29IuI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fRVTNj4KTS3xbmMJH1e9f2z8BKzdN8lEulStru61NTFKWNs53piWBTQo0K+kOlRT4ygVFLr3kLh4E72UQ4UKOjN0H+HdsTHDfvVec+NDnVaOcOK3FmMuoaVWVdoM2gKIhXues1JmogqOQPJkfLvmv8yshpaSAG7qpZixOupOF6g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o1O0LXPh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F322C433F1; Fri, 2 Feb 2024 00:03:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706832197; bh=S77eR3+aBnUK3p2BE5Am64ezv1OvD+YOIoEHYe29IuI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o1O0LXPhHzpi1Rs6bzSdUB3LcjO1MINeMXN+1VP+sLsOBbB1lmcWYZuIO4+mnQAL7 MpNreOS7S3fgAQVhYTOwYixsFgyWORbDq1gNT16Srdh7+9QduAlF2WLSh7ATYq9A/m Y0Lm0CB7nQpLHDTRuIF6IujMeKqllKNE//q8Nn3cMmddLrW3fdHEFrHNrIdxf9+VMQ 1T/iRH19Hl/og9XJiEqS8kUbH26YuegOXXgC2QmD8Clxt3tze7TsIaPCE17/GfHVgz xNSreoCPH085OxjKknjT/WMdY6EMheAbPZNwG25VNnB9eCHX5WAsJbaqJNBaD471hM CnqXZHJo7xVJg== Date: Thu, 1 Feb 2024 18:03:12 -0600 From: Bjorn Andersson To: Bartosz Golaszewski Cc: Greg Kroah-Hartman , 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: 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: On Wed, Jan 31, 2024 at 12:04:14PM +0100, Bartosz Golaszewski wrote: > On Tue, Jan 30, 2024 at 10:54 PM Bjorn Andersson wrote: > > > > 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? > > > > Does it need to be a platform_device? No, of course not. Does it make > sense for it to be one? Yes, for two reasons: > > 1. The ATH11K WLAN module is represented on the device tree like a > platform device, we know it's always there and it consumes regulators > from another platform device. The fact it uses PCIe doesn't change the > fact that it is logically a platform device. Are you referring to the ath11k SNOC (firmware running on co-processor in the SoC) variant? Afaict the PCIe-attached ath11k is not represented as a platform_device in DeviceTree. Said platform_device is also not a child under the PCIe bus, so this would be a different platform_device... > 2. The platform bus already provides us with the entire infrastructure > that we'd now need to duplicate (possibly adding bugs) in order to > introduce a "power sequencing bus". > This is a perfectly reasonable desire. Look at our PMICs, they are full of platform_devices. But through the years it's been said many times, that this is not a valid or good reason for using platform_devices, and as a result we have e.g. auxiliary bus. Anyway, (please) don't claim that "we need to", when it actually is "we want to use platform_device because that's more convenient"! Regards, Bjorn > Bart > > > (I'm not questioning the need for having a bus, creating devices, and > > matching/binding them to a set of drivers) > > > > Regards, > > Bjorn > > > > [snip]