From patchwork Fri Jan 19 21:51:05 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: 763956 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:10c4:b0:337:62d3:c6d5 with SMTP id b4csp84474wrx; Fri, 19 Jan 2024 13:52:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwfCW0J0QeK7gRmAT0qtoXsJKxd3xW4k9/1yWkx43EO1F3uv+xt6TtbM56iDNETBt+CIdo X-Received: by 2002:ac8:5dd2:0:b0:429:fb96:ff5d with SMTP id e18-20020ac85dd2000000b00429fb96ff5dmr518081qtx.110.1705701145818; Fri, 19 Jan 2024 13:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705701145; cv=none; d=google.com; s=arc-20160816; b=yssyLoPN1M7Y15tpMlpnDHLhkeZjChWQhV8CTdWkzsb80bTV+BySFij6bv+KOZG6f7 rYVHvkKn/kc2kb+4HVtxKF53LFsaF8x+l1AYbkV7YwtoAOpuGpXQGWqYWxRr+uIeswBo m1kk1SM9N4wbTJBWtKcvFBa4yAxceLwDUrXWWdw8t9gKUgua0sGEq1TFApXjUgDs0vhS jCKuA9k7Y20AUtH06BELUrSaWTOI4Hb/LlLZk3/oerDA7rxGaP8RYWReZUbqaOcl1MeN uW+qNrrw2iQV10yIrCld+X9kmgHH8KvNGHCLXXC/137JaekR3APDGAOUBMYNbQbao4l2 2Xhg== 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=kzOrVlFRj/NdOh1lLvn8pDfgdHcR2iZT2G+ZVE6nW3Q=; fh=lfuYXVtC1uxUzJXcx1BLjy5YFppJmZ2782Wl5dyoqHg=; b=wM62G8ai//g/TuzJjsF8U5HAiGMvXpPgX/MhBUaeo+bBwabLYP+R6/zJ0XKnL96PQV qg6GbZpM6n4tqJcdIx3YalsbeE0NmK9zaDoAORzidXT/XTZmWi6QMiH0C3Ro8ByfKKIi R6GQhhhoW//tHUOyMgGdpUDkGx1tpBjSgW5rRQic0gAFA5k21BSIB76dPkMSI3QYnNKG KxhiaJKs1KKPogZaMGD9IRB0Wj6vVyuJfHdUjuLRq75V1qGZQPScsdREsQTYDfiJwqCv 4wCnuQQcKt4j+6JddkBUviPOasHSqlqoOrNqT0xJpREP9R5tjnfzRnVnYMhx4eSkEN07 2kbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dT2WYQ4s; 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 c13-20020ac8110d000000b00425c3b740b8si132238qtj.766.2024.01.19.13.52.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jan 2024 13:52:25 -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=dT2WYQ4s; 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 1rQwlv-0003vH-DL; Fri, 19 Jan 2024 16:51:31 -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 1rQwlo-0003tr-Tf for qemu-devel@nongnu.org; Fri, 19 Jan 2024 16:51:24 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQwlf-0005Pd-LS for qemu-devel@nongnu.org; Fri, 19 Jan 2024 16:51:18 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40d6b4e2945so13566695e9.0 for ; Fri, 19 Jan 2024 13:51:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705701073; x=1706305873; 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=kzOrVlFRj/NdOh1lLvn8pDfgdHcR2iZT2G+ZVE6nW3Q=; b=dT2WYQ4s2BYwr55M6u/f5F5lPUlV32xO8muJ+mNw7WC5RjAUgg+K4RcnlkdEApks4p Ngua2LcKY8Q/45JtrvIJgWrAyVYuLcGWsDwuecopZeS61lBX0HStdlh5/A4pP1OloI7w 23usW+Cc6hjAVmuQ50Gk1x7bea+jndHKy/fJDYEguCjgrZExXh61dZV2Oh+KYIf6I4XS kAUWFjOitNJsWliy3X1h4spoVK67JbIgoalUBzyj695XoN0jGa2FAghe/MtJzUTTBDAI xyFAuHr7zN9BMBGDXB4NO0SFy5Wco2hK+3MTLB1G4mp0nhF2AkUlBoKsziKwQQoT46rC xt2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705701073; x=1706305873; 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=kzOrVlFRj/NdOh1lLvn8pDfgdHcR2iZT2G+ZVE6nW3Q=; b=chenYhpSzdWNWPayfmY0+hetqSHZZumxs7LNZMTO3iTpMko2SkQelZDGMg5mmCcCgd pzgjoEyHGMdEIiBtB27A9RpQq5vvLQ258uODPpgKMEmfK8RXPNbXSfXXf3+gDUWe9nBm 6Gx3fCfLL4xkvx5QFqb25VYEpmqg/TBc3DuExalSaynaXyFIFxMTboKW+4UwGSd4Wv1F p2mdhZzoBGQ07dbruwfXzVab6SrMczdfF7cbcI+oi2mCNMC1B7btnewL+aNPEQjqdFEh FrFT87z2vOscG7YGvqlbbaE5Uof3arCUSHEcssKLe3hpRrqaf89vmyxNSn0uOvP67kPb 7Mmw== X-Gm-Message-State: AOJu0Ywx4YAc2z9Kx+QMkysm1f2ASk6WBzF+HaXAzpfF0SWQsBo+tW17 LJbp7MBD+RLsbYlmXYJ8VY2DPa6hfoZ06OgV74OrpCjZu8rvXMV817ZKkyIuyi1io5lbfwNRVpn O X-Received: by 2002:a05:600c:5013:b0:40e:4bef:f24f with SMTP id n19-20020a05600c501300b0040e4beff24fmr159027wmr.120.1705701073278; Fri, 19 Jan 2024 13:51:13 -0800 (PST) Received: from localhost.localdomain (91-163-26-170.subs.proxad.net. [91.163.26.170]) by smtp.gmail.com with ESMTPSA id g15-20020a5d64ef000000b00336f43fa654sm7470330wri.22.2024.01.19.13.51.12 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Jan 2024 13:51:12 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Beniamino Galvani , qemu-arm@nongnu.org, Strahinja Jankovic , Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Guenter Roeck Subject: [PATCH v2 1/2] hw/arm/allwinner-a10: Unconditionally map the USB Host controllers Date: Fri, 19 Jan 2024 22:51:05 +0100 Message-ID: <20240119215106.45776-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240119215106.45776-1-philmd@linaro.org> References: <20240119215106.45776-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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=unavailable 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 The USB Controllers are part of the chipset, thus are always present and mapped in memory. This is a migration compatibility break for the cubieboard machine started with the '-usb none' option. Reported-by: Guenter Roeck Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Guenter Roeck Tested-by: Guenter Roeck --- hw/arm/allwinner-a10.c | 49 +++++++++++++++++------------------------- 1 file changed, 20 insertions(+), 29 deletions(-) diff --git a/hw/arm/allwinner-a10.c b/hw/arm/allwinner-a10.c index b0ea3f7f66..0135632996 100644 --- a/hw/arm/allwinner-a10.c +++ b/hw/arm/allwinner-a10.c @@ -79,15 +79,10 @@ static void aw_a10_init(Object *obj) object_initialize_child(obj, "i2c0", &s->i2c0, TYPE_AW_I2C); - if (machine_usb(current_machine)) { - int i; - - for (i = 0; i < AW_A10_NUM_USB; i++) { - object_initialize_child(obj, "ehci[*]", &s->ehci[i], - TYPE_PLATFORM_EHCI); - object_initialize_child(obj, "ohci[*]", &s->ohci[i], - TYPE_SYSBUS_OHCI); - } + for (size_t i = 0; i < AW_A10_NUM_USB; i++) { + object_initialize_child(obj, "ehci[*]", &s->ehci[i], + TYPE_PLATFORM_EHCI); + object_initialize_child(obj, "ohci[*]", &s->ohci[i], TYPE_SYSBUS_OHCI); } object_initialize_child(obj, "mmc0", &s->mmc0, TYPE_AW_SDHOST_SUN4I); @@ -165,28 +160,24 @@ static void aw_a10_realize(DeviceState *dev, Error **errp) qdev_get_gpio_in(dev, 1), 115200, serial_hd(0), DEVICE_NATIVE_ENDIAN); - if (machine_usb(current_machine)) { - int i; + for (size_t i = 0; i < AW_A10_NUM_USB; i++) { + g_autofree char *bus = g_strdup_printf("usb-bus.%zu", i); - for (i = 0; i < AW_A10_NUM_USB; i++) { - g_autofree char *bus = g_strdup_printf("usb-bus.%d", i); + object_property_set_bool(OBJECT(&s->ehci[i]), "companion-enable", + true, &error_fatal); + sysbus_realize(SYS_BUS_DEVICE(&s->ehci[i]), &error_fatal); + sysbus_mmio_map(SYS_BUS_DEVICE(&s->ehci[i]), 0, + AW_A10_EHCI_BASE + i * 0x8000); + sysbus_connect_irq(SYS_BUS_DEVICE(&s->ehci[i]), 0, + qdev_get_gpio_in(dev, 39 + i)); - object_property_set_bool(OBJECT(&s->ehci[i]), "companion-enable", - true, &error_fatal); - sysbus_realize(SYS_BUS_DEVICE(&s->ehci[i]), &error_fatal); - sysbus_mmio_map(SYS_BUS_DEVICE(&s->ehci[i]), 0, - AW_A10_EHCI_BASE + i * 0x8000); - sysbus_connect_irq(SYS_BUS_DEVICE(&s->ehci[i]), 0, - qdev_get_gpio_in(dev, 39 + i)); - - object_property_set_str(OBJECT(&s->ohci[i]), "masterbus", bus, - &error_fatal); - sysbus_realize(SYS_BUS_DEVICE(&s->ohci[i]), &error_fatal); - sysbus_mmio_map(SYS_BUS_DEVICE(&s->ohci[i]), 0, - AW_A10_OHCI_BASE + i * 0x8000); - sysbus_connect_irq(SYS_BUS_DEVICE(&s->ohci[i]), 0, - qdev_get_gpio_in(dev, 64 + i)); - } + object_property_set_str(OBJECT(&s->ohci[i]), "masterbus", bus, + &error_fatal); + sysbus_realize(SYS_BUS_DEVICE(&s->ohci[i]), &error_fatal); + sysbus_mmio_map(SYS_BUS_DEVICE(&s->ohci[i]), 0, + AW_A10_OHCI_BASE + i * 0x8000); + sysbus_connect_irq(SYS_BUS_DEVICE(&s->ohci[i]), 0, + qdev_get_gpio_in(dev, 64 + i)); } /* SD/MMC */ From patchwork Fri Jan 19 21:51:06 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: 763955 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:10c4:b0:337:62d3:c6d5 with SMTP id b4csp84385wrx; Fri, 19 Jan 2024 13:52:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLVkklGMTBRD2O/C61pXjDJo6a8cVwBueW3egA1EUE3VRkcgMcespkGvwsTgrK6Ne2cjqH X-Received: by 2002:ac8:5355:0:b0:42a:2e7d:d38a with SMTP id d21-20020ac85355000000b0042a2e7dd38amr87025qto.105.1705701124506; Fri, 19 Jan 2024 13:52:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705701124; cv=none; d=google.com; s=arc-20160816; b=oYtpTibbks2e0dS72qnSr2EBQgkwc6rxjHuxZqfTkhxSH+RiZNcluq09AbFLh863yU ql/Go6jY+543iuujAIuqXxRJXMpylG0bYCggVobSSifjA3wHRF5o9auApv/RVpv4Tlg+ hlLWxmTzRULtZOwX4L/vc3JnNheNPVj2Dq5Qf4Ao4odR+9OXIla8m9gysrBFXexMHqLJ IuNXQU3xAjKSj/1M6dMh+R1NQaudvBIp8lUCkpFo/c+/EyTV4khzsLUPt+vHDi3rL9PM 8+rvobVoV1n97IW5VcR+We36nkfXOie7pHf5VDWH8Ji/eleX8jrfAK2I3pMxKPfN7qVM yyqA== 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=xysxads+f6wQHkPyNi+ecSReQgoBfvy3gKHTba22J0I=; fh=YgJ9cQ4aL7HaYd+8R0MIBXgkJmL8Yh6LbzLNatL7VKg=; b=CIXWXn1oU9F4uCFyzuaiPfB2ZP9z9+BK7M86SigwC25RZjSp1+FSFuEtHiqwHXYlXO N0vbU3MhC0g3mCRJWyJj0BBifRiRY9xzRXJFFSd3YiqeaPen/tVZYoFGuHgh5U5D83H9 1evs+9+w4WjXaUF+zfspSauVx/DIob6/IsXnVSmAVtfV+Dn9indl5lfIL853JTw90wWc XmjycGwYC03G+rea/xFbcO6i+R7IVcFknARthFjwadxeKsVfcKkpdGrYpYguGTo2efVI MaM1V/S+BKQM67lxz6lWz/GRuv+xPQQ1ReSYnW1P5X5mjLkPgcXLqWgBmdkvb8hVp2zK ICww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w6svMHpE; 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 f20-20020ac859d4000000b0042a2e27fb34si152077qtf.432.2024.01.19.13.52.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jan 2024 13:52:04 -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=w6svMHpE; 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 1rQwlz-0003w1-2N; Fri, 19 Jan 2024 16:51:35 -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 1rQwls-0003ui-U0 for qemu-devel@nongnu.org; Fri, 19 Jan 2024 16:51:29 -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 1rQwlo-0005QA-Dc for qemu-devel@nongnu.org; Fri, 19 Jan 2024 16:51:27 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40e775695c6so11052255e9.3 for ; Fri, 19 Jan 2024 13:51:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705701077; x=1706305877; 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=xysxads+f6wQHkPyNi+ecSReQgoBfvy3gKHTba22J0I=; b=w6svMHpEazws9re7lRha6j+xyDlUiowGOjgL4mc/VhC+RPtrWVoOsk5nGDNolUSmd9 QSAFdFWc7ReoXoxfS8i2+f2E9fG2h6j5zPkjJAs8/Oc1uVnwa34g8E8XsZgPd0uiq4ih xi0ujxixb+3R5F/EojWFz7rtoGqCV5Ej90Mr+fBMRB7aFjSuwXZqd4BKfRIFFzAnNrbE IgVqSAWRJC1I1JD92d1KPNc22Nqn3ysF0/l65Yf6fPv0fdz1VutcVTeaFmffyPsrzNI4 IiFl221crHDrrOXfHhzEuv1epdxNEqGH3v6YdtOsoZT7PGSsvC4FH9MIAICptjGtS3T9 1Npg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705701077; x=1706305877; 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=xysxads+f6wQHkPyNi+ecSReQgoBfvy3gKHTba22J0I=; b=dn9ye5/8VoeJN7SsEMQMAFNl9D7aWm1/edzsXCn3NcYe6K9FUPc5He0U9ZWqoMOS3a jmKoRTb8rNnzOqtdeAuZPhOgL+cpw7Ol0hC6ozwqzWx4qZUyUizz0aG8dfkDoMBDnA2/ kZJehgwdtV4ebHCnUP/vhA6vMQVso/g2DWa6zoJ6lSvms9NgbmPgxJY3dyPaav6LIHRd BOHGj8vt+QVEURrveVRi8Qu5sySwp4vySeZ1+5HPaoi4pAQTelN65/p450/40x64vXYe 1GFGQALrb6WKoKBkpj1XLlj0pdGIVGwbPhVoFBsu3oCGbiiTTK5sD2SDloq38+jD2Qzn i4YQ== X-Gm-Message-State: AOJu0YyNtNHzZptWJhBX6QAXSOxH5cUUsOb9oJblz1mqUzfHjdK5aMmT BJXzvVL6zNKNsQQQbKnT7/sSR8V7kTGsUWXkNYwos5IJJHjrTBzMmWkBxEHQA9YUBbAyRzlDiNJ U X-Received: by 2002:a05:600c:1ca2:b0:40e:6397:f42c with SMTP id k34-20020a05600c1ca200b0040e6397f42cmr257260wms.7.1705701077612; Fri, 19 Jan 2024 13:51:17 -0800 (PST) Received: from localhost.localdomain (91-163-26-170.subs.proxad.net. [91.163.26.170]) by smtp.gmail.com with ESMTPSA id c11-20020a05600c0a4b00b0040d53588d94sm34241069wmq.46.2024.01.19.13.51.16 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Jan 2024 13:51:17 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Beniamino Galvani , qemu-arm@nongnu.org, Strahinja Jankovic , Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH v2 2/2] hw/arm/nseries: Unconditionally map the TUSB6010 USB Host controller Date: Fri, 19 Jan 2024 22:51:06 +0100 Message-ID: <20240119215106.45776-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240119215106.45776-1-philmd@linaro.org> References: <20240119215106.45776-1-philmd@linaro.org> 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable 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 The TUSB6010 USB controller is solderer on the N800 and N810 tablets, thus is always present. This is a migration compatibility break for the n800/n810 machines started with the '-usb none' option. Signed-off-by: Philippe Mathieu-Daudé --- hw/arm/nseries.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/arm/nseries.c b/hw/arm/nseries.c index 35aff46b4b..35deb74f65 100644 --- a/hw/arm/nseries.c +++ b/hw/arm/nseries.c @@ -1353,9 +1353,7 @@ static void n8x0_init(MachineState *machine, n8x0_spi_setup(s); n8x0_dss_setup(s); n8x0_cbus_setup(s); - if (machine_usb(machine)) { - n8x0_usb_setup(s); - } + n8x0_usb_setup(s); if (machine->kernel_filename) { /* Or at the linux loader. */