linux/drivers/nvmem
Finley Xiao 30c2580e53 nvmem: rockchip-efuse: Add mutex lock for rk1808 efuse read
The rk1808 efuse read has some issues when several threads start to read
efuse through nvmem file node.

Thread1                                    thread2
1. timing_init
2.  write auto_ctrl
3.    delay                                  timing_init
4.      read status                            write auto_ctrl
5.        if error goto to timing_deinit         delay

The thread1 will read no finish bit and then goto error, the user will
see a "Input/Output Error".

The thread1 do timing deinit will cause thread2 halt on read status, and
the user will never success to do read efuse again.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I3f462afd844686aac153acc0c33215fbd96827a3
2020-10-23 09:05:51 +08:00
..
bcm-ocotp.c
core.c Merge tag 'ASB-2020-09-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-09-24 17:59:50 +08:00
imx-iim.c
imx-ocotp.c nvmem: imx-ocotp: Change TIMING calculation to u-boot algorithm 2020-01-27 14:50:58 +01:00
Kconfig Merge tag 'ASB-2020-09-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-09-24 17:59:50 +08:00
lpc18xx_eeprom.c
lpc18xx_otp.c
Makefile Merge tag 'ASB-2020-09-05_4.19-stable' of https://android.googlesource.com/kernel/common 2020-09-24 17:59:50 +08:00
meson-efuse.c
meson-mx-efuse.c
mtk-efuse.c
mxs-ocotp.c
nvmem-sysfs.c BACKPORT: nvmem: core: add NVMEM_SYSFS Kconfig 2020-04-16 12:19:27 -07:00
nvmem.h BACKPORT: nvmem: core: add NVMEM_SYSFS Kconfig 2020-04-16 12:19:27 -07:00
qfprom.c nvmem: qfprom: remove incorrect write support 2020-06-10 21:35:00 +02:00
rave-sp-eeprom.c
rockchip-efuse.c nvmem: rockchip-efuse: Add mutex lock for rk1808 efuse read 2020-10-23 09:05:51 +08:00
rockchip-otp.c nvmem: rockchip-otp: Add write protection for oem zone 2020-10-15 19:42:14 +08:00
sc27xx-efuse.c
snvs_lpgpr.c
sunxi_sid.c
uniphier-efuse.c
vf610-ocotp.c