Files
u-boot/drivers
Jun Chen e3b93dcee8 i2c: designware_i2c: Restore enable state after set speed
Before calling __dw_i2c_set_bus_speed(),
the I2C could already be set as ether enable or disable,
we should restore the original setting instead of enable i2c anyway.

This patch fix a bug happened in init function:
    __dw_i2c_init(){
            /* Disable i2c */
            ...
            __dw_i2c_set_bus_speed(i2c_base, NULL, speed);
            writel(slaveaddr, &i2c_base->ic_sar);
            /* Enable i2c */
    }
In this case, enable i2c inside __dw_i2c_set_bus_speed() function
will cause ic_sar write fail.

Signed-off-by: Jun Chen <ptchentw@gmail.com>
2019-07-09 07:02:10 +02:00
..
2019-01-15 15:28:53 -05:00
2019-05-21 08:03:38 +02:00
2019-07-05 14:19:41 +02:00
2019-02-27 09:12:33 +08:00
2019-05-18 08:15:35 -04:00
2019-06-11 10:42:48 +02:00
2019-06-06 17:40:14 +02:00
2019-02-20 15:27:08 +08:00
2019-05-10 22:48:11 +02:00
2019-05-31 23:27:12 +02:00
2019-05-24 10:14:10 -07:00
2018-11-29 09:30:06 -07:00
2019-07-06 23:31:52 +02:00
2019-05-05 08:48:50 -04:00