Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp881358pxb; Thu, 28 Jan 2021 02:40:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4qOYtnhi4nGz3qB36wpdFOL/5J1kZOZcU1r66Q/SKitmKmE2rmt/v3miQEHQWCvETTqxa X-Received: by 2002:a17:906:dbe7:: with SMTP id yd7mr10468585ejb.71.1611830419901; Thu, 28 Jan 2021 02:40:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611830419; cv=none; d=google.com; s=arc-20160816; b=q3DQOrqjNRH9UH8SURImZdEKuUQphMAZnHVepYY6ZjX26WUk0WtXZbRwZwUfVzjAoA 4i8Z85uK68E3BrDz9BFW+mWToi7XVUeaEwrNwwU0f29qncvu6/0fZWlDw8+Vv+VGYHu4 E5oI14RU00/4aAp8KwXOJrDz9i9myEopp2VMABGE2P1UQKioSQTZVfuKwx8gGDFUWlVJ gm8oa/HRDhD1jbjhfRYQADfkX0uj+91Lzb8ld9vCVG5PoT1qKLryUPzNjl8yOqEMhmdq uf4/YvkvOIWNHkDwBdLz0El3mSwLmj9PXbHTrRiDa4t9QnYRQs4dkL5M3t0Ww2HH9FaD kv7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=74rqfnUJfF5Cd43Qr7QUrGwcuADtO4jQLr8P1sozMGE=; b=uwiPwv+80k461uQTU2PIcBHSRsL+fB/UQCp6ABhqGTIHWJOtfX2PJKQIugDmRXKIV5 BG1aqOLxrobCt/lSG4ZAlvxl9BD8oPJhHFf7eJkEZZMWyMSLtZT2nrtY/1YuQ5gjz6Ti MyQkvT/B3U4xBRI9j1G13IupnZmdd31O7uDNOxqto5J+TbUXC9yg0aWCW9D0Brwh9kES NmYo0fSxCam5nXMh0u0Uz3KRii7vXZ/E2jP++1FGBNMuqPB9tULvPVl1qN/CuNf66VKW rj/Bu0w78aAuhIOaBFHTAGgyW7JeamWhZnZe32nkSj7x7VDNZR97lel8rmGKKt+gU2LZ x5Rg== ARC-Authentication-Results: i=1; mx.google.com; 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 d14si2129670ejc.30.2021.01.28.02.39.55; Thu, 28 Jan 2021 02:40:19 -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; 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 S232361AbhA1KgU (ORCPT + 99 others); Thu, 28 Jan 2021 05:36:20 -0500 Received: from muru.com ([72.249.23.125]:54012 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232484AbhA1KgI (ORCPT ); Thu, 28 Jan 2021 05:36:08 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 6A61380A9; Thu, 28 Jan 2021 10:35:30 +0000 (UTC) Date: Thu, 28 Jan 2021 12:35:21 +0200 From: Tony Lindgren To: Geert Uytterhoeven Cc: Saravana Kannan , Roy Zang , Lorenzo Pieralisi , PCI , LKML , Minghuan Lian , Michael Walle , linux-arm-kernel , Greg Kroah-Hartman , Bjorn Helgaas , linuxppc-dev , Mingkai Hu Subject: Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver() Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Geert Uytterhoeven [210128 09:32]: > It wasn't. The regression is that the driver no longer probes at first > try, because its dependencies are now probed later. The question is: > why are the dependencies now probed later? How to fix that? I'm afraid that may be unfixable.. It depends on things like the bus driver probe that might get also deferred. As suggested, I agree it's best to get rid of builtin_platform_driver_probe where possible at the cost of dropping the __init as needed. To me it seems we can't even add a warning to __platform_driver_probe() if there's drv->driver.of_match_table for example. That warning would show up on all the devices with driver in question built in even if the device has no such hardware. Regards, Tony