Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp618976rdb; Thu, 1 Feb 2024 20:52:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1Ln85t33cZzcbmXwSaSb5eVt0wjQhY5tkixlhINxpN7EHlc9soinMJX3nwun5lt2h0iul X-Received: by 2002:a05:620a:2988:b0:783:bf05:9f42 with SMTP id r8-20020a05620a298800b00783bf059f42mr5766331qkp.58.1706849522608; Thu, 01 Feb 2024 20:52:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706849522; cv=pass; d=google.com; s=arc-20160816; b=Mh9OCJPs9MTY0fTzyK7Iar3MAAow8ZZz7eOK7Tb+KPQjZyCPBdGDPDm57R+clOfvds 1nFLcMRza0uGy/pT81HIaHCrRciMLaDACkznRZKCVGg3J+Mqus4OsnZ+nxNyp+ePZpa5 sdFFcc+BwA2gAijishF6gsnMm9FioT5BW+LbuVR9mEdoaVYTa3QUDvwKs7j+SW/lYl2G YECqHH5acAu0X1t02t63nsW7PYWBNRPEpwBhKrcbeY2YZyRwJk0CJWm11U4T45hXS39h aKr6kk8AiSSjbhyEUuldiRtnPhSHjVJTOAhUKt21/hD4uwzBr/hCv7dDXKSpc0cgsZHD 0Nkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Kr40Gu7ZnkwDYNF2wB6/kUvqE4WqqMaeLDAq4SXbIiY=; fh=a2zSV7d+4nNhTO3YtOc6DVcmMRTX216Q+DkyFOt/nzI=; b=MvsAwmngE6qJo2fFuY/0423aL9nabtJdhNXQ8sAwSxBvD2y6mLzEmu9I/m6KN+fkg1 ewBuLlkpN9XWOmjY58c41ZQajT9inI0T0gdn+qEqPjN9uUuW9VaTSf09h+bh4nL1Lpva IEaTfmU7FUrcyiz5u8/b3/X9oASJsiXvjhc3CHZPxHjWEZANQG2ppeaBLUM7GFQkrL/3 GiS1s3X+vVyt0nxvhstKT1Yfa8EX2wKFlf4QtPVRMh85DIyuoBFnWUf8jcEUr7V/JSDv K5HeXdRoZLueWJD2kujJophR1NincYOdHMxqRe2RxBPhyMii2o9H8Txna9YeHqo81Mn+ LQFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CTzz14Q+; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-2993-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2993-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=1; AJvYcCVmHD4ZvXg2cOeUGlRrJMGTodXtVexAK4YLIwZrTwXbQckLWh82EUpaTju3hTdXOcusRGpVppKXc+EtogBcdQD+8iyKRHIASW54fIv/Yw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b23-20020a05620a0cd700b007852ae76682si1190911qkj.543.2024.02.01.20.52.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 20:52:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2993-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CTzz14Q+; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-2993-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2993-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1B65F1C24823 for ; Fri, 2 Feb 2024 04:52:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28404F51E; Fri, 2 Feb 2024 04:51:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="CTzz14Q+" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 7AE8AF513; Fri, 2 Feb 2024 04:51:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706849517; cv=none; b=L9vP0whoB7r5Sn3ZoTctwfJWYmzOwrxpEn0s2CotvXg/o9lojzoKACHcTniM2VE/eqqFisEY/Mk4vaJjB8HRv1EMvw7AGALRHFBvyWFHp89NSGiZbnZDZR7JfmuMVHDJwqFtepXQGetWXhY8bmR72xoSgbYWGdMIiYdL6GwUpcg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706849517; c=relaxed/simple; bh=MbeoFB9DxXuqtKa3HpPQkLWrTH55Z9XH6TqSAg7KCo4=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=RNal+VaMaWuUDCyZY4n27ZE6LjZfmcBTJfGNcEkl9EberK92Gj6jb5g1ww19nFaInikw/ok1gYswdN+/Xk8PAJtHQIQsFDXDa4wXQ55iFlgS/FRNH/6lXnrBZST74XAEh5ag7oQ4IglYKjj+87KWBsfQDR8oGmQ4tue+HHbF+hM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=CTzz14Q+; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4123mJnQ012457; Fri, 2 Feb 2024 04:51:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=Kr40Gu7ZnkwDYNF2wB6/kUvqE4WqqMaeLDAq4SXbIiY=; b=CT zz14Q+FsuEExXaXXl6pAjGMcYGU6ghZfwZWctR/EzKog6HJUfL6ZbSmpMLEtHiY6 ne/l//pIfsWgxRtEf8cv5dBxaJUcaSGRiLwBMBRXzWbAs9FhqCYX9CfJ0pER0yEh sw3FD9bWifV3RyqUl+nf4Vwnh6Bx+1CNX0sVBr6yyN7UPWUUVSVF5TNX7qQUgydV mAU3qHypyjbOYpz2a5qvij6/pUqLO+6imVQRN1/Jgyi7byFDl5Ub5+t0CsDXtASC VG1IxTIMV86pJ319Hz81cjXQREGWDRcUWwWk4pOOILO5SKY/G469XpaD/Wucr37Q urXXP0pBWX0AanFGQ8eA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w0ptvgd4a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Feb 2024 04:51:03 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4124p2Yf007983 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 2 Feb 2024 04:51:02 GMT Received: from [10.110.16.197] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 1 Feb 2024 20:51:00 -0800 Message-ID: <39779388-9aad-43fd-9ede-271ead40cbf7@quicinc.com> Date: Thu, 1 Feb 2024 20:50:59 -0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/9] PCI: create platform devices for child OF nodes of the port node Content-Language: en-US To: Bjorn Andersson , 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?Q?N=C3=ADcolas_F_=2E_R_=2E_A_=2E_Prado?= , Marek Szyprowski , Peng Fan , Robert Richter , Dan Williams , Jonathan Cameron , Terry Bowman , Lukas Wunner , Huacai Chen , Alex Elder , Srini Kandagatla , Abel Vesa , , , , , , , , Bartosz Golaszewski References: <20240117160748.37682-1-brgl@bgdev.pl> <20240117160748.37682-5-brgl@bgdev.pl> <2024011707-alibi-pregnancy-a64b@gregkh> <2024011836-wok-treadmill-c517@gregkh> From: Jeff Johnson In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: lTFaTi9YnTkmqQ4bQa9bhYouASZn-t3K X-Proofpoint-ORIG-GUID: lTFaTi9YnTkmqQ4bQa9bhYouASZn-t3K X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-01_10,2024-01-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 mlxlogscore=999 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 impostorscore=0 mlxscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402020032 On 2/1/2024 4:03 PM, Bjorn Andersson wrote: > 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. Are you considering out-of-tree drivers? My understanding is that there are different PCIe modules, ones that don't have GPIO-control for x86 and ones that do have GPIO-control for ARM. The out-of-tree cnss platform driver used for Android has a large amount of DT control (not sure off hand where the DT files themselves are) /jeff