From nobody Tue Nov 18 10:38:42 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.47 as permitted sender) client-ip=209.85.128.47; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f47.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.47 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1609454975; cv=none; d=zohomail.com; s=zohoarc; b=BaaByqvjguRSO64G2KIeNvmmeQFTO/VnannCodRUpII9MEVNsupsmbZYqKJoK0Q03XQsKyRvcva6te2NwDtJ/F9MKyHi204zrGYY+Es6fCmqPRyLtSlsc2wshfKqzBQxF9dr0zpL7P88eWz4/28P+gSTuK/QTx7tUXuYKVs5XWY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609454975; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=HCV6hM+D7eP0IiKfRG2kbILOOq4+o/HRgbbPJbxLHKY=; b=RNdTqJJ+CMvFox/4+yzTHtWDRSGcQgrkCc4KQZUNk6yqtSsb/OffdnHCdo4SjrBGxwBHoo8SZsuXxDVvbzqjwZ52OfdhrEwrPJibGKHIbdcX9noG+PHaSdY59ewTJQtLxkPwLU6AHnnRA7NnZx9y8HDfJfj6Nl2hUwSY735kkv8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.47 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by mx.zohomail.com with SMTPS id 1609454975777312.8123619361701; Thu, 31 Dec 2020 14:49:35 -0800 (PST) Received: by mail-wm1-f47.google.com with SMTP id c133so8142741wme.4 for ; Thu, 31 Dec 2020 14:49:35 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (239.red-83-42-57.dynamicip.rima-tde.net. [83.42.57.239]) by smtp.gmail.com with ESMTPSA id n16sm33339556wrj.26.2020.12.31.14.49.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Dec 2020 14:49:33 -0800 (PST) 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=HCV6hM+D7eP0IiKfRG2kbILOOq4+o/HRgbbPJbxLHKY=; b=qrQIJXU5zI+od83uHpIwGReSAKMqujZWIDkpoYJvIKqm7ofx79Yd69un4MwrmyNnZO bqL4dmhX+eNeKenj/f+wFAg8ywHck9ANSrCmegZ7ghV4fy+/Te91EG96Se/lzEvpXlgt jIv/rFkoam/nI6UhNfUt7bSfQ9bj1Ifb8whDoH2ScXqNaufYaipFBxZ4KwlqIul7hn2r F7XAA8kw+rEKDMMUwygXKkAku1PR3KXLjGlaJdL3Sj2F3ucvkNWAtwik9fBcTbgKSxfl VBhbgA+UeOV9PtbJjI6QzOWhbx1u8uoIRsxZf38sgTLn/qQo5S2458SpbCT/lEvxQvkN 4m/Q== 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=HCV6hM+D7eP0IiKfRG2kbILOOq4+o/HRgbbPJbxLHKY=; b=Br4pLl9iWoI1/mjPvhQb3IYJD/MWoRKnYqhRFyuL/k4ABjx+EOVjih3Rl82gnOx7I5 HuVj5TIqtIDZ4AHQaVpvsnbGg8lwimk0ceTIgtrn0SaKZR/B9f7jG0C74i2a1PR4paoT ssGOu0FPQyvQV5gEUUezmLEYq4WdVlgJ4s5NPGkznlXjcu+IvwmM310o1nE0MYunxtYA YnYxMPyB3jXYzmbEpA8QhURAmlPJIReseI3JL0AlxiFmHgCtgr9k9xIOP6zRIDAy759e npPL4b2/PV0RPWcDM0q+rSvdiBibcB/3RFdFCFxrCpy6aui5YOF7wKe53/4igrhxWGGN yCvw== X-Gm-Message-State: AOAM532KZDDT9Bxf/0FP/gThHSbJOScEHENYqzg5jefQMIup7a0AMVPe adXRu0yuJqAkI5bO5L4Z++k= X-Google-Smtp-Source: ABdhPJwb+22KqIXjUg51dPk2CF7bVRFAnblDdwgi/CnnwgSMXGL+KYIQbVY5P9mSo2CUMoelDzLFtQ== X-Received: by 2002:a1c:9e86:: with SMTP id h128mr13817940wme.171.1609454974071; Thu, 31 Dec 2020 14:49:34 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Jiaxun Yang , Aleksandar Rikalo , Aurelien Jarno , Huacai Chen Subject: [PATCH 04/18] hw/pci-host/bonito: Use pci_config_set_interrupt_pin() Date: Thu, 31 Dec 2020 23:48:57 +0100 Message-Id: <20201231224911.1467352-5-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201231224911.1467352-1-f4bug@amsat.org> References: <20201231224911.1467352-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) Replace pci_set_byte(PCI_INTERRUPT_PIN) by pci_config_set_interrupt_pin(). Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Huacai Chen --- hw/pci-host/bonito.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c index 4c903d4f682..fe94e6740b5 100644 --- a/hw/pci-host/bonito.c +++ b/hw/pci-host/bonito.c @@ -723,7 +723,8 @@ static void bonito_realize(PCIDevice *dev, Error **errp) pci_set_word(dev->config + PCI_SUBSYSTEM_ID, 0x0000); =20 pci_set_byte(dev->config + PCI_INTERRUPT_LINE, 0x00); - pci_set_byte(dev->config + PCI_INTERRUPT_PIN, 0x01); + pci_config_set_interrupt_pin(dev->config, 0x01); /* interrupt pin A */ + pci_set_byte(dev->config + PCI_MIN_GNT, 0x3c); pci_set_byte(dev->config + PCI_MAX_LAT, 0x00); =20 --=20 2.26.2