Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3781915pxb; Tue, 26 Jan 2021 04:48:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqu2aDdQ7pA6dk+f8GKGL+GvHuRAPr9g5glCsVZEWv7B10fPB97g/0uyW4nDCIOpyS5oyO X-Received: by 2002:a05:6402:3510:: with SMTP id b16mr4302109edd.242.1611665310094; Tue, 26 Jan 2021 04:48:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611665310; cv=none; d=google.com; s=arc-20160816; b=xRXYwJoO8Pm5kiaJFXp3EMHH4RHqeotqfXASI31l/Xlq88iUYRZsJ8SGu3Dt4nCnZU NRFZyJO3njAGULPUsYV2YQ/AI6dERXkmXl8hMtChOklfRCcyPQpJqkD+QD/xnWzIWt/6 7tg/1O1qV7ZHVPjDuyzHx+fw2z2dAkOqSpRw0hxsumxxLhkj76CU24lyC4FVVpW0jXpc ENTP1kWufNMAqfOEGDOpkejtOqSRaEYcR16jNXMexYgSxyZq5gW/Q5sfxFO0BDbtQaQ5 5rNAfV9Spw3g9IA6T/zKuBLhj3887bowzOIkpmeTUXEn51ltOUOc7SCAqVFzdnlxFbnq awvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=/b8Hyu5okmbOwrU5wlg8yWVuBIFyfNJm3ndaU9U3CXQ=; b=e42irg2JsceF/56Q2DIvaxii9XcF4TS9WTRT80gKs14aI8BsaVRvsGrfhYoVEx2LQM nKWzSZs3DXuuCFceP7YoODVHifwQfhXuOehaEG1G9z+KsVjeNWXvMMutgWlljyz6DRNq 0F81j/h5fP93LI/JFmF3DWdrJpmnvMPkQxPlU0wKNxSNf52w8tmJajaRUcWW87UnCUe+ tn5XnKRPN0EczmWhjqgSagnN+j8maAVMVY7vI5Sh5XgOcmc4yZ1jqt+gd9zdZ1eKzSnZ UNiYwvrR247+6Ha8wa1b9fK3e1ZOrYwlhUejCmLVc9myxKlGlR1YUPwu21dbdVb/b7SY 76qg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u24si6948617ejb.527.2021.01.26.04.48.06; Tue, 26 Jan 2021 04:48:30 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403796AbhAZMqt (ORCPT + 99 others); Tue, 26 Jan 2021 07:46:49 -0500 Received: from foss.arm.com ([217.140.110.172]:59324 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391803AbhAZKDu (ORCPT ); Tue, 26 Jan 2021 05:03:50 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 07718101E; Tue, 26 Jan 2021 02:03:04 -0800 (PST) Received: from e121166-lin.cambridge.arm.com (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 73F8A3F66B; Tue, 26 Jan 2021 02:03:02 -0800 (PST) Date: Tue, 26 Jan 2021 10:02:56 +0000 From: Lorenzo Pieralisi To: Michael Walle Cc: linuxppc-dev@lists.ozlabs.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Minghuan Lian , Mingkai Hu , Roy Zang , Rob Herring , Bjorn Helgaas , Greg Kroah-Hartman , Saravana Kannan Subject: Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver() Message-ID: <20210126100256.GA20547@e121166-lin.cambridge.arm.com> References: <20210120105246.23218-1-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210120105246.23218-1-michael@walle.cc> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 20, 2021 at 11:52:46AM +0100, Michael Walle wrote: > 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") I will have to drop this Fixes: tag if you don't mind, it is not in the mainline. Lorenzo > 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 >