From patchwork Mon Jan 7 06:41:42 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: 154856 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3171182ljp; Sun, 6 Jan 2019 22:43:45 -0800 (PST) X-Google-Smtp-Source: ALg8bN49pi1H9NuMEz9s2F+CGgawAKr5gzfeqmNki/PTU3UMNvtQU39hGDVO6IjeTsmxs/tL2S4A X-Received: by 2002:a17:902:690c:: with SMTP id j12mr59712721plk.206.1546843425528; Sun, 06 Jan 2019 22:43:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546843425; cv=none; d=google.com; s=arc-20160816; b=09xb2zYT861wdsPZrINweJCLOsXupGr2ycDIxryCgm1pX1KKt/7pCFjAPScRD7aj1p bVjuX1SJSV2/pWDt7S7iVdOhsnlaQsNTQBZZ2QbEYisdO0yNezx/V7XPofmtMzs+nyq8 HqzzhFPGEnshJARSeubxtob8VLrHdWsHar5bPbiG1gIUPEUeSXgd7XFfrIcrk+nBAsd/ sDVAEpV7k9iRLc4wu4f8RzWYJ9arDQpBv7xoeuzevbf9tB1nOz4wmkiNloWBwghhYn03 CUM3OmweR0CZ72a41OhVkDi8kVPe+PesMBgfYiFmaK8UO8P7MSNk36PHkcUdINQyE/yr VkZQ== 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=bIOboNZAwx6/pNB3AA+pcFWvvHsJFD5hyg+Gkz+3lRoHiCqzebRMpZTJyTtiG98O2I 3C+zxHYa+9vc51L8nhGI6aOdjbhwdjt4c4I6gCE2XeZmj4C+qRtzrwRMF4vkoKpCYUlV db4ra/zUD6OG7TP9v8eQdY2138FB255GHewOgETfnsxpMRVOz1znSxp00gHLREe22Zkn GXTP0kNl127ViCIZGAGk/igmYieUt3+1vZ8XQ0M7pgKUbl0aupxBAQ1NnVqvNWG5bXvH TxmsR1yO9RjeO9UiYKsA442pEnrstesyoAVDDxVj5saryJ7PIiOPtx4gX3Q+n3QGlb5B XPJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tjvX4ev0; 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 j66si16679107pfb.182.2019.01.06.22.43.45; Sun, 06 Jan 2019 22:43:45 -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=tjvX4ev0; 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 S1726560AbfAGGno (ORCPT + 5 others); Mon, 7 Jan 2019 01:43:44 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:36726 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726537AbfAGGno (ORCPT ); Mon, 7 Jan 2019 01:43:44 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x076hQNj021727; Mon, 7 Jan 2019 00:43:26 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1546843406; bh=DS7GtGkD91osbAa6RekCVW+2i6NQKOGWzWvT8VJgdzc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=tjvX4ev0+qVhU5xdcbfSfB7Zao9BgkuQzB3XiQF/o4jMMF2A2/y+PLla4nnBW/Rov IpGsNA0l4LHQULVRP2gnysMk9SUOLzMcvruyZwzl2EKerQ75Sx+D44kViyHIu0K4sG gPe0fGm1OALtS8h1BZ8rE7d9hw5PEzBmGmkjUBjM= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x076hQow049058 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Jan 2019 00:43:26 -0600 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 7 Jan 2019 00:43:26 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 7 Jan 2019 00:43:26 -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 x076gfo6002672; Mon, 7 Jan 2019 00:43:22 -0600 From: Kishon Vijay Abraham I To: Lorenzo Pieralisi , Bjorn Helgaas , Gustavo Pimentel , Alan Douglas , Shawn Lin CC: Jingoo Han , Heiko Stuebner , Cyrille Pitchen , Jia-Ju Bai , , , , , , Subject: [PATCH 09/15] PCI: pci-epf-test: Remove setting epf_bar flags in function driver Date: Mon, 7 Jan 2019 12:11:42 +0530 Message-ID: <20190107064148.10152-10-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190107064148.10152-1-kishon@ti.com> References: <20190107064148.10152-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);