From patchwork Mon Jul 29 14:56:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Hedde X-Patchwork-Id: 11063951 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2492914DB for ; Mon, 29 Jul 2019 15:05:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05A532858F for ; Mon, 29 Jul 2019 15:05:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9C55285FF; Mon, 29 Jul 2019 15:05:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 954112858F for ; Mon, 29 Jul 2019 15:05:57 +0000 (UTC) Received: from localhost ([::1]:53052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs7Do-0007ln-U2 for patchwork-qemu-devel@patchwork.kernel.org; Mon, 29 Jul 2019 11:05:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38609) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hs78A-0005Vy-QG for qemu-devel@nongnu.org; Mon, 29 Jul 2019 11:00:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hs789-0005aQ-MZ for qemu-devel@nongnu.org; Mon, 29 Jul 2019 11:00:06 -0400 Received: from beetle.greensocs.com ([5.135.226.135]:49050) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hs784-0005RB-Fp; Mon, 29 Jul 2019 11:00:00 -0400 Received: from kouign-amann.bar.greensocs.com (unknown [172.16.11.117]) by beetle.greensocs.com (Postfix) with ESMTPS id 4D14496F8E; Mon, 29 Jul 2019 14:59:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greensocs.com; s=mail; t=1564412355; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1IcmTa6ZKW/z4Jx3NrXrLMXyWQItUUT4uM9Fbt082nk=; b=kGJsb5r2TQPh4AeCIdCB5Qzktp39BcQt2H0Gt7oOG4ke7McCWnh86aPOKqQsOAE9SBfRCV dTmeVoHGkSrmJXcOlCs6BYdv9rW/+ALcn45k6JSk/3zG8bBCFh1MMYsQeDCE0AdCqwPVha GdH0oQl+in0CAQHFqYPPbuaWUemw6Hc= From: Damien Hedde To: qemu-devel@nongnu.org Date: Mon, 29 Jul 2019 16:56:39 +0200 Message-Id: <20190729145654.14644-19-damien.hedde@greensocs.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729145654.14644-1-damien.hedde@greensocs.com> References: <20190729145654.14644-1-damien.hedde@greensocs.com> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=greensocs.com; s=mail; t=1564412355; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1IcmTa6ZKW/z4Jx3NrXrLMXyWQItUUT4uM9Fbt082nk=; b=Z24LGGv2BLyH75b14UHx+FfmhKjVUmmitwbZ9Zu8nb9PlgFrSfOMaEb7RKnvA5dZhXDOlI uaeppMxaN/NV+V5Jmb0xF5O17tDIBjMGC9UeABlarXR2Cw5QfbRLD2ysOWKKqLn9/OvR7v OUDd+lmNAld1cuochbH/YrsGYgIArqQ= ARC-Seal: i=1; s=mail; d=greensocs.com; t=1564412355; a=rsa-sha256; cv=none; b=6jwmvBOPhgmR+MptX9yyEXkwvsonDOItuhfibT+jtnmm0MgPHyPjuAvdZFgJq83IAN/xyb f69FL/4u9AYd0vPIxMZqgvuQCtpDpgwsQAUU6dxeHcYxu913ficLneapQqL3IRdkcVj2al UAAdJBK92dHKTmqS9PiLTXdRebxH91k= ARC-Authentication-Results: i=1; beetle.greensocs.com; none X-Spam: Yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 5.135.226.135 Subject: [Qemu-devel] [PATCH v3 18/33] hw/audio/intel-hda.c: remove device_legacy_reset call X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, peter.maydell@linaro.org, walling@linux.ibm.com, dmitry.fleytman@gmail.com, mst@redhat.com, mark.cave-ayland@ilande.co.uk, kraxel@redhat.com, edgar.iglesias@xilinx.com, hare@suse.com, qemu-block@nongnu.org, david@redhat.com, pasic@linux.ibm.com, borntraeger@de.ibm.com, marcandre.lureau@redhat.com, rth@twiddle.net, thuth@redhat.com, ehabkost@redhat.com, alistair@alistair23.me, qemu-s390x@nongnu.org, qemu-arm@nongnu.org, clg@kaod.org, jsnow@redhat.com, david@gibson.dropbear.id.au, Damien Hedde , berrange@redhat.com, cohuck@redhat.com, mark.burton@greensocs.com, qemu-ppc@nongnu.org, pbonzini@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Replace legacy's reset call by device_reset_warm. The new function propagates also the reset to the sub-buses tree but this has no impact since since HDACodecDevice has no child bus. Signed-off-by: Damien Hedde --- hw/audio/intel-hda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c index f133684b10..523bb3e2ca 100644 --- a/hw/audio/intel-hda.c +++ b/hw/audio/intel-hda.c @@ -1086,7 +1086,7 @@ static void intel_hda_reset(DeviceState *dev) QTAILQ_FOREACH(kid, &d->codecs.qbus.children, sibling) { DeviceState *qdev = kid->child; cdev = HDA_CODEC_DEVICE(qdev); - device_legacy_reset(DEVICE(cdev)); + device_reset_warm(DEVICE(cdev)); d->state_sts |= (1 << cdev->cad); } intel_hda_update_irq(d);