mtd: spinand: rework detect procedure for different READ_ID operation