nandpsu_v1_0: Correct the length to be read for signature and version when No OOB enabled.

Modified the number of bytes of data to be read for signature and version when
NO OOB option is enabled.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
This commit is contained in:
Shakti Bhatnagar 2015-03-26 17:48:20 +05:30 committed by Nava kishore Manne
parent 33888ecc4d
commit 092cc995df

View file

@ -673,7 +673,7 @@ static s32 XNandPsu_SearchBbt(XNandPsu *InstancePtr, XNandPsu_BbtDesc *Desc,
if(Desc->Option == XNANDPSU_BBT_NO_OOB){
BlockOff = (u64)PageOff * (u64)InstancePtr->Geometry.BytesPerPage;
Status = XNandPsu_Read(InstancePtr, BlockOff,
Desc->SigLength + Desc->SigOffset , &Buf[0]);
Desc->VerOffset + XNANDPSU_BBT_VERSION_LENGTH, &Buf[0]);
}else{
Status = XNandPsu_ReadSpareBytes(InstancePtr, PageOff, &Buf[0]);
}