hw/char: ibex_uart: Register device in 'input' category
PATCH 1/3 hw/char: ibex_uart: Register device in 'input' category
The category of ibex_uart device is not set. Put it into the 'input' category.
---
hw/char/ibex_uart.c | 1 + 1 file changed, 1 insertion(+)
hw/char/ibex_uart.c +1 -0
@@ -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 = {
Signature · 1 line
2.25.1
PATCH 3/3 hw/char: sifive_uart: Register device in 'input' category
The category of sifive_uart device is not set. Put it into the 'input' category.
---
hw/char/sifive_uart.c | 1 + 1 file changed, 1 insertion(+)
hw/char/sifive_uart.c +1 -0
@@ -248,6 +248,7 @@ static void sifive_uart_class_init(ObjectClass *oc, void *data) rc->phases.enter = sifive_uart_reset_enter; rc->phases.hold = sifive_uart_reset_hold;device_class_set_props (dc, sifive_uart_properties); +set_bit (DEVICE_CATEGORY_INPUT , dc->categories); }static const TypeInfo sifive_uart_info = {
Signature · 1 line
2.25.1
PATCH 2/3 hw/char: shakti_uart: Register device in 'input' category
In reply to Bin MengThe category of shakti_uart device is not set. Put it into the 'input' category.
---
hw/char/shakti_uart.c | 1 + 1 file changed, 1 insertion(+)
hw/char/shakti_uart.c +1 -0
@@ -168,6 +168,7 @@ static void shakti_uart_class_init(ObjectClass *klass, void *data) dc->reset = shakti_uart_reset; dc->realize = shakti_uart_realize;device_class_set_props (dc, shakti_uart_properties); +set_bit (DEVICE_CATEGORY_INPUT , dc->categories); }static const TypeInfo shakti_uart_info = {
Signature · 1 line
2.25.1
Quoted 14 lines · Bin Meng
The category of
ibex_uartdevice is not set. Put it into the 'input' category.Signed-off-by Bin Meng <[email protected]>---
hw/char/ibex_uart.c | 1 + 1 file changed, 1 insertion(+)hw/char/ibex_uart.c +0
-0
hw/char/ibex_uart.c static void ibex_uart_class_init(ObjectClass *klass, void *data) · line 554
Quoted 5 lines
hw/char/ibex_uart.c +1
-0@@ -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); }
A bit orthogonal but I wonder if ADC (to the extent sensors) and touch devices should be categorized as "input" ones.
Maybe we deserve a DEVICE_CATEGORY_SENSOR category?
Back to this patch:
But it would be nice to have a generic way to avoid adding uncategorized user-creatable devices.
Re: [PATCH 2/3] hw/char: shakti_uart: Register device in 'input' category
In reply to Bin MengQuoted 8 lines · Bin Meng
The category of
shakti_uartdevice is not set. Put it into the 'input' category.Signed-off-by Bin Meng <[email protected]>---
hw/char/shakti_uart.c | 1 + 1 file changed, 1 insertion(+)
Re: [PATCH 3/3] hw/char: sifive_uart: Register device in 'input' category
In reply to Bin MengQuoted 8 lines · Bin Meng
The category of
sifive_uartdevice is not set. Put it into the 'input' category.Signed-off-by Bin Meng <[email protected]>---
hw/char/sifive_uart.c | 1 + 1 file changed, 1 insertion(+)
Quoted 5 lines · Bin Meng
The category of
ibex_uartdevice is not set. Put it into the 'input' category.Signed-off-by Bin Meng <[email protected]>
Alistair
Quoted 21 lines
---
hw/char/ibex_uart.c | 1 + 1 file changed, 1 insertion(+)hw/char/ibex_uart.c +1
-1@@ -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
Re: [PATCH 2/3] hw/char: shakti_uart: Register device in 'input' category
In reply to Bin MengQuoted 5 lines · Bin Meng
The category of
shakti_uartdevice is not set. Put it into the 'input' category.Signed-off-by Bin Meng <[email protected]>
Alistair
Quoted 21 lines
---
hw/char/shakti_uart.c | 1 + 1 file changed, 1 insertion(+)hw/char/shakti_uart.c +1
-1@@ -168,6 +168,7 @@ static void shakti_uart_class_init(ObjectClass *klass, void *data) dc->reset = shakti_uart_reset; dc->realize = shakti_uart_realize;device_class_set_props (dc, shakti_uart_properties); +set_bit (DEVICE_CATEGORY_INPUT , dc->categories); }static const TypeInfo shakti_uart_info = { --2.25.1
Re: [PATCH 3/3] hw/char: sifive_uart: Register device in 'input' category
In reply to Bin MengQuoted 5 lines · Bin Meng
The category of
sifive_uartdevice is not set. Put it into the 'input' category.Signed-off-by Bin Meng <[email protected]>
Alistair
Quoted 21 lines
---
hw/char/sifive_uart.c | 1 + 1 file changed, 1 insertion(+)hw/char/sifive_uart.c +1
-1@@ -248,6 +248,7 @@ static void sifive_uart_class_init(ObjectClass *oc, void *data) rc->phases.enter = sifive_uart_reset_enter; rc->phases.hold = sifive_uart_reset_hold;device_class_set_props (dc, sifive_uart_properties); +set_bit (DEVICE_CATEGORY_INPUT , dc->categories); }static const TypeInfo sifive_uart_info = { --2.25.1
Alistair Francis
AppliedRe: [PATCH 3/3] hw/char: sifive_uart: Register device in 'input' category
In reply to Bin MengQuoted 5 lines · Bin Meng
The category of
sifive_uartdevice is not set. Put it into the 'input' category.Signed-off-by Bin Meng <[email protected]>
Thanks!
Applied to riscv-to-apply.next
Alistair
Quoted 21 lines
---
hw/char/sifive_uart.c | 1 + 1 file changed, 1 insertion(+)hw/char/sifive_uart.c +1
-1@@ -248,6 +248,7 @@ static void sifive_uart_class_init(ObjectClass *oc, void *data) rc->phases.enter = sifive_uart_reset_enter; rc->phases.hold = sifive_uart_reset_hold;device_class_set_props (dc, sifive_uart_properties); +set_bit (DEVICE_CATEGORY_INPUT , dc->categories); }static const TypeInfo sifive_uart_info = { --2.25.1