linux-stable/include/linux/mtd
Gustavo A. R. Silva 1c9c02bb22 mtd: lpddr: Fix bad logic in print_drs_error
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
2020-08-27 14:14:42 +02:00
..
bbm.h mtd: rawnand: Stop using nand_release() 2020-05-31 10:53:40 +02:00
blktrans.h
cfi.h mtd: Replace zero-length array with flexible-array 2020-05-26 13:30:06 +05:30
cfi_endian.h
concat.h
doc2000.h
flashchip.h mtd: onenand: omap2: Fix errors in style 2020-01-09 20:08:15 +01:00
ftl.h
gen_probe.h
hyperbus.h mtd: hyperbus: Replace HTTP links with HTTPS ones 2020-08-02 22:17:05 +02:00
inftl.h
jedec.h
latch-addr-flash.h
lpc32xx_mlc.h
lpc32xx_slc.h
map.h
mtd.h mtd: Add support for emulated SLC mode on MLC NANDs 2020-05-11 09:51:41 +02:00
mtdram.h
nand-gpio.h
nand.h mtd: nand: Rename a core structure 2020-06-26 08:35:04 +02:00
nand_bch.h
nand_ecc.h
ndfc.h
nftl.h
onenand.h
onenand_regs.h
onfi.h
partitions.h mtd: Add support for emulated SLC mode on MLC NANDs 2020-05-11 09:51:41 +02:00
pfow.h mtd: lpddr: Fix bad logic in print_drs_error 2020-08-27 14:14:42 +02:00
physmap.h
pismo.h
plat-ram.h
platnand.h
qinfo.h mtd: Replace zero-length array with flexible-array 2020-05-26 13:30:06 +05:30
rawnand.h mtd: rawnand: Allocate the interface configurations dynamically 2020-06-26 08:35:08 +02:00
sh_flctl.h
sharpsl.h
spear_smi.h
spi-nor.h mtd: spi-nor: Fix SPI NOR acronym 2020-05-28 10:46:23 +03:00
spinand.h mtd: nand: Rename a core structure 2020-06-26 08:35:04 +02:00
super.h
ubi.h
xip.h