aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorMichael Tretter <[email protected]>2023-10-06 17:07:07 +0200
committerNeil Armstrong <[email protected]>2023-10-09 11:06:23 +0200
commit6acb691824933535219dfd94d9d97c922f5593d2 (patch)
tree18a1b8f8235a1bda1e1f25d184334c5dd0fcee9f /rust/helpers/helpers.c
parent198e54282ae560958e64328fe8f72893661b9e8b (diff)
drm/bridge: samsung-dsim: calculate porches in Hz
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. Reviewed-by: Adam Ford <[email protected]> #imx8mm-beacon Tested-by: Adam Ford <[email protected]> #imx8mm-beacon Tested-by: Frieder Schrempf <[email protected]> # Kontron BL i.MX8MM + Waveshare 10.1inch HDMI LCD (E) Reviewed-by: Marco Felsch <[email protected]> Signed-off-by: Michael Tretter <[email protected]> Tested-by: Marek Szyprowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions