Re: [linux-sunxi] [PATCH 3.4] sunxi: disp: Fix division by zero.

2014-11-23 Thread Andreas Baierl
Am 24.11.2014 00:57, schrieb Siarhei Siamashka: On Thu, 13 Nov 2014 06:27:39 -0500 Andreas Baierl wrote: From: Andreas Baierl If DISP_CMD_VIDEO_START is called and layer.para.src_win.width = 0, a division by zero is happening. This patch is ported from Allwinner's display driver code. It cat

Re: [linux-sunxi] [PATCH 3.4] sunxi: disp: Fix division by zero.

2014-11-23 Thread Siarhei Siamashka
On Thu, 13 Nov 2014 06:27:39 -0500 Andreas Baierl wrote: > From: Andreas Baierl > > If DISP_CMD_VIDEO_START is called and layer.para.src_win.width = 0, > a division by zero is happening. > This patch is ported from Allwinner's display driver code. > It catches the division by zero by disabling

[linux-sunxi] [PATCH 3.4] sunxi: disp: Fix division by zero.

2014-11-13 Thread Andreas Baierl
From: Andreas Baierl If DISP_CMD_VIDEO_START is called and layer.para.src_win.width = 0, a division by zero is happening. This patch is ported from Allwinner's display driver code. It catches the division by zero by disabling vpp operations if src_win.width < 1280 and if src width matches scn wi