From patchwork Wed Feb 26 23:41:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 3729221 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1CE4CBF13A for ; Wed, 26 Feb 2014 23:44:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5A10B20211 for ; Wed, 26 Feb 2014 23:44:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7DBD320149 for ; Wed, 26 Feb 2014 23:44:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754402AbaBZXll (ORCPT ); Wed, 26 Feb 2014 18:41:41 -0500 Received: from mail-ig0-f178.google.com ([209.85.213.178]:62689 "EHLO mail-ig0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754398AbaBZXlj (ORCPT ); Wed, 26 Feb 2014 18:41:39 -0500 Received: by mail-ig0-f178.google.com with SMTP id hl1so2787147igb.5 for ; Wed, 26 Feb 2014 15:41:38 -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=OzMvbDz8hKHglAd3zFNqWhXi+Frpf4YwtkLJoMrK+OU=; b=WGHhbClT2cJiz+7VOYK0e9m5+sP1Xp8kvs0ql7p8o4P+QWjHDIIx21p4GHc9/Kx/YY m/1MdgCme3MaFr6Gj2djgxChqeQTZREV/BCFbCZtFV7o4e05RgmgTGyfV9O+3ERFDPvM ZjGJWgRiNIi1PJv5I8hIb6hVSBOZKfxHHjU9+WPb62SspJO4Tyt4WKYmDR/BoXVBj6ZK QQTFCdgRr0S5euVFj7VfUIFdb4aE9VXUplHFfBtMKWw+ldXWcqbNFQ6Cl25ZLDXu23h2 uxR8huqWVQl2/dfu17fm5ZiinFBeZcEYL7S/dlRTx56ND9jpHXsFCCS680sfooFJyuGK m5RA== 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=OzMvbDz8hKHglAd3zFNqWhXi+Frpf4YwtkLJoMrK+OU=; b=M0K8lyZToU8HOCvTYw8FY9qaHPN01iFa9df9Kyq0FvNBE4LGTG1f0VBpXaolitqFGx CHF7uVZjo3QhaYws3F0pMYTlSZiouk9Pse2uHvOUm8g1w0z/dOvPDwT/hh0EM5u/cj/q 3JbCLmboZdQkfJ33O/ruaZ7eQvBE2sgnrzqODgLxsyQWSz3ir2mt1BhHZkmy4vnyt4lb p9j/59atRuImc4lfT6bkLEOmcH/M0Ncg9/gJ6wOtPVizJeH0Oc2DhELp6Lsaxp5A+ahw dRjPfaYPd9yFmQZtHkVYkXcKZmWGsvTYkgxtYnsU7OJ93GogGIkVSfkEZXfjf6S2P6R5 E75Q== X-Gm-Message-State: ALoCoQkxlMerD1MjDGqYQFu4a3UXWLvHO22CTPEklFt0rIqsvNUXrl8uqDy/qZMECc5i0R70llefzJXsLib4BpElHSZ32aqLWoGRxTDarugjN+XudQ+PeECGVrOqPcCVkwTNgN3r8ThjSn1EEa3lNjAYrtiGLGFzcccC8dwQQmr63IrauiV3dDAQqMw7JfVBA0ycFVwww2d5ar2jGEKCF9AX3scC5zOU377OCD++lj6+S1Og88xf8Uw= X-Received: by 10.50.79.234 with SMTP id m10mr2404309igx.47.1393458098591; Wed, 26 Feb 2014 15:41:38 -0800 (PST) Received: from localhost ([172.16.49.60]) by mx.google.com with ESMTPSA id pn6sm4634755igb.4.2014.02.26.15.41.38 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Feb 2014 15:41:38 -0800 (PST) Subject: [PATCH 1/7] PCI: Add "weak" generic pcibios_enable_device() implementation To: linux-pci@vger.kernel.org From: Bjorn Helgaas Cc: linux-kernel@vger.kernel.org Date: Wed, 26 Feb 2014 16:41:36 -0700 Message-ID: <20140226234136.18970.21352.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=ham 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 Many architectures implement pcibios_enable_device() the same way, so provide a default implementation in the core. Signed-off-by: Bjorn Helgaas --- drivers/pci/pci.c | 5 +++++ 1 file changed, 5 insertions(+) -- 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/drivers/pci/pci.c b/drivers/pci/pci.c index dc9ce62be7aa..c3ce3d61091c 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -1185,6 +1185,11 @@ int pci_load_and_free_saved_state(struct pci_dev *dev, } EXPORT_SYMBOL_GPL(pci_load_and_free_saved_state); +int __weak pcibios_enable_device(struct pci_dev *dev, int bars) +{ + return pci_enable_resources(dev, bars); +} + static int do_pci_enable_device(struct pci_dev *dev, int bars) { int err;