Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3977333pxa; Sun, 9 Aug 2020 19:03:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzULBdtOK8t81h+earzWlcDXdLfb17S2kvRgyTZxv6qL5aY1zbz4ozzC1cpMPvwdwp+2qAz X-Received: by 2002:a17:906:1911:: with SMTP id a17mr18477175eje.431.1597024989304; Sun, 09 Aug 2020 19:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597024989; cv=none; d=google.com; s=arc-20160816; b=N2ix38jGGTbR+qer3LbsJyiNOJQ/gKWONmWogGuEylEGeYjb2bsYy1gR7i1aOZv7p+ Flud4VCatQuqcVwa5a3XTP9BfWWIwQsUkc4ReyF2m+narDrhaVifyLVQM23hon1h7LsC c11vs+OW6hydsvXZhUFlgISxTcxCMmWUPL1FJ257QkfsO0l5ACs58YF9xhI1YG34o3MX k8Pjgsh7AOVHYZzi1FKmRJmN268pW3EWDJeVYHWMNpaUsgipdEPokQixbAU+0qztjMNH PHr8k5L3amvDUTxIzjSx3yXdwB0AyE9EJrFoE3t3mpf9c8EFDh/ARj1PpoclASiDrRPh 0VYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=wHtyEc1mJaEbg7DpROSx/mzeEnIl9MIU6f1hjwj5a5Y=; b=nW0kJ6mWm9JW0y4Dimvfbpe7ho1+HfIZSCziU75C++JktPpckF+XGrwPKUQv/dfz3g e6cicPzcjo0ZM/ONcQbRrezTqqSzBbd2+5cZgoziZv1w6zrrKnuqk58DUIu6seuVgfzi hrnMz+t1I/3vnUfp/auQDMO8StqtVpyZ/IPKgNU/tnyfVX8a9qfi6KGiswRpcrHkXv9K cBgbohMzvPxpiSMBxi1y1Ms4SQaKluOv7vIG3+cneUuAUidf1zGzSecbQHk/FdjTxvfN PgYgmk8P26ePDe9P6MMjX9cdWceGPGy/hYctFxCQES/v0xts2C8l3/0LeQd6SGhDv8J/ OMXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b="loT/JzDw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l21si9381054edw.181.2020.08.09.19.02.45; Sun, 09 Aug 2020 19:03:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b="loT/JzDw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726361AbgHJCCE (ORCPT + 99 others); Sun, 9 Aug 2020 22:02:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbgHJCCC (ORCPT ); Sun, 9 Aug 2020 22:02:02 -0400 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [IPv6:2001:df5:b000:5::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4FC5C061756 for ; Sun, 9 Aug 2020 19:02:01 -0700 (PDT) Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id A0869891B0 for ; Mon, 10 Aug 2020 14:01:52 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1597024912; bh=wHtyEc1mJaEbg7DpROSx/mzeEnIl9MIU6f1hjwj5a5Y=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=loT/JzDwS8oaEw/kQlrod4HLlscSJGFMaJO25Gz/QrtRtpeeuzcglkjZZb5HCuHYw 4QwiW3XS7jNRtYLeeQnVwOJqwmnOUiM0mt6Wl0NK38cNe6brhs+RpCkHP4nnTB1AER UYxhbZEVLtcYZ2YQ4Ya5C62mX4L+7U6gKnYutdRPh+n3r4CWCeW1XrKSx9HKo3JQvV DPCsmT3To4DrsdR/rhstJsbQNqmQR1mi0PjJMD+4kUPuBF+vIKYwPSPfHiuyGmXqZg J9adrbLVr5kBvcMyO7jg6Ic0CRllZxr76RiHg+Sg+aAwcSJrMh7EO0NzM7mqLFtfWZ hpGEMd0kbs4Rg== Received: from svr-chch-ex1.atlnz.lc (Not Verified[10.32.16.77]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Mon, 10 Aug 2020 14:01:52 +1200 Received: from svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8:409d:36f5:8899:92e8) by svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8:409d:36f5:8899:92e8) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 Aug 2020 14:01:47 +1200 Received: from svr-chch-ex1.atlnz.lc ([fe80::409d:36f5:8899:92e8]) by svr-chch-ex1.atlnz.lc ([fe80::409d:36f5:8899:92e8%12]) with mapi id 15.00.1497.006; Mon, 10 Aug 2020 14:01:47 +1200 From: Chris Packham To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , "Michael Ellerman" CC: "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , Hamish Martin Subject: Re: [PATCH] powerpc/legacy_serial: Use early_ioremap() Thread-Topic: [PATCH] powerpc/legacy_serial: Use early_ioremap() Thread-Index: AQHWAVtyPT7uF8EyiECYlBR6HiNzIKhV3nkAgNrKDAA= Date: Mon, 10 Aug 2020 02:01:46 +0000 Message-ID: <32c16eef-f426-4f7e-14aa-b9fbbbec59b8@alliedtelesis.co.nz> References: <3df15946ed0c29663dc7928b31ca07576e1444f6.1580904214.git.christophe.leroy@c-s.fr> In-Reply-To: Accept-Language: en-NZ, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.32.1.11] Content-Type: text/plain; charset="utf-8" Content-ID: <05418667CC51624A80E03FB688E733B6@atlnz.lc> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQpPbiAyNC8wMy8yMCAxMDo1NCBhbSwgQ2hyaXMgUGFja2hhbSB3cm90ZToNCj4gSGkgQ2hyaXN0 b3BoZSwNCj4NCj4gT24gV2VkLCAyMDIwLTAyLTA1IGF0IDEyOjAzICswMDAwLCBDaHJpc3RvcGhl IExlcm95IHdyb3RlOg0KPj4gWyAgICAwLjAwMDAwMF0gaW9yZW1hcCgpIGNhbGxlZCBlYXJseSBm cm9tDQo+PiBmaW5kX2xlZ2FjeV9zZXJpYWxfcG9ydHMrMHgzY2MvMHg0NzQuIFVzZSBlYXJseV9p b3JlbWFwKCkgaW5zdGVhZA0KPj4NCj4gSSB3YXMganVzdCBhYm91dCB0byBkaWcgaW50byB0aGlz IGVycm9yIG1lc3NhZ2UgYW5kIGZvdW5kIHlvdSBwYXRjaC4gSQ0KPiBhcHBsaWVkIGl0IHRvIGEg djUuNSBiYXNlLg0KPg0KPj4gZmluZF9sZWd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