diff options
| author | Martin Sperl <[email protected]> | 2019-03-30 09:31:02 +0000 | 
|---|---|---|
| committer | Mark Brown <[email protected]> | 2019-04-03 11:31:47 +0700 | 
| commit | 509c583620e9053e43d611bf1614fc3d3abafa96 (patch) | |
| tree | ba95fe7ba800103165650405d494ac769097108d /tools/perf/scripts/python/powerpc-hcalls.py | |
| parent | 08a8549509b6e9a9f0d373257f45533df439c70f (diff) | |
spi: bcm2835aux: fix driver to not allow 65535 (=-1) cs-gpios
The original driver by default defines num_chipselects as -1.
This actually allicates an array of 65535 entries in
of_spi_register_master.
There is a side-effect for buggy device trees that (contrary to
dt-binding documentation) have no cs-gpio defined.
This mode was never supported by the driver due to limitations
of native cs and additional code complexity and is explicitly
not stated to be implemented.
To keep backwards compatibility with such buggy DTs we limit
the number of chip_selects to 1, as for all practical purposes
it is only ever realistic to use a single chip select in
native cs mode without negative side-effects.
Fixes: 1ea29b39f4c812ec ("spi: bcm2835aux: add bcm2835 auxiliary spi device...")
Signed-off-by: Martin Sperl <[email protected]>
Acked-by: Stefan Wahren <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions