[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 7/9] hw/net: Have eTSEC device inherit from DYNAMIC_SYS_BUS_DEVICE
- To: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>, "qemu-devel@xxxxxxxxxx" <qemu-devel@xxxxxxxxxx>
- From: CLEMENT MATHIEU--DRIF <clement.mathieu--drif@xxxxxxxxxx>
- Date: Mon, 27 Jan 2025 06:21:32 +0000
- Accept-language: en-GB, fr-FR, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=eviden.com; dmarc=pass action=none header.from=eviden.com; dkim=pass header.d=eviden.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=A7aLgo+KE8CQRIFVKSD9yEnA6yy4B1DvAinfKaDQJGI=; b=AaQsdC/Arrw3i/YbJoGAblsUTFGz1DNP8R3S8n2ZqREnrewkxBIHmppNPysXF2oyRnUkzTrW4SKBRChuLQUupGouRPjkjGSyyIWQ4OO7YiY8Ojy5iq950RR2dJSCnyWRvANlEn1jNZuc2hNNhlWsUgz97aGG5H1C8mr/JF2djcoLqWwn2s6LaRwx02TSb6QrAqac3L3lD1bL+KI/YDMCLywCP/Oi+6EXSJnn8EdTR11o8niKBU5NI6U3KItdDp/dHH7170g9OfGGuvT7go9HIn4N4rqYuuGvSpCe2KcDoCRKaj/99GoaOtoeoyEKFPuD3EPcO7gxsrpEgaDXjxzdIQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FcjwogtPR4nB0hiy2MScdZemD4Cs1toui/ieQJgvmWPcfJm851DhVRmchiHyrWdrhB6jBfjZbTMc7R1xii+yELoyV3HA+CVPYV2PfteGWQR1BpDGDI2trsWe9D4ThRJqNAgvxI5ItkJLvZkC0IJgYm3DYGSPaPwqYBR7hfOnCoEjjqHxYkp2HZg5b5MHyPYEsxXXrK3zWO9krpRHwF2oMSUwchRYl0xRLxH9ZwOetNkDVQZOAZv/gEruZegBdGi696+a75B+RwGU2lmQaN1gCy4WpGMNjk+GoVkQM/rjEmFB8WGgbU6J5Fkp1TX1AJPRNDO5lvtKN/KSjUGaw3uViA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=eviden.com;
- Cc: Yi Liu <yi.l.liu@xxxxxxxxx>, Markus Armbruster <armbru@xxxxxxxxxx>, Eduardo Habkost <eduardo@xxxxxxxxxxx>, Anthony PERARD <anthony@xxxxxxxxxxxxxx>, Gustavo Romero <gustavo.romero@xxxxxxxxxx>, Jason Wang <jasowang@xxxxxxxxxx>, "qemu-ppc@xxxxxxxxxx" <qemu-ppc@xxxxxxxxxx>, "Michael S. Tsirkin" <mst@xxxxxxxxxx>, Paolo Bonzini <pbonzini@xxxxxxxxxx>, Alexander Graf <graf@xxxxxxxxxx>, Richard Henderson <richard.henderson@xxxxxxxxxx>, Stefan Berger <stefanb@xxxxxxxxxxxxxxxxxx>, Bernhard Beschow <shentey@xxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Gerd Hoffmann <kraxel@xxxxxxxxxx>, Daniel P. Berrangé <berrange@xxxxxxxxxx>, "Edgar E. Iglesias" <edgar.iglesias@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Marcel Apfelbaum <marcel.apfelbaum@xxxxxxxxx>, Alex Williamson <alex.williamson@xxxxxxxxxx>, Paul Durrant <paul@xxxxxxx>, Cédric Le Goater <clg@xxxxxxxxxx>
- Delivery-date: Mon, 27 Jan 2025 06:21:37 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHbb1T6QlQEzX4gqEaQ2yn6FyHdDbMqKKoA
- Thread-topic: [PATCH 7/9] hw/net: Have eTSEC device inherit from DYNAMIC_SYS_BUS_DEVICE
Reviewed-by: Clément Mathieu--Drif<clement.mathieu--drif@xxxxxxxxxx>
On 25/01/2025 19:13, Philippe Mathieu-Daudé wrote:
> Caution: External email. Do not open attachments or click links, unless this
> email comes from a known sender and you know the content is safe.
>
>
> Because the network eTSEC device can be optionally plugged on the
> TYPE_PLATFORM_BUS_DEVICE, have it inherit TYPE_DYNAMIC_SYS_BUS_DEVICE.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>
> ---
> hw/net/fsl_etsec/etsec.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/hw/net/fsl_etsec/etsec.c b/hw/net/fsl_etsec/etsec.c
> index 781b9003954..3ce4fa2662d 100644
> --- a/hw/net/fsl_etsec/etsec.c
> +++ b/hw/net/fsl_etsec/etsec.c
> @@ -425,14 +425,12 @@ static void etsec_class_init(ObjectClass *klass, void
> *data)
> dc->realize = etsec_realize;
> device_class_set_legacy_reset(dc, etsec_reset);
> device_class_set_props(dc, etsec_properties);
> - /* Supported by ppce500 machine */
> - dc->user_creatable = true;
> }
>
> static const TypeInfo etsec_types[] = {
> {
> .name = TYPE_ETSEC_COMMON,
> - .parent = TYPE_SYS_BUS_DEVICE,
> + .parent = TYPE_DYNAMIC_SYS_BUS_DEVICE,
> .instance_size = sizeof(eTSEC),
> .class_init = etsec_class_init,
> .instance_init = etsec_instance_init,
> --
> 2.47.1
>
|