Re: [PATCH 5/5] drm/bridge: samsung-dsim: calculate porches in Hz

2023-09-08 Thread Michael Tretter
On Mon, 04 Sep 2023 16:28:37 +0200, Maxim Schwalm wrote: > On 28.08.23 17:59, Michael Tretter wrote: > > Calculating the byte_clk in kHz is imprecise for a hs_clock of 55687500 > > Hz, which may be used with a pixel clock of 74.25 MHz with mode > > 1920x1080-30. > > > > Fix the calculation by usin

Re: [PATCH 5/5] drm/bridge: samsung-dsim: calculate porches in Hz

2023-09-04 Thread Maxim Schwalm
Hi, On 28.08.23 17:59, Michael Tretter wrote: > Calculating the byte_clk in kHz is imprecise for a hs_clock of 55687500 > Hz, which may be used with a pixel clock of 74.25 MHz with mode > 1920x1080-30. > > Fix the calculation by using HZ instead of kHZ. > > This requires to change the type to u6

Re: [PATCH 5/5] drm/bridge: samsung-dsim: calculate porches in Hz

2023-08-28 Thread Adam Ford
On Mon, Aug 28, 2023 at 10:59 AM Michael Tretter wrote: > > Calculating the byte_clk in kHz is imprecise for a hs_clock of 55687500 > Hz, which may be used with a pixel clock of 74.25 MHz with mode > 1920x1080-30. > > Fix the calculation by using HZ instead of kHZ. > > This requires to change the

[PATCH 5/5] drm/bridge: samsung-dsim: calculate porches in Hz

2023-08-28 Thread Michael Tretter
Calculating the byte_clk in kHz is imprecise for a hs_clock of 55687500 Hz, which may be used with a pixel clock of 74.25 MHz with mode 1920x1080-30. Fix the calculation by using HZ instead of kHZ. This requires to change the type to u64 to prevent overflows of the integer type. Signed-off-by: M