Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752663AbbKIJb2 (ORCPT ); Mon, 9 Nov 2015 04:31:28 -0500 Received: from relmlor3.renesas.com ([210.160.252.173]:30713 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751465AbbKIJbW convert rfc822-to-8bit (ORCPT ); Mon, 9 Nov 2015 04:31:22 -0500 X-IronPort-AV: E=Sophos;i="5.20,265,1444662000"; d="scan'208";a="199372886" From: Phil Edworthy To: Wolfram Sang CC: Bjorn Helgaas , Geert Uytterhoeven , Simon Horman , "linux-pci@vger.kernel.org" , "linux-sh@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 1/3] PCI: pcie-rcar: Convert to DT resource parsing API Thread-Topic: [PATCH 1/3] PCI: pcie-rcar: Convert to DT resource parsing API Thread-Index: AQHRFYz9/Qx+8wnkZ0+bIqfj08HHwZ6QlW+AgALh6pA= Date: Mon, 9 Nov 2015 09:31:17 +0000 Message-ID: References: <1446482175-26507-1-git-send-email-phil.edworthy@renesas.com> <1446482175-26507-2-git-send-email-phil.edworthy@renesas.com> <20151107132902.GA21726@katana> In-Reply-To: <20151107132902.GA21726@katana> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=phil.edworthy@renesas.com; x-originating-ip: [193.141.220.21] x-microsoft-exchange-diagnostics: 1;PS1PR06MB1179;5:8f6lGGfaFBY0FShc7j/FcVA71ypS1hEBxGCpAazfWNQPNNCOfbF4eNt8khdiW+USUsyWzBaTg4MYBxkEegXeFyoKEFxhtlX/XcZDYIFKfTEmLCBOnTlHM+koQjN7jZWaLlSc/jxu3v0ajkJIi5wpUA==;24:kSjP3nhHOFstZ8zp9BT1GwPlyIIU4NbrE7bCOn1/0PkE9rg2BQQ85QpN1IsD0/mn3Y22XefjeTRUT1CyU2v2hpXvDvZ0kerETP6zM7j9dD8=;20:pdxAEB5yVYVlBDhYSkZ2dojsw0x1ZYV1VBYNReER/2xoJeZNuzD/jeV3ldejQUDQU2keFNF2R27xTALDaz1E0Qb2LNQXdzlO30IlAti1Jc3xUqHZWWMGcGvSkDzP44WfsGwwQZUqW9yotVTj6SQwLFR6ZOAzB934hrG0j0lQg9M= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:PS1PR06MB1179; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(85106069007906); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(3002001)(10201501046);SRVR:PS1PR06MB1179;BCL:0;PCL:0;RULEID:;SRVR:PS1PR06MB1179; x-forefront-prvs: 0755F54DD9 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(199003)(189002)(24454002)(189998001)(122556002)(11100500001)(76576001)(5008740100001)(110136002)(5007970100001)(19580395003)(81156007)(97736004)(5001920100001)(2950100001)(101416001)(2900100001)(5004730100002)(10400500002)(77096005)(54356999)(76176999)(74316001)(50986999)(102836002)(33656002)(5001960100002)(86362001)(87936001)(92566002)(5003600100002)(40100003)(105586002)(66066001)(5002640100001)(106356001)(106116001)(19580405001);DIR:OUT;SFP:1102;SCL:1;SRVR:PS1PR06MB1179;H:PS1PR06MB1180.apcprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Nov 2015 09:31:17.5212 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR06MB1179 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1335 Lines: 37 Hi Wolfram, On 07 November 2015 13:29, Wolfram wrote: > On Mon, Nov 02, 2015 at 04:36:13PM +0000, Phil Edworthy wrote: > > The main purpose of this change is to avoid calling pci_ioremap_io() as > > this is not available on arm64. However, instead of doing the range passing > > in this driver we can utilise of_pci_get_host_bridge_resources(). > > > > This is similar to changes made to the generic PCI host driver in commit > > dbf9826d "PCI: generic: Convert to DT resource parsing API". > > > > Signed-off-by: Phil Edworthy > > Reported-by: Wolfram Sang > Tested-by: Wolfram Sang > > Works for me and my USB3 card. I also like going the global io_offset > variable away and the code readability improved, too, IMO. > > One question: > > > > + case IORESOURCE_MEM: > > + parent = &iomem_resource; > > + res_valid |= !(res->flags & IORESOURCE_PREFETCH); > > + break; > > res_valid doesn't seem to be actually used? Ah, you are right. I'll remove this & send a v2 Thanks Phil -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/