All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/busybox: support automatic module loading with mdev
Date: Fri, 02 Dec 2016 14:52:50 +0200	[thread overview]
Message-ID: <1480683170.21899.70.camel@linux.intel.com> (raw)
In-Reply-To: <87egbjxq27.fsf@dell.be.48ers.dk>

On Wed, 2016-03-09 at 23:08 +0100, Peter Korsgaard wrote:
> > > > > > "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:
> 
> ?> A recently discussed on the mailing list:
> ?> http://lists.busybox.net/pipermail/buildroot/2016-February/154189.h
> tml
> 
> ?> Our mdev configuration currently doesn't handle module loading. Fix
> that by:
> 
> ?> - Telling mdev to run modprobe on hotplug events providing MODALIAS
> 
> ?> - Adjust the init script to handle coldplug modalias events (E.G.
> modules
> ?>???for which the devices were already present before mdev was added
> as the
> ?>???hotplug handler). mdev -s should arguable handle this, but it
> doesn't.
> 
> ?> Cc: Arnout Vandecappelle <arnout@mind.be>
> ?> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> 
> Committed, thanks.
> 

Sorry for bring this topic back, but this script still doesn't work
properly.

Among modaliases I have the following:
?of:Neep0TCatmel,at25

And with the script:
# find /sys/ -name modalias -print0 | xargs -0 sort -u -z | xargs -0
modprobe -abq
#?

Manually:
# modprobe -abq of:Neep0TCatmel,at25
[??988.523305] at25 spi-PRP0001:00: 1 KByte at25 eeprom, pagesize 32

I'm afraid my (or similar) solution would do job better, i.e. serialize
probing one-by-one.

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

      reply	other threads:[~2016-12-02 12:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-08 23:03 [Buildroot] [PATCH] package/busybox: support automatic module loading with mdev Peter Korsgaard
2016-03-08 23:16 ` Yann E. MORIN
2016-03-09 22:08 ` Peter Korsgaard
2016-12-02 12:52   ` Andy Shevchenko [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=1480683170.21899.70.camel@linux.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=buildroot@busybox.net \
    /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 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.