[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150331004553.GG32500@ld-irv-0074>
Date: Mon, 30 Mar 2015 17:45:53 -0700
From: Brian Norris <computersforpeace@...il.com>
To: Roger Quadros <rogerq@...com>
Cc: dwmw2@...radead.org, ezequiel.garcia@...e-electrons.com,
nsekhar@...com, nm@...com, linux-mtd@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mtd: nand: Prevent possible kernel lockup in
nand_command()
On Mon, Feb 23, 2015 at 05:26:39PM +0200, Roger Quadros wrote:
> 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@...com>
> Tested-by: Nishanth Menon <nm@...com>
Pushed to l2-mtd.git. Thanks.
Brian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists