From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amir Vadai Subject: Re: [RFC net-next 0/3] devconf: New infrastructure for setting pre-load parameters for a module Date: Fri, 9 Jan 2015 00:28:21 +0200 Message-ID: References: <1420730220-20224-1-git-send-email-hadarh@mellanox.com> <20150108164618.GA11696@kroah.com> <54AEBA28.1030301@mellanox.com> <20150108174707.GA13218@kroah.com> <20150108192513.GB1961@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Amir Vadai , Hadar Hen Zion , "David S. Miller" , "netdev@vger.kernel.org" , Yevgeny Petrilin , Or Gerlitz , "shannon.nelson@intel.com" , Doug Ledford , "greearb@candelatech.com" To: Greg KH Return-path: Received: from mail-lb0-f170.google.com ([209.85.217.170]:57081 "EHLO mail-lb0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932116AbbAHW2W (ORCPT ); Thu, 8 Jan 2015 17:28:22 -0500 Received: by mail-lb0-f170.google.com with SMTP id 10so5362940lbg.1 for ; Thu, 08 Jan 2015 14:28:21 -0800 (PST) In-Reply-To: <20150108192513.GB1961@kroah.com> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Jan 8, 2015 at 9:25 PM, Greg KH wrote: > On Thu, Jan 08, 2015 at 09:14:32PM +0200, Amir Vadai wrote: >> On Thu, Jan 8, 2015 at 7:47 PM, Greg KH wrote: >> > On Thu, Jan 08, 2015 at 07:11:04PM +0200, Amir Vadai wrote: >> >> On 1/8/2015 6:46 PM, Greg KH wrote: >> >> > On Thu, Jan 08, 2015 at 05:16:57PM +0200, Hadar Hen Zion wrote: >> >> >> Hi, >> >> >> >> >> >> When configuring a device at an early boot stage, most kernel drivers >> >> >> use module parameters (the parameters' settings can be determined in >> >> >> modprobe.d config files). >> >> > >> >> > Which is a bad idea, as you have learned :) [...] > > But you are talking about loading config info before the driver is > loaded, which goes backwards for how we automatically load modules when > the hardware is found. I guess you're a busy man and getting tired of my nudges. And it is ok with us to make it a non-generic solution - so I won't bother you much more... I would like to understand the arguments here: Maybe there is a history that I missed - What are the arguments against having a config info before the driver is loaded? Assuming, that it will make the driver loading process simpler and faster. Thanks, Amir