Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1139231pxb; Wed, 10 Feb 2021 00:38:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2bJBNTawz8qeZlZtEaDF0NDuLN0xOugOmWHNCb6gn8YsU2mvjfJaB/IQGFlIP8zFNlCoG X-Received: by 2002:a17:906:8252:: with SMTP id f18mr1925579ejx.418.1612946285772; Wed, 10 Feb 2021 00:38:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612946285; cv=none; d=google.com; s=arc-20160816; b=Acg9guoGMCj0fosKcLqpwCj/iUxddSQu+H9thFVyk+MaiZcRclva/Rb15FMrm6vDXZ +1RbQY5VCwGfteDg20VOx1XmIgI9LsZHoT/FXdImqjJtyJ8bJUjUvz9OczYESLD6tRak QvTynO+6gSvd285CafYuTKEejkcquBVTHFPTMUhQUDrILqqrn3+cCxo7sWTdtDaj7g+X uhJdOFCXNgyRetkX3GDKZb9LL7P0IbqzNDi/if6TATKUni3rXns+Yh09uIjVC9mzaN/1 KRBbPMDbQkgWgaBDJ91AeeuOInxsYbJ2qf7dr2k0Zxc0/I6zoT6lVx0To+uXqCgUKuRb llww== 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:dkim-signature; bh=rVWFF5G/zVPSwCNR//sBS2SqwjqpyqoD78nN5yL7Lnw=; b=ast7WNTsfAn3rH4ObXAJRQjVjJE9VF9p+rK6TV8ZVrVAoWjO343CixJIWwFsk5Z/xj /3j9BGFWGYY2trW7YasGutWZ7IcZ4EkVBuexrgNH6z+NSTniVI87gGwzTSw5lwE6M+9k qW4lFVnDErjKeK5YY7nA4SePOC2Pr9kNJm8xt+J0OVC0480Rt7poIWWJ7UZHrJcFbDdn B5nlNGAVGIsC28OjgifUGiFuqQzz/eWxfUVIF7mUtxZUqNmd7lXBiqrYbX5CqmerJPtd tDXhjz2CboiF+q3d/mKO7Zmz3AThtGk8BDEKykXzzMmh3vpJ/OOpiKWhFOkEExZr5O+C Y0xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rQ8pl7Vd; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si984192edj.330.2021.02.10.00.37.42; Wed, 10 Feb 2021 00:38:05 -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=@linuxfoundation.org header.s=korg header.b=rQ8pl7Vd; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232152AbhBJGp6 (ORCPT + 99 others); Wed, 10 Feb 2021 01:45:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:54376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232119AbhBJGpZ (ORCPT ); Wed, 10 Feb 2021 01:45:25 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8081864E5A; Wed, 10 Feb 2021 06:44:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612939485; bh=WiJgk07TjCR04Om+mu1V8PUBj7bUlsePiOX3zbKELQQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rQ8pl7VdsfhFHG2MDQgVn9vPy7eSUdqFR+mEXDRJprkn+CDzEMZdCo1xkQEbetz1w M2ZopFZldg8qxyrUHnaiQKeptuzlDz6sStBEkUll45VP3UYF+oGheptFi/RvyyQ4Me wEwuTZVO+WIj3WGH7H7qrEqQx8R9YMJo9SLrtbMQ= Date: Wed, 10 Feb 2021 07:44:41 +0100 From: Greg KH To: Dan Williams Cc: Dave Jiang , Jacob Pan , Dave Ertman , "Rafael J. Wysocki" , Linux Kernel Mailing List Subject: Re: [PATCH] driver core: auxiliary bus: Fix calling stage for auxiliary bus init Message-ID: References: <161289750572.1086235.9903492973331406876.stgit@djiang5-desk3.ch.intel.com> 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 On Tue, Feb 09, 2021 at 12:01:06PM -0800, Dan Williams wrote: > On Tue, Feb 9, 2021 at 11:16 AM Greg KH wrote: > [..] > > > diff --git a/drivers/base/auxiliary.c b/drivers/base/auxiliary.c > > > index 8336535f1e11..53f93a506626 100644 > > > --- a/drivers/base/auxiliary.c > > > +++ b/drivers/base/auxiliary.c > > > @@ -270,7 +270,7 @@ static void __exit auxiliary_bus_exit(void) > > > bus_unregister(&auxiliary_bus_type); > > > } > > > > > > -module_init(auxiliary_bus_init); > > > +subsys_initcall(auxiliary_bus_init); > > > > Ah, the linker priority dance. Are you _SURE_ this will solve this? > > All users are module_init() today so it will work.... today. The > moment someone wants to use it in a built-in driver that uses > subsystem_init() it will ultimately be chased into driver_init(). > > > Why not just call this explicitly in driver_init() so that you know it > > will be ok? Just like we do for the platform bus? > > Cross that bridge when / if it happens? Let's fix it properly now please. thanks, greg k-h