All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rules: avoid reading DRIVER for devices without modalias
@ 2009-06-03 14:51 Alan Jenkins
  2009-06-03 19:54 ` Kay Sievers
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Alan Jenkins @ 2009-06-03 14:51 UTC (permalink / raw)
  To: linux-hotplug

DRIVER requires a readlink() in sysfs.  The MODALIAS key is provided by
uevent and requires no additional read.  Test MODALIAS first.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>

diff --git a/rules/rules.d/80-drivers.rules b/rules/rules.d/80-drivers.rules
index 7e13e80..2b68ddc 100644
--- a/rules/rules.d/80-drivers.rules
+++ b/rules/rules.d/80-drivers.rules
@@ -2,7 +2,7 @@
 
 ACTION!="add", GOTO="drivers_end"
 
-DRIVER!="?*", ENV{MODALIAS}="?*", RUN{ignore_error}+="/sbin/modprobe -b $env{MODALIAS}"
+ENV{MODALIAS}="?*", DRIVER!="?*", RUN{ignore_error}+="/sbin/modprobe -b $env{MODALIAS}"
 SUBSYSTEM="tifm", ENV{TIFM_CARD_TYPE}="SD", RUN+="/sbin/modprobe -b tifm_sd"
 SUBSYSTEM="tifm", ENV{TIFM_CARD_TYPE}="MS", RUN+="/sbin/modprobe -b tifm_ms"
 SUBSYSTEM="memstick", RUN+="/sbin/modprobe -b --all ms_block mspro_block"


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-08-16 10:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-03 14:51 [PATCH] rules: avoid reading DRIVER for devices without modalias Alan Jenkins
2009-06-03 19:54 ` Kay Sievers
2009-06-03 20:10 ` Alan Jenkins
2009-08-15 23:32 ` [PATCH] rules: avoid reading DRIVER for devices without Marco d'Itri
2009-08-16  8:46 ` [PATCH] rules: avoid reading DRIVER for devices without modalias Alan Jenkins
2009-08-16 10:51 ` [PATCH] rules: avoid reading DRIVER for devices without Marco d'Itri

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.