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: 1335441 Return-Path: X-Original-To: patchwork-linux-parisc@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 D9EC8DFB34 for ; Thu, 16 Aug 2012 23:32:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757754Ab2HPXcJ (ORCPT ); Thu, 16 Aug 2012 19:32:09 -0400 Received: from mail-ob0-f202.google.com ([209.85.214.202]:35434 "EHLO mail-ob0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756988Ab2HPXcI (ORCPT ); Thu, 16 Aug 2012 19:32:08 -0400 Received: by obbwc20 with SMTP id wc20so2315477obb.1 for ; Thu, 16 Aug 2012 16:32:07 -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=poG7QkO7A6dSCQLkX56GwKt/hwx++HWl3Drz6QAjc1bHxjqAXe8VV7QNoCeYkGzSJ3 cnNQFZ9TlGwZU1nZrF6uxR0iUuc7PJw05IZ+XZHMf/Dw+t96jpK8LNTHMhcaJZq8xa14 LK5Tar4TkTpPoxdOpb2ypTfFqndOZsX7h40T8pBx1wYsWo/9YsqO+eykrI+nzMdTT6Tp 557K7DdOBSUjRO3zl0yBRvjvjmFVGZ18s17zz2SzvC6MrGCWc3zOtS8UwzxJQdBUeIbs /ornDDxQP+fQx5DiIHxJiKgjt1N4+qYfZHkNT3CS1yRP1dHuxldtDGYydiIKZqQLdve6 LxLg== Received: by 10.50.161.167 with SMTP id xt7mr2101126igb.0.1345159591685; 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: ALoCoQk5jg01ZjskKHvT+TAGuAtHBueNfjY8WwxoZMik6QLk6BiZCsNzX8BsXIYDDcpQosqapVPXxPslxV8tP+efuuDN9WSEcwQ/7OxOiOUF0Pjh1wXvUQGavB69LVZyXq7EuVQ7/ZPxpyrxqQyLh+cz7mfAzAZHIOFjgRC30gRmzFbElNu0MPHD2mCppRW9Ge+87zxVrGsyJ/raTHJq4JNmK0fNlNTcKf6xU54DpQ8i9vz9iGUzMzA= Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@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-parisc" 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);