mtd: rawnand: All AC chips have a broken GET_FEATURES(TIMINGS).
authorMason Yang <masonccyang@mxic.com.tw>
Wed, 20 Jun 2018 09:46:30 +0000 (11:46 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 21 Jun 2018 22:31:22 +0000 (00:31 +0200)
commitfe3dd97dd66bb7fb23b8077a3803d2f951e60b00
tree051e35bb1f9bc6e2e233ec4dd2ec2e626b482826
parente9893e6fa932f42c90c4ac5849fa9aa0f0f00a34
mtd: rawnand: All AC chips have a broken GET_FEATURES(TIMINGS).

Make sure we flag all broken chips as not supporting this feature.
Also move this logic to a new function to keep things readable.

Fixes: 34c5c01e0c8c ("mtd: rawnand: macronix: nack the support of changing timings for one chip")
Cc: <stable@vger.kernel.org>
Signed-off-by: Mason Yang <masonccyang@mxic.com.tw>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/nand_macronix.c