Re: [PATCH] drm/mgag200: Apply upper limit for clock variable

2024-11-11 Thread Christophe JAILLET
Le 11/11/2024 à 14:46, Murad Masimov a écrit : If the value of the clock variable is higher than 80, the value of the variable m, which is used as a divisor, will remain zero, because (clock * testp) will be higher than vcomax in every loop iteration, which leads to skipping every iteration a

[PATCH] drm/mgag200: Apply upper limit for clock variable

2024-11-11 Thread Murad Masimov
If the value of the clock variable is higher than 80, the value of the variable m, which is used as a divisor, will remain zero, because (clock * testp) will be higher than vcomax in every loop iteration, which leads to skipping every iteration and leaving variable m unmodified. Clamp value of