Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3626882pxb; Mon, 25 Jan 2021 23:56:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJytd/einbpGX14hC0pJj817S4xZJvMO6f+xGQRnyl60uX0ANfmuAWvzsTWGsbzss0CTgP5J X-Received: by 2002:a17:906:2e9a:: with SMTP id o26mr2687314eji.77.1611647817644; Mon, 25 Jan 2021 23:56:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611647817; cv=none; d=google.com; s=arc-20160816; b=0n+tYyPPUHSjbDxI2LuVM/6BIwJ85a94se64w76K+gsv7Dii4H5UQ25GVjC8H36gl0 pwtsGQ/SWTl6+g42OBv65P/V383lcIZFwVVmfDyl/tlFvhroshT7VCQPE+mxoBr9SVM3 Jxp2H+X9vBcieRuUhZRhBuV9VMFTZGo3SGnzQKZysDsC4AcNkmmMCLnvPBOk8goaSCb0 zbsL5ckeLaAPGmiy01uUVGcAUSAWIdIFLXScaW2DkzgemnDBnO+WeahYn2ucNEBnRDNE L7boQD1SOVAsxwLd605YzfAaebfRgmNADs61K69uX3PH+EnKbNdoAZPoajQumIa8180L Ov0A== 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=f4ItPd+AvvDvpg1f2UzW3DWdLvMsOkg2szSbd5U+Dc4=; b=Y4Ye+pbRwZ7Bvknfy10eDpZJgokfyIkiQOz8EnzGzqz1B5Ts4cWbI9Cuemd6CcOlQ5 0gsX37Yz+5rm9qlncqAYKqFdNeXcWe/63Xr/xhCNCm9Pugq5mK1/Am/WFolECCP37oAh UIwGBGz0GvUxIx2aEANCEoX3mbM8E4fnPDAIVEwdysB35SJePivF1PP5sTl94eEOrGy7 POuBng5ekKCTyRkAl6UCwj59qWoPEEiPGZCNbSCH7fRmoZXz1vC59q6o8xUWm7rBESx3 orGd4zf3Txa2/+Z3n96BKtH6JUJV+v/ttC/gldyUzR8WHw7ZOnt+G7C9Y760XjROqssW cqfA== 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 g1si3592041ejf.121.2021.01.25.23.56.33; Mon, 25 Jan 2021 23:56:57 -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 S1729435AbhAZHzA (ORCPT + 99 others); Tue, 26 Jan 2021 02:55:00 -0500 Received: from foss.arm.com ([217.140.110.172]:51616 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727927AbhAYQvo (ORCPT ); Mon, 25 Jan 2021 11:51:44 -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 18AD511FB; Mon, 25 Jan 2021 08:50:48 -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 874043F68F; Mon, 25 Jan 2021 08:50:46 -0800 (PST) Date: Mon, 25 Jan 2021 16:50:41 +0000 From: Lorenzo Pieralisi To: Michael Walle Cc: Saravana Kannan , Rob Herring , linuxppc-dev , PCI , linux-arm-kernel , linux-kernel@vger.kernel.org, Minghuan Lian , Mingkai Hu , Roy Zang , Bjorn Helgaas , Greg Kroah-Hartman Subject: Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver() Message-ID: <20210125165041.GA5979@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: 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 08:28:36PM +0100, Michael Walle wrote: > [RESEND, fat-fingered the buttons of my mail client and converted > all CCs to BCCs :(] > > Am 2021-01-20 20:02, schrieb Saravana Kannan: > > On Wed, Jan 20, 2021 at 6:24 AM Rob Herring wrote: > > > > > > 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? > > > > I was actually thinking about this too. The problem with fixing > > builtin_platform_driver_probe() to behave like > > builtin_platform_driver() is that these probe functions could be > > marked with __init. But there are also only 20 instances of > > builtin_platform_driver_probe() in the kernel: > > $ git grep ^builtin_platform_driver_probe | wc -l > > 20 > > > > So it might be easier to just fix them to not use > > builtin_platform_driver_probe(). > > > > Michael, > > > > Any chance you'd be willing to help me by converting all these to > > builtin_platform_driver() and delete builtin_platform_driver_probe()? > > If it just moving the probe function to the _driver struct and > remove the __init annotations. I could look into that. Can I drop this patch then ? Thanks, Lorenzo