Thread (1 message) 1 message, 1 author, 2012-11-09

Re: [PATCH 1/6] spi: imx: specify spi base for device tree probe

From: Steffen Trumtrar <hidden>
Date: 2012-11-09 19:00:15
Also in: alsa-devel, linux-arm-kernel, linux-spi

On Fri, Nov 09, 2012 at 04:38:30PM +0000, Mark Brown wrote:
On Fri, Nov 09, 2012 at 03:00:20PM +0100, Steffen Trumtrar wrote:
quoted
* This breaks compatibility with user space applications between non-DT and DT.
quoted
* On platforms that are in between DT and non-DT, it breaks registration of
  devices via spi_board_info.
quoted
Use the same method as 7e6086d9e54a159a6257c02bb7fc5805c614aad2 does for gpios:
Use alias to identify the spi port, and then specify the base via the port id.
If alias is not defined in DT, allocate the base dynamically.
This sounds like a fix userspace and/or complete your DT conversion
problem...
Well, it may lead to problems in userspace and does lead to problems with an
incomplete DT support, but there are only so many hours in a day...

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help