qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Ian Molton <ian.molton@collabora.co.uk>,
	qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [FOR 0.12 PATCH] qdev: Replace device names containing whitespace
Date: Sun, 13 Dec 2009 07:11:11 +0000	[thread overview]
Message-ID: <f43fc5580912122311g139a88d6s6376730e3f37b123@mail.gmail.com> (raw)
In-Reply-To: <m34onwcblh.fsf@crossbow.pond.sub.org>

On Sat, Dec 12, 2009 at 6:04 PM, Markus Armbruster <armbru@redhat.com> wrote:
> Blue Swirl <blauwirbel@gmail.com> writes:
>
>> On Wed, Dec 9, 2009 at 11:43 AM, Markus Armbruster <armbru@redhat.com> wrote:
>>> Ian Molton <ian.molton@collabora.co.uk> writes:
>>>
>>>> Markus Armbruster wrote:
>>>>
>>>>> The place for verbose device names is DeviceInfo member desc.  The
>>>>> name should be short & sweet.
>>>>
>>>> Agreed, however...
>>>>
>>>> Why do these (maybe others) get caps in their names? they dont look
>>>> right to me, compared to the others with nice names like usb-serial,
>>>> piix-ide, or cirrus-vga.
>>>>
>>>>> -    sysbus_register_dev("Uni-north main", sizeof(UNINState),
>>>>> +    sysbus_register_dev("Uni-north-main", sizeof(UNINState),
>>>>>                          pci_unin_main_init_device);
>>>>>      pci_qdev_register(&unin_main_pci_host_info);
>>>>> -    sysbus_register_dev("DEC 21154", sizeof(UNINState),
>>>>> +    sysbus_register_dev("DEC-21154", sizeof(UNINState),
>>>>>                          pci_dec_21154_init_device);
>>>>>      pci_qdev_register(&dec_21154_pci_host_info);
>>>>> -    sysbus_register_dev("Uni-north AGP", sizeof(UNINState),
>>>>> +    sysbus_register_dev("Uni-north-AGP", sizeof(UNINState),
>>>>>                          pci_unin_agp_init_device);
>>>>>      pci_qdev_register(&unin_agp_pci_host_info);
>>>>> -    sysbus_register_dev("Uni-north internal", sizeof(UNINState),
>>>>> +    sysbus_register_dev("Uni-north-internal", sizeof(UNINState),
>>>>>                          pci_unin_internal_init_device);
>>>>>      pci_qdev_register(&unin_internal_pci_host_info);
>>>>>  }
>>>
>>> I can downcase them.  Blue Swirl, any objections?
>>>
>>
>> I'd prefer the same names that are used by the device tree, like uni-n
>> and uni-north-agp. Though the bridge is name poorly, just
>> "pci-bridge".
>>
>> For example:
>> http://penguinppc.org/historical/dev-trees-html/imac_400_1.html
>
> If I read that document correctly, we have
>
>    old qdev name               device tree name
>    Uni-north main              uni-n
>    Uni-north AGP               uni-north-agp
>    Uni-north internal          pci
>    DEC 21154                   pci-bridge
>
> Do you want me to respin my patch?  If yes, the best way to make me do
> exactly what you want is to tell me exactly what you want.  In this
> case, tell me the names you want.

'pci' and 'pci-bridge' are too generic, so please respin with these:
   Uni-north main              uni-north
   Uni-north AGP               uni-north-agp
   Uni-north internal          uni-north-pci
   DEC 21154                   dec-21154

  reply	other threads:[~2009-12-13  7:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-08 20:45 [Qemu-devel] [FOR 0.12 PATCH] qdev: Replace device names containing whitespace Markus Armbruster
2009-12-09  7:40 ` [Qemu-devel] " Gerd Hoffmann
2009-12-09  8:09   ` Markus Armbruster
2009-12-09  9:28 ` [Qemu-devel] " Ian Molton
2009-12-09  9:43   ` Markus Armbruster
2009-12-12  8:58     ` Blue Swirl
2009-12-12 18:04       ` Markus Armbruster
2009-12-13  7:11         ` Blue Swirl [this message]
2009-12-14  9:41           ` [FOR 0.12 PATCH] qdev: Improve uni-north device names (was: [Qemu-devel] [FOR 0.12 PATCH] qdev: Replace device names containing whitespace) Markus Armbruster

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=f43fc5580912122311g139a88d6s6376730e3f37b123@mail.gmail.com \
    --to=blauwirbel@gmail.com \
    --cc=armbru@redhat.com \
    --cc=ian.molton@collabora.co.uk \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@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).