Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp164741pxb; Wed, 20 Jan 2021 04:05:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJze+7kBzRureob9cksXJ2DQ4aVLMrkK8XilwjxiibJF2cMOEj5SyHi1vWqOZAUuyjsZiisq X-Received: by 2002:a50:bacd:: with SMTP id x71mr3109601ede.311.1611144254923; Wed, 20 Jan 2021 04:04:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611144254; cv=none; d=google.com; s=arc-20160816; b=0woxGvS/h9ZmrMOPV2EdSM7RbaBHYRsKDoKP6b64CEuWl/xa+xfX8YQOFtwsw5pxcD T77IFnMydxA1hEdB2VtuG92z9IAdTXnnZ7egF1HeSEzSjiPBdcMBUk0trZ8uJAONnWkj xiGUFdWdrmNOgg+Nyy2kdRtrLCbjMJSD/050Dfia5oKqzwmwOl6kLcBhzpQ6kqP24qCc Pqg/IRShlKiu5Q/gqh9bplgnTLdEX03FpkAh/hTA9BTHHx1+Ytxvt/SEJsL7oMql2fkv sO0eBbukC+JdY3uGFtufUvAbMPc9s6J3e4zxC3uVMAUPC1yzYI7ifauEdVm3Izb1NaRV OrnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BQVeTcT5ofSmzP64+CmbTYyNgf79aiI+Bl93C1bsim4=; b=jXiiCQTpWqAh7ZI3nYiydVJOnOzp0tn/Misv0zrwAVGZy/YpjfC8Ujz3KG1Hqd+zMr Vo9r5m1RE15yR/3mDgQRDRvZ2tREpmhiJu+1UBLdTgF8NaFywcLvq5DMRIVl/3ABkKzr jXkmPq2Uk3k7QtM/18Ri5hqQKCqX1TZ9eHa0wPRMsT3LPkRgbgOg7Z2BKAQKuL8LV9Ts prxZhAHBjSdbONvPQTObvKlEjmfDIuA86y1b3L9Y2R7lH9DWL/mtdGX9T4aa42MKIObO rGg0+8STE9sJ5Mgkfh9SPNcZkPPWRw7Lic+Krx+v3+lDqYYJuoKR5bEyLwCKtD9CnpIv Mpbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=PW4Z8urt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l5si626457ejq.211.2021.01.20.04.03.42; Wed, 20 Jan 2021 04:04:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=PW4Z8urt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732338AbhATLj3 (ORCPT + 99 others); Wed, 20 Jan 2021 06:39:29 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:44453 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388295AbhATKxt (ORCPT ); Wed, 20 Jan 2021 05:53:49 -0500 Received: from mwalle01.fritz.box (unknown [IPv6:2a02:810c:c200:2e91:fa59:71ff:fe9b:b851]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 2335C22727; Wed, 20 Jan 2021 11:52:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1611139983; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=BQVeTcT5ofSmzP64+CmbTYyNgf79aiI+Bl93C1bsim4=; b=PW4Z8urt2cjMzsaFhpulLr9QCshpjmvLDPg5W/SrjTTixsit7WTXvl1F3DCgOqzCoWCWUu bVVPZfoKZSsrBLE72+MAIcRleKklcGp8EQPJncZQmxr7z6USoRQNU0gRIWZP50bnHubkjH FkgPAdB1ZYys8y9oojOLjwtIXpropB0= From: Michael Walle To: linuxppc-dev@lists.ozlabs.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Minghuan Lian , Mingkai Hu , Roy Zang , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Greg Kroah-Hartman , Saravana Kannan , Michael Walle Subject: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver() Date: Wed, 20 Jan 2021 11:52:46 +0100 Message-Id: <20210120105246.23218-1-michael@walle.cc> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fw_devlink will defer the probe until all suppliers are ready. We can't use builtin_platform_driver_probe() because it doesn't retry after probe deferral. Convert it to builtin_platform_driver(). Fixes: e590474768f1 ("driver core: Set fw_devlink=on by default") Signed-off-by: Michael Walle --- drivers/pci/controller/dwc/pci-layerscape.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/dwc/pci-layerscape.c b/drivers/pci/controller/dwc/pci-layerscape.c index 44ad34cdc3bc..5b9c625df7b8 100644 --- a/drivers/pci/controller/dwc/pci-layerscape.c +++ b/drivers/pci/controller/dwc/pci-layerscape.c @@ -232,7 +232,7 @@ static const struct of_device_id ls_pcie_of_match[] = { { }, }; -static int __init ls_pcie_probe(struct platform_device *pdev) +static int ls_pcie_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct dw_pcie *pci; @@ -271,10 +271,11 @@ static int __init ls_pcie_probe(struct platform_device *pdev) } static struct platform_driver ls_pcie_driver = { + .probe = ls_pcie_probe, .driver = { .name = "layerscape-pcie", .of_match_table = ls_pcie_of_match, .suppress_bind_attrs = true, }, }; -builtin_platform_driver_probe(ls_pcie_driver, ls_pcie_probe); +builtin_platform_driver(ls_pcie_driver); -- 2.20.1