Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1650641pxy; Thu, 6 May 2021 12:20:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKvcn+sNdSLXva8Au3uT8G9Gbn91Ia5oR+pWdg6yv+1dWBrfw954Z6r/AwyUcuMn1PdMh8 X-Received: by 2002:a05:6402:1354:: with SMTP id y20mr7228650edw.115.1620328818199; Thu, 06 May 2021 12:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620328818; cv=none; d=google.com; s=arc-20160816; b=RThmht5WUTz+DAVuXMqrWa7J546dv/VUzd0nCWL4pBTaJcBgaJ4IN/JV+pXmz3zPUH gctrkFnENlu4kAfBHpdylHNe8zgS+Dn3FZTJLH4Xf+jakwQos1wrEuSpttTLvhnCM9PT CvlpqpQQ6LT5ISxAVF9FPCorTrzo3EutfG7Qvu3yLmYrRtg/iWZiFgTKHyoE11+fKInf np2qoqycwXSTUWwTeGRvUnChKoa2/qeRopURqZsHDB5mlas4ftl3VqlFIDaNkLM9yVCG Se/JknK69dfUB2Zfbrt0NFOMaOgBp+nQKxk8u9wTnrYqBQM2SNfjuvHin3ZqLe5+Cp5U psQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Y0Zr/pYf4JPGoC87XGhE+dZcHLj8VRQ7ooKGV3dcPSA=; b=eO6CufyXhuil7JUQBYfAAPzPp7U96+pCPMihjVMsy97IOFk13fp3CWHtAt40EKL5zz zuXuDSVYURvhwVo/O+mWUD7apX0YgTnpxem+QUrvfTOT+ScJ5T5Z0AeQ/c0bDTX5M2PG ABbMjI54MNi8SQhQgYWnYLs18xJ4p58rX9td8IsY4r74ulU9dZUCldm0oZq6GnqdPfFR dfRYptv3CIcAIwkVIz8n3QdzpQ30vr4yncxopQaa8jCc8G6HvywXp7aT5wSyhW7HcRMc ixKdrpblHO7OD5G9AhN+vjT96lOVJLtkrFtS0pzdwTWwWTvoFJ5kXaZfzL1sw50kNgpW Nc5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M7KJ+oKk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si3229524edq.392.2021.05.06.12.19.53; Thu, 06 May 2021 12:20:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M7KJ+oKk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235472AbhEFPdr (ORCPT + 99 others); Thu, 6 May 2021 11:33:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:45828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235147AbhEFPdp (ORCPT ); Thu, 6 May 2021 11:33:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 28B1761104; Thu, 6 May 2021 15:32:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620315167; bh=ticgXE7CjNhWfVymrLf5bGBpQYvv4IhRaSX2oXSsd1I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M7KJ+oKkDugqW1SIubabh+zVXWcvfilXeQofjOvulJH5lqSyxMlYCXZqKJGZftFch tQgvE47XG8DnWi+gpTZyv6uOvnSVyVmLA7Dg9wOGHxdC8J/8+gEN5Q+bivDBT1qXrK 6FHe5MX1xciUQFjZdGKjOKDw2dvqmsAPUt54bp/idv22QxVN2PyBQVGC5LefR2twWS m2eKpXwvT6v6AZgH6opcZnT+Kpqt27R5V5SMWNRvH9bLg0RQbIlyBcvqD3QNMqlDBN U/cEMW9uB64eXFYDlamrhzD25hdjIMb7OryPDz+aZkXcp6pt/AmnTkqu3/232lYgvS YRaf3iHQ/wyOQ== Received: by pali.im (Postfix) id 938538A1; Thu, 6 May 2021 17:32:44 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Lorenzo Pieralisi , Thomas Petazzoni , Rob Herring , Bjorn Helgaas Cc: Russell King , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Remi Pommarel , Xogium , Tomasz Maciej Nowak , Marc Zyngier , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/42] PCI: aardvark: Fix checking for PIO Non-posted Request Date: Thu, 6 May 2021 17:31:13 +0200 Message-Id: <20210506153153.30454-3-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210506153153.30454-1-pali@kernel.org> References: <20210506153153.30454-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PIO_NON_POSTED_REQ for PIO_STAT register is incorrectly defined. Bit 10 in register PIO_STAT indicates the response is to a non-posted request. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún Cc: stable@vger.kernel.org --- drivers/pci/controller/pci-aardvark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c index e3f5e7ab7606..2f8380a1f84f 100644 --- a/drivers/pci/controller/pci-aardvark.c +++ b/drivers/pci/controller/pci-aardvark.c @@ -57,7 +57,7 @@ #define PIO_COMPLETION_STATUS_UR 1 #define PIO_COMPLETION_STATUS_CRS 2 #define PIO_COMPLETION_STATUS_CA 4 -#define PIO_NON_POSTED_REQ BIT(0) +#define PIO_NON_POSTED_REQ BIT(10) #define PIO_ADDR_LS (PIO_BASE_ADDR + 0x8) #define PIO_ADDR_MS (PIO_BASE_ADDR + 0xc) #define PIO_WR_DATA (PIO_BASE_ADDR + 0x10) -- 2.20.1