Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp471121rdb; Fri, 5 Jan 2024 17:07:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOTdcfofgLDeC4/Cuy6mgg2FiZGxOrVY0IMTDRI/UiG4v6lY3Vj5ZcWX36XdEiakgJk7AH X-Received: by 2002:a05:6a20:1610:b0:199:24d:da10 with SMTP id l16-20020a056a20161000b00199024dda10mr261389pzj.65.1704503265343; Fri, 05 Jan 2024 17:07:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704503265; cv=none; d=google.com; s=arc-20160816; b=SZb5plFKvv1XA88VVxgE2QftN8oICtgevX9mUZe3e8afIH3jNu2TJGT6to6aL7vLGi SXKxeQUH9ZdPp9hvHddnUm3eM6C8TEs76QyQSr7FGIy8BHVcOGSNHj/XA7sKjkxHXcCV efEbJD4XaSoS2sKq08/nx40+IHG+xe4LoCoLR0HTSMPFVHQOuXzubX3F3UdPxE0WmA63 qhXrdickaCY+a2W1NZXuyRTZAu8vx1RLJFgv1R0HBMj23PHL30CjIxwgQXl3YPz2l2OZ eTX14/GPRVEwkhwYjJl4/LLtS/3N/SpMSF6CgLigJRkASyRZgbeaXXRa7jrUNr6r5IQb 2HcA== ARC-Message-Signature: i=1; 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=RPeLB2A5lpM4pmuGC+qyMezlYubWLHlX5CvjWhDmlfI=; fh=2H09ReSdMYRDS6t7CBqWPUipDnPoE0Dc8nHnWBQOZPY=; b=YCm06BRhVvpXE3HzLUnwRObqjlZKipKEw1ixHNAGCh2KbOFTst/QY6gR/QMGiFLWqe e63LpBbBy6DmIwewi7GPtS4WmgPh1uO+I3EXA2dFnMdNkhUOK3iOmnkknT0NP+wPBz3V 01XkV990AOJWu8TpDCtGX7K/qCM9bN/Kv45sFJYQ4kt9EtZzWFWMCsA6eoR9fFtU+N7T fHLbz9lNFD+fq3CwQT5l+qgIZdcJIBx6WOYsHNjZ2S5geVdJ7JzMnvVDwZYqTki79fZm uL14u4+0+xCu0RmnM3lPys03Dd7Jo+IQ03cwxZgRLecgvrc7vwh6/xChZW9WFKeWz4u/ YXrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DwKi5PTB; spf=pass (google.com: domain of linux-wireless+bounces-1544-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id bw31-20020a056a02049f00b005ce47018492si2277462pgb.338.2024.01.05.17.07.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 17:07:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1544-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; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DwKi5PTB; spf=pass (google.com: domain of linux-wireless+bounces-1544-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1544-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3B2A6B22ADD for ; Sat, 6 Jan 2024 01:07:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E34CE110B; Sat, 6 Jan 2024 01:07:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="DwKi5PTB" 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 353E710E3; Sat, 6 Jan 2024 01:07:30 +0000 (UTC) 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 (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4060ZQ0H007481; Sat, 6 Jan 2024 01:06:00 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=RPeLB2A5lpM4pmuGC+qyMezlYubWLHlX5CvjWhDmlfI=; b=Dw Ki5PTBJebOhduf1QeQfwuqSVUX32eEUUVyj2IaWQF799PK2/YOts2oXszfTlZNyN n3W17GOXRE8TJk0UCf5AYM6khCAjF0Z2iM4a++/xvl+Se32zu/QtZb0KF/l3Fb1u an9MtuXBup8q9vm74NfjHZee2t0vd14pYUBr1oDINOtfm1aQPK8EExJ5dFkahMi2 f/8zfTnAiPvpGkSVC332qFquWwO5Z31ix0siQxDfYYLBf7XiW+s3Z/PVU9kLjPQa bF34z9I9rurJzm44UVI0z3e0U6oPSymxwlGXSc3dGXlt+AlxXCF/FXagQd7IDUVU Ni5rWAxKHPeK7Aof6tXA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ve94rap5v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 06 Jan 2024 01:06:00 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40615x0a026831 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 6 Jan 2024 01:05:59 GMT Received: from [10.110.42.177] (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; Fri, 5 Jan 2024 17:05:57 -0800 Message-ID: <390499d5-6a55-4fd2-b0ad-7cd656309cbf@quicinc.com> Date: Fri, 5 Jan 2024 17:05:55 -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: [RFC 3/9] PCI/portdrv: create platform devices for child OF nodes Content-Language: en-US To: Bartosz Golaszewski , 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?Q?N=C3=ADcolas_F_=2E_R_=2E_A_=2E_Prado?= , 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 CC: , , , , , , , Bartosz Golaszewski References: <20240104130123.37115-1-brgl@bgdev.pl> <20240104130123.37115-4-brgl@bgdev.pl> From: Jeff Johnson In-Reply-To: <20240104130123.37115-4-brgl@bgdev.pl> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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-ORIG-GUID: UF94WA6SpyZVSwQUMC-GghsZfCeqVLrd X-Proofpoint-GUID: UF94WA6SpyZVSwQUMC-GghsZfCeqVLrd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 phishscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 adultscore=0 mlxlogscore=952 spamscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401060003 On 1/4/2024 5:01 AM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > In order to introduce PCIe power-sequencing, we need to create platform > devices for child nodes of the port driver node. They will get matched > against the pwrseq drivers (if one exists) and then the actuak PCIe nit if you re-spin: s/actuak /actual / > device will reuse the node once it's detected on the bus. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/pci/pcie/portdrv.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/pci/pcie/portdrv.c b/drivers/pci/pcie/portdrv.c > index 14a4b89a3b83..401fb731009d 100644 > --- a/drivers/pci/pcie/portdrv.c > +++ b/drivers/pci/pcie/portdrv.c > @@ -13,6 +13,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -715,7 +716,7 @@ static int pcie_portdrv_probe(struct pci_dev *dev, > pm_runtime_allow(&dev->dev); > } > > - return 0; > + return devm_of_platform_populate(&dev->dev); > } > > static void pcie_portdrv_remove(struct pci_dev *dev)