Re: [RFC PATCH 2/2] mmc: add OpenFirmware bindings for the mmc_spi driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Segher Boessenkool
Date: Saturday, May 24, 2008 - 4:14 pm

>> The real problem is we don't yet have good method (or place) to apply

It's perfectly acceptable.  The sole purpose of "compatible" is for
a client (i.e., the kernel) to decide what to do with this device;
most often, to decide what driver to use.

It would be nice to have a completely generic thing that matches device
tree nodes to drivers, and it sounds perfectly reasonable to me to go
via modalias for that (i.e., just translate from device tree namespace
to the kernel driver namespace).

As a bonus, it would make driver matching more correct in some places:
currently, whatever driver matches first wins (i.e., which "compatible"
value is tried first), but the ordering of different values in 
"compatible"
is supposed to be significant (whatever is mentioned there first should
win).


Segher

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] OpenFirmware bindings for the MMC-over-SPI driver, Anton Vorontsov, (Fri May 23, 11:27 am)
[RFC PATCH 1/2] mmc_spi: export probe and remove functions, Anton Vorontsov, (Fri May 23, 11:28 am)
Re: [RFC] OpenFirmware bindings for the MMC-over-SPI driver, David Brownell, (Sat May 24, 12:56 pm)
Re: [RFC PATCH 2/2] mmc: add OpenFirmware bindings for the ..., Segher Boessenkool, (Sat May 24, 4:06 pm)
Re: [RFC PATCH 2/2] mmc: add OpenFirmware bindings for the ..., Segher Boessenkool, (Sat May 24, 4:14 pm)