Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4160336ybb; Mon, 23 Mar 2020 14:55:00 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuSnZo8+uGMFleDa6MH8rLy0ccwVvF2j4jnP/xoiESCAFP+7ovXCh2CjRnClBtrT3ry+v1q X-Received: by 2002:aca:1913:: with SMTP id l19mr1187147oii.12.1585000500168; Mon, 23 Mar 2020 14:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585000500; cv=none; d=google.com; s=arc-20160816; b=GiWfuO2F8YirAeIiwumKWisBfzgzbEmSJl2zjBubde/VWm08CP2zyrBCSmogFtps+m AuUJR9bLly7DFbViT/+Kwhu7rf6OepImChpZ6DiFuzC5HG4NELkwVCLptF8MSnD0O/Pl Jp9UygVvukE2zuyGi4sMRTmQrWLBoVNOeEoX6+OVxlLz8A7v7CtM2r4uoxUZlYWt1+Ew mJqtJeRaCpjKBA/vkZcJe2YDHpVBAPWuHyZ2zIRzRV8xuHosDjHYlLo6qHxApsaaxuvS b/45LkoiCTvrMTtyMnJgs6/ITeFGgQGNjR0rFfjM7ygwnjjQTgv2Rg/CjwRTuhbs7Obt jRkQ== 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=YF90OqhWLGXA4a5YAnTLbpCAqAANWVvf4rDFB17AIsI=; b=r36IJmKinj3rGXug9DA0FmkjfaX9wkHoxuxZs+YkiRrmyGVdpLMkmr76N7QFTQvnwP BjmfpU8dUgQFfF/JolbCSkWJ+I1MGxt/pSsrX2W7RQEw2et7VzedeUnEVGdli08W3Oxj jKiu+yG4GLx/4vYB+50Z9xwdkKixrrCAOvlWW1oakBfo4enQPFnYvhKm5QGBZjHpnSyV 8qCfWZL/KxDdZQB9+Qjj+lLhYUE9hPexV8smbIufyKxfgntO0Vf078WXY9/02rku5Sxm tfk9MqUJOm5kSzIla4MJ8baXocxsasQ9lpPtswT1xS6tdB7TwWqVdIUbS2bZD9XIFTJt haaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=P5Dr6zoH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l16si8740070oti.106.2020.03.23.14.54.46; Mon, 23 Mar 2020 14:55:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=P5Dr6zoH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726982AbgCWVyF (ORCPT + 99 others); Mon, 23 Mar 2020 17:54:05 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:49650 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbgCWVyF (ORCPT ); Mon, 23 Mar 2020 17:54:05 -0400 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 354508364E for ; Tue, 24 Mar 2020 10:54:02 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1585000442; bh=YF90OqhWLGXA4a5YAnTLbpCAqAANWVvf4rDFB17AIsI=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=P5Dr6zoHlp3ncfmE148ZLipXV1kzRF4ueHglhv5mQI7FsmKTG5pzDDl3Ewk/sGUuZ JACS30xbd4fCIPC4mgfh+RsGqLiWIJKX1eIXmtg++FRsA4inody9R0AOC/GtyC+v55 O3qNQJT7EzZHKFkt6gL8CFVM3ziK/0IYuj8/bv4TZZj0ZxLzQG+xX4EPKagjpmwsrI LkGScYLYtkH0QcMKcVAtNlIFv1zZTrfdSzf9NfOjBxmbw+lTzV/K3Xq1J7azoFGvit 5KMqh59bzEJ6yUndjgu3JTtfgyMLcuWMUwQowuTUS51j47iEfduNvhs88F/A0QKTsb 6hz0P4bwz3thA== 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 ; Tue, 24 Mar 2020 10:54:02 +1300 Received: from svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8::77) by svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8::77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 24 Mar 2020 10:54:01 +1300 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; Tue, 24 Mar 2020 10:54:01 +1300 From: Chris Packham To: "christophe.leroy@c-s.fr" , "paulus@samba.org" , "mpe@ellerman.id.au" , "benh@kernel.crashing.org" 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: AQHWAVtyPT7uF8EyiECYlBR6HiNzIKhV3nkA Date: Mon, 23 Mar 2020 21:54:01 +0000 Message-ID: References: <3df15946ed0c29663dc7928b31ca07576e1444f6.1580904214.git.christophe.leroy@c-s.fr> In-Reply-To: <3df15946ed0c29663dc7928b31ca07576e1444f6.1580904214.git.christophe.leroy@c-s.fr> Accept-Language: en-NZ, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.28.5-0ubuntu0.18.04.1 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.32.14.96] Content-Type: text/plain; charset="utf-8" Content-ID: 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 SGkgQ2hyaXN0b3BoZSwNCg0KT24gV2VkLCAyMDIwLTAyLTA1IGF0IDEyOjAzICswMDAwLCBDaHJp c3RvcGhlIExlcm95IHdyb3RlOg0KPiBbICAgIDAuMDAwMDAwXSBpb3JlbWFwKCkgY2FsbGVkIGVh cmx5IGZyb20NCj4gZmluZF9sZWdhY3lfc2VyaWFsX3BvcnRzKzB4M2NjLzB4NDc0LiBVc2UgZWFy bHlfaW9yZW1hcCgpIGluc3RlYWQNCj4gDQoNCkkgd2FzIGp1c3QgYWJvdXQgdG8gZGlnIGludG8g dGhpcyBlcnJvciBtZXNzYWdlIGFuZCBmb3VuZCB5b3UgcGF0Y2guIEkNCmFwcGxpZWQgaXQgdG8g YSB2NS41IGJhc2UuDQoNCj4gZmluZF9sZWdhY3lfc2VyaWFsX3BvcnRzKCkgaXMgY2FsbGVkIGVh cmx5IGZyb20gc2V0dXBfYXJjaCgpLCBiZWZvcmUNCj4gcGFnaW5nX2luaXQoKS4gdm1hbGxvYyBp cyBub3QgYXZhaWxhYmxlIHlldCwgaW9yZW1hcCBzaG91bGRuJ3QgYmUNCj4gdXNlZCB0aGF0IGVh cmx5Lg0K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