Re: [RFC 2/2] spi core: Add new sysfs 'num_chipselect' file

From: Mark Brown
Date: Mon Apr 18 2016 - 08:14:51 EST


On Mon, Apr 18, 2016 at 04:48:28PM +0530, Bhuvanchandra DV wrote:
> Add new sysfs 'num_chipselect' file to expose the maximum number
> of chipselects a SPI master can support.
> This allows to create a script in user space which automatically
> creates a new spidev instance for every chipselect on a bus.

This does not seem like a good idea, even if a chip select is supported
in the IP that doesn't mean it's brought out safely on a board and
pinmuxing may mean that the set of chip selects that can be used is
sparse.

Attachment: signature.asc
Description: PGP signature