* [PATCH v2 0/4] Categorize some uncategorized devices
@ 2020-11-11 16:47 Gan Qixin
2020-11-11 16:47 ` [PATCH v2 1/4] ssd0323: put it into the 'display' category Gan Qixin
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Gan Qixin @ 2020-11-11 16:47 UTC (permalink / raw)
To: qemu-devel, qemu-trivial
Cc: thuth, zhang.zhanghailiang, mst, laurent, armbru, Gan Qixin,
kuhn.chenqun, philmd
Hi all,
I found some uncategorized devices and categorize them in these patches.
Thanks,
Gan Qixin
v1->v2: Correct some spelling errors and limit commit message line length
to around 70.
Gan Qixin (4):
ssd0323: put it into the 'display' category
ads7846: put it into the 'display' category
nand: put it into the 'storage' category
max111x: put it into the 'misc' category
hw/block/nand.c | 1 +
hw/display/ads7846.c | 2 ++
hw/display/ssd0323.c | 1 +
hw/misc/max111x.c | 1 +
4 files changed, 5 insertions(+)
--
2.23.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2 1/4] ssd0323: put it into the 'display' category
2020-11-11 16:47 [PATCH v2 0/4] Categorize some uncategorized devices Gan Qixin
@ 2020-11-11 16:47 ` Gan Qixin
2020-11-12 7:34 ` Thomas Huth
2020-11-11 16:47 ` [PATCH v2 2/4] ads7846: " Gan Qixin
` (2 subsequent siblings)
3 siblings, 1 reply; 10+ messages in thread
From: Gan Qixin @ 2020-11-11 16:47 UTC (permalink / raw)
To: qemu-devel, qemu-trivial
Cc: thuth, zhang.zhanghailiang, mst, laurent, armbru, Gan Qixin,
kuhn.chenqun, philmd
The category of the ssd0323 device is not set, put it into the 'display'
category.
Signed-off-by: Gan Qixin <ganqixin@huawei.com>
---
hw/display/ssd0323.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/display/ssd0323.c b/hw/display/ssd0323.c
index 17d4b32ae3..cbfd21dfd5 100644
--- a/hw/display/ssd0323.c
+++ b/hw/display/ssd0323.c
@@ -370,6 +370,7 @@ static void ssd0323_class_init(ObjectClass *klass, void *data)
k->transfer = ssd0323_transfer;
k->cs_polarity = SSI_CS_HIGH;
dc->vmsd = &vmstate_ssd0323;
+ set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
}
static const TypeInfo ssd0323_info = {
--
2.23.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 2/4] ads7846: put it into the 'display' category
2020-11-11 16:47 [PATCH v2 0/4] Categorize some uncategorized devices Gan Qixin
2020-11-11 16:47 ` [PATCH v2 1/4] ssd0323: put it into the 'display' category Gan Qixin
@ 2020-11-11 16:47 ` Gan Qixin
2020-11-12 7:36 ` Thomas Huth
2020-11-12 11:19 ` Peter Maydell
2020-11-11 16:47 ` [PATCH v2 3/4] nand: put it into the 'storage' category Gan Qixin
2020-11-11 16:47 ` [PATCH v2 4/4] max111x: put it into the 'misc' category Gan Qixin
3 siblings, 2 replies; 10+ messages in thread
From: Gan Qixin @ 2020-11-11 16:47 UTC (permalink / raw)
To: qemu-devel, qemu-trivial
Cc: thuth, zhang.zhanghailiang, mst, laurent, armbru, Gan Qixin,
kuhn.chenqun, philmd
The category of the ads7846 device is not set, put it into the 'display'
category.
Signed-off-by: Gan Qixin <ganqixin@huawei.com>
---
hw/display/ads7846.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/display/ads7846.c b/hw/display/ads7846.c
index 023165b2a3..b455cb5acd 100644
--- a/hw/display/ads7846.c
+++ b/hw/display/ads7846.c
@@ -163,10 +163,12 @@ static void ads7846_realize(SSISlave *d, Error **errp)
static void ads7846_class_init(ObjectClass *klass, void *data)
{
+ DeviceClass *dc = DEVICE_CLASS(klass);
SSISlaveClass *k = SSI_SLAVE_CLASS(klass);
k->realize = ads7846_realize;
k->transfer = ads7846_transfer;
+ set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
}
static const TypeInfo ads7846_info = {
--
2.23.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 3/4] nand: put it into the 'storage' category
2020-11-11 16:47 [PATCH v2 0/4] Categorize some uncategorized devices Gan Qixin
2020-11-11 16:47 ` [PATCH v2 1/4] ssd0323: put it into the 'display' category Gan Qixin
2020-11-11 16:47 ` [PATCH v2 2/4] ads7846: " Gan Qixin
@ 2020-11-11 16:47 ` Gan Qixin
2020-11-12 7:38 ` Thomas Huth
2020-11-11 16:47 ` [PATCH v2 4/4] max111x: put it into the 'misc' category Gan Qixin
3 siblings, 1 reply; 10+ messages in thread
From: Gan Qixin @ 2020-11-11 16:47 UTC (permalink / raw)
To: qemu-devel, qemu-trivial
Cc: thuth, zhang.zhanghailiang, mst, laurent, armbru, Gan Qixin,
kuhn.chenqun, philmd
The category of the nand device is not set, put it into the 'storage'
category.
Signed-off-by: Gan Qixin <ganqixin@huawei.com>
---
hw/block/nand.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/block/nand.c b/hw/block/nand.c
index bcceb64ebb..1d7a48a2ec 100644
--- a/hw/block/nand.c
+++ b/hw/block/nand.c
@@ -449,6 +449,7 @@ static void nand_class_init(ObjectClass *klass, void *data)
dc->reset = nand_reset;
dc->vmsd = &vmstate_nand;
device_class_set_props(dc, nand_properties);
+ set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
}
static const TypeInfo nand_info = {
--
2.23.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 4/4] max111x: put it into the 'misc' category
2020-11-11 16:47 [PATCH v2 0/4] Categorize some uncategorized devices Gan Qixin
` (2 preceding siblings ...)
2020-11-11 16:47 ` [PATCH v2 3/4] nand: put it into the 'storage' category Gan Qixin
@ 2020-11-11 16:47 ` Gan Qixin
3 siblings, 0 replies; 10+ messages in thread
From: Gan Qixin @ 2020-11-11 16:47 UTC (permalink / raw)
To: qemu-devel, qemu-trivial
Cc: thuth, zhang.zhanghailiang, mst, laurent, armbru, Gan Qixin,
kuhn.chenqun, philmd
The category of the max111x device is not set, put it into the 'misc'
category.
Signed-off-by: Gan Qixin <ganqixin@huawei.com>
---
hw/misc/max111x.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/misc/max111x.c b/hw/misc/max111x.c
index 7e6723f343..eae0f9b598 100644
--- a/hw/misc/max111x.c
+++ b/hw/misc/max111x.c
@@ -185,6 +185,7 @@ static void max111x_class_init(ObjectClass *klass, void *data)
k->transfer = max111x_transfer;
dc->reset = max111x_reset;
dc->vmsd = &vmstate_max111x;
+ set_bit(DEVICE_CATEGORY_MISC, dc->categories);
}
static const TypeInfo max111x_info = {
--
2.23.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v2 1/4] ssd0323: put it into the 'display' category
2020-11-11 16:47 ` [PATCH v2 1/4] ssd0323: put it into the 'display' category Gan Qixin
@ 2020-11-12 7:34 ` Thomas Huth
0 siblings, 0 replies; 10+ messages in thread
From: Thomas Huth @ 2020-11-12 7:34 UTC (permalink / raw)
To: Gan Qixin, qemu-devel, qemu-trivial
Cc: Peter Maydell, zhang.zhanghailiang, mst, laurent, armbru,
qemu-arm, Gerd Hoffmann, kuhn.chenqun, philmd
On 11/11/2020 17.47, Gan Qixin wrote:
> The category of the ssd0323 device is not set, put it into the 'display'
> category.
>
> Signed-off-by: Gan Qixin <ganqixin@huawei.com>
> ---
> hw/display/ssd0323.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/display/ssd0323.c b/hw/display/ssd0323.c
> index 17d4b32ae3..cbfd21dfd5 100644
> --- a/hw/display/ssd0323.c
> +++ b/hw/display/ssd0323.c
> @@ -370,6 +370,7 @@ static void ssd0323_class_init(ObjectClass *klass, void *data)
> k->transfer = ssd0323_transfer;
> k->cs_polarity = SSI_CS_HIGH;
> dc->vmsd = &vmstate_ssd0323;
> + set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
> }
>
> static const TypeInfo ssd0323_info = {
>
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 2/4] ads7846: put it into the 'display' category
2020-11-11 16:47 ` [PATCH v2 2/4] ads7846: " Gan Qixin
@ 2020-11-12 7:36 ` Thomas Huth
2020-11-12 11:19 ` Peter Maydell
1 sibling, 0 replies; 10+ messages in thread
From: Thomas Huth @ 2020-11-12 7:36 UTC (permalink / raw)
To: Gan Qixin, qemu-devel, qemu-trivial
Cc: Peter Maydell, zhang.zhanghailiang, laurent, armbru, qemu-arm,
Gerd Hoffmann, kuhn.chenqun, philmd
On 11/11/2020 17.47, Gan Qixin wrote:
> The category of the ads7846 device is not set, put it into the 'display'
> category.
>
> Signed-off-by: Gan Qixin <ganqixin@huawei.com>
> ---
> hw/display/ads7846.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/display/ads7846.c b/hw/display/ads7846.c
> index 023165b2a3..b455cb5acd 100644
> --- a/hw/display/ads7846.c
> +++ b/hw/display/ads7846.c
> @@ -163,10 +163,12 @@ static void ads7846_realize(SSISlave *d, Error **errp)
>
> static void ads7846_class_init(ObjectClass *klass, void *data)
> {
> + DeviceClass *dc = DEVICE_CLASS(klass);
> SSISlaveClass *k = SSI_SLAVE_CLASS(klass);
>
> k->realize = ads7846_realize;
> k->transfer = ads7846_transfer;
> + set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
> }
>
> static const TypeInfo ads7846_info = {
>
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 3/4] nand: put it into the 'storage' category
2020-11-11 16:47 ` [PATCH v2 3/4] nand: put it into the 'storage' category Gan Qixin
@ 2020-11-12 7:38 ` Thomas Huth
0 siblings, 0 replies; 10+ messages in thread
From: Thomas Huth @ 2020-11-12 7:38 UTC (permalink / raw)
To: Gan Qixin, qemu-devel, qemu-trivial
Cc: zhang.zhanghailiang, Qemu-block, laurent, armbru, kuhn.chenqun,
philmd
On 11/11/2020 17.47, Gan Qixin wrote:
> The category of the nand device is not set, put it into the 'storage'
> category.
>
> Signed-off-by: Gan Qixin <ganqixin@huawei.com>
> ---
> hw/block/nand.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/block/nand.c b/hw/block/nand.c
> index bcceb64ebb..1d7a48a2ec 100644
> --- a/hw/block/nand.c
> +++ b/hw/block/nand.c
> @@ -449,6 +449,7 @@ static void nand_class_init(ObjectClass *klass, void *data)
> dc->reset = nand_reset;
> dc->vmsd = &vmstate_nand;
> device_class_set_props(dc, nand_properties);
> + set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
> }
>
> static const TypeInfo nand_info = {
>
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 2/4] ads7846: put it into the 'display' category
2020-11-11 16:47 ` [PATCH v2 2/4] ads7846: " Gan Qixin
2020-11-12 7:36 ` Thomas Huth
@ 2020-11-12 11:19 ` Peter Maydell
2020-11-12 11:53 ` ganqixin
1 sibling, 1 reply; 10+ messages in thread
From: Peter Maydell @ 2020-11-12 11:19 UTC (permalink / raw)
To: Gan Qixin
Cc: Thomas Huth, zhanghailiang, Michael S. Tsirkin, QEMU Trivial,
Markus Armbruster, Laurent Vivier, QEMU Developers,
Chenqun (kuhn), Philippe Mathieu-Daudé
On Thu, 12 Nov 2020 at 07:25, Gan Qixin <ganqixin@huawei.com> wrote:
>
> The category of the ads7846 device is not set, put it into the 'display'
> category.
>
> Signed-off-by: Gan Qixin <ganqixin@huawei.com>
> ---
> hw/display/ads7846.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/display/ads7846.c b/hw/display/ads7846.c
> index 023165b2a3..b455cb5acd 100644
> --- a/hw/display/ads7846.c
> +++ b/hw/display/ads7846.c
> @@ -163,10 +163,12 @@ static void ads7846_realize(SSISlave *d, Error **errp)
>
> static void ads7846_class_init(ObjectClass *klass, void *data)
> {
> + DeviceClass *dc = DEVICE_CLASS(klass);
> SSISlaveClass *k = SSI_SLAVE_CLASS(klass);
>
> k->realize = ads7846_realize;
> k->transfer = ads7846_transfer;
> + set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
> }
This isn't a display, despite being in hw/display. It's a
touch-screen controller, so it ought to be in hw/input
and be DEVICE_CATEGORY_INPUT.
thanks
-- PMM
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [PATCH v2 2/4] ads7846: put it into the 'display' category
2020-11-12 11:19 ` Peter Maydell
@ 2020-11-12 11:53 ` ganqixin
0 siblings, 0 replies; 10+ messages in thread
From: ganqixin @ 2020-11-12 11:53 UTC (permalink / raw)
To: Peter Maydell
Cc: Thomas Huth, Zhanghailiang, Michael S. Tsirkin, QEMU Trivial,
Markus Armbruster, Laurent Vivier, QEMU Developers,
Chenqun (kuhn), Philippe Mathieu-Daudé
> -----Original Message-----
> From: Peter Maydell [mailto:peter.maydell@linaro.org]
> Sent: Thursday, November 12, 2020 7:20 PM
> To: ganqixin <ganqixin@huawei.com>
> Cc: QEMU Developers <qemu-devel@nongnu.org>; QEMU Trivial
> <qemu-trivial@nongnu.org>; Thomas Huth <thuth@redhat.com>;
> Zhanghailiang <zhang.zhanghailiang@huawei.com>; Michael S. Tsirkin
> <mst@redhat.com>; Laurent Vivier <laurent@vivier.eu>; Markus Armbruster
> <armbru@redhat.com>; Chenqun (kuhn) <kuhn.chenqun@huawei.com>;
> Philippe Mathieu-Daudé <philmd@redhat.com>
> Subject: Re: [PATCH v2 2/4] ads7846: put it into the 'display' category
>
> On Thu, 12 Nov 2020 at 07:25, Gan Qixin <ganqixin@huawei.com> wrote:
> >
> > The category of the ads7846 device is not set, put it into the 'display'
> > category.
> >
> > Signed-off-by: Gan Qixin <ganqixin@huawei.com>
> > ---
> > hw/display/ads7846.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/hw/display/ads7846.c b/hw/display/ads7846.c index
> > 023165b2a3..b455cb5acd 100644
> > --- a/hw/display/ads7846.c
> > +++ b/hw/display/ads7846.c
> > @@ -163,10 +163,12 @@ static void ads7846_realize(SSISlave *d, Error
> > **errp)
> >
> > static void ads7846_class_init(ObjectClass *klass, void *data) {
> > + DeviceClass *dc = DEVICE_CLASS(klass);
> > SSISlaveClass *k = SSI_SLAVE_CLASS(klass);
> >
> > k->realize = ads7846_realize;
> > k->transfer = ads7846_transfer;
> > + set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
> > }
>
> This isn't a display, despite being in hw/display. It's a touch-screen controller,
> so it ought to be in hw/input and be DEVICE_CATEGORY_INPUT.
>
Thanks for your reply, I will recategorize ads7846.
Gan Qixin
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2020-11-12 11:55 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-11 16:47 [PATCH v2 0/4] Categorize some uncategorized devices Gan Qixin
2020-11-11 16:47 ` [PATCH v2 1/4] ssd0323: put it into the 'display' category Gan Qixin
2020-11-12 7:34 ` Thomas Huth
2020-11-11 16:47 ` [PATCH v2 2/4] ads7846: " Gan Qixin
2020-11-12 7:36 ` Thomas Huth
2020-11-12 11:19 ` Peter Maydell
2020-11-12 11:53 ` ganqixin
2020-11-11 16:47 ` [PATCH v2 3/4] nand: put it into the 'storage' category Gan Qixin
2020-11-12 7:38 ` Thomas Huth
2020-11-11 16:47 ` [PATCH v2 4/4] max111x: put it into the 'misc' category Gan Qixin
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).