From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Jenkins Date: Sun, 16 Aug 2009 08:46:15 +0000 Subject: Re: [PATCH] rules: avoid reading DRIVER for devices without modalias Message-Id: <4A87C757.8080004@tuffmail.co.uk> List-Id: References: <4A268DF5.2030108@tuffmail.co.uk> In-Reply-To: <4A268DF5.2030108@tuffmail.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Marco d'Itri wrote: > On Jun 03, Alan Jenkins wrote: > > >> DRIVER requires a readlink() in sysfs. The MODALIAS key is provided by >> uevent and requires no additional read. Test MODALIAS first. >> > What is the point of checking both DRIVER and ENV{MODALIAS}? > The Debian rules files always checked only ENV{MODALIAS}. > I think the idea is to avoid calling modprobe if the driver was built into the kernel (or the module is already loaded). Alan