Jae Hyun Yoo 517fde0eb5 i2c: aspeed: Fix initial values of master and slave state
This patch changes the order of enum aspeed_i2c_master_state and
enum aspeed_i2c_slave_state defines to make their initial value to
ASPEED_I2C_MASTER_INACTIVE and ASPEED_I2C_SLAVE_STOP respectively.
In case of multi-master use, if a slave data comes ahead of the
first master xfer, master_state starts from an invalid state so
this change fixes the issue.

Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2018-07-21 00:23:19 +02:00
..
2014-11-07 18:35:33 +01:00
2018-07-02 17:38:07 +02:00
2018-07-21 00:07:09 +02:00
2014-11-07 18:35:33 +01:00
2017-10-28 14:03:45 +02:00
2014-11-07 18:35:33 +01:00
2016-10-25 11:48:58 +02:00
2018-05-30 22:12:41 +02:00
2018-06-12 16:19:22 -07:00
2014-11-07 18:35:33 +01:00
2014-11-07 18:35:33 +01:00
2014-11-07 18:35:33 +01:00
2018-07-17 10:03:42 +02:00
2014-11-07 18:35:33 +01:00