From: David Brownell <david-b@pacbell.net>
To: linux-omap-open-source@linux.omap.com
Subject: Re: Enabling Mistral touch screen driver
Date: Sat, 27 May 2006 08:57:32 -0700 [thread overview]
Message-ID: <200605270857.32320.david-b@pacbell.net> (raw)
In-Reply-To: <4477F290.2090402@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 377 bytes --]
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
[-- Attachment #2: S00coldplug --]
[-- Type: text/plain, Size: 978 bytes --]
#!/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
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
prev parent reply other threads:[~2006-05-27 15:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-13 9:37 Enabling Mistral touch screen driver Vishal Borker
2006-05-14 15:45 ` Dirk Behme
2006-05-14 16:55 ` David Brownell
2006-05-15 17:38 ` Dirk Behme
2006-05-15 18:54 ` David Brownell
2006-05-27 6:32 ` Dirk Behme
2006-05-27 15:57 ` David Brownell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200605270857.32320.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=linux-omap-open-source@linux.omap.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox