Re: [PATCH v8 07/14] drm/bridge: it6505: avoid division by zero in pixel clock calculation
From: Luca Ceresoli
Date: Tue Oct 20 2026 - 13:04:00 EST
On Mon, 28 Sep 2026 00:50:25 +0100, Daniel Golle <daniel@xxxxxxxxxxxxxx> 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@xxxxxxxxxxx>
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com