From patchwork Wed Feb 26 23:42:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 3729091 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D6FF79F2ED for ; Wed, 26 Feb 2014 23:42:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0B5F520149 for ; Wed, 26 Feb 2014 23:42:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 355292012E for ; Wed, 26 Feb 2014 23:42:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754534AbaBZXmO (ORCPT ); Wed, 26 Feb 2014 18:42:14 -0500 Received: from mail-ie0-f178.google.com ([209.85.223.178]:61403 "EHLO mail-ie0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754533AbaBZXmL (ORCPT ); Wed, 26 Feb 2014 18:42:11 -0500 Received: by mail-ie0-f178.google.com with SMTP id ar20so1388376iec.37 for ; Wed, 26 Feb 2014 15:42:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=3o9ZWOBmNpIMVjO81RaLRMRM1dRbHq78kEBKDaf2hPI=; b=UVUHLvSfjm3VFbyoWFrynDxu1k1mEy2UONRMgpQXjxJkP1rT6/c64WcAwhLGXpkBL4 2Bh4hXSqwraaPTYHbU/Ov9X6jXsTn03F6dRmIcRMRhO+xmDacixrs7iUgtlzBbTJjCfD ypvKkMFhBJCpQVmwoWQoZTWT/tQ4IXwIOqtbHsNVDJd8GmGqj6REm9ciFMTVdo4iH4Ae JmY3f16mR1a8gFQjRBQh3dpTS4DsRDW/QMWUPCLV06HDU+Xk4jMnZzaPOtYMH2T5IWld Snv2HNXoiZipfRaxBIlFo0Qo7qG5f8MeRbpAXpY2F5bRwbazjypecv2uGcb1WJD5NNcq jIqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=3o9ZWOBmNpIMVjO81RaLRMRM1dRbHq78kEBKDaf2hPI=; b=W6e8iOJ+pTOmrr4mZqjlW4u9H+3h5WcrQYecqH8hRyfbk3KCt8qamuubUGPeCDjMEq GT3rEDz+WsSG+K8w6doII7DUPaeZxzbfJyYyMmnIH9vng11dp0Ib+ZIGljkG8FgWBuL9 Jog9GeqiwjTJAi45YcohtX3EHghguCUcGzHjbJVy+dUofcIvzKHmtthmUoGt7DOVQnk5 oUuUgEvgWSbpWQN+AUaw61VW0krCrYA5GW6g+KS7OAh+H7i/AfT1fP90HLve8TNjPp/r Eb3iPJp3EVhabbwNZWtMVcycIm8iKH7VY+GRj2G7xvB6qyzqCk7WbIrmYMJH1CZK6rmA Hy/Q== X-Gm-Message-State: ALoCoQndgNwTKtqzcB4+cMAqWn7TmDylOlB0zVLT1vkXsRpa2KFHbK4PE2y1CmqTvRHSkPExoC08HnKf1vt0DMVzsr05aaz9Do8RPbsZXGlTBQuzh/zi5uKUurjZpz9qQH0XDb4kF95OnEjHOUC+4yRc4+8Ag768A490sDNt8L3H3BDYHhJyb5WjoQJTNNWMr7n17Ft68pfZ2nzMPW3vpcjRQMH+1cd3Kw5nd4TgtwNkKQyR9VjDtpE= X-Received: by 10.42.176.195 with SMTP id bf3mr2152214icb.25.1393458131215; Wed, 26 Feb 2014 15:42:11 -0800 (PST) Received: from localhost ([172.16.49.60]) by mx.google.com with ESMTPSA id hs6sm53426979igb.2.2014.02.26.15.42.10 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Feb 2014 15:42:10 -0800 (PST) Subject: [PATCH 6/7] tile PCI RC: Use default pcibios_enable_device() To: linux-pci@vger.kernel.org From: Bjorn Helgaas Cc: linux-kernel@vger.kernel.org, Chris Metcalf Date: Wed, 26 Feb 2014 16:42:08 -0700 Message-ID: <20140226234208.18970.41395.stgit@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <20140226233541.18970.83328.stgit@bhelgaas-glaptop.roam.corp.google.com> References: <20140226233541.18970.83328.stgit@bhelgaas-glaptop.roam.corp.google.com> User-Agent: StGit/0.16 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We don't need anything arch-specific in pcibios_enable_device(), so drop the arch implementation and use the default generic one. Note: pci_enable_resources() checks that r->parent is non-NULL, which basically checks that pci_claim_resource() or request_resource() has been called for each BAR. I don't see where that happens for tile, but this patch doesn't change that behavior, so if it worked before, it should still work. Signed-off-by: Bjorn Helgaas CC: Chris Metcalf Acked-by: Chris Metcalf --- arch/tile/kernel/pci_gx.c | 12 ------------ 1 file changed, 12 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/tile/kernel/pci_gx.c b/arch/tile/kernel/pci_gx.c index a97a6452b812..077b7bc437e5 100644 --- a/arch/tile/kernel/pci_gx.c +++ b/arch/tile/kernel/pci_gx.c @@ -1065,18 +1065,6 @@ char *__init pcibios_setup(char *str) } /* - * Enable memory address decoding, as appropriate, for the - * device described by the 'dev' struct. - * - * This is called from the generic PCI layer, and can be called - * for bridges or endpoints. - */ -int pcibios_enable_device(struct pci_dev *dev, int mask) -{ - return pci_enable_resources(dev, mask); -} - -/* * Called for each device after PCI setup is done. * We initialize the PCI device capabilities conservatively, assuming that * all devices can only address the 32-bit DMA space. The exception here is