spi: spi-msm-geni: Keep IO driving to Pads for SPI
This change programs GENI output control register before starting any SPI transfer after previous suspend. Seems we just need to overwrite again though the value 0x7F is programmed from the bootup time. May be post suspend it's losing contents OR some thing going wrong from QUP to Pad output path. Change-Id: Ifa8356ddf971eb2900710bac18d753a2bb942b9f Signed-off-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
This commit is contained in:
parent
3033db1790
commit
32fce8b458
@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <linux/clk.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/dmaengine.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/interrupt.h>
|
||||
@ -2632,6 +2633,11 @@ static int spi_geni_runtime_resume(struct device *dev)
|
||||
return ret;
|
||||
}
|
||||
ret = geni_se_resources_on(&geni_mas->spi_rsc);
|
||||
|
||||
geni_write_reg(0x7f, geni_mas->base, GENI_OUTPUT_CTRL);
|
||||
/* Added 10 us delay to settle the write of the register as per HW team recommendation */
|
||||
udelay(10);
|
||||
|
||||
enable_irq(geni_mas->irq);
|
||||
|
||||
if (geni_mas->gsi_mode)
|
||||
|
Loading…
Reference in New Issue
Block a user