From: Sasha Finkelstein Date: Wed, 27 Nov 2024 22:18:29 +0000 (+0100) Subject: spi: apple: Set use_gpio_descriptors to true X-Git-Tag: v6.13-rc2~18^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b299bd0c22887543b276bcc5b4ed26f5bd83ae4;p=thirdparty%2Fkernel%2Flinux.git spi: apple: Set use_gpio_descriptors to true 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 Reviewed-by: Janne Grunau Link: https://patch.msgid.link/20241127-gpio-descs-v1-1-c586b518a7d5@gmail.com Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-apple.c b/drivers/spi/spi-apple.c index d4b126c8701a6..6273352a2b286 100644 --- a/drivers/spi/spi-apple.c +++ b/drivers/spi/spi-apple.c @@ -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);