From bfcc36ac8e9d615611e7e113419bfe4f603fe33a Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 4 Aug 2021 14:46:42 +0200 Subject: [PATCH] Fixed 82091AA Serial port disabling. --- src/sio/sio_82091aa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sio/sio_82091aa.c b/src/sio/sio_82091aa.c index 0fbb96d11..f31b3fe9f 100644 --- a/src/sio/sio_82091aa.c +++ b/src/sio/sio_82091aa.c @@ -117,7 +117,8 @@ serial_handler(i82091aa_t *dev, int uart) break; } - serial_setup(dev->uart[uart], uart_port, (dev->regs[reg] & 0x10) ? 4 : 3); + if (dev->regs[reg] & 0x01) + serial_setup(dev->uart[uart], uart_port, (dev->regs[reg] & 0x10) ? 4 : 3); }