From nobody Sat Nov 15 22:24:59 2025 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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1746124542; cv=none; d=zohomail.com; s=zohoarc; b=kmpMLx9/J5BLVcySxp23smSbuaXpTC5L3A2UFd9pj3Jgpanl1hWQ2Zw50qTq+QnRBoSW4w0V/a6aKe0BoyR8Y9uTMySMVJnAtfHjvlv5cko7BaepeThxFLUORETJ9d0OE3LcSHYZtQY5u8DShuLgoV0KsEXp1rJn6zpdq6fxbYU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1746124542; h=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=a12JZbce1+9GJpbaRrN1N9bSwXcK4gSSRdokzUK1bC4=; b=ONUnjyxE8DL7N9lw+CvZgfM1E9F+NfkRb4b2OPCRbSXtLmtpZfMx5bw5MImPK1lr93bDxzn8axsUT8gia3f9obRZnzMI3nKkCmEOh7U2lrSZO2tk4+sNV8EnWamUHyEwLcILGjZnWvt6M8hdDB8kAWL13oISAsVaci4VRXjR8tM= 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 1746124542241756.232978046106; Thu, 1 May 2025 11:35:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uAYkP-0004uZ-SE; Thu, 01 May 2025 14:35:01 -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 1uAYkO-0004u5-Np; Thu, 01 May 2025 14:35:00 -0400 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uAYkN-0007Vm-6A; Thu, 01 May 2025 14:35:00 -0400 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5f4b7211badso1908030a12.2; Thu, 01 May 2025 11:34:57 -0700 (PDT) Received: from localhost.localdomain (dynamic-2a02-3100-2980-eb00-0219-99ff-feb2-2458.310.pool.telefonica.de. [2a02:3100:2980:eb00:219:99ff:feb2:2458]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5f93000b272sm751709a12.68.2025.05.01.11.34.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 May 2025 11:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746124496; x=1746729296; 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=a12JZbce1+9GJpbaRrN1N9bSwXcK4gSSRdokzUK1bC4=; b=Hhd7RKqXNBNaDufYsTyhIUFiS0CTOFARE/JCuT9QJlie7fG3S5nUH4mEPLDQ8ywR2V qYlPzw+y2J6l7D2qOQyLOSMPVvQWYgTcOUg8qanZ3C/M/SUQSJdLNQ0hV8jAX2d2p5yT rfNM6CFSFS9Y9rG4VC0Hky66ibO7i5Nfzc+zEHnwWzYsJ+yGVpiiV8jikogS62Octkvi vo8XRYH+kWT29SNmBzP/nSRYMzs9Orz4H1tlE0sB5PNoJIh0MZ4MYUWnV6axhY/ryMe1 MLrtaR1R/zHPg+hISC06NT87YDYGM37MDf5al+7HsUlkL+2jW8Wi08u3EE7frb0x8NRg NmYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746124496; x=1746729296; 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=a12JZbce1+9GJpbaRrN1N9bSwXcK4gSSRdokzUK1bC4=; b=mTRJO+JD7PLTRGtSf3fywiEE7gbb258enbxYa39B+KWSU9uHdtWBeby7oGR9kdRp4w pDDGWPDT4ubsi2tFSK3uL3aTHqR9VuFvH+han+6DnOxPo2M/4a4/Tlmj1ytTi9hVnVAa ip7jfG9YgeHvzmVjlKHFMTdxfGIdUx9cMeXM6dpxIZ9CdxR6rl7DGFv5Q9DOJOHKNjF9 +oSZrk+5C+DIwVGRSmnrBtX9Ib7V98f/qaTAIiPW5Rzk1wzeR3i22ZFgqCohcBR9URGy /DbHF03faSMbziL4rtLx5tDibwfjSrYG1blrvQXITxteo6N+uoEnMy6RlBWNyeBfdL56 UBQA== X-Forwarded-Encrypted: i=1; AJvYcCWUCZfFBohrCzKuk6yiq8sBSVu/QKw/NotDDpbT8eep14gznmIPIh6gQASxM2uBex5Wsj+jkCOqkw==@nongnu.org X-Gm-Message-State: AOJu0Yzk9JrwKuMaZ8O6BEpsZr54RWdPheFN/CToyjPeCja+QSJzNHWF UYql4aEKd1JGNcVO0+GVk4/vikZw71M3xRzrMeSaYB5IfxRjFHm6hXh0eA== X-Gm-Gg: ASbGnctTg6SOS2sJXf2ZV3h04VjerV/Pj+/hCDJC45H8H3VxDb8VUzcWgG9ydpx2SvJ 7velfR9AmAWLNzEAjnzx6CuxonpP8HHbv+NXC+nEELMS1YfsKA16uRvnJX1PTBon5tmhMrD24vH gu83xtgymm5NM80AJY6f/YnmBkal7LoC/XiibC359j12DNC4L+ncs0wE4p8wNyJ04h8hcjgsiBn cwh50F9LowAkUujD4CzuJHXrSmaUatYIVsmcBdFMhHzSiddPwRFZ9aEAPNmcvP14aIGU74JWOqR f/noWFI7TPSQj0kQaG3OnVxP/zoukKABecwFRXq+aQecFvmFVrkpHB3Q/QtdBMvEk0mX8PhYtr8 TyPN1e70tZ/Mct6J4Z+PpRySYuW/35kitVcVsheWNhLOTGLaw0QEZ4CjAqtAUgA== X-Google-Smtp-Source: AGHT+IGZ/xZJjD3nzRw3hzXbRBfASxzEh7PD5/50xHhSZVzmGgk8IgL31hKyC7gSUNm/xRphrLdReA== X-Received: by 2002:a05:6402:210d:b0:5f6:f998:3c6e with SMTP id 4fb4d7f45d1cf-5f89b34d307mr7098971a12.18.1746124495986; Thu, 01 May 2025 11:34:55 -0700 (PDT) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, Andrey Smirnov , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Bernhard Beschow Subject: [PATCH 1/3] hw/pci-host/designware: Remove unused include Date: Thu, 1 May 2025 20:34:43 +0200 Message-ID: <20250501183445.2389-2-shentey@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250501183445.2389-1-shentey@gmail.com> References: <20250501183445.2389-1-shentey@gmail.com> MIME-Version: 1.0 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::531; envelope-from=shentey@gmail.com; helo=mail-ed1-x531.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1746124543594019000 Content-Type: text/plain; charset="utf-8" The DEFINE_TYPES() macro doesn't need the qemu/module.h include. Fixes: 13a07eb146c8 ("hw/pci-host/designware: Declare CPU QOM types using DEFINE_TYPES() macro") Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/pci-host/designware.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/pci-host/designware.c b/hw/pci-host/designware.c index 183f838392..b4bff14579 100644 --- a/hw/pci-host/designware.c +++ b/hw/pci-host/designware.c @@ -20,7 +20,6 @@ =20 #include "qemu/osdep.h" #include "qapi/error.h" -#include "qemu/module.h" #include "qemu/log.h" #include "qemu/bitops.h" #include "hw/pci/msi.h" --=20 2.49.0 From nobody Sat Nov 15 22:24:59 2025 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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1746124568; cv=none; d=zohomail.com; s=zohoarc; b=CTP/m04EGytGRlgFIOrNVRA/AbikYkHLtwYJWFjgy+Y+28AoBBGrP9Y1wZUycoHe+99o/Q/IQYVSOXzkSGDGjE4fo7puv+/eQmTunifN+aN+B+cy28J3zMivFK02L9lJqGcfjt81+8NgbDY+nFwoKCKMvFr+tn0hOubYgX+zLsw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1746124568; h=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=BUdFeSyflWwNMC8spYoAFZC9mek/p0k7XGjJv0BP+DI=; b=eSRaiQHVXuzo0/uuFVbDk45q6uO0QrabmFIZIyqyAmDIX8GzQ7hrPE5TaWvuxOtgZeQ/ojOyyo9hUrr5v9BVQb9NTvRmaRe+8KA2Ms6Xkr2mUF0+vRqJyTSFmV5vGn8snKO7K+5z2KyvvJqoL6p/9yQKmOGyAr5P6+II68ngdXQ= 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 1746124568415870.1288900645742; Thu, 1 May 2025 11:36:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uAYkT-0004wf-4d; Thu, 01 May 2025 14:35:05 -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 1uAYkP-0004uY-NW; Thu, 01 May 2025 14:35:01 -0400 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uAYkN-0007Vw-89; Thu, 01 May 2025 14:35:01 -0400 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5f4d0da2d2cso2398568a12.3; Thu, 01 May 2025 11:34:58 -0700 (PDT) Received: from localhost.localdomain (dynamic-2a02-3100-2980-eb00-0219-99ff-feb2-2458.310.pool.telefonica.de. [2a02:3100:2980:eb00:219:99ff:feb2:2458]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5f93000b272sm751709a12.68.2025.05.01.11.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 May 2025 11:34:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746124497; x=1746729297; 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=BUdFeSyflWwNMC8spYoAFZC9mek/p0k7XGjJv0BP+DI=; b=LWR14DGGNTta48/6yYC21NVXlBtFo1hssg2pFsO8U5kEfAxfjCQp64FP0zJCq/MFFh xSSwyHpSFQOx5WR0drPL8Wsjrb/N6QwumsoZ8f/d+ePJxf/mo9wscADyIxiq6ODE9Qi7 xsqIr79cH0tZNLsxj0RXPX/2cWrZ9oEz/IqHazIOty4STR7quTbMgO+uG3VBmv4sjb8i TeSiFLBEXOrfuPo4Bnf9oI88gPdDr3iH5ePeQhYBF1+qCTTrTTRSI9+n9GIiF8cpB5F1 gAe277WWCWbnSWddBFFXnK/72gExpAg6E0wK5eWjHmKNrsRwN3D2sgesu6XKJUvpTIy8 cd4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746124497; x=1746729297; 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=BUdFeSyflWwNMC8spYoAFZC9mek/p0k7XGjJv0BP+DI=; b=AGvFH3owEAY6kE8Zpsyus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+AgKaQs4gDZ7aTyqkHiTR9X7Oylfq8rdw== X-Received: by 2002:a05:6402:1e88:b0:5f8:e24b:c8a6 with SMTP id 4fb4d7f45d1cf-5f8e24bca83mr4146734a12.29.1746124496631; Thu, 01 May 2025 11:34:56 -0700 (PDT) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, Andrey Smirnov , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Bernhard Beschow Subject: [PATCH 2/3] hw/pci-host/designware: Fix viewport configuration Date: Thu, 1 May 2025 20:34:44 +0200 Message-ID: <20250501183445.2389-3-shentey@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250501183445.2389-1-shentey@gmail.com> References: <20250501183445.2389-1-shentey@gmail.com> MIME-Version: 1.0 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::533; envelope-from=shentey@gmail.com; helo=mail-ed1-x533.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1746124569156019000 Content-Type: text/plain; charset="utf-8" Commit 6970f91ac781, "hw/pci-host/designware: Use deposit/extract API" accidentally introduced a copy-and-paste error, causing Linux 6.14 to hang = when initializing the PCIe bridge on the imx8mp-evk machine. This fix corrects t= he error. Fixes: 6970f91ac781 ("hw/pci-host/designware: Use deposit/extract API") Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/pci-host/designware.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pci-host/designware.c b/hw/pci-host/designware.c index b4bff14579..f6e49ce9b8 100644 --- a/hw/pci-host/designware.c +++ b/hw/pci-host/designware.c @@ -348,14 +348,14 @@ static void designware_pcie_root_config_write(PCIDevi= ce *d, uint32_t address, =20 case DESIGNWARE_PCIE_ATU_LOWER_BASE: case DESIGNWARE_PCIE_ATU_UPPER_BASE: - viewport->base =3D deposit64(root->msi.base, + viewport->base =3D deposit64(viewport->base, address =3D=3D DESIGNWARE_PCIE_ATU_LOWE= R_BASE ? 0 : 32, 32, val); break; =20 case DESIGNWARE_PCIE_ATU_LOWER_TARGET: case DESIGNWARE_PCIE_ATU_UPPER_TARGET: - viewport->target =3D deposit64(root->msi.base, + viewport->target =3D deposit64(viewport->target, address =3D=3D DESIGNWARE_PCIE_ATU_LO= WER_TARGET ? 0 : 32, 32, val); break; --=20 2.49.0 From nobody Sat Nov 15 22:24:59 2025 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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1746124552; cv=none; d=zohomail.com; s=zohoarc; b=KtY2gRAi+bWb/qV2t2IjjHuNop8rhsW0CIMo+qsYs5yprmB3bOLAGk8YLF9B5b5Vtiah9sFVE8j1jGh946D1xmBWyOipYTehEAkKmNjR7jXx+0Pqs+eF7r38PTwk4iiMyNLgTf9a2sRchCYC3ytlG4phJEx69LAQwY/nEOFcmPc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1746124552; h=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=RqUBQMIDvrWdaGrAbnq5K23B7hGYiXftBrPor930Aiw=; b=VJJ/Od8U7K+0Ho65lt/ZgIY5oF6w4MOFs69VH1Jd6iNvfuq1yDBg6Mwl2/FbatxA/uL0xhOdxO2ZurEK2NqNbzyILHMkDB8H9i442maCGB6mMSBHDiiv3b8JdpuNunmzKUEtdqguNySeLU09FhWrIDgoYx+d58tqueTMJOzi0P4= 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 1746124552850366.7311434136335; Thu, 1 May 2025 11:35:52 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uAYkU-0004xO-55; Thu, 01 May 2025 14:35:06 -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 1uAYkP-0004ui-VU; Thu, 01 May 2025 14:35:01 -0400 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uAYkN-0007W0-QH; Thu, 01 May 2025 14:35:01 -0400 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5e5c7d6b96fso2220885a12.3; Thu, 01 May 2025 11:34:59 -0700 (PDT) Received: from localhost.localdomain (dynamic-2a02-3100-2980-eb00-0219-99ff-feb2-2458.310.pool.telefonica.de. [2a02:3100:2980:eb00:219:99ff:feb2:2458]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5f93000b272sm751709a12.68.2025.05.01.11.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 May 2025 11:34:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746124497; x=1746729297; 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=RqUBQMIDvrWdaGrAbnq5K23B7hGYiXftBrPor930Aiw=; b=LuYvAbicz8iX8UuSzYp9fKmPdcwc1o7QN2nK8wRTiCjOCA59tQfOJgeU7cXU963/3B NwGKV3u0iol60yK4GL9/h0bZQT4ZKZ/MLb8xTbKxDRNK8bzEiNmqDbvipibCsTNpQqtc sZj0QGFiv3D+t0+BNKmuPgaZprg7qBh0R/67AjwcYZ+0KIhjl5fWs2iNByszyHn6+MWb POhjaETgq+LhSFHnrfYLxsjfqU8p9W2vmKQ34PtmARZAz2HNUWCrLbpOBcw7CnRKqLVt oMlueYXGROZCPX3lXuMWYYEpshjyEJIF6qQ8v466mUH6Bi+ERESnChTEIpXdw5BcZ5Vk UDXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746124497; x=1746729297; 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=RqUBQMIDvrWdaGrAbnq5K23B7hGYiXftBrPor930Aiw=; b=pPmGnYrNrYch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LyNDt+ct5hz4TlaiFO3IkhNcl8wBY5/zQ== X-Received: by 2002:a05:6402:2753:b0:5ec:cd52:27c9 with SMTP id 4fb4d7f45d1cf-5f91944d7demr2773168a12.31.1746124497327; Thu, 01 May 2025 11:34:57 -0700 (PDT) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, Andrey Smirnov , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Bernhard Beschow Subject: [PATCH 3/3] hw/gpio/imx_gpio: Fix interpretation of GDIR polarity Date: Thu, 1 May 2025 20:34:45 +0200 Message-ID: <20250501183445.2389-4-shentey@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250501183445.2389-1-shentey@gmail.com> References: <20250501183445.2389-1-shentey@gmail.com> MIME-Version: 1.0 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::536; envelope-from=shentey@gmail.com; helo=mail-ed1-x536.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1746124554077019100 Content-Type: text/plain; charset="utf-8" According to the i.MX 8M Plus reference manual, a GPIO pin is configured as= an output when the corresponding bit in the GDIR register is set. The function imx_gpio_set_int_line() is intended to be a no-op if the pin is configured = as an output, returning early in such cases. However, it inverts the condition. F= ix this by returning early when the bit is set. Fixes: f44272809779 ("i.MX: Add GPIO device") cc: qemu-stable Signed-off-by: Bernhard Beschow --- hw/gpio/imx_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/gpio/imx_gpio.c b/hw/gpio/imx_gpio.c index f23c52af26..450ece4548 100644 --- a/hw/gpio/imx_gpio.c +++ b/hw/gpio/imx_gpio.c @@ -72,7 +72,7 @@ static void imx_gpio_update_int(IMXGPIOState *s) static void imx_gpio_set_int_line(IMXGPIOState *s, int line, IMXGPIOLevel = level) { /* if this signal isn't configured as an input signal, nothing to do */ - if (!extract32(s->gdir, line, 1)) { + if (extract32(s->gdir, line, 1)) { return; } =20 --=20 2.49.0