projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48767fd
)
spi: cadence: Add support for context loss
author
Shubhrajyoti Datta
<
[email protected]
>
Tue, 8 Aug 2017 09:00:03 +0000
(11:00 +0200)
committer
Mark Brown
<
[email protected]
>
Tue, 8 Aug 2017 09:43:41 +0000
(10:43 +0100)
Context could be lost across the suspend and resume.
Reinit the driver to tide over.
Signed-off-by: Shubhrajyoti Datta <
[email protected]
>
Signed-off-by: Michal Simek <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
drivers/spi/spi-cadence.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-cadence.c
b/drivers/spi/spi-cadence.c
index 5e02f9b91688cd442e8f4ee6e4db4c4deca642df..5c9516ae4942e5cf8b2ef381d2ecd496803cbf14 100644
(file)
--- a/
drivers/spi/spi-cadence.c
+++ b/
drivers/spi/spi-cadence.c
@@
-704,7
+704,9
@@
static int __maybe_unused cdns_spi_resume(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
struct spi_master *master = platform_get_drvdata(pdev);
+ struct cdns_spi *xspi = spi_master_get_devdata(master);
+ cdns_spi_init_hw(xspi);
return spi_master_resume(master);
}