]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbf341aa620659d32bb7acad7d80f1b483b392c01
tree051e35bb1f9bc6e2e233ec4dd2ec2e626b482826
parent83c7938d904d98387b21470ff7538f209440573a
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: f2eac4a02803 ("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