This is a rebased (v5.0-rc1) version of trying to pull GPIO descriptor handling of SPI chip selects into the SPI core. The core grows a bit, bit handles descriptors in addition to the already handled DT and static GPIO lines, and then I start converting over some drivers to show the utility of pulling this into the core. There are *many* drivers to convert. This should also cover the ACPI usecase by way of the completely generic GPIO descriptor handling code that simply picks the GPIO "cs" descriptors associated with the device. Linus Walleij (7): spi: Optionally use GPIO descriptors for CS GPIOs spi: ath79: Convert to use CS GPIO descriptors spi: atmel: Convert to use CS GPIO descriptors spi: cadence: Convert to use CS GPIO descriptors spi: clps711x: Convert to use CS GPIO descriptors spi: davinci: Convert to use CS GPIO descriptors spi: dw: Convert to use CS GPIO descriptors drivers/spi/spi-ath79.c | 42 +++++---------- drivers/spi/spi-atmel.c | 93 ++++++++++----------------------- drivers/spi/spi-cadence.c | 67 +----------------------- drivers/spi/spi-clps711x.c | 23 +------- drivers/spi/spi-davinci.c | 53 +++++-------------- drivers/spi/spi-dw-mmio.c | 22 -------- drivers/spi/spi-dw.c | 9 +--- drivers/spi/spi.c | 104 +++++++++++++++++++++++++++++++++---- include/linux/spi/spi.h | 23 ++++++-- 9 files changed, 172 insertions(+), 264 deletions(-) -- 2.19.2