android_kernel_xiaomi_sm8350/drivers/mtd/devices
Pradeep P V K 6c27e9b705 mtd: msm_qpic_nand: Add mutex lock in system suspend/resume functions
Some race condition is happening where as part of mtd_write_oob post
msm_nand_get_devices function msm_nand_suspend function is getting
invoked and since we don't have any locks there so it ends up turning
off the qpic clocks leading to NOC error.

Add mutex lock in system suspend/resume functions for synchronization.

Change-Id: Iaa3e3ee0041c425e2edddc5a023074009010e393
Signed-off-by: Sarthak Garg <quic_sartgarg@quicinc.com>
Signed-off-by: Pradeep P V K <quic_pragalla@quicinc.com>
2023-09-08 11:55:47 +05:30
..
bcm47xxsflash.c
bcm47xxsflash.h
block2mtd.c
docg3.c
docg3.h
Kconfig
lart.c
Makefile
mchp23k256.c
ms02-nv.c
ms02-nv.h
msm_qpic_nand.c mtd: msm_qpic_nand: Add mutex lock in system suspend/resume functions 2023-09-08 11:55:47 +05:30
msm_qpic_nand.h
mtd_dataflash.c
mtdram.c
phram.c
pmc551.c
powernv_flash.c
serial_flash_cmds.h
slram.c
spear_smi.c
sst25l.c
st_spi_fsm.c