qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: "Andreas Färber" <afaerber@suse.de>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Alistair Francis" <alistair.francis@xilinx.com>
Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>,
	QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v1 1/1] char: cadence_uart: Convert to realize()
Date: Fri, 04 Jul 2014 08:50:14 +0200	[thread overview]
Message-ID: <53B64EA6.9000104@suse.de> (raw)
In-Reply-To: <53B58C08.6030206@suse.de>


On 03.07.14 18:59, Andreas Färber wrote:
> Am 03.07.2014 18:46, schrieb Peter Maydell:
>> On 24 June 2014 07:06, Alistair Francis <alistair.francis@xilinx.com> wrote:
>>> SysBusDevice::init is deprecated. Convert to Object::init and
> Note that there is no Object::init, only TypeInfo::instance_init.
>
>>> Device::realize as prescribed by QOM conventions.
>>>
>>> Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
>>> ---
>>>
>>>   hw/char/cadence_uart.c |   29 ++++++++++++++++-------------
>>>   1 files changed, 16 insertions(+), 13 deletions(-)
>>>
>>> diff --git a/hw/char/cadence_uart.c b/hw/char/cadence_uart.c
>>> index bf0c853..5a22a72 100644
>>> --- a/hw/char/cadence_uart.c
>>> +++ b/hw/char/cadence_uart.c
>>> @@ -468,27 +468,30 @@ static void cadence_uart_reset(DeviceState *dev)
>>>       uart_update_status(s);
>>>   }
>>>
>>> -static int cadence_uart_init(SysBusDevice *dev)
>>> +static void candence_uart_realize(DeviceState *dev, Error **errp)
>> Typo in your new function name :-)
>>
>> Otherwise
>> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
> LGTM, but I wonder whether the work Alex is doing on SysBusDevice
> requires us to introduce SysBusDevice::realize, called from
> Device::realize in SysBusDevice code?

I don't think we need a realize function with my patch set - all work 
happens either during the creation phase (generate hint properties) or 
in the machine, after realize has successfully passed.


Alex

      parent reply	other threads:[~2014-07-04  6:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-24  6:06 [Qemu-devel] [PATCH v1 1/1] char: cadence_uart: Convert to realize() Alistair Francis
2014-06-27  0:11 ` Peter Crosthwaite
2014-06-27 10:23   ` Peter Maydell
2014-07-03 16:46 ` Peter Maydell
2014-07-03 16:59   ` Andreas Färber
2014-07-03 23:17     ` Peter Crosthwaite
2015-01-05 22:28       ` Alistair Francis
2014-07-04  6:50     ` Alexander Graf [this message]

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=53B64EA6.9000104@suse.de \
    --to=agraf@suse.de \
    --cc=afaerber@suse.de \
    --cc=alistair.francis@xilinx.com \
    --cc=peter.crosthwaite@xilinx.com \
    --cc=peter.maydell@linaro.org \
    --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).