drm/vc4: Correct DSI divider calculations
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Fri, 18 Jun 2021 20:52:28 +0000 (21:52 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Tue, 14 Sep 2021 12:04:20 +0000 (13:04 +0100)
commita2b8b34d78d9721196b0010b00d0db5f4392aa5b
tree76915d95ded181be724706246052e9942f3c3ce8
parent7043c2b9b23d3a13ed2824e3092828148b4c8983
drm/vc4: Correct DSI divider calculations

The divider calculations tried to find the divider
just faster than the clock requested. However if
it required a divider of 7 then the for loop
aborted without handling the "error" case, and could
end up with a clock lower than requested.

Correct the loop so that we always have a clock greater
than requested.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_dsi.c