From: Chew, Chiau Ee Date: Thu, 28 Nov 2013 18:13:11 +0000 (+0800) Subject: spi/pxa2xx: Restore private register bits. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c50325f7bcb8a3ceaacb9dbc41180b1cbbae7b5e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git spi/pxa2xx: Restore private register bits. The Intel LPSS SPI private register bits have to be restored when system resume from S3 suspend. Signed-off-by: Chew, Chiau Ee Acked-by: Mika Westerberg Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 7028180a020a..7765b1999537 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1293,6 +1293,9 @@ static int pxa2xx_spi_resume(struct device *dev) /* Enable the SSP clock */ clk_prepare_enable(ssp->clk); + /* Restore LPSS private register bits */ + lpss_ssp_setup(drv_data); + /* Start the queue running */ status = spi_master_resume(drv_data->master); if (status != 0) {