> 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
_______________________________________________ devicetree-discuss mailing list [email protected] https://lists.ozlabs.org/listinfo/devicetree-discuss
