Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp265419pxb; Wed, 20 Jan 2021 06:37:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7YPzIKhW8iGTNIy9bwa+lOSagQv5rqhG1b/tsOYGFE0OklI26tsr99s6O2F1QNNe9Zsro X-Received: by 2002:a05:6402:50ca:: with SMTP id h10mr7466864edb.181.1611153469869; Wed, 20 Jan 2021 06:37:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611153469; cv=none; d=google.com; s=arc-20160816; b=L/BKsJuPksL2HqEWaE98t3UB6xMxffuhL9Fs1t/JzlZhEDT8lMsa009txcuPhJkG62 GuPChyQXxhM1BKolw4dAvlIDZ8/DzZFHq0yGY6jkpAqvRw1xcwBsf7I+t1TlZ1lr7BPm ASK5H/oR69tLh4ERW3KFkzWGwyEFc05IPdCYcrqEyShfAjhNLJXvH2lgksdRkekRHEG7 fJzZzoG7puzklLO6f5ZNKO9mPeEPG6MkgraSoOold0l7Ox3B8U0RMPYE+Qp1mm9xtTPw Jwa/0vru3ZIb+J0fUM9eRVX6TDNLB3qJn7OGFetGirya0MmLEONJhYH1EGc5mSMCXqxB pKUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=uIL4oB8ZcnSxt/YQ0XCBhZaWhSDclboytHJhthAj3F0=; b=A/WdMUuB8ncIY54S98NiGnBp4OsIPEOa3ADo0yFsN2oIJXEXhWoLY9qc/5csAmr+Dz 2q+OmjhVlfDe2we9+61tt/+nfCSs9sbA5bbTb6IWWGm53Q6fI7piTpEDxZsg1SjIBdiV Au4hQxAnwRJvHZsl3fNgFKAXDjAnNUcdwjj4mzYrilt6Q/ZuwvIwZPmjV79yd0ZZ04zB 0vxzDcL7EMF1Jp/50f+pWZziS4Fn/Z61GeUwXuBLEnafPHZQg1yzSPbj8A7xT0ZQsSdw M2Ctv/FsTXQzh6PPSQsVD1YBWMEUpLN0evWMAbJz+BRhegj3TGFp2ifmGfBDdqex1zP4 kAaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qkReOQio; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si732933eje.445.2021.01.20.06.37.25; Wed, 20 Jan 2021 06:37:49 -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=@kernel.org header.s=k20201202 header.b=qkReOQio; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390638AbhATOcV (ORCPT + 99 others); Wed, 20 Jan 2021 09:32:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:39318 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728897AbhATOYz (ORCPT ); Wed, 20 Jan 2021 09:24:55 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4E34523380; Wed, 20 Jan 2021 14:24:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611152653; bh=0Xtz3tkNSwsoY9gbgqE2qTK7eRaJcR+iJ9o+tD1IB+c=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=qkReOQiov9zXiYg96avLVaWfdyxpxanbJ1uYevLhphyxJQkpBe8s27GEbJCpbLClv Pmp53G/9+dTzLyTCKYMrBzb8Oeb0ty1Fn8tuBSP3TAltZjQLhY7enM0IaALUq7ljAb OvFYsUMQWyyYb3CafYK1WdyJvB69e9p2x6zbI07cLivlmcqDQ2fUutAbQjXxKJFdpM BdRDy0IV1M/fByAQVJdkREme6VBxXklgB99icNJAtj/fVEvRxXLZIeJdNZJoTBS1N9 ylED35lcHlOWjzm8XRXYvWs39gy8h15E+45MTK0vsKgE0SRUa2IS+L1nwwvAYSM7vY kyuWhg6uFbW6A== Received: by mail-ed1-f42.google.com with SMTP id b21so17132868edy.6; Wed, 20 Jan 2021 06:24:13 -0800 (PST) X-Gm-Message-State: AOAM532xn2y+PkWUJSOlzhj9N3RKFfofxVFsjBT/MjQIK7GvMHyUCIq7 8PDv83EOjBahZZkmOhlr9FUMs1jpJO0uVzoL4Q== X-Received: by 2002:a50:fc04:: with SMTP id i4mr7590319edr.137.1611152651919; Wed, 20 Jan 2021 06:24:11 -0800 (PST) MIME-Version: 1.0 References: <20210120105246.23218-1-michael@walle.cc> In-Reply-To: <20210120105246.23218-1-michael@walle.cc> From: Rob Herring Date: Wed, 20 Jan 2021 08:23:59 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver() To: Michael Walle Cc: linuxppc-dev , PCI , linux-arm-kernel , "linux-kernel@vger.kernel.org" , Minghuan Lian , Mingkai Hu , Roy Zang , Lorenzo Pieralisi , Bjorn Helgaas , Greg Kroah-Hartman , Saravana Kannan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 20, 2021 at 4:53 AM 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(). If builtin_platform_driver_probe() doesn't work with fw_devlink, then shouldn't it be fixed or removed? Then we're not fixing drivers later when folks start caring about deferred probe and devlink. I'd really prefer if we convert this to a module instead. (And all the other PCI host drivers.) > Fixes: e590474768f1 ("driver core: Set fw_devlink=on by default") This happened!? > 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 >