mtd: spinand: Fix the way to detect gigadevice id

Parts of esmt devices are the same MFR id, and it's
reasonable.

Change-Id: I245c66ebd734ebabe89d8a6792446b80b76dd0e3
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin 2020-07-01 16:49:50 +08:00 committed by Jianhong Chen
parent 52b0060178
commit ea437e2ce4
1 changed files with 2 additions and 1 deletions

View File

@ -193,8 +193,9 @@ static int gigadevice_spinand_detect(struct spinand_device *spinand)
ret = spinand_match_and_init(spinand, gigadevice_spinand_table,
ARRAY_SIZE(gigadevice_spinand_table),
id[2]);
/* Not Only GD Nands MFR equals C8h */
if (ret)
return ret;
return 0;
return 1;
}