@@ -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;
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@gmail.com> --- drivers/spi/spi-bcm-qspi.c | 6 ++++++ 1 file changed, 6 insertions(+)