diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2020-04-27 14:50:37 -0500 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2020-08-27 14:14:42 +0200 |
commit | 1c9c02bb22684f6949d2e7ddc0a3ff364fd5a6fc (patch) | |
tree | 4a8f7f3dfa15d3138be49fafc419567fca05935a /include/linux/mtd/ndfc.h | |
parent | 5610d1f45d7c02d35b3861988361df89dc7c901d (diff) |
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: eb3db27507f7 ("[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
Diffstat (limited to 'include/linux/mtd/ndfc.h')
0 files changed, 0 insertions, 0 deletions