mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
spi: pxa2xx: Fix unconditional call of lpss_ssp_setup in pxa2xx_spi_resume
Commit 7566bcc76b
("spi: pxa2xx: Move is_lpss_ssp() tests to caller") did
not check LPSS before calling lpss_ssp_setup() in pxa2xx_spi_resume().
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
c039dd275e
commit
48421adfe7
@ -1492,7 +1492,8 @@ static int pxa2xx_spi_resume(struct device *dev)
|
||||
clk_prepare_enable(ssp->clk);
|
||||
|
||||
/* Restore LPSS private register bits */
|
||||
lpss_ssp_setup(drv_data);
|
||||
if (is_lpss_ssp(drv_data))
|
||||
lpss_ssp_setup(drv_data);
|
||||
|
||||
/* Start the queue running */
|
||||
status = spi_master_resume(drv_data->master);
|
||||
|
Loading…
Reference in New Issue
Block a user