From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE8B3C433B4 for ; Sun, 2 May 2021 16:22:45 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 62E7D611B0 for ; Sun, 2 May 2021 16:22:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 62E7D611B0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:58716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldErk-0002N3-An for qemu-devel@archiver.kernel.org; Sun, 02 May 2021 12:22:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldEl3-00057d-Ul for qemu-devel@nongnu.org; Sun, 02 May 2021 12:15:50 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:51111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldEl2-0007Ef-58 for qemu-devel@nongnu.org; Sun, 02 May 2021 12:15:49 -0400 Received: by mail-wm1-x334.google.com with SMTP id n84so1936915wma.0 for ; Sun, 02 May 2021 09:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ea5zmyJlxs7XTwwtJD6w8UxqiI46mAH5yHMSAEvlRDk=; b=ht5k1QUxNyFxCU5RH6mBSnZql5VIl+hgc+112QBjuEYF+kjuSCB5eiA9QCw5CLBiep drTwzkyvM1zEiha/SbCTv1icpItZJUEBN8ufUkCQr4VuOhrnjTodIvmqL2AufWhzK4E1 u8ldpFvepMmeHjxhoExXjiuVUcxts3aNzUWawSPhX4QkQ05L2jH121vlMY7iE7tccyOo WEXDIhEmJ4wuGcWlHnR/OBqZxp+HKxajJHOWDlIIuz3BqZHyWwkd+t50hKYHruTonFsY MOuuAq6QId1AjaU9cZOS9JtxpyBr3K4WflgMW8hNFRH3GT7FBCj4KcJIHJZESwhcJoqy IAQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=Ea5zmyJlxs7XTwwtJD6w8UxqiI46mAH5yHMSAEvlRDk=; b=gaS8auetJ+5BsRkjoAag6XD2mOXMg8UfTwwTuJoKlDdqJRS8+mrobQj5NFld2F9/dZ crByArMl7TNkEBjS4aNKuffbvh3LReHr3OtdjSfVSHR9NRR4gFJGfkBMWfGz6EvKvllJ kTuM8R959FDBjvB8VxSY+zMoUPwAYTm79vJP2zWEGIEbAD0F8fsgMSYLJew7cGnLaISC 9nT5DlC+1Ggaz0bxNvdMFb+PIPQSlFrsxj5BrnZGSbotcGjJLaaTJkPZ0IQ2pbyUDiyK yrcx9Twwp6AzYdr8G/fDLl8IM47BahAz18JSDjP9Idnb5p43IqFgv2gHbxXs2U2DVlYd 37og== X-Gm-Message-State: AOAM531etLBm/ItdqzONZ4PAFSYJ/PiNBvZIBuN11Wr00L+ZL9DXZoh7 CS+4mRTuAJxL/UvKqdWyLgNeqi2QZd836hhc X-Google-Smtp-Source: ABdhPJzHuYqQQK/4jkf4sya0mMKrZ9pryU2xNMY56EyyyNbeumFdZWQEkjj6Kk9s5h2ZBu4orkDSNg== X-Received: by 2002:a1c:65c2:: with SMTP id z185mr28152433wmb.2.1619972146514; Sun, 02 May 2021 09:15:46 -0700 (PDT) Received: from localhost.localdomain (anancy-651-1-208-144.w109-217.abo.wanadoo.fr. [109.217.237.144]) by smtp.gmail.com with ESMTPSA id l14sm9466032wrv.94.2021.05.02.09.15.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 May 2021 09:15:45 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 01/36] hw/isa/piix4: Use qdev_get_gpio_in_named() to get ISA IRQ Date: Sun, 2 May 2021 18:15:03 +0200 Message-Id: <20210502161538.534038-2-f4bug@amsat.org> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210502161538.534038-1-f4bug@amsat.org> References: <20210502161538.534038-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x334.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: Aleksandar Rikalo , Huacai Chen , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Aurelien Jarno Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Since commit 078778c5a55 ("piix4: Add an i8259 Interrupt Controller") the TYPE_PIIX4_PCI_DEVICE exposes the ISA input IRQs as "isa" alias. Use this alias to get IRQ for the power management PCI function. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20210324182902.692419-1-f4bug@amsat.org> --- hw/isa/piix4.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c index b3b6a4378a3..5ae3b4984d2 100644 --- a/hw/isa/piix4.c +++ b/hw/isa/piix4.c @@ -268,8 +268,9 @@ DeviceState *piix4_create(PCIBus *pci_bus, ISABus **isa_bus, I2CBus **smbus) pci_create_simple(pci_bus, devfn + 2, "piix4-usb-uhci"); if (smbus) { *smbus = piix4_pm_init(pci_bus, devfn + 3, 0x1100, - isa_get_irq(NULL, 9), NULL, 0, NULL); - } + qdev_get_gpio_in_named(dev, "isa", 9), + NULL, 0, NULL); + } return dev; } -- 2.26.3