From patchwork Thu Aug 16 23:26:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 1335401 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 9532BDFB34 for ; Thu, 16 Aug 2012 23:26:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757742Ab2HPX0d (ORCPT ); Thu, 16 Aug 2012 19:26:33 -0400 Received: from mail-ob0-f202.google.com ([209.85.214.202]:52377 "EHLO mail-ob0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755488Ab2HPX0b (ORCPT ); Thu, 16 Aug 2012 19:26:31 -0400 Received: by mail-ob0-f202.google.com with SMTP id wc20so2313314obb.1 for ; Thu, 16 Aug 2012 16:26:31 -0700 (PDT) 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=NnckddzxST3ihfMdi1/uw25yRvD5yoHuGWCDz3fQ5lI=; b=TvZQy4jl15yhFj7/EoHCD5jj303d7hg6aKHVGm15Odeqf/kI8cdUHVQpOBpPqmWwy3 Ya/U04qeVr+EZZyAzyM8Yts1duRgEqA7n3C8/lZjuII5CbulPIjha0zc+eOT1XNeQhVD r5pdaMoh67RJgml2lOWUleJO1wnG7HTmUbKKtWfxnXP/Dhp/aLWeZwxZeSIiwU2eq8SN 8hG+VPHmeDB1FAVbw+JBtp/ZAQ1jkGuVjURBg0NhTGjfdkJoxOJDJxQ++/Byn3DGFoNl V3FxjzH4Kk4r70X5f7PpxhvUwEhqfrYrCCOmW2HZp0IFTAen+k1MKOQVbgEIiQ19yhlb HQYw== X-Google-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 :x-gm-message-state; bh=NnckddzxST3ihfMdi1/uw25yRvD5yoHuGWCDz3fQ5lI=; b=eAFIyEfTOLKRw60MZotihdKGYJ9ynYeuzHIIkLw4wHQwQWkOK/GjCRZ505R3hZoF0L KEYO/+dHejO5uzMJ0wBvx6uwqbp0Ec0wm1t0v8nmCtJoBNw+CNqQFf2E0Qdt6GqwQaG0 U4X01VJIZK0VB0vnZndoE+CNWv6vmMbmT3wP4wgkc0DHKhpEPaLuEX4ad8hEoRcUDrQ2 8DHOw1fChLha40wH/tBIGFFj8y2CfJps3B05ZDrpyuQoHon2vBDeHgTCktMZor4ypuNb aAiCgOTULxEs7ydxNPyaa7uTH/2/qu1fGRmu2dQcHdesM5I+ss7sdj51jrPA+D+9Qdg0 LDrA== Received: by 10.50.161.167 with SMTP id xt7mr2101124igb.0.1345159591663; Thu, 16 Aug 2012 16:26:31 -0700 (PDT) Received: by 10.50.161.167 with SMTP id xt7mr2101119igb.0.1345159591619; Thu, 16 Aug 2012 16:26:31 -0700 (PDT) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id bg10si940899igc.3.2012.08.16.16.26.31 (version=TLSv1/SSLv3 cipher=AES128-SHA); Thu, 16 Aug 2012 16:26:31 -0700 (PDT) Received: from bhelgaas.mtv.corp.google.com (bhelgaas.mtv.corp.google.com [172.18.96.155]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id 3BAC9100047; Thu, 16 Aug 2012 16:26:31 -0700 (PDT) Received: from bhelgaas.mtv.corp.google.com (unknown [IPv6:::1]) by bhelgaas.mtv.corp.google.com (Postfix) with ESMTP id DCA93180640; Thu, 16 Aug 2012 16:26:30 -0700 (PDT) Subject: [PATCH 3/6] parisc/PCI: Enable PERR/SERR on all devices To: linux-pci@vger.kernel.org From: Bjorn Helgaas Cc: linux-parisc@vger.kernel.org Date: Thu, 16 Aug 2012 17:26:30 -0600 Message-ID: <20120816232630.3662.57336.stgit@bhelgaas.mtv.corp.google.com> In-Reply-To: <20120816232620.3662.90438.stgit@bhelgaas.mtv.corp.google.com> References: <20120816232620.3662.90438.stgit@bhelgaas.mtv.corp.google.com> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmBOANkllNjU+6KZS+kwgiBOcNoIQdnij+QunGq/LMLM48bdAuiHFOT55/5jSKJljLmhGcqLPhPd/PubuiO+Sk9uRHmuFqUzMXJx322wmCa52kxVSOgG7fFOghkC9tt9FsYGDMUCEe2m+y6QJEuEo2fcZophIdQp7wNtWdPrgJDfLzDpxdGVB8kFWXQh3FZZwlpSGyWSww8MT49kt1NQeL6KAsecQ== Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Previously, we enabled PERR & SERR for the first device on the bus, but left other devices alone. Signed-off-by: Bjorn Helgaas CC: linux-parisc@vger.kernel.org --- drivers/parisc/lba_pci.c | 4 +++- 1 files changed, 3 insertions(+), 1 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/drivers/parisc/lba_pci.c b/drivers/parisc/lba_pci.c index 4f9cf24..4ce57c9 100644 --- a/drivers/parisc/lba_pci.c +++ b/drivers/parisc/lba_pci.c @@ -630,6 +630,7 @@ static void lba_fixup_bus(struct pci_bus *bus) { struct list_head *ln; + struct pci_dev *dev; #ifdef FBB_SUPPORT u16 status; #endif @@ -712,8 +713,8 @@ lba_fixup_bus(struct pci_bus *bus) list_for_each(ln, &bus->devices) { int i; - struct pci_dev *dev = pci_dev_b(ln); + dev = pci_dev_b(ln); DBG("lba_fixup_bus() %s\n", pci_name(dev)); /* Virtualize Device/Bridge Resources. */ @@ -771,6 +772,7 @@ lba_fixup_bus(struct pci_bus *bus) /* Lastly enable FBB/PERR/SERR on all devices too */ list_for_each(ln, &bus->devices) { + dev = pci_dev_b(ln); (void) pci_read_config_word(dev, PCI_COMMAND, &status); status |= PCI_COMMAND_PARITY | PCI_COMMAND_SERR | fbb_enable; (void) pci_write_config_word(dev, PCI_COMMAND, status);