summaryrefslogtreecommitdiffstats
path: root/fs/jffs2/xattr.c
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2015-02-23 16:26:39 +0100
committerBrian Norris <computersforpeace@gmail.com>2015-03-31 02:39:15 +0200
commit60c70d66cdd39eb560bba5a95c429bf2ad5294d0 (patch)
tree52eb33f58905f89256ebd8836ff25af072b65f16 /fs/jffs2/xattr.c
parentmtd: spi-nor: factor out replace-able flash_{lock,unlock} (diff)
downloadlinux-60c70d66cdd39eb560bba5a95c429bf2ad5294d0.tar.xz
linux-60c70d66cdd39eb560bba5a95c429bf2ad5294d0.zip
mtd: nand: Prevent possible kernel lockup in nand_command()
If a NAND device is not really present or pin muxes are not correctly configured we can lock up the kernel waiting infinitely for NAND_STATUS to be ready. This can be easily reproduced on TI's DRA7-evm board by booting it without NAND support in u-boot and disabling NAND pin muxes in the kernel. Add timeout when waiting for NAND_CMD_RESET completion. As per ONFi v4.0 tRST can be upto 250ms for EZ-NAND and 5ms for raw NAND. Signed-off-by: Roger Quadros <rogerq@ti.com> Tested-by: Nishanth Menon <nm@ti.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'fs/jffs2/xattr.c')
0 files changed, 0 insertions, 0 deletions