+19
−6
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
If bps >= 1048576, the multiplication of the predivider and "bps" will overflow, and both br and err will contain bogus values. Skip the current and all higher clock select predividers when overflow is detected. Simplify the calculations using intermediates while we're at it. Signed-off-by:Geert Uytterhoeven <geert+renesas@glider.be> Acked-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>