diff --git a/drivers/bch/bchdev_driver.c b/drivers/bch/bchdev_driver.c index 726932c193..7032908a5b 100644 --- a/drivers/bch/bchdev_driver.c +++ b/drivers/bch/bchdev_driver.c @@ -459,6 +459,13 @@ static int bch_ioctl(FAR struct file *filep, int cmd, unsigned long arg) if (bchinode->u.i_bops->ioctl != NULL) { ret = bchinode->u.i_bops->ioctl(bchinode, cmd, arg); + + /* Drivers may not support command BIOC_FLUSH */ + + if (ret == -ENOTTY && cmd == BIOC_FLUSH) + { + ret = 0; + } } } break;