Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp485722pxb; Wed, 20 Jan 2021 11:53:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLYNoRW9xXolW9AggHHDsMiVFoC8V10MxzXABCO+KooqTGaM9WJXahkAIp/YelJUsIfXl5 X-Received: by 2002:a17:906:4893:: with SMTP id v19mr6992640ejq.454.1611172415307; Wed, 20 Jan 2021 11:53:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611172415; cv=none; d=google.com; s=arc-20160816; b=ZcKHyMzcIRKTB6jOUtZaY1or9L/UTULnekIPvsJRJyS3N0EkquUIcVzUauolzLmMAr NRzPzjEc+L5QIYer7pKvqDr21UMQR7jXzP1/qXsYD9M8ZIcMt1LUVjMwym0Px0U7fdiR 9+S8lNwx7BpelV9E2V9ihXbZkB/A6jFVbLqXugjaSvL4QuqKCId8UhfQEeDxO/eTDDmj wSlxCFXD5mZoZnxV0JGo1ET+442edsHiYN59j0OgyYZWJNrGyas9cPlb3qJ1v23GuA6j 1yl6bY27H8C6mtMGAHYwauOVODIzXV0dfohUGwAY1YVy17WU79w+CDuy4e8dxy2t/zRb fogA== 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=Z+VKdic9vQLplZ5dRDPFBsqTAKEx7zvAEih/IIGE3o4=; b=0f3fiD5JRc7/3kgWXQcbkajnw+Lo/El8DnnSJrI4sYj1SrMnLbGEXpl8POokuFKI2S RWs4Q4mlXRMb7y6mQ3Cy6/ZpxJ3sSXBuJRr6ToZxC5JsztKTHAc30sdKplUTa/i68Db6 9YDuRkMNZ6Xh/U/iGQB95lKFv7WafZMtkPhRuJq/kEMRGzfowcMrqi9LtBB2XKhc5RU1 lc8jBMoyGDaLXZA8ZKAt1/vYYs83EnN6/TyEKpjARHW8aIRYehXa22LqiECKm8q4SQvx s/AJGv24qOU91SbwcVGxbHaS22EpUTRamb1P96NC8TBtHTDogghx+9axNN7B6y8SZtC9 2TQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="gqXXWU/D"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si1021241ejj.332.2021.01.20.11.53.11; Wed, 20 Jan 2021 11:53:35 -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=@google.com header.s=20161025 header.b="gqXXWU/D"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392782AbhATTuL (ORCPT + 99 others); Wed, 20 Jan 2021 14:50:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392658AbhATTst (ORCPT ); Wed, 20 Jan 2021 14:48:49 -0500 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12370C061575 for ; Wed, 20 Jan 2021 11:48:09 -0800 (PST) Received: by mail-yb1-xb2d.google.com with SMTP id k132so13448580ybf.2 for ; Wed, 20 Jan 2021 11:48:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Z+VKdic9vQLplZ5dRDPFBsqTAKEx7zvAEih/IIGE3o4=; b=gqXXWU/DUfCRlZqg6VB4WrIPdIGgIy2FpoB64Tw6CtQ1jL1wrLFZqp3MrEbrMBYGiZ N4/i+WbY5NkRoGQ0TOQ8gSx1H/xButR/QyThA+B2Gz/O5XBV3DuftVSBSZBLeyg1OLU+ UOnY3ZnpvA9fS2hSivgKSdxrfkTqrNLOncrFUlwoHemuKABuY67DntKltT3SJx0D9dWo /9pBl19rfoJS1N1WX6MM6xVcEDMYzyaqXAJ7Q6wXNhN/hh/u8nnQojbYlYlOdnqtABHz lhAfatORzVUNAHTBDkjRB1KD+A8zB99tvQ/Y4CW0lF2FN6Oz8vdPn1HEE/kgKprBbKFe sZcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Z+VKdic9vQLplZ5dRDPFBsqTAKEx7zvAEih/IIGE3o4=; b=ApxUIAkiUqzJ6X2Px/BV7+D5mE8PF1+IcdmEYoU+uCODqszYaV41rHq7Uo1yZ9qFct 5E9Nhx8+wkohYoGvmmjiUs7VG9nh6goT2gT2lCtfgDHgpw++vSV3pjm7fFvfnnEYuC1s Gr+jyWfmJA9EpMjcjFHY52/F0ZLvHMvHS4MI69/CduMK629nuitlKwuWsswrVqPm3bTu pDFjF3zBDnzjPUMwTJt/FA5K+h7qhpOpKnYc3RdRwG6nghWVbNEb0yu8YZOf6UdzcvU/ hJoRm5IqHWi+9eORwrBnxIMn4komiIaW4HhjrKHe6ecbCI9L0s+7nrbzOjTNi3ZnLFCT Kw9w== X-Gm-Message-State: AOAM5335ks4k3ylowWTQlu/aUW6n8cueD6Pkam2IyoQYv6XplJS5XHok qukfV6TZOWlBIcCtAx5yWE6mGh8UTtDX7yvaq90Obg== X-Received: by 2002:a25:77d4:: with SMTP id s203mr17677961ybc.32.1611172088185; Wed, 20 Jan 2021 11:48:08 -0800 (PST) MIME-Version: 1.0 References: <20210120105246.23218-1-michael@walle.cc> In-Reply-To: From: Saravana Kannan Date: Wed, 20 Jan 2021 11:47:31 -0800 Message-ID: Subject: Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver() To: Michael Walle Cc: Rob Herring , linuxppc-dev , PCI , linux-arm-kernel , LKML , Minghuan Lian , Mingkai Hu , Roy Zang , Lorenzo Pieralisi , Bjorn Helgaas , Greg Kroah-Hartman 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 11:28 AM 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. Yup. That's pretty much it AFAICT. builtin_platform_driver_probe() also makes sure the driver doesn't ask for async probe, etc. But I doubt anyone is actually setting async flags and still using builtin_platform_driver_probe(). -Saravana