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:
parent
52b0060178
commit
ea437e2ce4
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue