Re: [PATCH] drm/sun4i: hdmi: Fix u64 div on 32bit arch

2024-03-14 Thread Maxime Ripard
On Mon, 04 Mar 2024 10:12:25 +0100, Maxime Ripard wrote: > Commit 358e76fd613a ("drm/sun4i: hdmi: Consolidate atomic_check and > mode_valid") changed the clock rate from an unsigned long to an unsigned > long long resulting in a a 64-bit division that might not be supported > on all platforms. >

Re: [PATCH] drm/sun4i: hdmi: Fix u64 div on 32bit arch

2024-03-04 Thread Maxime Ripard
On Mon, Mar 04, 2024 at 11:05:14AM +0100, Geert Uytterhoeven wrote: > Hi Maxime, > > Thanks for your patch! > > On Mon, Mar 4, 2024 at 10:12 AM Maxime Ripard wrote: > > Commit 358e76fd613a ("drm/sun4i: hdmi: Consolidate atomic_check and > > mode_valid") changed the clock rate from an unsigned

Re: [PATCH] drm/sun4i: hdmi: Fix u64 div on 32bit arch

2024-03-04 Thread Geert Uytterhoeven
Hi Maxime, Thanks for your patch! On Mon, Mar 4, 2024 at 10:12 AM Maxime Ripard wrote: > Commit 358e76fd613a ("drm/sun4i: hdmi: Consolidate atomic_check and > mode_valid") changed the clock rate from an unsigned long to an unsigned > long long resulting in a a 64-bit division that might not be

[PATCH] drm/sun4i: hdmi: Fix u64 div on 32bit arch

2024-03-04 Thread Maxime Ripard
Commit 358e76fd613a ("drm/sun4i: hdmi: Consolidate atomic_check and mode_valid") changed the clock rate from an unsigned long to an unsigned long long resulting in a a 64-bit division that might not be supported on all platforms. The resulted in compilation being broken at least for m68k, xtensa