[RFC 8/8] debug: mtd: spi-nor: add BUG_ON() prints to check for !ready

Marek Vasut marex at denx.de
Thu Aug 7 07:26:34 PDT 2014


On Thursday, August 07, 2014 at 03:17:02 AM, Brian Norris wrote:
> I hacked around the wait-till-ready sequencing just now, so let's add
> some debug checks for now.
> 
> These probably shouldn't be included in mainline (or at least they
> should be toned down to something less drastic; WARN_ON() perhaps?). I'm
> just using these for test purposes.
> 
> Signed-off-by: Brian Norris <computersforpeace at gmail.com>

I'm all for this, but some kind of a WARN_ON_ONCE would do.

Best regards,
Marek Vasut



More information about the linux-mtd mailing list