diff options
author | Jan Kiszka <[email protected]> | 2017-05-22 07:46:55 +0200 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-05-22 19:22:19 -0700 |
commit | ad258fb918dae8b1ec79a85b4c7f518e4f902869 (patch) | |
tree | 8cf702adb9c4f01a89c838d781e99a87ccd3747d /lib | |
parent | 86ca984cef98a499a7c7572376502b745a9ca369 (diff) |
i2c: designware: Fix bogus sda_hold_time due to uninitialized vars
We need to initializes those variables to 0 for platforms that do not
provide ACPI parameters. Otherwise, we set sda_hold_time to random
values, breaking e.g. Galileo and IOT2000 boards.
Reported-and-tested-by: Linus Torvalds <[email protected]>
Reported-by: Tobias Klausmann <[email protected]>
Fixes: 9d6408433019 ("i2c: designware: don't infer timings described by ACPI from clock rate")
Signed-off-by: Jan Kiszka <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Acked-by: Jarkko Nikula <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions