The Broadcom SoCs needs pm rescan support for the flash device to to be cofgured in the probed state on pm resume. Implement flash_pm_supported() spi core interface to return true. Signed-off-by: Kamal Dasu <kdasu.kdev@xxxxxxxxx> --- drivers/spi/spi-bcm-qspi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/spi/spi-bcm-qspi.c b/drivers/spi/spi-bcm-qspi.c index 14f9dea..0abcde6 100644 --- a/drivers/spi/spi-bcm-qspi.c +++ b/drivers/spi/spi-bcm-qspi.c @@ -958,6 +958,11 @@ static int bcm_qspi_transfer_one(struct spi_master *master, return 0; } +static bool bcm_qspi_flash_pm_supported(struct spi_device *spi) +{ + return true; +} + static void bcm_qspi_cleanup(struct spi_device *spi) { struct bcm_qspi_parms *xp = spi_get_ctldata(spi); @@ -1194,6 +1199,7 @@ int bcm_qspi_probe(struct platform_device *pdev, master->setup = bcm_qspi_setup; master->transfer_one = bcm_qspi_transfer_one; master->spi_flash_read = bcm_qspi_flash_read; + master->flash_pm_supported = bcm_qspi_flash_pm_supported; master->cleanup = bcm_qspi_cleanup; master->dev.of_node = dev->of_node; master->num_chipselect = NUM_CHIPSELECT; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html