Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3414866pxb; Mon, 25 Jan 2021 15:59:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1Tne95699J3UweTKlm7f0wj9tj2bDPIAtTliozugMwvAbZ0oolhfktIL5Pe3PbUsSyur/ X-Received: by 2002:a17:906:1f03:: with SMTP id w3mr1826024ejj.463.1611619141236; Mon, 25 Jan 2021 15:59:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611619141; cv=none; d=google.com; s=arc-20160816; b=tT/Ab5ESRbhTKAeIlWw4bhNBvReutNJEoUm+SpFUTzp8uqW3QD1iADk6bI+iWWYfFK 87kxox4Ivw/IhHGaxv+72fOHFkfV88NDcSDo9q+wpJSw7fmDInwlgUi30yM7CvTVz5vd 9+yztGLm3J6D6nnizauay+uSxQ/qh8bQU8X+CCwyusTgYw0wc2sMG/UGGvOL6m70GKw4 awUtc7lwBvAeijAy+A1N+Ek0jgT07Brcit2DsYdPeMNS9jB69tJN7/hfN6dZiSymq+gz MoOK1aCKusudsmK6uAwTBEyfF+NshMd5iWVdcm6UfNoQ+3hXilp/5NwiXfmSWLm8W08s f5bA== 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:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=6If+MuA7xMjVjPkj+ScYzphIBDiMZs5ah103gQQWTRU=; b=REEztfDHfNCkDnwyxCfSyzsgaqw1nwc/ZOwCCmhJgkebCseKpv9nCs7f2kmVP5SR54 XAz3ssUL/ncNcYJF4BGFF+9/w/ML+x2eavE5HPpC/M5oeDJHbcIeLRG3pAOPKYDLPZAJ /15Xx20YMVFG7a3Um98sU2JzJnN4tzVIyE+ovCuxHIHjN0Qr7GoHtJZSta0lSbeU2LlE d1kcN2PdqBs392OPDd8Iq8NyhQBeIZ0Vp7To6sUyUm3HCq8Z75G7AGg5SJHLwOo1LD1f IZOqklLfQcVryxfyx3/ellDKCg+ZRtgCA7dBlLr1oSp2TA0C78ul3oHrl9Ex/UsQ2lvD bYSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=Ynwg8u+t; 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 r15si8155131edm.476.2021.01.25.15.58.37; Mon, 25 Jan 2021 15:59:01 -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=Ynwg8u+t; 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 S1731500AbhAYXzn (ORCPT + 99 others); Mon, 25 Jan 2021 18:55:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732014AbhAYTpW (ORCPT ); Mon, 25 Jan 2021 14:45:22 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 376B8C06174A; Mon, 25 Jan 2021 11:44:38 -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 55F2822ED8; Mon, 25 Jan 2021 20:44:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1611603872; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6If+MuA7xMjVjPkj+ScYzphIBDiMZs5ah103gQQWTRU=; b=Ynwg8u+t+4ehPbQ/ZynTIQmrV+t43/QDTOMm4j884O+3dbfozohojiqWzcwElFOaFmRTgv 2ZSGJvv+2x3vaGckP6AO0wmdy5s3mb2Fn3t4zXO7s2wMJFgQOIKPN6UCf44FWmq7JnKnIP BVQw5Ta+4DdNG5wKOpDWu48T169HqYw= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 25 Jan 2021 20:44:28 +0100 From: Michael Walle To: Saravana Kannan Cc: Lorenzo Pieralisi , Rob Herring , linuxppc-dev , PCI , linux-arm-kernel , LKML , Minghuan Lian , Mingkai Hu , Roy Zang , Bjorn Helgaas , Greg Kroah-Hartman Subject: Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver() In-Reply-To: References: <20210120105246.23218-1-michael@walle.cc> <20210125165041.GA5979@e121166-lin.cambridge.arm.com> User-Agent: Roundcube Webmail/1.4.10 Message-ID: <40251e6b610897639e2e08fec87c73b3@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-01-25 19:58, schrieb Saravana Kannan: > On Mon, Jan 25, 2021 at 8:50 AM Lorenzo Pieralisi > wrote: >> >> 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 ? > > No, please pick it up. Michael and I were talking about doing similar > changes for other drivers. Yes please, I was just about to answer, but Saravana beat me. -michael