From patchwork Mon Jun 17 07:10:58 2024 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: 804842 Delivered-To: patch@linaro.org Received: by 2002:adf:fb90:0:b0:360:93e7:1765 with SMTP id a16csp434158wrr; Mon, 17 Jun 2024 00:12:44 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUInRlGxmBMSL1l2wxoGfns99+8a8+n6NDK/uoLgnNYkUbiZJqmAxfmqWNpRU5fbMxJY0cTCvBjBLdM+QNYzzDw X-Google-Smtp-Source: AGHT+IHdbkFElH2vc9xH/QjkTMsWaWhb89T19++9fRKFifAyHd6Q5D2hgnTDMHtP2PdAEQip7DWk X-Received: by 2002:a0c:aa98:0:b0:6b0:7ea7:4189 with SMTP id 6a1803df08f44-6b2afd816femr97176346d6.42.1718608364032; Mon, 17 Jun 2024 00:12:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718608364; cv=none; d=google.com; s=arc-20160816; b=XMjDcmjGTbh6cdvEbGIzrxBZ6w56jBBhYvbPHfEXsBEeew9lGJeCGpVMDb+/xcRQnW sZZgT0oJ908I2WgCkuaBwBXkGDtuwk+aM1glSk8ThWzQAzw7818C1vvWSTHgNxQ4cMal 7K8R1ngTeR3BGaTUs6LM6jA445pzdYMsbFqkPdSpBYJYvAi5KRFU1BHPk/6OiwtAR9AY 25sF0Hy9dAQkwZu1XBYZY8Lom4C7Zx1guaWTQ3MI64KwrqkDZ5uwAbhj/HetXVlFT+vC bVq6e/ocoybriZjg4es0IFHHQdQIKO/ant7wrSm+ZjUeQfAHvaYvYWHdyAQH9lZqyD5n W1GA== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fL+tD80S/5grtus7ELDC5qbksAsgVoY0z5aww6Z0nK4=; fh=LxU1EPCBVYorV++vrCt2dyzDsbIeuRBouOVrSj5U16k=; b=RwJVWbbhrw1WbAVRXjNGDU+2vBrduzHrFqZSub/qyhbGvXw2wqcTljkwRewSfEk0n4 pvseS4TnFxUDfgxdvJlLNL1fMiRfzxCmJZXmVjJgltA2Qcbu/SNXsD8XLHx8ZjEorAVA 20yDdv2hmEO9o3ClcQzbGKBY3rZe93X1tAF2tvv0bBeQc9NTpyYxDrWoqvslzT0ty+GH HxBlf88fy5V1imzayeIfI/v8qZfqMMPHjW8YvNWwZSIyxz5vdBbmlJFDQuwIqOJt5JmN EgMPfLEfkfW+5tgktyl/37+dNlweA3pnNFpU+Ce6/eaZXh9q5MADuxM1cwEsCEkDbyB+ cYwg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CSmR0Pav; 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 6a1803df08f44-6b2a5a16056si94106606d6.98.2024.06.17.00.12.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Jun 2024 00:12:44 -0700 (PDT) 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=CSmR0Pav; 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 1sJ6Wl-0003qG-Sf; Mon, 17 Jun 2024 03:11:43 -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 1sJ6Wk-0003q4-3g for qemu-devel@nongnu.org; Mon, 17 Jun 2024 03:11:42 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJ6Wi-00028P-E3 for qemu-devel@nongnu.org; Mon, 17 Jun 2024 03:11:41 -0400 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a6f1c4800easo494320666b.3 for ; Mon, 17 Jun 2024 00:11:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718608298; x=1719213098; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fL+tD80S/5grtus7ELDC5qbksAsgVoY0z5aww6Z0nK4=; b=CSmR0PavGJObMMCtwZM8K1KxnPpyM66R9Ty7KfAVhlQkWaMhz1P5mXWn+uUoNvRKB9 meoQWX6Vc/E5Ph69Gp+Ygo4EeAWDrNw0cuKXq8kE5fYV04/s5l2DDttJqoUfcJ8uBoO3 w8nWyMwE0k2Iv1bhls2AX3nEEAkFgR+gdvqX9Bu7nL6WQDjI3RcSpvPrNa++nSbNQyyh 9p2+St0hSz9fZo9S1QhcZc30thkkbIoW6h8R2U57HbiK/KR3qTH2+Gg7BM211v7r4Uae DelS+CiheAYutPrpWaXu3i/gCTgpBI62TYrxQrrYGgzufYquJgaOZVi0XpxDnMk+NT6n l4NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718608298; x=1719213098; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fL+tD80S/5grtus7ELDC5qbksAsgVoY0z5aww6Z0nK4=; b=BVr8vbdEJKK8t9ikTfKEpiIFRu3CrfZdOMVROZzN3TX7/76YIy7KNbKIHJMkxTSaF7 DHLd5Q68NTBYvgqXh8wee5pDdf9GqwMqfMjT5hR2TnDLrCp4GdPEZrNTSlBEq2nAfZq8 ucHVClZ/NqeTrmJsstUl7UT20HWrOhu7KM+u71kblPa5+aG8lVkOfxr0NwVa8pfHAPH2 FdIuhJXDP1M25AfKNQPnstTwRgcrgysgEJAuMBa+XT8MFRAIkogCXUHU5epwuMqyyxpD +j51WcNA2Yr6Z2AgNDCnri634cpDntACgeeyC2XUAD1SebUCCzT/fYkj6TIlZD3bAGbW 1tNQ== X-Gm-Message-State: AOJu0Yx5kK9b34Gt0c0Jzg1qsezsaHk2y8gsfZyBWzyKFTM0BsvRYDw2 sKvhX5tJO7m2mkPRZGbsH69LMJzlZJ3M/sXTVC0GDmUWHUye+0wrJDUBnrqdtYN71vzv+BBl6Sq U6z8= X-Received: by 2002:a17:906:607:b0:a6f:39e3:3265 with SMTP id a640c23a62f3a-a6f60dc56ccmr556700866b.62.1718608297951; Mon, 17 Jun 2024 00:11:37 -0700 (PDT) Received: from m1x-phil.lan ([176.176.169.90]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56da4136sm487229166b.36.2024.06.17.00.11.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 17 Jun 2024 00:11:37 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Igor Mammedov , "Michael S. Tsirkin" , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Thomas Huth , Zhao Liu Subject: [PATCH v6 03/23] hw/usb/hcd-xhci: Remove XHCI_FLAG_FORCE_PCIE_ENDCAP flag Date: Mon, 17 Jun 2024 09:10:58 +0200 Message-ID: <20240617071118.60464-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240617071118.60464-1-philmd@linaro.org> References: <20240617071118.60464-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=philmd@linaro.org; helo=mail-ej1-x630.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, T_SCC_BODY_TEXT_LINE=-0.01 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 XHCI_FLAG_FORCE_PCIE_ENDCAP was only used by the pc-i440fx-2.0 machine, which got removed. Remove it and simplify usb_xhci_pci_realize(). Reviewed-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Zhao Liu Reviewed-by: Igor Mammedov --- hw/usb/hcd-xhci.h | 1 - hw/usb/hcd-xhci-nec.c | 2 -- hw/usb/hcd-xhci-pci.c | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/hw/usb/hcd-xhci.h b/hw/usb/hcd-xhci.h index 98f598382a..1efa4858fb 100644 --- a/hw/usb/hcd-xhci.h +++ b/hw/usb/hcd-xhci.h @@ -37,7 +37,6 @@ typedef struct XHCIEPContext XHCIEPContext; enum xhci_flags { XHCI_FLAG_SS_FIRST = 1, - XHCI_FLAG_FORCE_PCIE_ENDCAP, XHCI_FLAG_ENABLE_STREAMS, }; diff --git a/hw/usb/hcd-xhci-nec.c b/hw/usb/hcd-xhci-nec.c index 328e5bfe7c..5d5b069cf9 100644 --- a/hw/usb/hcd-xhci-nec.c +++ b/hw/usb/hcd-xhci-nec.c @@ -43,8 +43,6 @@ static Property nec_xhci_properties[] = { DEFINE_PROP_ON_OFF_AUTO("msix", XHCIPciState, msix, ON_OFF_AUTO_AUTO), DEFINE_PROP_BIT("superspeed-ports-first", XHCINecState, flags, XHCI_FLAG_SS_FIRST, true), - DEFINE_PROP_BIT("force-pcie-endcap", XHCINecState, flags, - XHCI_FLAG_FORCE_PCIE_ENDCAP, false), DEFINE_PROP_UINT32("intrs", XHCINecState, intrs, XHCI_MAXINTRS), DEFINE_PROP_UINT32("slots", XHCINecState, slots, XHCI_MAXSLOTS), DEFINE_PROP_END_OF_LIST(), diff --git a/hw/usb/hcd-xhci-pci.c b/hw/usb/hcd-xhci-pci.c index 4423983308..cbad96f393 100644 --- a/hw/usb/hcd-xhci-pci.c +++ b/hw/usb/hcd-xhci-pci.c @@ -148,8 +148,7 @@ static void usb_xhci_pci_realize(struct PCIDevice *dev, Error **errp) PCI_BASE_ADDRESS_MEM_TYPE_64, &s->xhci.mem); - if (pci_bus_is_express(pci_get_bus(dev)) || - xhci_get_flag(&s->xhci, XHCI_FLAG_FORCE_PCIE_ENDCAP)) { + if (pci_bus_is_express(pci_get_bus(dev))) { ret = pcie_endpoint_cap_init(dev, 0xa0); assert(ret > 0); }