Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3654710pxb; Mon, 24 Jan 2022 14:32:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzK2Lu5ecfS3QWx8GSI6FNna1bu2Bo/RrWxS57CtzSeFotO5HogYxY515Wpy8MH9uTygZ8p X-Received: by 2002:a63:60a:: with SMTP id 10mr99461pgg.65.1643063577212; Mon, 24 Jan 2022 14:32:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643063577; cv=none; d=google.com; s=arc-20160816; b=0jF7dt9ClxWkwt/RbxqhBtq4165fuZot0qDbBNNFnmnnb+tznF9Q1tsjpC0S5lx0u4 E1eyFkrc9COiqK39o8U2b3JUnmO7jKw20iaAXxsxi393a4kOlnsYohfmo39kgjtOp0w3 ncoDYtSO4ICzFsAismKLfYyXdbz4DcfHBszc8qQcrDg9iAEuFl6JcTAVTTiwgHmi1DHN HEO/mNa+RF1Uk7K7Bu8D/1/LzTq7VpgOPbvdoXBNwKkUZ5iU2Zi/AVw5NvyaoWjso0u2 CbxyF4VqQrAuB/H1FJZXZN1NGXyZpEDnbfORTsdVUyhlOnyN63IVne4MQnEzuUZwajF8 RXBQ== 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=PvGqZfFjNiHtyN833pkPl/g5sIUMzcwPOK2/BSJb1/g=; b=YM79bbtiOGwFqFkK+Zr1GhFCDjpvVdC4Gw4v7G9ObXLuXL8/0HtLRFP8khSocBheXm 04YoMzr/42Xj0te6qF4TwWuZK6ZktPzD71EpHE+cJIeVrzd4KYpmI73HrIDY/0Mw5jZw DnMHuvCbRxWLJeDp9WWOwAY8cCAMVphMtQVs4U9JIT7ZaHvKTmI3oFUs3cwSlMfIwJOq Rv/HgyGL9gxQsZpfQqNEXZGXZBDNu0/BOB4fCZbDXNSmTNCKP+Y503yGkJiDC63uypTy GEFxTIOMGYUOEiNcpJ+usI7nfgxBtJnFDMcpIstw5kaB20G/H+wgwHnu+XzoNPje9r7R 2YtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=omGCVRbb; 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 z25si14557120pgu.240.2022.01.24.14.32.44; Mon, 24 Jan 2022 14:32:57 -0800 (PST) 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=omGCVRbb; 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 S1587013AbiAXW1h (ORCPT + 99 others); Mon, 24 Jan 2022 17:27:37 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:46086 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1454359AbiAXVcY (ORCPT ); Mon, 24 Jan 2022 16:32:24 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 77397B812A5; Mon, 24 Jan 2022 21:32:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BF32C340E4; Mon, 24 Jan 2022 21:32:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059941; bh=txNX374nHenWS5fo70U4Ivs9K+G5lAxFBUkin4hVTmA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=omGCVRbbvAfUUUYAIbh6dILPBtGnYnMxdwiU7QJWIxApwjtdjrxB0+TNWqZlQdidC aHac7PwHg59or0VwqvpYA84WeadFeTd1kJ8QbTehijawSM9PqC7hOSi3U68J2rqBfD 6u5bH+183a3itw0JQ6RILQJ6EoJsMlzvN4JWThhM= 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?= , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Lorenzo Pieralisi , Sasha Levin Subject: [PATCH 5.16 0786/1039] PCI: aardvark: Fix checking for MEM resource type Date: Mon, 24 Jan 2022 19:42:55 +0100 Message-Id: <20220124184151.709548250@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 [ Upstream commit 2070b2ddea89f5b604fac3d27ade5cb6d19a5706 ] IORESOURCE_MEM_64 is not a resource type but a type flag. Remove incorrect check for type IORESOURCE_MEM_64. Link: https://lore.kernel.org/r/20211125160148.26029-2-kabel@kernel.org Fixes: 64f160e19e92 ("PCI: aardvark: Configure PCIe resources from 'ranges' DT property") Signed-off-by: Pali Rohár Signed-off-by: Marek Behún Signed-off-by: Lorenzo Pieralisi Signed-off-by: Sasha Levin --- drivers/pci/controller/pci-aardvark.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c index c3b725afa11fd..e3001b3b32930 100644 --- a/drivers/pci/controller/pci-aardvark.c +++ b/drivers/pci/controller/pci-aardvark.c @@ -1535,8 +1535,7 @@ static int advk_pcie_probe(struct platform_device *pdev) * only PIO for issuing configuration transfers which does * not use PCIe window configuration. */ - if (type != IORESOURCE_MEM && type != IORESOURCE_MEM_64 && - type != IORESOURCE_IO) + if (type != IORESOURCE_MEM && type != IORESOURCE_IO) continue; /* @@ -1544,8 +1543,7 @@ static int advk_pcie_probe(struct platform_device *pdev) * configuration is set to transparent memory access so it * does not need window configuration. */ - if ((type == IORESOURCE_MEM || type == IORESOURCE_MEM_64) && - entry->offset == 0) + if (type == IORESOURCE_MEM && entry->offset == 0) continue; /* -- 2.34.1