From patchwork Tue Jun 4 09:56:08 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: 801400 Delivered-To: patch@linaro.org Received: by 2002:a5d:65c4:0:b0:35b:5a80:51b4 with SMTP id e4csp2313221wrw; Tue, 4 Jun 2024 03:00:04 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWOJSxvpeo08tfo7cVs3D67fBSVSoJGuPFGYTN0s3SGzZnXwQoeGi7OXJe9gB/ASZE8aKQLW3nSRS0ldjqTv8jU X-Google-Smtp-Source: AGHT+IHyvwRV4c+p6K2eAUowLj7LOiblZoynFOr5UU0SA2WnD+euQu3JSRD4ImECcnbHiQLhPiLu X-Received: by 2002:a25:c781:0:b0:dfa:58c1:1a85 with SMTP id 3f1490d57ef6-dfa73ddbefdmr11059203276.61.1717495203867; Tue, 04 Jun 2024 03:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717495203; cv=none; d=google.com; s=arc-20160816; b=f6O89RiZsqSI8cNOYLOi/aE10gUvuufwOAT+BuPY6BzMxzlV6YZQ+JH0VaKkfnnJJO P2IMT4c8+NYJTbQrFShHWalzd9kvr35do40znCtgXr48mPyxPXAFtDpPt0JrV58WHSFL D/HVgydoFYYGYLgrO6zr2Gb0zG7H6NmLXVxSHAS6BJbhDvRdW92I5e96chpzMJsmVfoP Yg77UttTFCCVYDvEXNVbGG+jcI8+LaQGzMxlvi/sGRa1sZZyhm2eMCccI7LRzV7P77LJ MO5w0SRE1sFwRcPVp33b9XIbGUjB2oLyhBWWCOqDUQqy2tRwQXwI1RXZOFkZN3OkTuCJ SXpQ== 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=aW7ooiPiVQKiciK9tXurprOszVnnccUrkSkxiG1Z0Yg=; fh=f4FtafOBubf2PK98ufaMRCPWDpJlJXLdQd2/hBb4YO8=; b=q/M3X5LaypPuGN1g8nqogJPLhXUuvDKFUJ1d1aWnKB6qec1M2fJFNAcK8ijHkMzJed TWj97Ih/jqevTGAioEtzYJ0rMO9d5oqMj/PNNo+0dpHjHtE/gka9I3zG3UfH9rV3DoQz d4d6UNCzcdOK6WAr43tJ19xHbnqwtYn6qZ70IXSCbYUGIWZnVvmxvlh5O7OeQjSAIH4q BCHvs77s647iAWvCUx90f3wriyjkXHyNX5IGNh5nPV06NTiwxJv2TzjYNH8aGUG/6YHS m3rQ/VJbSQWJuUToZ1hpkCijPOUQOWwKjF4fWmUZfRmlxfPj/Itg0UOEKaK5aRfe+RAb pyoQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IvnQi8a1; 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 d75a77b69052e-43ff259d1c4si101166601cf.559.2024.06.04.03.00.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Jun 2024 03:00:03 -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=IvnQi8a1; 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 1sEQwi-0000Sq-MM; Tue, 04 Jun 2024 05:59:14 -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 1sEQwd-0000NX-S6 for qemu-devel@nongnu.org; Tue, 04 Jun 2024 05:59:11 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sEQwc-0002OT-6A for qemu-devel@nongnu.org; Tue, 04 Jun 2024 05:59:07 -0400 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-42134bb9735so29712195e9.1 for ; Tue, 04 Jun 2024 02:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717495144; x=1718099944; 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=aW7ooiPiVQKiciK9tXurprOszVnnccUrkSkxiG1Z0Yg=; b=IvnQi8a1g1K3LIsJaeJ3deUtiTfX3P5ndzfeybPQz59OObA58BZ5dx0Iv9ODxc3joq ctfxSvuASzT/Asek96eNPIf0aqk/BTqC/bLn6VOvLwdLqIFwflvaAd6KJvjfc/NMXXxl AG7aO4CzBRmV5jued/Dkd8GlGcGH0Prn2GcmNWNFfcOXrbSvyPVK2QX78Tc5wk2TFqEf 0DIPTlxIGUx0545WBJLjUqsshY2aLwQIF/UthV7QUOemBY17EtaQpaSD9YJNQteQXj1e RWXIE/X18KwSr1i4NDH9pV0RDOP/4ktw0pUwlSQSHf1+A39cSv8PMEekdXQMoAiYS9LL +9fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717495144; x=1718099944; 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=aW7ooiPiVQKiciK9tXurprOszVnnccUrkSkxiG1Z0Yg=; b=AJ46G24ZMd+1FnkLblTaIhkRhUBISi/S6HZTypvVrSO31MSItnbt+yGdMrPRn8Zfa8 inWKBWAB9NB3IMo3W3BYIRcdnP53OJncVIV2SR30m1S3OilAl7I8ILSTh5nrNnoEdUvL KL5q66ZGVD26ddDfGYFljyWt6NnMexg2oBN/s9lQ+BOKM9fuKqlh+2Gmgkk5/2noKB7S icoNcILYazO/hB+WC9qta42hVkhf+vHnt3HGm2fzckRgXZExP3hIaz3uC38FZZhZqVtV VjaQmAq9yUd5FR7whDjtKqFO0ceV+0WI9Yxo/flS/FaObtKKWTeOBIBiKtBKEsUHsvBN JhIw== X-Gm-Message-State: AOJu0YxA82F7XO3K274L4Jarls/C8aoJdtH/kk19WXcnhIOHh+R5ntNt LU6N3um4lQroRtTEY2eiqB8A6+LhTd6QoVtBc2Hq0C09vSgMhn1YKFZUEpNEbol3bJ91gIe/Gsu o X-Received: by 2002:a05:600c:511c:b0:421:2df7:beb8 with SMTP id 5b1f17b1804b1-4212e05ea16mr102835835e9.14.1717495144565; Tue, 04 Jun 2024 02:59:04 -0700 (PDT) Received: from m1x-phil.lan ([176.176.159.34]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4215310c7easm9559885e9.12.2024.06.04.02.59.03 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 04 Jun 2024 02:59:04 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 32/32] usb: add config options for the hub and hid devices Date: Tue, 4 Jun 2024 11:56:08 +0200 Message-ID: <20240604095609.12285-33-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240604095609.12285-1-philmd@linaro.org> References: <20240604095609.12285-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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 From: Gerd Hoffmann Signed-off-by: Gerd Hoffmann Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20240530112718.1752905-3-kraxel@redhat.com> Signed-off-by: Philippe Mathieu-Daudé --- hw/usb/Kconfig | 10 ++++++++++ hw/usb/meson.build | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/hw/usb/Kconfig b/hw/usb/Kconfig index f569ed7eea..84bc7fbe36 100644 --- a/hw/usb/Kconfig +++ b/hw/usb/Kconfig @@ -65,6 +65,16 @@ config TUSB6010 bool select USB_MUSB +config USB_HUB + bool + default y + depends on USB + +config USB_HID + bool + default y + depends on USB + config USB_TABLET_WACOM bool default y diff --git a/hw/usb/meson.build b/hw/usb/meson.build index 23f7f7acb5..d7de1003e3 100644 --- a/hw/usb/meson.build +++ b/hw/usb/meson.build @@ -35,8 +35,8 @@ system_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files('xlnx-versal-usb2-ctrl- system_ss.add(when: 'CONFIG_XLNX_USB_SUBSYS', if_true: files('xlnx-usb-subsystem.c')) # emulated usb devices -system_ss.add(when: 'CONFIG_USB', if_true: files('dev-hub.c')) -system_ss.add(when: 'CONFIG_USB', if_true: files('dev-hid.c')) +system_ss.add(when: 'CONFIG_USB_HUB', if_true: files('dev-hub.c')) +system_ss.add(when: 'CONFIG_USB_HID', if_true: files('dev-hid.c')) system_ss.add(when: 'CONFIG_USB_TABLET_WACOM', if_true: files('dev-wacom.c')) system_ss.add(when: 'CONFIG_USB_STORAGE_CORE', if_true: files('dev-storage.c')) system_ss.add(when: 'CONFIG_USB_STORAGE_BOT', if_true: files('dev-storage-bot.c'))