Skip to content

Commit

Permalink
spi: apple: Set use_gpio_descriptors to true
Browse files Browse the repository at this point in the history
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 <fnkl.kernel@gmail.com>
Reviewed-by: Janne Grunau <j@jannau.net>
Link: https://patch.msgid.link/20241127-gpio-descs-v1-1-c586b518a7d5@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Sasha Finkelstein authored and Mark Brown committed Dec 2, 2024
1 parent 9848366 commit 1b299bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/spi/spi-apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1b299bd

Please sign in to comment.