Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp713049pxv; Thu, 15 Jul 2021 14:11:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCMINz/ewUbJyfK1AN4k3t9X371DXCI3r+8KHm11CCbDOKf64CENANpvL9jaEHzVCBBw2B X-Received: by 2002:a05:6402:951:: with SMTP id h17mr9944900edz.198.1626383510620; Thu, 15 Jul 2021 14:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383510; cv=none; d=google.com; s=arc-20160816; b=KHl3sR8c6KL+Ts0mJzmApsTj9uVjqPFld4XKpSdewwi4IFZCkuhEx8rN5IbmBA3SYz VQx/UwsAHTQYxA3nLtD2+iLQkkQWZ+JLXYVViDgtI/hnZLyrUn+nRj4Zj1q3Epm+ghwM DaN9Wjol/rIo2tM3439r5scetEWfrPMUNF3n0MxG8lRDmloOFqFRqo5vw15LBqE5kEnU J1IQRaBiHzNZpXmuWvRipFbi/toWC+YdzXLDO5X1VsxtW/UydPLI4gnorumzFt2A26m8 gxsXMws++jxnZg2VameYBJ6/IkyjoUVBuEiUEsA0ModDEA+u/1rvYZFOBK8GhchSXN7L 4xaQ== 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=bpFHOm8b+iHUbFJmpGYwUBMbIgXUwQ6uMHQNKGxNv8J38VHXjVG2aoTE/2WWt/Sbpr U5eHfxPieF6ORbAlqcGJMEardleHFNZfvtweailHcaCVatmJNqEpRVmDQWgJ/Aunrh9L 2akYiRXz931T01MSLRM7j3OHoUvKp709mhcq96M1tuBPexmFXYlCbQWRCcbWQx5ZOKA0 tQITekIdcVvxGSGdD4l/cU1zCs+7OViWabFEnu6MD1Iyswcjh4rnsdIK3mn3++T+H7xz m5yEm8010BEoip2fye3whju9sEPNU/hZ2mNXXTgKRqXeRHNP1osr/ya4fR3ctuyAwcxZ sQIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LDSFJJon; 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 si7si9029375ejb.102.2021.07.15.14.11.27; Thu, 15 Jul 2021 14:11:50 -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=LDSFJJon; 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 S244402AbhGOTWK (ORCPT + 99 others); Thu, 15 Jul 2021 15:22:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:39762 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242231AbhGOTFw (ORCPT ); Thu, 15 Jul 2021 15:05:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 42921613D1; Thu, 15 Jul 2021 19:02:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375745; bh=VCbkn5xnj6I8I39UGSdZSENyID19O7Gl0jTqClZXik8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LDSFJJon4MgI6QLCNNmhatcqnu4ScfGXPf7zRFu9hjAf4j9YxjRKBFnqHiJ8zwfp0 NW5dRfyy7GatFbPoNMvP2gXdIWLFSaTtXHp7oFZDzqthNhaCnQeD/Da+WHU1Um5NIB IMKpiHycamcnmKLecqVQAeGQvp6dUih14uLz08+o= 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.12 219/242] PCI: aardvark: Fix checking for PIO Non-posted Request Date: Thu, 15 Jul 2021 20:39:41 +0200 Message-Id: <20210715182631.614351427@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@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)