Re: [PATCH 1/2] i2c: designware_i2c: Tidy up use of NULL priv

2020-05-29 Thread Heiko Schocher
Hello Simon, Am 22.04.2020 um 18:13 schrieb Simon Glass: At present we still have pre-driver-model code in this driver and it makes things a bit confusing. In particular calc_bus_speed() is called with priv as NULL if not using driver model. This results in spk_cnt and comp_param1 being read

[PATCH 1/2] i2c: designware_i2c: Tidy up use of NULL priv

2020-04-22 Thread Simon Glass
At present we still have pre-driver-model code in this driver and it makes things a bit confusing. In particular calc_bus_speed() is called with priv as NULL if not using driver model. This results in spk_cnt and comp_param1 being read from an invalid address if not using driver model. For