Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7694279rdb; Thu, 4 Jan 2024 05:03:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFX5sVuSdrJI66C5Vz/lRa+aiMVrf0xap4I0dZcxt+Sq/v9+p+ix64ruF9cd5aT262uhvj4 X-Received: by 2002:a05:6a00:a90:b0:6d9:b5ce:f17e with SMTP id b16-20020a056a000a9000b006d9b5cef17emr739668pfl.5.1704373424044; Thu, 04 Jan 2024 05:03:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704373424; cv=none; d=google.com; s=arc-20160816; b=DyUFWUvfVgBeR6e9vsXSOvTRvmDO7fPst0zesd8veBQILF1/7jxMk8qvy5o/5G2atY OAUWzq79rJLbAO29WWCXEsTZpOVdnywrJU6Pw2fbtfrvtCxQP/xOssyKbqciU0tIs2rW hlFlEk4OI5HrD1QYhT+6Ir/YBxBlKZ3NRGZ0vHob0ftls8uyNluA6BiGC67OJuSPRuYB gK8dgJxxqu7cbE6Lik0nHEwAsl8ecF2xhdtTd/slBferIVeRVUPbk/ATH9VYFgJmX/Sv UHZkSaNBmHYo/0riDPjtYv8Gi1OFEy5ipCjmwpqrMwfmcC94H5/e3qxWpDQyHWV+cX01 4E8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dm8mMOJsxux6ZmWUG3F7cuu+H2vgOte3WZWDy9og3kI=; fh=1uFngekeZT2FVGQaKpK4gjTIex4FU0hdfexTfOUKej8=; b=p9SK3cFTxsB99YbIWPk+SI/HjjVy8RFv6KEocF2brGsJYS5J423Ez+iTxYNcBbG2oj KjjzrOGdNn5opBtbHzd5smw+bkX8/gcXXu+H1BR8Q0ejB8kkNLOKxn4uLueBiHXweuYg 3C5KyEexYDGbjgHhu5RDPIz0X4lwSIf3UukuXFC6/QEbhmM0hQuOB2Hjcdl2Bq46XEJ4 lPy1a07SGzyFxiW377YlQGp9Pa/xGICU/x/xdNNA1ZlkwmmTAAwpP4WRCzqaeB6PPSz4 3i95nzXaOYXJ1gNZ+feDiAOkLTWsA5yLpoGCB2ZYlp1+xGEsB2N+eI0MbJ+jG80OHUp0 v+0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=zESwugOz; spf=pass (google.com: domain of linux-wireless+bounces-1486-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1486-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fc26-20020a056a002e1a00b006da1b6363basi11950981pfb.89.2024.01.04.05.03.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 05:03:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1486-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=zESwugOz; spf=pass (google.com: domain of linux-wireless+bounces-1486-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1486-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 729D12870C2 for ; Thu, 4 Jan 2024 13:03:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6915823751; Thu, 4 Jan 2024 13:02:10 +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="zESwugOz" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 A721C22EE8 for ; Thu, 4 Jan 2024 13:02:08 +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-wr1-f48.google.com with SMTP id ffacd0b85a97d-3368d1c7b23so374143f8f.0 for ; Thu, 04 Jan 2024 05:02:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1704373327; x=1704978127; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dm8mMOJsxux6ZmWUG3F7cuu+H2vgOte3WZWDy9og3kI=; b=zESwugOzZQWroLH3AzdFt7/hlzlCWNPWAY42tOmmQ1m+tQ1HgQT13NHkIGN54DaX3O w1aYnbe//4y09pGoNAkqCGL45RrOrRJQBEkvTkizscaQkkbH7nJA/HXjqdYkssHhCUzG aWLRnX93EEBj8JC2RHltW+mnbFvDKrfA8TSLxDjpo0xofw0MTHAsJsnEG1T0PSl90ZHY uX35iKTLEbTNFcMkes0gJ7taDIqUR06yYePDmN1YjJO6/0nlWcxgt5iIHWNAXfwXePJX n3mTT8jWJkaCoGeZ2n2uE2FQ85t68XGguhZCYoSMf0glh68o34oOtdEF21pVeDD2+Dyv iRKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704373327; x=1704978127; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dm8mMOJsxux6ZmWUG3F7cuu+H2vgOte3WZWDy9og3kI=; b=Tk0tHjI5q10BvZwtyvYmYa+iDg2PEofd9lhMXMdZNntSS7yxdpHdbYoHAIezHvBUrk kDbyacc1Ux5LEIS0BDZ9snLfSEWplAnUE3hE9B2taIVR36RKOCt4Uz2UWJQTaOzHs6Pu ungE02tack53eBYvZVXmtMX5iG9Qk9vLRmdh0Nlmx16hsxDZk4B/IRZCqXzyDpLjw7QK jvsVu68XWGP5jxHrQ2QHKyfYCISDMdz1SAUGpI870/IL0GeBYRE+poFZcilAaKoxpOCr ipqD0TW3cUfscBC9vk+6I0sA2/Ekx/zX9X/PEG6qmnZaYeTI4vgr8QtgzBBjzN+RjnHJ /RuA== X-Gm-Message-State: AOJu0YxZmPUJRL57YLL12YcyBOom4Fgtsm0Eqy4RFActnlfjMvi/pvyG DEFs4BdDcFMDYnvjF4flY9TjWccNxwdbfA== X-Received: by 2002:adf:b199:0:b0:337:175:a079 with SMTP id q25-20020adfb199000000b003370175a079mr327095wra.80.1704373327126; Thu, 04 Jan 2024 05:02:07 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:5b69:3768:8459:8fee]) by smtp.gmail.com with ESMTPSA id w5-20020a5d5445000000b0033660f75d08sm32887387wrv.116.2024.01.04.05.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 05:02:06 -0800 (PST) From: Bartosz Golaszewski To: 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=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , Marek Szyprowski , Peng Fan , Robert Richter , Dan Williams , Jonathan Cameron , Terry Bowman , Kuppuswamy Sathyanarayanan , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Huacai Chen , Alex Elder , Srini Kandagatla , Greg Kroah-Hartman Cc: 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: [RFC 3/9] PCI/portdrv: create platform devices for child OF nodes Date: Thu, 4 Jan 2024 14:01:17 +0100 Message-Id: <20240104130123.37115-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240104130123.37115-1-brgl@bgdev.pl> References: <20240104130123.37115-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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) -- 2.40.1