From patchwork Fri Aug 17 23:36:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 178418 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id E02742C0080 for ; Sat, 18 Aug 2012 14:17:55 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758048Ab2HQXgy (ORCPT ); Fri, 17 Aug 2012 19:36:54 -0400 Received: from mail-ob0-f202.google.com ([209.85.214.202]:34062 "EHLO mail-ob0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757777Ab2HQXgw (ORCPT ); Fri, 17 Aug 2012 19:36:52 -0400 Received: by mail-ob0-f202.google.com with SMTP id wc20so3010724obb.1 for ; Fri, 17 Aug 2012 16:36:52 -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=RekfGjuHF8QY5kmw03sPCqMY35wKkiFqvKL2ONs+nItROwjvEhOZ8EpRQk62gmhOA0 eJu7tV1f2h4sJzkvl58vZf18Wf3o1cM+1IOryDCN/8DCGeRIYxDEc8vlKHZI2MfIH3qU EQPxnbTLDrhhh1M8xk8sma8zWu4GDyYoJsuc1ojDMwHwjS3V0p60PT7CpEErCDJTZoG0 lt9ncma48R9P6+fEtrYTSCb6konOjIRxMl45r+lO+jykGBP3U7nHj2ins++4BDx8pgMs 6sYKBIQZWTGeGgRFewFh4Z8rRjYZYhicNXdB9exksbQ57Y8yIKxmY3lAD2gwxZ973X+F WR/g== 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=EIDhPaU1sGekmi66HlIXwZV57EEu47YndzRDJngzdWsjACT+rZOeCIZ1GC/oAou/sL WvNQMomJ6QyFCVMPFcthAjpPM/OhCPzaeOlnA50kj4vw8liUYiLPrDXO6/kUP00GXpET FQ/M3BKrL8QtEPPVEmSqvfxlyPJenO0SoYhSGd57hQybCqnf9xRx1WYIURo7HJXQXfdT abe90Icddnpu6Kpp8pRc78xdKiUtCRneEi9huxuL3NW/wHgtF+8RIUNfK2Ybw83r3IAr M1pGHaSzwBAN8HXOp9RKh2wZ4AoBd8yWe0HGmiua6emWF/341ooujRpxyPGie/FYYAGZ wJiQ== Received: by 10.50.41.168 with SMTP id g8mr1620466igl.0.1345246612614; Fri, 17 Aug 2012 16:36:52 -0700 (PDT) Received: by 10.50.41.168 with SMTP id g8mr1620458igl.0.1345246612567; Fri, 17 Aug 2012 16:36:52 -0700 (PDT) Received: from wpzn4.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id ev10si1822501igc.2.2012.08.17.16.36.52 (version=TLSv1/SSLv3 cipher=AES128-SHA); Fri, 17 Aug 2012 16:36:52 -0700 (PDT) Received: from bhelgaas.mtv.corp.google.com (bhelgaas.mtv.corp.google.com [172.18.96.155]) by wpzn4.hot.corp.google.com (Postfix) with ESMTP id 2F3141E0043; Fri, 17 Aug 2012 16:36:52 -0700 (PDT) Received: from bhelgaas.mtv.corp.google.com (unknown [IPv6:::1]) by bhelgaas.mtv.corp.google.com (Postfix) with ESMTP id D0AF21801BB; Fri, 17 Aug 2012 16:36:51 -0700 (PDT) Subject: [PATCH v2 13/16] parisc/PCI: Enable PERR/SERR on all devices To: linux-pci@vger.kernel.org From: Bjorn Helgaas Cc: linux-pcmcia@lists.infradead.org, Yinghai Lu , linux-parisc@vger.kernel.org, Kenji Kaneshige Date: Fri, 17 Aug 2012 17:36:51 -0600 Message-ID: <20120817233651.10973.83188.stgit@bhelgaas.mtv.corp.google.com> In-Reply-To: <20120817233100.10973.59521.stgit@bhelgaas.mtv.corp.google.com> References: <20120817233100.10973.59521.stgit@bhelgaas.mtv.corp.google.com> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmDrchfYI7hAjkZ18yW81P3qOuk4bhzZst+YTd+Nh425rqNjAzLPH78dqzQUjyywUKq2/HsOaZbwEC+lvPjA56tkzwLNGk820nWpkX+PnhfqXRBmbWjava6nn1FChT+rwe3pso4kLInGrn2BhTRc/CA9aUAnq7ByIh8u3hmOT1jaOaooR0EsDzW8zOr4uLDEomCP5nqnznQDX6DsCXr+OwaEpTDkg== 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);