Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i2c: meson: fixup rate calculation with filter delay
commit 1334d3b4e49e35d8912a7c37ffca4c5afb9a0516 upstream. Apparently, 15 cycles of the peripheral clock are used by the controller for sampling and filtering. Because this was not known before, the rate calculation is slightly off. Clean up and fix the calculation taking this filtering delay into account. Fixes: 30021e3 ("i2c: add support for Amlogic Meson I2C controller") Signed-off-by: Nicolas Belin <[email protected]> Signed-off-by: Jerome Brunet <[email protected]> Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information