linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC: prevent auto binding for some platform devices
@ 2008-07-21  6:42 Uwe Kleine-König
  2008-07-21  7:24 ` Dasgupta, Romit
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Uwe Kleine-König @ 2008-07-21  6:42 UTC (permalink / raw)
  To: linux-embedded

Hello,

I have an emedded machine here on my desk and want to stop some
driver/device pairs from binding.  There are two types of reason for it:

  a) pin muxing doesn't allow attaching e.g. spi and serial at the same
     time.  In this case I want a defined "winner" that doesn't depend
     on link (or module load) order.

  b) the devboard has attached an led on a line that is also available
     on a header.  So I don't want to bind the led driver by default
     because there might be another device connected to the gpio line.
     Still I want to provide the led device and driver such that
     userspace can bind these two via sysfs and use it.

I think a patch would be easy:

  - add a flag to struct device(?) settable by platform code that would
    indicate that the device should not autoprobe.

  - change bus_attach_device to check that flag and only call
    device_attach if it's not set.

Would this be sensible?  Would it help anyone else?

Best regards
Uwe

-- 
Uwe Kleine-König, Software Engineer
Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany
Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962

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

end of thread, other threads:[~2008-07-21  7:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-21  6:42 RFC: prevent auto binding for some platform devices Uwe Kleine-König
2008-07-21  7:24 ` Dasgupta, Romit
2008-07-21  7:33   ` Uwe Kleine-König
2008-07-21  7:31 ` RFC: " Alexey Zaytsev
2008-07-21  7:38 ` Alexey Zaytsev
2008-07-21  7:44   ` Uwe Kleine-König
2008-07-21  7:44 ` Ben Nizette

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).