Files
linux/include/linux/mtd
Gustavo A. R. Silva 609c0dea93 mtd: lpddr: Fix bad logic in print_drs_error
commit 1c9c02bb22 upstream.

Update logic for broken test. Use a more common logging style.

It appears the logic in this function is broken for the
consecutive tests of

        if (prog_status & 0x3)
                ...
        else if (prog_status & 0x2)
                ...
        else (prog_status & 0x1)
                ...

Likely the first test should be

        if ((prog_status & 0x3) == 0x3)

Found by inspection of include files using printk.

Fixes: eb3db27507 ("[MTD] LPDDR PFOW definition")
Cc: stable@vger.kernel.org
Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/3fb0e29f5b601db8be2938a01d974b00c8788501.1588016644.git.gustavo@embeddedor.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 10:23:51 +01:00
..
2015-05-27 12:42:16 -07:00
2010-08-08 20:58:20 +01:00
2010-08-08 20:58:20 +01:00
2016-01-26 10:27:33 -08:00
2014-01-20 11:55:23 -08:00
2010-08-08 20:58:20 +01:00
2016-01-26 10:27:34 -08:00
2013-04-05 13:02:40 +01:00
2010-01-13 09:04:53 +00:00
2013-04-05 13:02:33 +01:00
2009-01-05 13:55:54 +01:00
2014-04-18 16:40:08 -07:00
2011-03-31 11:26:23 -03:00