All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: BALATON Zoltan <balaton@eik.bme.hu>
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
	qemu-devel@nongnu.org, "Ilya Leoshkevich" <iii@linux.ibm.com>,
	"Hervé Poussineau" <hpoussin@reactos.org>,
	"Matthew Rosato" <mjrosato@linux.ibm.com>,
	"Gerd Hoffmann" <kraxel@redhat.com>,
	"Glenn Miles" <milesg@linux.ibm.com>,
	"Samuel Tardieu" <sam@rfc1149.net>,
	qemu-block@nongnu.org, "Patrick Leis" <venture@google.com>,
	"David Hildenbrand" <david@redhat.com>,
	"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
	"Tyrone Ting" <kfting@nuvoton.com>,
	"Eric Farman" <farman@linux.ibm.com>,
	"Christian Borntraeger" <borntraeger@linux.ibm.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Halil Pasic" <pasic@linux.ibm.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Kevin Wolf" <kwolf@redhat.com>,
	"Alistair Francis" <alistair@alistair23.me>,
	"Bernhard Beschow" <shentey@gmail.com>,
	"Hanna Reitz" <hreitz@redhat.com>, "Hao Wu" <wuhaotsh@google.com>,
	qemu-s390x@nongnu.org, qemu-arm@nongnu.org, qemu-ppc@nongnu.org
Subject: Re: [PATCH-for-10.0 01/12] hw/audio/wm8750: Categorize and add description
Date: Wed, 26 Mar 2025 13:46:56 +0100	[thread overview]
Message-ID: <a453429b-2c7e-4ea9-9b36-278fd0fb611e@redhat.com> (raw)
In-Reply-To: <205e31d4-9dc5-dfec-f012-94b3ee9dfa2a@eik.bme.hu>

On 26/03/2025 13.39, BALATON Zoltan wrote:
> On Wed, 26 Mar 2025, Thomas Huth wrote:
>> On 26/03/2025 07.47, Thomas Huth wrote:
>>> On 25/03/2025 23.42, Philippe Mathieu-Daudé wrote:
>>>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>>>> ---
>>>>   hw/audio/wm8750.c | 2 ++
>>>>   1 file changed, 2 insertions(+)
>>>>
>>>> diff --git a/hw/audio/wm8750.c b/hw/audio/wm8750.c
>>>> index 8d381dbc658..6c1bb20fb75 100644
>>>> --- a/hw/audio/wm8750.c
>>>> +++ b/hw/audio/wm8750.c
>>>> @@ -721,6 +721,8 @@ static void wm8750_class_init(ObjectClass *klass, 
>>>> void *data)
>>>>       sc->send = wm8750_tx;
>>>>       dc->vmsd = &vmstate_wm8750;
>>>>       device_class_set_props(dc, wm8750_properties);
>>>> +    set_bit(DEVICE_CATEGORY_SOUND, dc->categories);
>>>> +    dc->desc = "WM8750 Stereo CODEC";
>>>>   }
>>>>   static const TypeInfo wm8750_info = {
>>>
>>> Reviewed-by: Thomas Huth <thuth@redhat.com>
>>
>> Looking at this twice, I think the patch is not OK in its current shape: 
>> The wm8750 device now shows up twice in the output of "-device help", once 
>> in the "Sound" category and once in the "Misc" category (inherited from 
>> I2C device). That's somewhat ugly. I guess you'd need to remove the MISC 
>> bit here to clean that up?
> 
> Maybe we could add an i2c category for those devices? But in this case it 
> fits in multiple categories.

I think we should aim for the most specific category only. For example, we 
also have things like "usb-mouse" or "usb-tablet", but these only show up in 
the "input" category, and not in the "USB device" category.

By the way, it's somewhat weird that we have a USB category, but not a PCI 
or I2C category ... maybe we should rather get rid of that USB category and 
classify the HCDs as "controller/bridges" like we do it for the PCI host 
controllers?

  Thomas


  reply	other threads:[~2025-03-26 12:48 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-25 22:42 [PATCH-for-10.0 00/12] hw: Categorize few devices and add their descriptions Philippe Mathieu-Daudé
2025-03-25 22:42 ` [PATCH-for-10.0 01/12] hw/audio/wm8750: Categorize and add description Philippe Mathieu-Daudé
2025-03-26  6:47   ` Thomas Huth
2025-03-26  6:57     ` Thomas Huth
2025-03-26 12:39       ` BALATON Zoltan
2025-03-26 12:46         ` Thomas Huth [this message]
2025-03-25 22:43 ` [PATCH-for-10.0 02/12] hw/block/m25p80: " Philippe Mathieu-Daudé
2025-03-26  6:59   ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 03/12] hw/display/dm163: Add description Philippe Mathieu-Daudé
2025-03-26  7:01   ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 04/12] hw/dma/i82374: Categorize and add description Philippe Mathieu-Daudé
2025-03-26  7:04   ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 05/12] hw/gpio/pca9552: " Philippe Mathieu-Daudé
2025-03-26  7:05   ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 06/12] hw/i2c/pca954x: " Philippe Mathieu-Daudé
2025-03-25 22:55   ` Corey Minyard
2025-03-26  7:06   ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 07/12] hw/misc/axp2xx: " Philippe Mathieu-Daudé
2025-03-26  7:08   ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 08/12] hw/misc/pll: Do not expose as user-creatable Philippe Mathieu-Daudé
2025-03-26  7:08   ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 09/12] hw/nvram/xlnx-efuse: " Philippe Mathieu-Daudé
2025-03-26  7:09   ` Thomas Huth
2025-03-25 22:43 ` [PATCH-for-10.0 10/12] hw/rtc: Categorize and add description Philippe Mathieu-Daudé
2025-03-25 23:23   ` BALATON Zoltan
2025-03-27 20:31   ` Bernhard Beschow
2025-03-25 22:43 ` [PATCH-for-10.0 11/12] hw/sensor/temp: " Philippe Mathieu-Daudé
2025-03-26  7:11   ` Thomas Huth
2025-03-25 22:43 ` [RFC PATCH-for-10.0 12/12] hw/s390x/zpci: Re-categorize as BRIDGE Philippe Mathieu-Daudé
2025-03-26  6:54   ` Thomas Huth
2025-03-31 14:35 ` [PATCH-for-10.0 00/12] hw: Categorize few devices and add their descriptions Philippe Mathieu-Daudé

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=a453429b-2c7e-4ea9-9b36-278fd0fb611e@redhat.com \
    --to=thuth@redhat.com \
    --cc=alistair@alistair23.me \
    --cc=balaton@eik.bme.hu \
    --cc=borntraeger@linux.ibm.com \
    --cc=david@redhat.com \
    --cc=edgar.iglesias@gmail.com \
    --cc=farman@linux.ibm.com \
    --cc=hpoussin@reactos.org \
    --cc=hreitz@redhat.com \
    --cc=iii@linux.ibm.com \
    --cc=kfting@nuvoton.com \
    --cc=kraxel@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=milesg@linux.ibm.com \
    --cc=mjrosato@linux.ibm.com \
    --cc=pasic@linux.ibm.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=sam@rfc1149.net \
    --cc=shentey@gmail.com \
    --cc=venture@google.com \
    --cc=wuhaotsh@google.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.