From patchwork Tue Mar 5 13:42:04 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: 778009 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c8:0:b0:33e:474f:8c56 with SMTP id p8csp438093wrs; Tue, 5 Mar 2024 05:43:02 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVc81odGOWjf1Lw3MKJE300u3QjEndCJou6b/N4vtoRW7/fXIZqD3xta8mOVGQTCGUcuTg2NjbyA0lR2gysPNm+ X-Google-Smtp-Source: AGHT+IH03+Z8K1s+YXv2sFagGVd4F35V5NtBKwDZWaLjnZ6gHqOmGAupsPw0rk3rkjJUqZzf1jvV X-Received: by 2002:a05:6358:5e08:b0:17b:f881:6649 with SMTP id q8-20020a0563585e0800b0017bf8816649mr1488940rwn.26.1709646181847; Tue, 05 Mar 2024 05:43:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709646181; cv=none; d=google.com; s=arc-20160816; b=Vb7vb23OPVB/D6AKKhyOgDp5ZYYHIFiBOS45Lv/lRld+yDwJroXhszSZGaClqz+a+S kmfFdqmGqFJiCIU/y3ui0y1t2YfjnS/12UX4rbetlv7jOEeoJeabKkKSNzMd5W425ssd of1p65kkt++sZDphrjWFm+zCTfi62kIDGVCn+ZtmeB+cgsxdzON7lqYKWBCxTaynwau1 ufA8gKQZ7fL9QfNO+RHNbXihFZvQVV0sAn/XVfrqZkOb76pi7atBMRNWuI40v8Qblnvj OFBI9/DBhisDjKxEmTtJEefVMN48VmMctGecbNqNmzKHV3pnxZ+QvhCcWHz7H7BAWgu0 up4w== 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=nBiR1NjnNqmb5fA74myd/4THTKWykiIDh39Z8PAr++Y=; fh=FNfxLoT4pSSq5+cU1rLLwo41UEEAj6PvLoQV64MLsZQ=; b=QchKjZVM943W51LIWRcB+NqstkvLnqqQ/kOIDyOQFJPAhWY/fJpfbWjC8wYTXRN1Lc HKSl9mwbo1YJtdFsUxWaZM1bbA4xk5+eS54pTjCc1BQO0RVrWSn3BKMN8iLLWEF6695Y 7cE3m2VRqPvf3qHmIKPg3fyWlB7sCCrRPCJAVo8sE2SML1m8HznwCpDc6Xnm1nMtd5b9 8zYAgwZ4tJ5elbYHuWhpd6WZrHG4cQmYZZhKF5fwo1m7DuE0S7QU8PXfMB3ItR0bVnsp yuk90NC45FB6apl1pXJBlw4QddokDAp/hR5HmgAGt52DMdukOyunEWFfawf2C2I7KqQL uBTg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FSr2RCh4; 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 y18-20020a05620a44d200b0078833eaaf71si1851545qkp.210.2024.03.05.05.43.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Mar 2024 05:43:01 -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=FSr2RCh4; 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 1rhV4D-0002HV-1Z; Tue, 05 Mar 2024 08:42:49 -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 1rhV47-0002Gu-BF for qemu-devel@nongnu.org; Tue, 05 Mar 2024 08:42:43 -0500 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rhV44-0003x9-UE for qemu-devel@nongnu.org; Tue, 05 Mar 2024 08:42:42 -0500 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a449c5411e1so543230066b.1 for ; Tue, 05 Mar 2024 05:42:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709646159; x=1710250959; 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=nBiR1NjnNqmb5fA74myd/4THTKWykiIDh39Z8PAr++Y=; b=FSr2RCh4x5HmShFmZC3b06ows7xsPX68WCP/qtDNfql118456xkSkAmOtD+lbCbh3s 0FEqhCJSXWAVJ4FvI/HbzzxNj+NgTkzEn9DxyiYpYoaknR22bGVUpp3vGRGYmr4UBJWh TppkWnLyt/r34hJnKxubp0tQynzf7Bk50rhBQf8Mtp7oj8yIyoDXWlHUiPna17rJI27m XhWbhkRFLcULJs8LcK+i9juG/yN2NMOFVngyoPt/Mion59CopuiA45Xo2ZM53U+ceflH VxoLnLq5oA90aEHB1WCwr1WWIQafgVXFgSoJC1k7s0KvIc378nCmryRqgWwHPkFSNiwu X8Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709646159; x=1710250959; 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=nBiR1NjnNqmb5fA74myd/4THTKWykiIDh39Z8PAr++Y=; b=aHlkbhxwsfVG9Md88Hqv9xXQadQMyn7YChp9+NJD42TwB2iBCI6QurF3OdY1dy/WOx O9yrmRFWzYg2NBvyCHxjn+oFOeGtrdqZ0cjkJxGm8Q7ioJuZuWB+d8e+cCcWA2b+AF0+ 9Fw6q93aKBNXX04/cHi9aEiYi97Ni0N05I5YdzMc6f2QmBGQ47Fa9GJMWmfOTchicsvC tHOoXYOxCC6shEiMFvBtc7I0l/guxEhYX6ENvBdu/TnuvdHESfgoOZiNJ5hc/gORMQOP EbFQcfyfziNt75UqL8kD74vjE6VHpdlOthu25CNrF2onaLdV5PuyYvZQN15o40C/aISs xzMg== X-Gm-Message-State: AOJu0YyOyg1wvFfcy0tc6Ny6D8cymybNJ4jBMx/U7KnK4nn0kCKouZPM t15aXGZXvTrHHBwQLsn0rPsyZmXAIlFM3lxheu/Y942IskaBCjJzIqTMhC9eN7K5/R12lnZQ6kZ K X-Received: by 2002:a17:906:830e:b0:a45:446c:6beb with SMTP id j14-20020a170906830e00b00a45446c6bebmr4144176ejx.50.1709646158911; Tue, 05 Mar 2024 05:42:38 -0800 (PST) Received: from m1x-phil.lan ([176.176.177.70]) by smtp.gmail.com with ESMTPSA id f27-20020a170906085b00b00a44ef54b6b6sm3648391ejd.58.2024.03.05.05.42.37 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 05 Mar 2024 05:42:38 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Thomas Huth Cc: Igor Mammedov , Richard Henderson , kvm@vger.kernel.org, Marcelo Tosatti , devel@lists.libvirt.org, David Hildenbrand , Ani Sinha , Paolo Bonzini , Marcel Apfelbaum , "Michael S. Tsirkin" , Gerd Hoffmann , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-9.1 02/18] hw/usb/hcd-xhci: Enumerate xhci_flags setting values Date: Tue, 5 Mar 2024 14:42:04 +0100 Message-ID: <20240305134221.30924-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240305134221.30924-1-philmd@linaro.org> References: <20240305134221.30924-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=philmd@linaro.org; helo=mail-ej1-x635.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_flags are used as bits for QOM properties, expected to be somehow stable (external interface). Explicit their values so removing any enum doesn't modify the other ones. Signed-off-by: Philippe Mathieu-Daudé --- hw/usb/hcd-xhci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb/hcd-xhci.h b/hw/usb/hcd-xhci.h index 98f598382a..37f0d2e43b 100644 --- a/hw/usb/hcd-xhci.h +++ b/hw/usb/hcd-xhci.h @@ -37,8 +37,8 @@ typedef struct XHCIEPContext XHCIEPContext; enum xhci_flags { XHCI_FLAG_SS_FIRST = 1, - XHCI_FLAG_FORCE_PCIE_ENDCAP, - XHCI_FLAG_ENABLE_STREAMS, + XHCI_FLAG_FORCE_PCIE_ENDCAP = 2, + XHCI_FLAG_ENABLE_STREAMS = 3, }; typedef enum TRBType {