diff options
author | Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com> | 2018-07-03 00:20:28 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-07-21 01:23:19 +0300 |
commit | 517fde0eb5a8f46c54ba6e2c36e32563b23cb14f (patch) | |
tree | b2d95fe06465bbe00a03362d0dcf9d13da132dec /drivers/gpu/drm | |
parent | 6bc33c51976cd94362265bdf59fcdc73c941a226 (diff) | |
download | linux-517fde0eb5a8f46c54ba6e2c36e32563b23cb14f.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm')
0 files changed, 0 insertions, 0 deletions