From patchwork Mon Feb 10 20:41:48 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 863830 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e42:0:b0:385:e875:8a9e with SMTP id r2csp1791486wrt; Mon, 10 Feb 2025 12:44:03 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX0XgChQI/H5PChd1k6i0pyNV0liynueKYXehtEQ/QRZqQ/4A/HVmISnvvKjT9BGQOYHql37g==@linaro.org X-Google-Smtp-Source: AGHT+IE7s1uEWO0/a9F9TTS5lbuTH94naeO0MHOW8eMVJ1RpgjzVhZlSQjW+Mn9zyYgoxlnNBjma X-Received: by 2002:a05:622a:182a:b0:46e:4de6:8a06 with SMTP id d75a77b69052e-47167b1c3f6mr194932531cf.52.1739220243292; Mon, 10 Feb 2025 12:44:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1739220243; cv=none; d=google.com; s=arc-20240605; b=gdRmRTdE9CeBDCcbLsDEtJz98SurrbZv4n6MIkspLcPQGpT7ygCmKICCODZt+ge513 v872M9Nf7V7Kav6govqmMpFeBTxuXUwscmDuKDyAO0Ezyiq/Ahoy7lrCvh0iVO4cm/26 rFOxMg7IqaiNAZ2MS/SrOR6jy9NsOEek3bJrybn4HZ/2RxAbnMox48w6XDCJlcm7Fxnc 7Rr3LSKVwQa9KtMR2hkTgwR8QkRx65klKWQ84cco0VIrmW8cOTgR6hrnoje52fLkIUdn O5X60mmviPGaVE7i61xBCA1742BzqkiC/Flo+jR0azAYT3XY1ljgPy8VW6ElCDWxe7ga 49wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SlCwGl9a0Wn+Waa2w2Ewq41sfDqQZGhbhfbBayKi8KM=; fh=p6yy9bWunXQChav6hTy7nJLd0M27gB3MRJyhC7ENavs=; b=k0g7yQKWtPX9pPQfJqfGvTxoBxksjsytk7u7XpYs21kWZ7n/gr6eZAqu/vNIQQH7bZ pjQngj3dxK2HxBkzfygQO+GDpnPU14r1oybiPd/hSuioEc76QN0LHNPS9xHIbNLjujIS UWJAd9nB37h4VpBew3KY5YTQR8w3JY2pBhSVFYMT7PZ7IkLnUSPES1BePrPKUjs7Xxs/ /hblQtHdKdYbwFgp/1/5u4B7Q0d/sf2YhbXq6WIYsG1RLvLd+LkvjzZhWhh+6F6x9+Ek EnJpPT+oce/JwmSzlwmY8drrtGhWWH+6wev/hBET3xIY9baW5DWosMOdrWibPx0SBX9d i0pw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fo6a6gh3; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-47189ba55a1si39390351cf.127.2025.02.10.12.44.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Feb 2025 12:44:03 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fo6a6gh3; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1thacz-0008Ju-9v; Mon, 10 Feb 2025 15:43:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1thacx-00086E-HD for qemu-devel@nongnu.org; Mon, 10 Feb 2025 15:43:35 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1thacu-0003i3-Ql for qemu-devel@nongnu.org; Mon, 10 Feb 2025 15:43:35 -0500 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-38dc9eba8a1so2960001f8f.1 for ; Mon, 10 Feb 2025 12:43:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739220210; x=1739825010; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SlCwGl9a0Wn+Waa2w2Ewq41sfDqQZGhbhfbBayKi8KM=; b=fo6a6gh3zZGLz3p/aMTH52JnHEhQddgu+ScHtJKmhxMg/EbvD7csUesQoAmHxmPQP1 3FY62X/WlE9AjnRcGx04JPn8ddjksySiXfzqaqJ7nkyp8N0hmTN+Gdxunjgz09Oyswcd +rZ4bj0mjth/5uWuUvYM4XuyvMNy3x6GtMXPGf2lVCU3oC3vNFwfg/V2BSktuN05yYo1 0LWglYaxhd6twsFvj7g0+LDRRsiZc9eQk/TlAfgSP+v7FroQEcQlRHj2v+4tNbfYhoka 272Pt1P22rkuzivdX2TOknTBbIEefR8iaaMaawJ68X5mmWcoEBMFL61U5DgpGBLmJNiO GT0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739220210; x=1739825010; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SlCwGl9a0Wn+Waa2w2Ewq41sfDqQZGhbhfbBayKi8KM=; b=KLfSD9bbQUwvGKj2sGgA9rJblmboob2ZdVWwe+oM6i7Ryc3NYANuC2Aw7x/T9oxrDy HKrzZLFPK82a2yB45kbKPGPu0npOtIkZ35KLCkxOFWsg+hSOnZ1S5msmzFkpt3uNHslA flwCYqeqOgnLjffQCeSeEIOp7kX3RxPHhe1hwJ5Ui0xyBJGkM3L4/ilo+PpRrwmWJmcS UZT3B2x9c83PhSNdvhXbSLpb/08Yr30l6oeOfn17Y9IL5h3SvAxeXKgnZC9q5QGEuW50 UpfXsRdz/oVyH23/lVe7Jf/INPNX9zplPhJbe5YkmQ6IpoWhPYgIfT0ye9smP1d7YSUd 50dQ== X-Gm-Message-State: AOJu0YxCVeSN3LVK4T5JXlG6Ae9yP2oBiHfSWViSxcdUT03zEVpfQZg+ QPWfn5/zRxNXh42L8xaw6LzmoJN44rui8GSbnnilwucOQgc7S8T6bTsrrAO+Y4Dqmav9BQRhvR7 30kg= X-Gm-Gg: ASbGncuvHIKCiYyrSAur1bWW0wvKbKdDRMq+SJ8vnUszjfhVUj9oPqOFsgh0yi7+p8k F90fJGQLk5dqRl7E7ZwlVAfm2ad/y0yHnjJHyOyG0Sd1MPkNNQks+ksydpCxdSs7BAWZaTZ0+M4 LzdZDV25UB/R3gJiH/G/I2x/XsdiPKxRLsewEAL8u514QOUDOSMWUc4tVtrqlwmdKGycq7FjrsQ heQgt4TGPOIhT2/qvMv+y6TyJWbt7+aE3/3xZaS8CdeRxeJ8ye7oUG0j/OKCG/HSJpph8jKGG+r HbCAyziUsPtD+VeuSbmFg0KUp7rU+T3FLeUg7ObDV7zGH/Rktnjpy1N5EbF9c0LwuQ== X-Received: by 2002:adf:e6cb:0:b0:385:f72a:a3b0 with SMTP id ffacd0b85a97d-38dc9357796mr8459637f8f.55.1739220210461; Mon, 10 Feb 2025 12:43:30 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4390db11264sm187851455e9.35.2025.02.10.12.43.27 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 10 Feb 2025 12:43:29 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Alexander Graf , =?utf-8?q?Cl=C3=A9ment_Mathieu--Drif?= , Bernhard Beschow Subject: [PULL 16/32] hw/net: Have eTSEC device inherit from DYNAMIC_SYS_BUS_DEVICE Date: Mon, 10 Feb 2025 21:41:48 +0100 Message-ID: <20250210204204.54407-17-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250210204204.54407-1-philmd@linaro.org> References: <20250210204204.54407-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=philmd@linaro.org; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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é Reviewed-by: Richard Henderson Reviewed-by: Alexander Graf Reviewed-by: Clément Mathieu--Drif Tested-by: Bernhard Beschow Acked-by: Bernhard Beschow Message-Id: <20250125181343.59151-8-philmd@linaro.org> --- 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,