[PATCH] spi/spi-altera: Allow to explicitely override bus number via dts

Frederic LAMBERT frdrc66 at gmail.com
Thu Feb 2 01:25:33 EST 2012


> Don't top post!
I do what I can with my Google phone :-)

> > Because this bus number is used to create the device name on
> > /sys/bus/spi/..., name that the user app must know to work with.
>
> Why must the user application know this?  What is missing to allow the
> application to discover an appropriate device to work with automatically?

Good question. I have a nvSRAM that I access using the AT25 driver, and I
don't know how access it without its /sys/bus/ name. If there is another
way, it is worse to consider it.

I think a similar way is used to read/write GPIOs...

Before DTS, it was possible to set the SPI bus number in
arch/nios2/kernel/config.c (in the case of our NIOS2 Linux port), but now,
without such a patch, it's not possible anymore. For me, it is a
regression!


Fred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20120201/0eb239da/attachment-0001.html>


More information about the devicetree-discuss mailing list