From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A387D606A320 for ; Mon, 30 Nov 2026 15:15:50 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xY369-0004Wu-RI; Mon, 30 Nov 2026 10:15:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xY35t-0004K7-Am; Mon, 30 Nov 2026 10:15:08 -0500 Received: from zero.eik.bme.hu ([152.66.115.2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xY35r-0004G1-EA; Mon, 30 Nov 2026 10:15:05 -0500 Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id D377760C1F4; Mon, 30 Nov 2026 16:14:57 +0100 (CET) X-Virus-Scanned: amavis at eik.bme.hu Received: from zero.eik.bme.hu ([127.0.0.1]) by localhost (zero.eik.bme.hu [127.0.0.1]) (amavis, port 10028) with ESMTP id cTC71fdvfkyd; Mon, 30 Nov 2026 16:14:55 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id C168760C16B; Mon, 30 Nov 2026 16:14:55 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id BE41A13B53E; Mon, 30 Nov 2026 16:14:55 +0100 (CET) Date: Mon, 30 Nov 2026 16:14:55 +0100 (CET) From: BALATON Zoltan To: =?ISO-8859-15?Q?Oscar_Alejandro_S=E1nchez_Lucero?= cc: qemu-devel@nongnu.org, Nicholas Piggin , Aditya Gupta , Glenn Miles , Harsh Prateek Bora , qemu-ppc@nongnu.org, Bernhard Beschow , Amit Machhiwal , Peter Maydell Subject: Re: [PATCH 0/8] hw/ppc: Convert remaining PPC devices to Resettable interface In-Reply-To: <20261130-ppc-resettable-v1-0-dc9f7fe881e4@gmail.com> Message-ID: <882a09bc-e39b-deee-53d2-6298dc0fcb87@eik.bme.hu> References: <20261130-ppc-resettable-v1-0-dc9f7fe881e4@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="3866299591-1118886755-1796051457=:28973" Content-ID: <8dfe26e3-b434-b891-210b-b8f473450aad@eik.bme.hu> Received-SPF: pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --3866299591-1118886755-1796051457=:28973 Content-Type: text/plain; CHARSET=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8BIT Content-ID: <33aa7c9e-bc20-f1ac-f054-585aba576147@eik.bme.hu> On Mon, 30 Nov 2026, Oscar Alejandro Sánchez Lucero wrote: > This series converts the remaining PowerPC device models in hw/ppc/ > (pnv_psi, ppc4xx_devs, ppc4xx_sdram, ppce500_spin, spapr_cpu_core, > spapr_iommu, spapr_pci, and spapr_vio) from the deprecated > device_class_set_legacy_reset() to the three-phase ResettableClass > interface. How is this different than what do_legacy_reset does calling a single reset function at hold phase? While device_class_set_legacy_reset is called legacy it does not mean it's deprecated for simple devices which does not need multi-phase reset. Is there anything that this conversion is needed for that cannot be done in do_legacy_reset keeping device_class_set_legacy_reset as a convenience function for devices that don't need multi-phase reset and avoid all this churn? If you're bothered by the name it could be renamed to device_class_set_simple_reset or device_class_set_reset_hold but that probably isn't worth the churn either. Regards, BALATON Zoltan > Signed-off-by: Oscar Alejandro Sánchez Lucero > --- > Oscar Alejandro Sánchez Lucero (8): > hw/ppc/pnv_psi: Convert to Resettable interface > hw/ppc/ppc4xx_devs: Convert to Resettable interface > hw/ppc/ppc4xx_sdram: Convert to Resettable interface > hw/ppc/ppce500_spin: Convert to Resettable interface > hw/ppc/spapr_cpu_core: Convert to Resettable interface > hw/ppc/spapr_iommu: Convert to Resettable interface > hw/ppc/spapr_pci: Convert to Resettable interface > hw/ppc/spapr_vio: Convert to Resettable interface > > hw/ppc/pnv_psi.c | 24 +++++++++++++++++------- > hw/ppc/ppc4xx_devs.c | 27 +++++++++++++++++---------- > hw/ppc/ppc4xx_sdram.c | 17 +++++++++++------ > hw/ppc/ppce500_spin.c | 9 +++++---- > hw/ppc/spapr_cpu_core.c | 13 ++++++++----- > hw/ppc/spapr_iommu.c | 8 +++++--- > hw/ppc/spapr_pci.c | 14 ++++++++------ > hw/ppc/spapr_vio.c | 8 +++++--- > 8 files changed, 76 insertions(+), 44 deletions(-) > --- > base-commit: 9751c62358073580cbf330a4df22077a7c6a407c > change-id: 20261130-ppc-resettable-d073d385443e > > Best regards, > -- > Oscar Alejandro Sánchez Lucero > > > --3866299591-1118886755-1796051457=:28973--