Skip to content

Commit

Permalink
spi: cadence: Add support for context loss
Browse files Browse the repository at this point in the history
Context could be lost across the suspend and resume.
Reinit the driver to tide over.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Shubhrajyoti Datta authored and Mark Brown committed Aug 8, 2017
1 parent 48767fd commit 8027408
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/spi/spi-cadence.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 8027408

Please sign in to comment.