[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-omap
Subject:    Enabling Mistral touch screen driver
From:       david-b () pacbell ! net (David Brownell)
Date:       2006-05-27 10:57:40
Message-ID: 200605270857.32320.david-b () pacbell ! net
[Download RAW message or body]

On Friday 26 May 2006 11:32 pm, Dirk Behme wrote:

> don't forget to add 'modprobe omap_uwire' to your 
> configuration.

Hmm, I forgot about that stuff.  I've been having coldplug load
all the relevant platform drivers for me ... see the attached
script.  Sometime in 2.6.18 the special-casing for platform
devices can disappear, they'll support modalias correctly.

- Dave
 
-------------- next part --------------
#!/bin/ash
#
# "coldplug" ensures every hardware device present has its driver loaded,
# even if its hotplug event was ignored since it was too early in system
# startup for hotplug processing to work.
#
# Those drivers will create /sys/class or /sys/block nodes that receive
# normal udev processing through hotplug, leading to /dev node creation.
#
# Run this during system startup shortly after /dev has been initialized
# using udevstart.

if [ ! -d /sys/devices ]
then
	exit 1
fi

# "new style" kernel hotplug has module-init-tools do the thinking
cd /sys/devices
for DIR in $(find . -type d)
do
	if [ -f $DIR/modalias -a ! -L $DIR/driver ]
	then
		modprobe -q $(cat $DIR/modalias)
	fi
done

# REVISIT this part goes away sometime in 2.6.18 when platform_device
# gets full hotplug/modalias support
cd /sys/devices/platform
for DEV in *
do
	if [ "$DEV" != "power" -a ! -L $DEV/driver ]
	then
		# some platform drivers will need a MODULE_ALIAS()
		modprobe -q $DEV
	fi
done

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic