aspeed/i2c: Handle receive command in separate function
commit7bd9c60d4e0d113a8a4428bcbddc5aa9d41d1edc
authorGuenter Roeck <linux@roeck-us.net>
Tue, 25 Sep 2018 13:02:31 +0000 (25 14:02 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 25 Sep 2018 13:14:07 +0000 (25 14:14 +0100)
tree1a44d61fc5f12d7579a0ece7147b7606ca9170a4
parent5540cb97f711d191bae6cde89a03a8a9c306b638
aspeed/i2c: Handle receive command in separate function

Receive command handling may have to be deferred if a previous receive
done interrupt was not yet acknowledged. Move receive command handling
into a separate function to prepare for the necessary changes.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20180914063506.20815-3-clg@kaod.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/i2c/aspeed_i2c.c