]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: designware: Fix bogus sda_hold_time due to uninitialized vars
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 22 May 2017 05:46:55 +0000 (07:46 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 22 May 2017 08:35:51 +0000 (10:35 +0200)
commit11b1e2d9fc83d1e8af0216a3a7891ca8b4886647
tree126ee9510b32f73fe42b4bd74d262d7244f3d3d8
parentfc8486d2620cbc55798dc27f1c1fef37dd569d60
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.

Fixes: b0de83e10498 ("i2c: designware: don't infer timings described by ACPI from clock rate")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-platdrv.c