diff options
author | Guenter Roeck <linux@roeck-us.net> | 2018-09-25 14:02:31 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-09-25 14:14:07 +0100 |
commit | bb626e5b43df996a19b53cb6033b25d83f7b2e73 (patch) | |
tree | 28bcc994833126369ce0298eb53ffacec9ccb38e /chardev/char-serial.c | |
parent | 7bd9c60d4e0d113a8a4428bcbddc5aa9d41d1edc (diff) | |
download | qemu-bb626e5b43df996a19b53cb6033b25d83f7b2e73.zip |
aspeed/i2c: Fix receive done interrupt handling
The AST2500 datasheet says:
I2CD10 Interrupt Status Register
bit 2 Receive Done Interrupt status
S/W needs to clear this status bit to allow next data receiving
The Rx interrupt done interrupt status bit needs to be cleared
explicitly before the next byte can be received, and must therefore
not be auto-cleared. Also, receiving the next byte must be delayed
until the bit has been cleared.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20180914063506.20815-4-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'chardev/char-serial.c')
0 files changed, 0 insertions, 0 deletions