From patchwork Fri Nov 4 16:15:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 1699721 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=NZZYVQ2d; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4N3m4z3s4Lz23ls for ; Sat, 5 Nov 2022 03:18:11 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqzMi-0008Mi-Su; Fri, 04 Nov 2022 12:16:20 -0400 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 1oqzLn-0006Oe-62 for qemu-ppc@nongnu.org; Fri, 04 Nov 2022 12:15:32 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqzLi-0000f0-QX for qemu-ppc@nongnu.org; Fri, 04 Nov 2022 12:15:21 -0400 Received: by mail-wr1-x434.google.com with SMTP id cl5so7711673wrb.9 for ; Fri, 04 Nov 2022 09:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=H9hwAA0DcxOYZoJyqoZ1ozIGEqWmFdqQjoUlMglPP7E=; b=NZZYVQ2dDrw2Vs9agDigkkpKHdMad07r+c/c+q+589OubuGsPBwh28jnfjjwPis6zS Hdfv4ppIT8F2xPvylW3/pB9m0x5N5vWBlIDtrhiGF1By2hh0V8/8CPOzbg8apIe7ZcCQ HR4cDRFGS1qBWRmrg61cf21fijIjIG8a/6/g3a57r72PMRwtM1IQWpLMYI28ob4LCERL +GJDHXVoB5JJo8q8/HhH+BTp29+PlcnjXsYcrKFfaM8wchPxglT4vLnp9ITCAymjYVhi ABMT+Fl9co5jCCejWs9bsBavPRERttPlI5uX2iXk9sevE49swYba3Dg67VU2qAPTG7BU ok+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=H9hwAA0DcxOYZoJyqoZ1ozIGEqWmFdqQjoUlMglPP7E=; b=qJm7hGJki6zQS6T7hiHhTO9OyuYB5LQ5baI5gY2KMhhiszWAmHM2SJ6eNG4MDG0V5Z QRHlaIZX8jCJE7Okf9NPFaLIOA/02gu4f/l3TYgxPBiji0FX0guc88RNpzI0J99OINvq gTNDG9m4onM7uEpxbT43oty4KSI4meouo5Bl97+FQA9Eih/hVC8A3L3outLDnmy4nSuT lXTwrixj2aynsT0O1Z2dmFxRzHZR4i2e46LeMcV234nXUw0+H5lEEPfTYYURT5GwVF8Q D75H/vQQDj5S4Mx5XJqqDv4NKeNDu4AF/tTlHBH9VEkW0jpi+I1qtia6/Ra/RGNZaUWW 2Q1g== X-Gm-Message-State: ACrzQf1DShxj1sEPKuokpcGVQqiJnjqkhdlPT5xxfDmOVAnnZpJyP+Wh h135/XV3SvxlBPMUbify2vk+0Q== X-Google-Smtp-Source: AMsMyM4owx1KqXDgTHAHmF2kuapX8ziCR+ECdFmfo3A4DVRRWOAghpvsjodUEeWvBooZnF0oM5Sk/A== X-Received: by 2002:adf:fe01:0:b0:22c:de9a:9896 with SMTP id n1-20020adffe01000000b0022cde9a9896mr259812wrr.27.1667578516125; Fri, 04 Nov 2022 09:15:16 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id ay5-20020a5d6f05000000b0022e57e66824sm4649645wrb.99.2022.11.04.09.15.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 09:15:15 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Cc: "Maciej S. Szmigiero" , Gerd Hoffmann , Paolo Bonzini , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Stefano Stabellini , Anthony Perard , Paul Durrant , Mark Cave-Ayland , Matthew Rosato , Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, qemu-ppc@nongnu.org Subject: [PATCH for-8.0 0/9] reset: Remove some deprecated APIs Date: Fri, 4 Nov 2022 16:15:04 +0000 Message-Id: <20221104161513.2455862-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x434.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-ppc@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Qemu-ppc" Errors-To: qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org This patchset removes the remaining uses of some deprecated reset-related APIs: * device_legacy_reset() -- replaced with device_cold_reset() (conversions require some thought) * qdev_reset_all() -- replaced with device_cold_reset() (mechanical no-behaviour-change conversion) * qbus_reset_all() -- replaced with bus_cold_reset() (mechanical no-behaviour-change conversion) The first four patches have been on the list already; the first three have been reviewed. Mostly just tested with 'make check' and 'make check-avocado'. This is of course all for-8.0 material, but I figured I might as well push it out on list for review, especially since I have some followup stuff that depends on this. thanks -- PMM Peter Maydell (9): hw/s390x/s390-pci-inst.c: Use device_cold_reset() to reset PCI devices hw/audio/intel-hda: don't reset codecs twice hw/audio/intel-hda: Drop unnecessary prototype hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset() pci: Use device_cold_reset() and bus_cold_reset() hw/hyperv/vmbus: Use device_cold_reset() and bus_cold_reset() Replace use of qdev_reset_all() with device_cold_reset() qdev: Remove qdev_reset_all() and qbus_reset_all() hw: Remove device_legacy_reset() include/hw/qdev-core.h | 35 --------------------- hw/audio/intel-hda.c | 6 +--- hw/core/qdev.c | 64 -------------------------------------- hw/hyperv/vmbus.c | 4 +-- hw/i386/xen/xen_platform.c | 2 +- hw/input/adb.c | 2 +- hw/pci/pci.c | 6 ++-- hw/pci/pci_bridge.c | 2 +- hw/remote/vfio-user-obj.c | 2 +- hw/s390x/s390-pci-inst.c | 2 +- hw/s390x/s390-virtio-ccw.c | 2 +- hw/usb/dev-uas.c | 2 +- hw/usb/hcd-xhci-pci.c | 2 +- hw/usb/hcd-xhci-sysbus.c | 2 +- hw/core/trace-events | 4 --- 15 files changed, 15 insertions(+), 122 deletions(-)