On Fri, 8 May 2020 19:13:38 +0200 Miquel Raynal <miquel.raynal@xxxxxxxxxxx> wrote: > +static int anfc_exec_op(struct nand_chip *chip, > + const struct nand_operation *op, > + bool check_only) > +{ > + int ret; > + > + if (check_only) > + return nand_op_parser_exec_op(chip, &anfc_op_parser, op, > + check_only); You should also check the DATA_IN/OUT size here ^. > + > + ret = anfc_select_target(chip, op->cs); > + if (ret) > + return ret; > + > + return nand_op_parser_exec_op(chip, &anfc_op_parser, op, check_only); > +}