Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp471479pxb; Wed, 20 Jan 2021 11:28:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4gB3HHz32aBERcwz3IH/TOqOO/xO/AkXgWVXfwkQzHR1x+Qdz+PyUNY2ordbl451t7nTG X-Received: by 2002:a17:906:7f98:: with SMTP id f24mr6978629ejr.75.1611170924660; Wed, 20 Jan 2021 11:28:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611170924; cv=none; d=google.com; s=arc-20160816; b=iLZ4J1hPeOQ/Y9lj5v93S3wddq75koWyAWwoVaFxKNQ+g1lRsykRkDu2a2im94W+L6 dZdF5nramjDeVLgY2GEkik9OJnMOQSmcjj72UbUJmHw2hE2nrvruVGtnn4KpWujthzvr 4BrKGtBl5pIR2DXtCIWGEMQ9Ybcvit3leykAzKkt3irOpfCNnSJNG6WmTL/X53q/4wrr nw+0C1fzVOHcX1emYWco3ZwONw9SovMAOX3WQCQBikME+w083ph/62iakISmSLwW6sIt t1R2cNkdtOprweoIb1lkYrLWxqpZh0FSgIYSj+i5oTV222xuSd7S4tj+062sG/v+3g2e PdIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=8Ob7KUwKuR0nwFPm6ISDKf74WkwKvOKiqWXqn3cjXq4=; b=Mufvvb0WuCBsk2MWwnZ9gpcPwiKS7lPnNCVo7XTbrgy54eOzZ3bId0oBDu9pRlWyXV 5O7aUakbbUsDnvIs0IC94MJl9q+LosvVNz3p2eZzvLE+PeZmOFk4WljOO7kLVkzEZvER M7nlbX1A2fHx3KHKKZJyfcr5slTWu+KbFL2qqPxTi5kM/OcEWlNuxd+WY5wB1TnHLjVQ OgjvKAwueOx24Dqio5O4BXElAuwRPWEk0CB7M82PYIpO8KT4bX/YOEw0M4MH6ZEt4htZ 2VpsRPsaCSF5jGfeukkVlmVmzzIi27se5NciwVw6PNU87x1ET3h2m0ZEMZgyGFh8Sdvl 88Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=miTTwPJ3; 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 e19si1307529edc.566.2021.01.20.11.28.20; Wed, 20 Jan 2021 11:28:44 -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=miTTwPJ3; 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 S2392523AbhATT1Y (ORCPT + 99 others); Wed, 20 Jan 2021 14:27:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392433AbhATT0a (ORCPT ); Wed, 20 Jan 2021 14:26:30 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E12AAC0613C1; Wed, 20 Jan 2021 11:25:49 -0800 (PST) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 27EE622727; Wed, 20 Jan 2021 20:25:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1611170746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8Ob7KUwKuR0nwFPm6ISDKf74WkwKvOKiqWXqn3cjXq4=; b=miTTwPJ3DtMSDIJ557R+SQ07RWGLYMYbiHcOHy/FBwqEOPhREbpehfwHDCrQ1LUSLmRfIQ Gv/SFl3qrWmnvAEQl1eh+Mtx3U9pOR+3PjPlrugHpuLdvZxxeAhu0ZZNdKS317cRghifnO rcfP8XLVRxq17yPcSoiTiTE4L/tdBpY= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 20 Jan 2021 20:25:45 +0100 From: Michael Walle To: undisclosed-recipients:; Subject: Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver() In-Reply-To: References: <20210120105246.23218-1-michael@walle.cc> User-Agent: Roundcube Webmail/1.4.10 Message-ID: <66e4bf55b2809893ad9c87458c170f99@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -michael