[V2][PATCH 2/5] spi: spi-zynqmp-gqspi: fix hang issue when suspend/resume

2021-04-16 Thread quanyang . wang
From: Quanyang Wang After calling platform_set_drvdata(pdev, xqspi) in probe, the return value of dev_get_drvdata(dev) is a pointer to struct zynqmp_qspi but not struct spi_controller. A wrong structure type passing to the functions spi_controller_suspend/resume will hang the system. And we shou

[PATCH 2/5] spi: spi-zynqmp-gqspi: fix hang issue when suspend/resume

2021-04-15 Thread quanyang . wang
From: Quanyang Wang After calling platform_set_drvdata(pdev, xqspi) in probe, the return value of dev_get_drvdata(dev) is a pointer to struct zynqmp_qspi but not struct spi_controller. A wrong structure type passing to the functions spi_controller_suspend/resume will hang the system. And we shou