Message ID | 1401496601-31983-3-git-send-email-Liviu.Dudau@arm.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCZ6BIVBZUDBBF6JUSOAKGQEOFSSIGY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E752020671 for <linaro@patches.linaro.org>; Sat, 31 May 2014 00:38:47 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id m1sf12541333oag.10 for <linaro@patches.linaro.org>; Fri, 30 May 2014 17:38:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=IBuUEYHGg/TXGZUdG7VoQXx09zdidc/cfE6aXKwbcGs=; b=cMLMSnywuh7rJkw40C3McI17yJCFKz0BzlpNm4utHxreM4Iekk7iUM8YGaSeeX6RcY uii8nwfzEQCqL25t0NlBOAA+pxv1cvLlQVLa3T+vHBSyj8nxeael/tAZ+SSTMIZK466P XE1ia/dvLpS6OfKH1uxZZQF03mjOTZ6ynR1iphvzjCM2iTE4Iub7mtt1VxAPqC9yaATv XUEu+U+JoIH2JrmvYumcvqzOdi3Q0hK0Dc1A8PlkOOEga9P38Q1927cZUKPl1RhEf6LL oGY5uTLfgdyqd+QWojp2gHQFcysOIyPyU/9xdVJ8RCfxI8592Z4XpsIKJOethYo47PqS Yk+w== X-Gm-Message-State: ALoCoQm2NaQTDm+gKiOFlR0h5ciBltG23IGGneP7yNW1p+VzV2W4NPWzhPCmBFj5BXjd8aF2a4me X-Received: by 10.43.94.71 with SMTP id bx7mr7086071icc.2.1401496727351; Fri, 30 May 2014 17:38:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.42.111 with SMTP id b102ls1335994qga.31.gmail; Fri, 30 May 2014 17:38:47 -0700 (PDT) X-Received: by 10.220.249.198 with SMTP id ml6mr17308291vcb.36.1401496727172; Fri, 30 May 2014 17:38:47 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id f6si4441064vdj.18.2014.05.30.17.38.47 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 30 May 2014 17:38:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.171 as permitted sender) client-ip=209.85.128.171; Received: by mail-ve0-f171.google.com with SMTP id oz11so2965687veb.2 for <patchwork-forward@linaro.org>; Fri, 30 May 2014 17:38:47 -0700 (PDT) X-Received: by 10.52.125.198 with SMTP id ms6mr13722181vdb.28.1401496727081; Fri, 30 May 2014 17:38:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp151265vcb; Fri, 30 May 2014 17:38:46 -0700 (PDT) X-Received: by 10.66.141.165 with SMTP id rp5mr22932823pab.90.1401496726298; Fri, 30 May 2014 17:38:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zf6si7711796pab.226.2014.05.30.17.38.45; Fri, 30 May 2014 17:38:45 -0700 (PDT) Received-SPF: none (google.com: linux-arm-msm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934962AbaEaAio (ORCPT <rfc822;patch@linaro.org> + 3 others); Fri, 30 May 2014 20:38:44 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.21]:54602 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934624AbaEaAio (ORCPT <rfc822;linux-arm-msm@vger.kernel.org>); Fri, 30 May 2014 20:38:44 -0400 Received: from e106497-lin.cambridge.arm.com (e106497-lin.cambridge.arm.com [10.1.195.170]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id s4V0awgx003864; Sat, 31 May 2014 01:37:01 +0100 From: Liviu Dudau <Liviu.Dudau@arm.com> To: Bjorn Helgaas <bhelgaas@google.com> Cc: Kumar Gala <galak@codeaurora.org>, Rob Herring <robherring2@gmail.com>, Rob Herring <robh+dt@kernel.org>, Grant Likely <grant.likely@linaro.org>, Pawel Moll <pawel.moll@arm.com>, Mark Rutland <mark.rutland@arm.com>, Ian Campbell <ijc+devicetree@hellion.org.uk>, "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>, linux-arm-msm <linux-arm-msm@vger.kernel.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, Kishon Vijay Abraham I <kishon@ti.com> Subject: [PATCH 2/2] of: treat PCI config space as IORESOURCE_MEM type with special flags. Date: Sat, 31 May 2014 01:36:41 +0100 Message-Id: <1401496601-31983-3-git-send-email-Liviu.Dudau@arm.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1401496601-31983-1-git-send-email-Liviu.Dudau@arm.com> References: <20140530233034.GH1677@bart.dudau.co.uk> <1401496601-31983-1-git-send-email-Liviu.Dudau@arm.com> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-arm-msm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: liviu.dudau@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/of/address.c b/drivers/of/address.c index 2fcfbae..877e9e5 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -123,6 +123,9 @@ static unsigned int of_bus_pci_get_flags(const __be32 *addr) u32 w = be32_to_cpup(addr); switch((w >> 24) & 0x03) { + case 0x00: /* cfg space */ + flags |= IORESOURCE_MEM | IORESOURCE_PCI_ECFG; + break; case 0x01: flags |= IORESOURCE_IO; break;