linux_dsm_epyc7002/include/linux/spi
Andy Shevchenko 4ca4aef084 spi: Switch to signed types for *_native_cs SPI controller fields
commit 35f3f8504c3b60a1ae5576e178b27fc0ddd6157d upstream.

While fixing undefined behaviour the commit f60d7270c8a3 ("spi: Avoid
undefined behaviour when counting unused native CSs") missed the case
when all CSs are GPIOs and thus unused_native_cs will be evaluated to
-1 in unsigned representation. This will falsely trigger a condition
in the spi_get_gpio_descs().

Switch to signed types for *_native_cs SPI controller fields to fix above.

Fixes: f60d7270c8a3 ("spi: Avoid undefined behaviour when counting unused native CSs")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210510131242.49455-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Nobuhiro Iwamatsu (CIP) <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-05 19:05:18 +02:00
..
ad7877.h
ads7846.h
altera.h
at73c213.h
at86rf230.h
cc2520.h
corgi_lcd.h
ds1305.h
eeprom.h eeprom: at25: allow page sizes greater than 16 bit 2020-08-28 12:08:08 +02:00
flash.h
ifx_modem.h
libertas_spi.h
lms283gf05.h
max7301.h
mc33880.h
mmc_spi.h
mxs-spi.h
pxa2xx_spi.h
rspi.h
s3c24xx-fiq.h ARM: s3c24xx: move spi fiq handler into platform 2020-08-19 21:45:38 +02:00
s3c24xx.h ARM: s3c24xx: spi: avoid hardcoding fiq number in driver 2020-08-20 17:43:45 +02:00
sh_hspi.h
sh_msiof.h
spi_bitbang.h
spi_gpio.h
spi_oc_tiny.h
spi-fsl-dspi.h
spi-mem.h
spi.h spi: Switch to signed types for *_native_cs SPI controller fields 2024-07-05 19:05:18 +02:00
tdo24m.h
tle62x0.h
xilinx_spi.h