Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp487343pxb; Wed, 20 Jan 2021 11:56:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxsdiLjF+BEYqTc4cuYC3XZqF65fljUQMRK1CkB6aJF+Y+GrcbZhocoBnqffkCE51PGMQr X-Received: by 2002:a17:906:58f:: with SMTP id 15mr6981393ejn.67.1611172566069; Wed, 20 Jan 2021 11:56:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611172566; cv=none; d=google.com; s=arc-20160816; b=RLlQFqEWZG6LnjGvrJndcRUxHsJ92AcL2/sCn0/RCxeSOweY4Uq6cZuqnJ51AcOdGU xSPs1IDpZXqDQQ5z6lUJgXrc2OBSDxKq1HfVHfevjEBxzO/tXxmcunXiA1r3S269yNXo WEsJLHdIuAXOfYzrNrwH6wuCr2d2Dv+2Y34qjvBC3NFhznxCCHYIJOvHFM6ZFtVXr9kw ZHhIFaNTt3WETdmdqHMKVWXioASyyiG9l4IW3zHJmcLrrOaP/fIg3vXPQoocsBSl62Im 1DvZ8z2YcawOVWMU7L/oFxYJs4fEv7BIrRHfLud5XMzdWFVLkI6MR9xrnCvp+yL+GAq2 3+4A== 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=ObV+Zrw0ag3h+RPkcqP4IfhPjoMoAtg+NMqr3jjO+Go=; b=C5YFX6G4iWy5olwT4e4ZEijQjOqLvP9WiWx2EIe5WS/LI0BYspmSpo39+H7Xrrc9SU QE+4rMH2q2Nrd4yPirCnd21GlA/EufYYyAzoX5eTINEqXWHAZp5/q9S7ZjFklGPwOANf 89v1h463PmVDBPQlyA9htLImH9Pg+ovvjHfieJ3xIcLfN7B664G+wvs8SEr0HM9cnKLu j7jFEKV3KdJapCOZ/dH19XmFvsE4MqqOyeByr9/39Km5ymY2+t/bsLJi/N3GNBNyajuT zxrxecp+YKNKDkcHMbxxsqR5B5LnFQRBGN+a9ZeW7dD32+ryp4Xh6MU3dXbqKvYCuVEi 867w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="oC6SN/sb"; 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 bs18si1213020edb.447.2021.01.20.11.55.42; Wed, 20 Jan 2021 11:56:06 -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="oC6SN/sb"; 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 S2388438AbhATTvv (ORCPT + 99 others); Wed, 20 Jan 2021 14:51:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392785AbhATTtO (ORCPT ); Wed, 20 Jan 2021 14:49:14 -0500 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B944C0613CF for ; Wed, 20 Jan 2021 11:48:33 -0800 (PST) Received: by mail-yb1-xb36.google.com with SMTP id f6so20561404ybq.13 for ; Wed, 20 Jan 2021 11:48:33 -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=ObV+Zrw0ag3h+RPkcqP4IfhPjoMoAtg+NMqr3jjO+Go=; b=oC6SN/sbj4bIrF3B4GUuhs9TwpbLn4WPe1e9cjwF7wwmLDRIO7pF44hc+PlUUR5s6f BUa/nNUWktSkKrynSgljkxdDWgmOVVMVyk8uWzs3rc62W0hdOV2OZFhKAvCRrJue94uF dtTS6xLCZnR4CARQJgq3BQNQntv8GvoIMDidgambBPn09cfAnJTf/fW2G1wUUaSef+Lb eUdBgvApC0YkqmFU3YIk/cUwKzppcJs1fvb2jH3Mxq+LoT5Y1ONy+9CAcS/N9SgllEh8 BpR65N56lr1oYN/R2Sk1xRq0HxiULzg425ngiI8FJXDLpvPxGxLFwJJPKAUdWbIf3wHj w/dA== 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=ObV+Zrw0ag3h+RPkcqP4IfhPjoMoAtg+NMqr3jjO+Go=; b=EHTLbivbZvP3AlXER1tuT6ZuETwQ2T9WcSUWMW6EdXw3NW860019pScoaWjxBQyr3f d4UtoK6Y0mr1vIgcmfn8tARJqywRjPpk9cExObA7GBYZz+OFBG3MsF9bWVYOXt9L+ci5 rE6W+rgwg2lFAt13zsao6aqsrkEFsMdO/0vczSCEV46XLvSXbHdBpxJu+fP07YT50hXz tGZO+8DP/dq3MFeAe5J7uOogHWdXESoIxjrN5+M+nNhR81wbXp9V4Iy9OFEBeCeAxTyP DaE5bhPHB3OgyC7gNpc7rkCYzP6vvT6wstpscniN7bRn6RgvTHtldQwfvfRyMRtKJ8n0 RipQ== X-Gm-Message-State: AOAM530eMT75z+PgbpstW4QB062aMrXpdHWDlmAAktGhbyph/TKdtcjK JdoA4Ntgp10qKMHld5YWiCrU/xoH2xgmJeNRye9F17s4fPA= X-Received: by 2002:a25:b703:: with SMTP id t3mr17175535ybj.96.1611172112724; Wed, 20 Jan 2021 11:48:32 -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:56 -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:47 AM Saravana Kannan wrote: > > 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(). > And thanks for agreeing to help! -Saravana