]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pxa2xx_spi: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 25 Jan 2022 00:58:36 +0000 (01:58 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 31 Jan 2022 15:17:27 +0000 (15:17 +0000)
commit914cb89f1874c2db0ce4a8a7938fd1f9e7170730
treeb5a6bfb26ac2ccbd2c52a71d220b708250010337
parentd086c46a2cfd6bd36747d7d2bb92a04c6b8ca459
spi: pxa2xx_spi: Convert to use GPIO descriptors

This converts the PXA2xx SPI driver to use GPIO descriptors
exclusively to retrieve GPIO chip select lines.

The device tree and ACPI paths of the driver already use
descriptors, hence ->use_gpio_descriptors is already set and
this codepath is well tested.

Convert all the PXA boards providing chip select GPIOs as
platform data and drop the old GPIO chipselect handling in
favor of the core managing it exclusively.

Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Daniel Mack <daniel@zonque.org>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: linux-arm-kernel@lists.infradead.org
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220125005836.494807-1-linus.walleij@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
12 files changed:
Documentation/spi/pxa2xx.rst
arch/arm/mach-pxa/corgi.c
arch/arm/mach-pxa/hx4700.c
arch/arm/mach-pxa/icontrol.c
arch/arm/mach-pxa/littleton.c
arch/arm/mach-pxa/magician.c
arch/arm/mach-pxa/poodle.c
arch/arm/mach-pxa/spitz.c
arch/arm/mach-pxa/stargate2.c
arch/arm/mach-pxa/z2.c
drivers/spi/spi-pxa2xx.c
include/linux/spi/pxa2xx_spi.h