* [PATCH] spi: s3c64xx: Add fix for crash in spi suspend/resume
@ 2012-11-07 6:10 Naveen Krishna Chatradhi
2012-11-07 8:23 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Naveen Krishna Chatradhi @ 2012-11-07 6:10 UTC (permalink / raw)
To: linux-arm-kernel, spi-devel-general
Cc: naveenkrishna.ch, broonie, grant.likely, jaswinder.singh,
linux-samsung-soc
From: Abhilash Kesavan <a.kesavan@samsung.com>
The SPI driver makes a gpio_request during initialization. The requested
gpios need to be populated as part of the s3c64xx_spi_driver_data so that
they can be released during suspend and requested again during resume.
Add the missing code to save the requested gpios as part of the driver
data. This fixes a SPI driver suspend crash.
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
---
This was tested on spi-next branch
http://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git
With S2R patches submitted on mailing list.
http://www.spinics.net/lists/arm-kernel/msg205244.html
drivers/spi/spi-s3c64xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index 01b2f56..57900a8 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -1112,7 +1112,7 @@ static int s3c64xx_spi_parse_dt_gpio(struct s3c64xx_spi_driver_data *sdd)
dev_err(dev, "invalid gpio[%d]: %d\n", idx, gpio);
goto free_gpio;
}
-
+ sdd->gpios[idx] = gpio;
ret = gpio_request(gpio, "spi-bus");
if (ret) {
dev_err(dev, "gpio [%d] request failed: %d\n",
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] spi: s3c64xx: Add fix for crash in spi suspend/resume
2012-11-07 6:10 [PATCH] spi: s3c64xx: Add fix for crash in spi suspend/resume Naveen Krishna Chatradhi
@ 2012-11-07 8:23 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-11-07 8:23 UTC (permalink / raw)
To: Naveen Krishna Chatradhi
Cc: linux-arm-kernel, spi-devel-general, naveenkrishna.ch,
grant.likely, jaswinder.singh, linux-samsung-soc
[-- Attachment #1: Type: text/plain, Size: 376 bytes --]
On Wed, Nov 07, 2012 at 11:40:12AM +0530, Naveen Krishna Chatradhi wrote:
> From: Abhilash Kesavan <a.kesavan@samsung.com>
>
> The SPI driver makes a gpio_request during initialization. The requested
> gpios need to be populated as part of the s3c64xx_spi_driver_data so that
> they can be released during suspend and requested again during resume.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-07 8:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-07 6:10 [PATCH] spi: s3c64xx: Add fix for crash in spi suspend/resume Naveen Krishna Chatradhi
2012-11-07 8:23 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).