From: Bin Meng <bmeng.cn@gmail.com>
To: Alistair Francis <Alistair.Francis@wdc.com>,
qemu-devel@nongnu.org, qemu-riscv@nongnu.org
Cc: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Subject: [PATCH 1/3] hw/char: ibex_uart: Register device in 'input' category
Date: Sun, 26 Sep 2021 18:50:01 +0800 [thread overview]
Message-ID: <20210926105003.2716-1-bmeng.cn@gmail.com> (raw)
The category of ibex_uart device is not set. Put it into the
'input' category.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---
hw/char/ibex_uart.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/char/ibex_uart.c b/hw/char/ibex_uart.c
index 9b0a817713..e58181fcf4 100644
--- a/hw/char/ibex_uart.c
+++ b/hw/char/ibex_uart.c
@@ -550,6 +550,7 @@ static void ibex_uart_class_init(ObjectClass *klass, void *data)
dc->realize = ibex_uart_realize;
dc->vmsd = &vmstate_ibex_uart;
device_class_set_props(dc, ibex_uart_properties);
+ set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
}
static const TypeInfo ibex_uart_info = {
--
2.25.1
next reply other threads:[~2021-09-26 10:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-26 10:50 Bin Meng [this message]
2021-09-26 10:50 ` [PATCH 2/3] hw/char: shakti_uart: Register device in 'input' category Bin Meng
2021-09-26 14:40 ` Philippe Mathieu-Daudé
2021-09-28 6:54 ` Alistair Francis
2021-09-26 10:50 ` [PATCH 3/3] hw/char: sifive_uart: " Bin Meng
2021-09-26 14:40 ` Philippe Mathieu-Daudé
2021-09-28 6:54 ` Alistair Francis
2021-09-28 9:18 ` Alistair Francis
2021-09-26 14:40 ` [PATCH 1/3] hw/char: ibex_uart: " Philippe Mathieu-Daudé
2021-09-28 6:52 ` Alistair Francis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210926105003.2716-1-bmeng.cn@gmail.com \
--to=bmeng.cn@gmail.com \
--cc=Alistair.Francis@wdc.com \
--cc=f4bug@amsat.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).