spi: pxa2xx: Fix unconditional call of lpss_ssp_setup in pxa2xx_spi_resume
Subsystems (3)
PATCH 1/1 spi: pxa2xx: Fix unconditional call of lpss_ssp_setup in pxa2xx_spi_resume
Commit 7566bcc76b15 ("spi: pxa2xx: Move is_lpss_ssp() tests to caller") did not check LPSS before calling lpss_ssp_setup() in pxa2xx_spi_resume().
--- drivers/spi/spi-pxa2xx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/spi/spi-pxa2xx.c +2 -1
@@ -1488,7 +1488,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);
Signature · 6 lines
2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1422432582-12287-1-git-send-email-jarkko.nikula-VuQAYsv1563Yd54FQh9/[email protected]
Mark Brown
AppliedQuoted 2 lines · Jarkko Nikula
Commit
7566bcc76b15("spi: pxa2xx: Moveis_lpss_ssp()tests to caller") did not check LPSS before callinglpss_ssp_setup()inpxa2xx_spi_resume().
applied, thanks.