[PATCH v8 07/14] drm/bridge: it6505: avoid division by zero in pixel clock calculation

Luca Ceresoli luca.ceresoli at bootlin.com
Tue Oct 20 09:51:39 PDT 2026


On Mon, 28 Sep 2026 00:50:25 +0100, Daniel Golle <daniel at makrotopia.org> wrote:
> it6505_calc_video_info() checks the sum of the three pixel clock
> counter samples for zero before dividing it by 3, so sums of 1 or 2
> truncate to 0 and the following pixel clock calculation divides by
> zero. Divide first and check the result.

Reviewed-by: Luca Ceresoli <luca.ceresoli at bootlin.com>

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com




More information about the Linux-mediatek mailing list