The sensor data sheet clearly state that 2592x1944 only works at 15 fps
make sure we don't try to miss configure the pll out of acceptable
range.
Signed-off-by: Benoit Parrot <bparrot@ti.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
            !(mode->hact == 640 && mode->vact == 480))
                return NULL;
 
+       /* 2592x1944 only works at 15fps max */
+       if ((mode->hact == 2592 && mode->vact == 1944) &&
+           fr > OV5640_15_FPS)
+               return NULL;
+
        return mode;
 }