]> Git Repo - J-linux.git/commitdiff
spi: apple: Set use_gpio_descriptors to true
authorSasha Finkelstein <[email protected]>
Wed, 27 Nov 2024 22:18:29 +0000 (23:18 +0100)
committerMark Brown <[email protected]>
Mon, 2 Dec 2024 00:29:47 +0000 (00:29 +0000)
There is at least one peripheral that is attached to this
controller and can not use native CS. Make it possible to use
a GPIO instead.

Signed-off-by: Sasha Finkelstein <[email protected]>
Reviewed-by: Janne Grunau <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
drivers/spi/spi-apple.c

index d4b126c8701a67083e7247d1c82fb56f1725d9cb..6273352a2b2861c9da0976a46ec2adbc4c71d3d2 100644 (file)
@@ -493,6 +493,7 @@ static int apple_spi_probe(struct platform_device *pdev)
        ctlr->prepare_message = apple_spi_prepare_message;
        ctlr->set_cs = apple_spi_set_cs;
        ctlr->transfer_one = apple_spi_transfer_one;
+       ctlr->use_gpio_descriptors = true;
        ctlr->auto_runtime_pm = true;
 
        pm_runtime_set_active(&pdev->dev);
This page took 0.04908 seconds and 4 git commands to generate.