mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-10-04 07:48:28 +00:00
kvm,8250: Make ttyS1 and ttyS2 disabled
This patch fixes the 8250 serial emulation to not have undefined ioports but rather make them explicitly disabled. Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
c6a69c614f
commit
e62c18de54
+11
-1
@@ -25,7 +25,7 @@ struct serial8250_device {
|
||||
uint8_t scr;
|
||||
};
|
||||
|
||||
static struct serial8250_device devices[1] = {
|
||||
static struct serial8250_device devices[] = {
|
||||
/* ttyS0 */
|
||||
[0] = {
|
||||
.iobase = 0x3f8,
|
||||
@@ -33,6 +33,16 @@ static struct serial8250_device devices[1] = {
|
||||
|
||||
.lsr = UART_LSR_TEMT | UART_LSR_THRE,
|
||||
},
|
||||
/* ttyS1 */
|
||||
[1] = {
|
||||
.iobase = 0x2f8,
|
||||
.irq = 3,
|
||||
},
|
||||
/* ttyS2 */
|
||||
[2] = {
|
||||
.iobase = 0x3e8,
|
||||
.irq = 4,
|
||||
},
|
||||
};
|
||||
|
||||
static int read_char(int fd)
|
||||
|
||||
Reference in New Issue
Block a user