From patchwork Mon Jan 14 11:15:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 155446 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3537252jaa; Mon, 14 Jan 2019 03:17:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN5P+FRlG9FwwbVv7gwlSmqS5sQqBawAbZrdxGIIycvgi0VaMLYLVjDRTVff4TL4bQIoJ4Ir X-Received: by 2002:a63:40c6:: with SMTP id n189mr21874135pga.355.1547464642133; Mon, 14 Jan 2019 03:17:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547464642; cv=none; d=google.com; s=arc-20160816; b=y3wK1DuRbqLloHzftcYqAy8FHPXygYoudWN0JoiLwywz8H5ZxaUFjcvayNL82sPPWI 5gD27qMJZkWWkx83shVH/jQhYsVpE0QER8kNQy5VAYRZD8iesoZTvqLgFf6NgqJspZWT RBUGhpD1rF4IaS5DfesuXvYzn5PlCLEQ9rm1o5UvmHdUlR8xAd5+bkR1sfpTnOwKE0ss 4474EpRLHfsYcoo7TdnQegk9VhI29FQVkdpFm8OLFjBPxYa7y1tfYg6E4Bnb5GdclXH5 ELaM/YSVSIpUrTrG+/syN9a7tCObeDOLRXzJCKoQGVXFMfNgPhGwLFDV4MEynZ5BIqDC 9a5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=DS7GtGkD91osbAa6RekCVW+2i6NQKOGWzWvT8VJgdzc=; b=dcWxm7sWN3/671tN8eqJwZOwGLgxbsGKlbekWm71RZJhvlcjtHUSsay8wF5RnK/Tin soiT/dVVgG2KJpe+kS2N9Ok+1FVh7VgeQQxJjvIZLO5EttsT77CMpIpqj8v/GQSf7A6B N6bCvh6fIjCeqMrinOeCEfivMhRnUpzvLuWwPPXw2zIsYXKWCy7NR0k8tu0dESOy0J3r sXCg6rxT3vMvmJNH43fEE7LamfD8M8FRFyo9QqXyxYR+uGGcrJ3F/Wo37tyRGygEr7db RVSvfv7pYH3a3ahn9tGQJxX+xvzVGLMtHndbTtHPubqU+txCixe/6f1vXyuOxjORyRC7 zBPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EMhX8BCe; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si113260plr.211.2019.01.14.03.17.21; Mon, 14 Jan 2019 03:17:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EMhX8BCe; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726691AbfANLRV (ORCPT + 5 others); Mon, 14 Jan 2019 06:17:21 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:45618 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbfANLRV (ORCPT ); Mon, 14 Jan 2019 06:17:21 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x0EBGIQi112750; Mon, 14 Jan 2019 05:16:18 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1547464578; bh=DS7GtGkD91osbAa6RekCVW+2i6NQKOGWzWvT8VJgdzc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=EMhX8BCerUESkfaCvKZY5pB58iOub+MoqmPkn9jLeIHBgBJzBsT4i5w534+SQqSMG MMOBv5tuuwVL/HS/oZX5JbdsKcVYGk+Syd7ygKCqMGZx8lmRrkrp439QZQ7CfZ+UX9 Jv39IRtGP3HIvhwQ/kmstYXtatsREnFZca2qh0XM= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0EBGIA7024008 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 Jan 2019 05:16:18 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 14 Jan 2019 05:16:17 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 14 Jan 2019 05:16:18 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x0EBFd1b011560; Mon, 14 Jan 2019 05:16:14 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Lorenzo Pieralisi , Gustavo Pimentel , Alan Douglas , Shawn Lin , Heiko Stuebner CC: Bjorn Helgaas , Jingoo Han , , , , , Subject: [PATCH v2 09/15] PCI: pci-epf-test: Remove setting epf_bar flags in function driver Date: Mon, 14 Jan 2019 16:45:07 +0530 Message-ID: <20190114111513.21618-10-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190114111513.21618-1-kishon@ti.com> References: <20190114111513.21618-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Now that pci_epf_alloc_space() sets BAR MEM TYPE flags as 64Bit or 32Bit based on size, remove setting it in function driver. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/functions/pci-epf-test.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.17.1 diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c index 3e86fa3c7da3..44cc31343a80 100644 --- a/drivers/pci/endpoint/functions/pci-epf-test.c +++ b/drivers/pci/endpoint/functions/pci-epf-test.c @@ -406,10 +406,6 @@ static int pci_epf_test_set_bar(struct pci_epf *epf) for (bar = BAR_0; bar <= BAR_5; bar++) { epf_bar = &epf->bar[bar]; - epf_bar->flags |= upper_32_bits(epf_bar->size) ? - PCI_BASE_ADDRESS_MEM_TYPE_64 : - PCI_BASE_ADDRESS_MEM_TYPE_32; - ret = pci_epc_set_bar(epc, epf->func_no, epf_bar); if (ret) { pci_epf_free_space(epf, epf_test->reg[bar], bar);