mtd: nand: fsl_ifc: Fix nand waitfunc return value
authorJagdish Gediya <[email protected]>
Tue, 20 Mar 2018 23:01:36 +0000 (04:31 +0530)
committerBoris Brezillon <[email protected]>
Wed, 21 Mar 2018 09:13:13 +0000 (10:13 +0100)
commitfa8e6d58c5bc260f4369c6699683d69695daed0a
tree064bc700a78c6550b9a09736dfc1431f3316fd4f
parent6de564939e14327148e31ddcf769e34105176447
mtd: nand: fsl_ifc: Fix nand waitfunc return value

As per the IFC hardware manual, Most significant 2 bytes in
nand_fsr register are the outcome of NAND READ STATUS command.

So status value need to be shifted and aligned as per the nand
framework requirement.

Fixes: 82771882d960 ("NAND Machine support for Integrated Flash Controller")
Cc: [email protected] # v3.18+
Signed-off-by: Jagdish Gediya <[email protected]>
Reviewed-by: Prabhakar Kushwaha <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
drivers/mtd/nand/fsl_ifc_nand.c