Skip to contentSkip to conversation

Patch "spi: atmel: fix gpio chip-select in case of non-DT platform" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Mar 1, 2016

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

spi: atmel: fix gpio chip-select in case of non-DT platform

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
spi-atmel-fix-gpio-chip-select-in-case-of-non-dt-platform.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 70f340df24518d36eeaefb6652d492f250115c19 Mon Sep 17 00:00:00 2001

From: Cyrille Pitchen <[email protected]>
Date: Wed, 27 Jan 2016 17:48:32 +0100
Subject: spi: atmel: fix gpio chip-select in case of non-DT platform

From: Cyrille Pitchen <[email protected]>

commit 70f340df24518d36eeaefb6652d492f250115c19 upstream.

The non-DT platform that uses this driver (actually the AVR32) was taking a bad branch for determining if the IP would use gpio for CS.
Adding the presence of DT as a condition fixes this issue.

Fixes 4820303480a1 ("spi: atmel: add support for the internal chip-select of the spi controller")
[[email protected]: extract from ml discussion]
---
 drivers/spi/spi-atmel.c |    1 +
 1 file changed, 1 insertion(+)
drivers/spi/spi-atmel.c +1 -0
@@ -1571,6 +1571,7 @@ static int atmel_spi_probe(struct platfo
 
 	as->use_cs_gpios = true;
 	if (atmel_spi_is_v2(as) &&
+	    pdev->dev.of_node &&
 	    !of_get_property(pdev->dev.of_node, "cs-gpios", NULL)) {
 		as->use_cs_gpios = false;
 		master->num_chipselect = 4;

Patches currently in stable-queue which might be from [email protected] are

queue-4.4/spi-atmel-fix-gpio-chip-select-in-case-of-non-dt-platform.patch