Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp473128pxb; Wed, 20 Jan 2021 11:31:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzO6DugMWnUjRBN5ZkuIJOjpQNpN+AlOEYH0h62CvO/McSv0Js8E0kfu/4cpJ5c/RE3WTGy X-Received: by 2002:a05:6402:1c0f:: with SMTP id ck15mr8244395edb.171.1611171080258; Wed, 20 Jan 2021 11:31:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611171080; cv=none; d=google.com; s=arc-20160816; b=quh7LP2IPV+NC8j0NOnTzkXEZX9zPNDjtXT6gmXzPV5repuQ9CqHnmMq4bydCKRYA0 3yO8GxjrOTJvAxwEH7tz7hw1F4mrbPtAzVnLoZzP4G74VRLh8boWLUe7bYGjmXgvT3o7 7kCsoe8r98w4zBziA9sSJJaAkDu9gJeC+Woc2MU5Vai6DHSTVVCZt9OipYat5+p3l/ms THsBMZ7mESwXTe1Dm7gugzse9x+07uaUCGLVyNdQR694e0TW6vL55Oe5Lamo0I1zjy3t w3FV1dyfdsiP6w37jDBCOxyHHjXYL0+Tg/VyTYSjYxjzPdAC8xb39uCxy5tlOT8WURE1 AFnw== 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=funa0VDSjChNQlG3j9dG7FuPG03v086iMYT7iNUMC9I=; b=OY5jUa+qldmnMUhzJESxLDffzENXqmEGgMNso92jqZ8c3mqcfaJXOgjHN/+NxiLtur XvsS8gopzSsyuOnxWqaHU0P+nUGnZ8hP3hU05mpUKI9GoxxjVrJevovfPTBzwXQXQHVY TYT1NEe5K3Mh3ihCvN4m1BRdqGfdJDaog7X5qvmciWdgwIT3wkNCIL+EJawLkWgpcpGs SJzZAMyUS5USibChPmCEl70VP+vjnP5UFo8ty2BkBV3CqqtpTsV2aRfjEpHWdWHS0s8I GOprcmclURhMhPi9cXYvJL4Qtwjwcs+lm+QC+4R2a0svTevgMJvsh7+A6zN8pGn3x8UR 0XSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="VJ2J/kWr"; 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 e22si1218292edu.9.2021.01.20.11.30.55; Wed, 20 Jan 2021 11:31:20 -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="VJ2J/kWr"; 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 S2392562AbhATT3e (ORCPT + 99 others); Wed, 20 Jan 2021 14:29:34 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:56615 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731366AbhATT3Z (ORCPT ); Wed, 20 Jan 2021 14:29:25 -0500 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 B93C222727; Wed, 20 Jan 2021 20:28:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1611170916; 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=funa0VDSjChNQlG3j9dG7FuPG03v086iMYT7iNUMC9I=; b=VJ2J/kWrEXengkVVYJf5GdKIDh/xQfdNBZQ04ik7wPGQwtIrFRJuNc9cQes6cOWobahgPY ZP3apLMd2zEy+z//XEw0eSwKYMzt/Co1sg31e8vXoafvlfy4yHT2M9uXXHcr09MWGj/Wny Y2x4Ubqsv5GXl2VeVSzanphVIp65sI8= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 20 Jan 2021 20:28:36 +0100 From: Michael Walle To: Saravana Kannan Cc: Rob Herring , linuxppc-dev , PCI , linux-arm-kernel , linux-kernel@vger.kernel.org, Minghuan Lian , Mingkai Hu , Roy Zang , Lorenzo Pieralisi , 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> User-Agent: Roundcube Webmail/1.4.10 Message-ID: X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [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. -michael