From nobody Wed Nov 27 06:37:15 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1701178739; cv=none; d=zohomail.com; s=zohoarc; b=cJp6Yn7X4QQQRpsudnwp//wzI7RtjoSAOBF9Su2ti3E/XpjXdv4ZNRWBI6dIsALwpmZogBFwTIjbq8U9hU5FGSeC0TS7T3Z4SGZ3UfFlcK+CumpAZyq4wC1L4YLOctckQrH1gg9FHwOSovn9hWEuS2wSFnHiE2s7vakme3GM7Ik= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1701178739; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=AU3XHV66pWU29DJMHZUdephtHQTkVekgNrGzgZLdqHA=; b=QlPDd4QnIPqY49s6TEj8+7LjJI+OWqX+vYbMzI8sT9SJTmiXQXotV7Jbf+QC6VPaLlmvV5lH/QZtO3mgNpsXYvhckOfz40s0ZRZYCgaO9MBPx8en7VlU77PmqVgSgncEd9vKstJGkaxnEiuQscVsSINa9Q6PEqriiy5XGjL9+2U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1701178739402363.3328149000189; Tue, 28 Nov 2023 05:38:59 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7yHu-0001xv-CE; Tue, 28 Nov 2023 08:38:06 -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 1r7yHr-0001x6-RZ for qemu-devel@nongnu.org; Tue, 28 Nov 2023 08:38:03 -0500 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r7yHp-000863-Jy for qemu-devel@nongnu.org; Tue, 28 Nov 2023 08:38:03 -0500 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-548f0b7ab11so7373779a12.1 for ; Tue, 28 Nov 2023 05:38:01 -0800 (PST) Received: from m1x-phil.lan (crb44-h02-176-184-13-61.dsl.sta.abo.bbox.fr. [176.184.13.61]) by smtp.gmail.com with ESMTPSA id bw24-20020a170906c1d800b009fc24437439sm6785378ejb.158.2023.11.28.05.37.58 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 28 Nov 2023 05:37:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701178679; x=1701783479; 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=AU3XHV66pWU29DJMHZUdephtHQTkVekgNrGzgZLdqHA=; b=rSEU1WnVZbcXU60hPlgN8aASM/1URl015XiZqkvbcVbtXpk9MbVpXpIZVCyKA1JzGN FMBSczVgnko8hFwvgU+7SPu+N9sgH9FgC9zecLTFF7+rWXQUPgPSHJbztI3gR+/sf9Io /Wpk7G+eFpSX2muBvkMZhrqc5SRNidCIJxZuOwog6WavOjDGNS+cSLFhwNYAqY55EERl MtByU9EzqNoga7mx9cx41jF9WVMoibLx2v2gLlREuPJDQ0dbcNBEI5XsrT7W1V/h8foF SMkIaQXqEC4ROEPuQjPilLrNdd7B3137dIJVpfQ46hCb+Ii17CncSMSQpVaiq2Whwp0g gozQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701178679; x=1701783479; 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=AU3XHV66pWU29DJMHZUdephtHQTkVekgNrGzgZLdqHA=; b=CI3JxYl7zSlejuIlAI9zn2IZUmr/AN/bKMLa0nMBdiYHVepn2pcqAF3h+XKEhuOcet imU56qdAH3MapcvxJw3n5dmXMYHZYAmHm7Bw6+XX0myid7bd+Bny81uS26Y2EijHG/f/ cm9CtMvsBozs/91/WElFJGgbK4+lPI7YeDME86yUU6ixsChFU//FrcnwtWcVovItXtGv cbIFREpqucMGg+RGdIVsfsEUPrxuAd/AnmLjoYr77hEYDc6QstJxnWaDWn/x/jBj/x0A wfVcbw3a38lKwL6gvWsNlc9efrQl+EXsH7wFLFQabm8jqLTRi4bUEb7hhglJBfzlA5mu b8ZA== X-Gm-Message-State: AOJu0Ywygk6PMJM3hdf/psFzHB3FivvMz74Eb/qvmwZGJ4wJGexunVXs o7i2Oefx9nqbcQyiPRCReic3IsGEmPYU5QOKGpo= X-Google-Smtp-Source: AGHT+IG2YRrfzhFpMwaIEeVc531l5d0AFGSSIM4FRFac44qmYPsDPFjElgnaNdirkgIT3NHvIDgfJw== X-Received: by 2002:a17:906:583:b0:a00:893f:58cf with SMTP id 3-20020a170906058300b00a00893f58cfmr9986731ejn.54.1701178679633; Tue, 28 Nov 2023 05:37:59 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, Michael Rolnik , BALATON Zoltan , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Gerd Hoffmann , Jiaxun Yang Subject: [PULL 3/7] hw/usb/vt82c686-uhci-pci: Use ISA instead of PCI interrupts Date: Tue, 28 Nov 2023 14:37:36 +0100 Message-ID: <20231128133740.64525-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231128133740.64525-1-philmd@linaro.org> References: <20231128133740.64525-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=philmd@linaro.org; helo=mail-ed1-x534.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1701178741165000007 From: BALATON Zoltan This device is part of a superio/ISA bridge chip and IRQs from it are routed to an ISA interrupt. Use via_isa_set_irq() function to implement this in a vt82c686-uhci-pci specific irq handler. This reverts commit 422a6e8075752bc5342afd3eace23a4990dd7d98. Signed-off-by: BALATON Zoltan Message-ID: Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/usb/vt82c686-uhci-pci.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hw/usb/vt82c686-uhci-pci.c b/hw/usb/vt82c686-uhci-pci.c index b4884c9011..6162806172 100644 --- a/hw/usb/vt82c686-uhci-pci.c +++ b/hw/usb/vt82c686-uhci-pci.c @@ -1,7 +1,14 @@ #include "qemu/osdep.h" +#include "hw/irq.h" #include "hw/isa/vt82c686.h" #include "hcd-uhci.h" =20 +static void uhci_isa_set_irq(void *opaque, int irq_num, int level) +{ + UHCIState *s =3D opaque; + via_isa_set_irq(&s->dev, 0, level); +} + static void usb_uhci_vt82c686b_realize(PCIDevice *dev, Error **errp) { UHCIState *s =3D UHCI(dev); @@ -15,6 +22,8 @@ static void usb_uhci_vt82c686b_realize(PCIDevice *dev, Er= ror **errp) pci_set_long(pci_conf + 0xc0, 0x00002000); =20 usb_uhci_common_realize(dev, errp); + object_unref(s->irq); + s->irq =3D qemu_allocate_irq(uhci_isa_set_irq, s, 0); } =20 static UHCIInfo uhci_info[] =3D { --=20 2.41.0