Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp660861pxv; Thu, 15 Jul 2021 12:46:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAw/qv9/cXAX7oeVXsO0Qfe2Mtu8oTCptDDECiiZMvlA6eoVcViPDaMTJsnedNMYy6gJIX X-Received: by 2002:a17:906:4095:: with SMTP id u21mr2795573ejj.108.1626378416064; Thu, 15 Jul 2021 12:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626378416; cv=none; d=google.com; s=arc-20160816; b=o3nXFAtuBLBi5cXqJ/wu3+m96Xlah9BP2U7ID5e9s0nCYry0jqV6VAkC68HHEa3s5U 5IF+RmcT6P0Qh2IhdJsHxzn3gxTrO1CtrnIFgKCm27n+JQT0+pk/ekNX5bD4YkVeW5lh Jhkc5Nax6eWI0RGvtjbYTSld9cP0hzxXrY2tZR5tV4gJ8S/r4qNrnk3p3PpknMTQLaK7 ty6Iee0ceP7ZzVutY/vRT+djDkmfo/TuVyzVV+rLxqufNnx+gYFrfHHebr+O7zkkjsCW 9S1EKJNGT0Bf2gFnAxXWKMtja3KU6neoqmlGWDHkuWfeQfA0cLMrYgpS7XDNJZvlbToa VFqQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kusuPpzFHFbBpHYpeINCD30GwyBNkYLM54SJ6b+fkCI=; b=jSHM1sWMvojyu1f43uMyOKD2m2ozo4guJUEnwhiSMgKSQHjzb0J/v98XkN1A+sqBfC lPdy//NRaGaVsGJVvpF7Xu59hrhgydO0oY6g+U8yPCz+5mNYp9dlGeVVnEw/7OA1X2RD vyEXEbLtwk5N0+k10ntx9R8TuJDN0RRD7h1KICBrS57M4F0hwcWR7mls9PTFJliuJost cM7uwUx/WxoN5p3pQHOcYysDvVsrdDHsZmllsH34E9HZhalqHltA0Mrjq2Afjp0tXf3b BZ8yaw3iiQ3+FdLNA9sAr6iv2GKTgb3gZ2QlNIEnmd6sHJ6C4V3cLzM9xlFjU5WgvcMH UdXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VaqJIWYP; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bh4si9789731ejb.680.2021.07.15.12.46.33; Thu, 15 Jul 2021 12:46:56 -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=@linuxfoundation.org header.s=korg header.b=VaqJIWYP; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344228AbhGOTs1 (ORCPT + 99 others); Thu, 15 Jul 2021 15:48:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:58674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243767AbhGOTRw (ORCPT ); Thu, 15 Jul 2021 15:17:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0A1756141F; Thu, 15 Jul 2021 19:12:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376374; bh=VCbkn5xnj6I8I39UGSdZSENyID19O7Gl0jTqClZXik8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VaqJIWYPMsKG2OQcLL5H54GgercYomCba23M7Hh2Tka4RbzVWGwaPpvl7g+uu3uNy QQJMNvmAbT/ll4F8hbekyUAo90ssVavuHuWQnFpghWYgYzldpleZ6jhVyYg6XWpj/n SGFE4bBWVnW85B3/YA5DrLA3isqRFHKLSZKpikog= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Pali=20Roh=C3=A1r?= , Lorenzo Pieralisi , =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH 5.13 243/266] PCI: aardvark: Fix checking for PIO Non-posted Request Date: Thu, 15 Jul 2021 20:39:58 +0200 Message-Id: <20210715182651.330583704@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Pali Rohár commit 8ceeac307a79f68c0d0c72d6e48b82fa424204ec upstream. 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. Link: https://lore.kernel.org/r/20210624213345.3617-2-pali@kernel.org Signed-off-by: Pali Rohár Signed-off-by: Lorenzo Pieralisi Reviewed-by: Marek Behún Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/pci/controller/pci-aardvark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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)