aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2015-03-23 06:16:21 -0400
committerPhilipp Zabel <p.zabel@pengutronix.de>2015-03-31 06:03:55 -0400
commit8f361b279f76b1e9548c9b3e59da63d3dec11bea (patch)
tree51af9ff5ba9debce63066c03833e05f5dad1fad0
parentf7089d923eacb9c8e57d8492699662756881b54d (diff)
gpu: ipu-v3: turns out the IPU can only downsize 4:1
The value for downsizing 8:1 is marked as reserved in the technical reference manual and the documentation states downsizing capability up to 4:1 only. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
-rw-r--r--drivers/gpu/ipu-v3/ipu-ic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/ipu-v3/ipu-ic.c b/drivers/gpu/ipu-v3/ipu-ic.c
index ad75588e1629..1dcb96ccda66 100644
--- a/drivers/gpu/ipu-v3/ipu-ic.c
+++ b/drivers/gpu/ipu-v3/ipu-ic.c
@@ -297,8 +297,8 @@ static int calc_resize_coeffs(struct ipu_ic *ic,
297 return -EINVAL; 297 return -EINVAL;
298 } 298 }
299 299
300 /* Cannot downsize more than 8:1 */ 300 /* Cannot downsize more than 4:1 */
301 if ((out_size << 3) < in_size) { 301 if ((out_size << 2) < in_size) {
302 dev_err(ipu->dev, "Unsupported downsize\n"); 302 dev_err(ipu->dev, "Unsupported downsize\n");
303 return -EINVAL; 303 return -EINVAL;
304 } 304 }