Re: [PATCH v4] i2c: aspeed: fix invalid clock parameters for very large divisors

2018-09-24 Thread Wolfram Sang
On Fri, Sep 21, 2018 at 04:30:50PM -0700, Brendan Higgins wrote: > The function that computes clock parameters from divisors did not > respect the maximum size of the bitfields that the parameters were > written to. This fixes the bug. > > This bug can be reproduced with (and this fix verified wit

[PATCH v4] i2c: aspeed: fix invalid clock parameters for very large divisors

2018-09-21 Thread Brendan Higgins
The function that computes clock parameters from divisors did not respect the maximum size of the bitfields that the parameters were written to. This fixes the bug. This bug can be reproduced with (and this fix verified with) the test at: https://kunit-review.googlesource.com/c/linux/+/1035/ Disc