]> Git Repo - linux.git/commitdiff
spi: spi-geni-qcom: Use the new method of gpio CS control
authorStephen Boyd <[email protected]>
Fri, 4 Dec 2020 19:35:40 +0000 (11:35 -0800)
committerMark Brown <[email protected]>
Wed, 9 Dec 2020 16:52:10 +0000 (16:52 +0000)
Let's set the 'use_gpio_descriptors' field so that we use the new way of
requesting the CS GPIOs in the core. This allows us to avoid having to
configure the CS pins in "output" mode with an 'output-enable' pinctrl
setting.

Cc: Akash Asthana <[email protected]>
Cc: Bjorn Andersson <[email protected]>
Reviewed-by: Douglas Anderson <[email protected]>
Cc: Alexandru M Stan <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
drivers/spi/spi-geni-qcom.c

index 25810a7eef101124e21ca8d105219dbbe45831b1..c4c88984abc9ff88532e8741f063b428270a306f 100644 (file)
@@ -636,6 +636,7 @@ static int spi_geni_probe(struct platform_device *pdev)
        spi->auto_runtime_pm = true;
        spi->handle_err = handle_fifo_timeout;
        spi->set_cs = spi_geni_set_cs;
+       spi->use_gpio_descriptors = true;
 
        init_completion(&mas->cs_done);
        init_completion(&mas->cancel_done);
This page took 0.058837 seconds and 4 git commands to generate.