From patchwork Thu Jan 5 13:07:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 639256 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp214751pvb; Thu, 5 Jan 2023 05:08:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXvabXJyoEssVwOs6a+meD2r5Ceblwfbl+djXOqUabuQhO0adb4zIfeoMw8yYn4iRoVbzg0o X-Received: by 2002:ac8:43c7:0:b0:3a8:bad:b530 with SMTP id w7-20020ac843c7000000b003a80badb530mr76038894qtn.34.1672924119533; Thu, 05 Jan 2023 05:08:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672924119; cv=none; d=google.com; s=arc-20160816; b=Yb7t9ldVdxYcLoNbemqh1tyRAsRv4iV5hbfH9BYo4/BxCKUgrIRJGl6tldztVwQRvC eUCpdq00CmDMAHFd9KK/IpWnn7ZSt10gQ/tRNzjbppbI/ytjKz8x2Y9dJwEZ0vqmSd4e Bz4GASSKXuZODXsOlSkEp6N2hq1IVPw0ogvTTVhONkvqDTush/4P7fKgPZpqfmYH7IUa 1YDLRe0x2mH3Aa8Yp1NTJNDqCZfBWL9ndVGoFOHanI5TYoHb4Ir6rUXFhyKuvznFOpXK GfIf0t3DfKa11aGhWuLqOvOIxwy5L8ClJXJ7uOQrTdzpFc2C9yHRB7iO2kH+e9MCOhbF mU6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=egTSnIY7yNl3vp4BayJoB6mxFUUqmm6/NOKnAYXJzPQ=; b=TAqoZFPzpIj1S1WAWkKZrcVWO8pDDeN/7GwX2CDKIsauLxMXXSh9izzT+m/GMadcld ddvcjFcVb+IZG5pTefu/lKixlZkB2xBDtH7gONJhZ/eRhEHSH1c350Ecpm8ogtK5PJqJ nXS90sUAJf8t/3yBtKV5A2DpqNkvaUX6o8Nqon1b/xSBVevVZLHNyY/i/7QtNksX2std zEdbaFCRLJeeR78EnJ5sesjBYD5jkdFkvBksU0g9L14hbxmm86gQHuyp8dOTnAbOKbPa INvDva40vjLCgNhy89fAAaJOT4K8eVYVLIiF13NbfW2hfAwIjaKZiEKRFjUKFnfZrX47 d7RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KwUSJBAs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ay42-20020a05622a22aa00b003abcd33bbf8si1472059qtb.341.2023.01.05.05.08.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Jan 2023 05:08:39 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KwUSJBAs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDPxm-0004AW-5c; Thu, 05 Jan 2023 08:07:18 -0500 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 1pDPxk-0004A8-Fu for qemu-devel@nongnu.org; Thu, 05 Jan 2023 08:07:16 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDPxi-0004Eh-Pi for qemu-devel@nongnu.org; Thu, 05 Jan 2023 08:07:16 -0500 Received: by mail-wm1-x32b.google.com with SMTP id o15so27956371wmr.4 for ; Thu, 05 Jan 2023 05:07:13 -0800 (PST) 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=egTSnIY7yNl3vp4BayJoB6mxFUUqmm6/NOKnAYXJzPQ=; b=KwUSJBAs9HXOgZ/ZkizyUgYPbwVLzwp+oFnQvJmHiPZcckmUnxd3SIfwgJ/X14jn4K 4hx14c1qrK3pC7/btcJ3OJdm2SHh34CjAQkxIe/JpWXGQsIAJ77qYCClagEdBnlsLDAb 3lvUEv0zmngtqfaO5W/X4VOokkpLdzf+rm2XjbXaCAWrrrVUpVlLKx1j5jVlHRMVLDJb vyPB3ksWsyqrDbYyoxkRsqke5kZzkbURszuJvf9fHdPsYWpgdWSXP/L991sEVRubIbPe XNymodA0RU78baOziNMVphGaZ7YPK2ogMxnglJBcQx1HBFvT/1m2AtKV2gyL5ftvX4Gm +x4w== 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=egTSnIY7yNl3vp4BayJoB6mxFUUqmm6/NOKnAYXJzPQ=; b=jI2JNtttfrBgpEQrp9BmYI6l/ONs7DrzrgPDhd8faupI8lHMPv7sU2RbZPlFJTzBfJ KfHQvmFy03uBGt8BLH9FQOunrTC5KknzRndc7XhceE0J+8c4KpqjLQI4AcuSXj/NUkh6 ZGpd0oUzibyT2Bd2NhzF5ifq/UKOTwN8qnpOrptbmVFtbZKLNRpNid9HAmKwwhRb7Hu/ LtOl4KuM1WENkfobbl14pIskzpQD39hSb4/JctOjZ5i0s3RalCR63oZ5+NVyYRsZl7BD 9o8f+Fm3/etPUT6STW7O4yc3hL2F6Pfcuq7scWHDV1eA0JIWDGzo+Hw2SciVE4SlByX3 E2cA== X-Gm-Message-State: AFqh2kofWa8hko8BcONMmetEWufjw3CLKL1Hu5or62iP2Id9CpLFXlDy h14Gj4XEqfsDl+fkrmQHNG/6WQAKuhhVgNzk X-Received: by 2002:a05:600c:4d21:b0:3d2:2a72:2573 with SMTP id u33-20020a05600c4d2100b003d22a722573mr36375972wmp.11.1672924032469; Thu, 05 Jan 2023 05:07:12 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id h7-20020a05600c314700b003d973e939d3sm2643810wmo.1.2023.01.05.05.07.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 05 Jan 2023 05:07:12 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Huacai Chen , Bernhard Beschow , Jiaxun Yang Subject: [PATCH 0/8] hw/pci-host/bonito: Housekeeping Date: Thu, 5 Jan 2023 14:07:02 +0100 Message-Id: <20230105130710.49264-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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=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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Minor housekeeping while reviewing PCI host bridge models. - Convert to 3-phase reset - Set reference using object_property_add_const_link - Sysbus'ify IRQ - Open code bonito_init() Philippe Mathieu-Daudé (8): hw/pci-host/bonito: Convert to 3-phase reset hw/pci-host/bonito: Use 'bonito_host' for PCI host bridge code hw/pci-host/bonito: Use 'bonito_pci' for PCI function #0 code hw/pci-host/bonito: Set reference using object_property_add_const_link() hw/pci-host/bonito: Create PCI function #0 in bridge realize() handler hw/pci-host/bonito: Sysbus'ify outgoing IRQ hw/pci-host/bonito: Declare TYPE_BONITO_PCI_HOST_BRIDGE in header hw/mips/fuloong2e: Open code bonito_init() MAINTAINERS | 1 + hw/mips/fuloong2e.c | 6 ++- hw/pci-host/bonito.c | 93 +++++++++++++++--------------------- include/hw/mips/mips.h | 3 -- include/hw/pci-host/bonito.h | 18 +++++++ 5 files changed, 63 insertions(+), 58 deletions(-) create mode 100644 include/hw/pci-host/bonito.h