Received: by 10.223.148.5 with SMTP id 5csp7250935wrq; Thu, 18 Jan 2018 03:02:28 -0800 (PST) X-Google-Smtp-Source: ACJfBot13PC45wD3Zps7e4EyLH5m3DBTWzRX7lFB4shXzQ7MCYVOfaihPtAUPNc/+1PAOiEFkmhc X-Received: by 10.159.211.75 with SMTP id g11mr18178627plp.38.1516273347957; Thu, 18 Jan 2018 03:02:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516273347; cv=none; d=google.com; s=arc-20160816; b=y+sqkKeweuJzIBEYGVcHA+hZgCsmpo2tnHY/yMefAIk2Y+WZ10Z+XU1ALaKlEdLD/L iB9BfQWAPUfIYbRAUUpjRG/u7x+QIY85PHtnV+08GKcuV5O/5Xq2aTA7nGFtiPUZAqJn hm5+Qcc8JwwC1EBneyYkdjr2ZeNorF6uvc23ho/8V9aCK4YyHZvLvM4gOEc/h1IHw2k0 GRCuW8bby0fNDZOQfsLeaJ/2UTsw24f7aQrJ/cARpieIekPqe70RNQOb46A7EsU5kwcS hjP3MlkSUUUcl+LXvCc3hFrmNY7LwFmPnWQjmQh7QEb8tzo4ARYE8yMJT2TQ1HEIxqq5 qMvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=6/hEB0KgeHmAN4HX/J01zWUbz1QvRcSpxCNd8Ra7j+k=; b=DWkwpyu9z4aNjuovzxhV0Z3qQk75h92JbfGNUUy7+cepg/Fgey2yA/kff2/sAfx25Z FH4kG5in/4/u056RofGHEyw6znsD7aHEb5g+HHxjsfLLQ0RG3Uy5wG9EZc76Fyj/JxTd QPpvoBYPLf3HRmXAA7ul0SsGpArWmbehDai0ygQQAydopT0lPWg1HOUpITYSJU2mJQsw stevmE/LHSxrs+VHPEhu6yBWSqUf1xKq+s05f1iPSW4W1nc8/gqQSdUTkyRTFyc0oqNB eJRyD97xNwRI10PLUuaBx0bjMoJCNGjSwb15dYC8bWs2ziDdk0t8vZ4Wtgmqp63CHeYC aBiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=SB+aQplI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 65si6442939plf.530.2018.01.18.03.02.13; Thu, 18 Jan 2018 03:02:27 -0800 (PST) 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=fail header.i=@gmail.com header.s=20161025 header.b=SB+aQplI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755446AbeARKA4 (ORCPT + 99 others); Thu, 18 Jan 2018 05:00:56 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:35093 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753505AbeARKAw (ORCPT ); Thu, 18 Jan 2018 05:00:52 -0500 Received: by mail-oi0-f68.google.com with SMTP id b11so2549260oif.2; Thu, 18 Jan 2018 02:00:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=6/hEB0KgeHmAN4HX/J01zWUbz1QvRcSpxCNd8Ra7j+k=; b=SB+aQplIw5fdKi5Qkrl8j9lCE7ybvVY6q2cTDBp41sBY3fD93sND2a2PTvxWwhgGOE u2vSX12s5hYpf6WIzTXOlsjW6SCzvk5S6r3uGF7JZwtDi+HFdgTRDj6ivNbGCtdxOW31 22FrCksSmq/8nNNQK5UPTe/hb410K4SBjBb2Za11Bc5GuYy+x1OKSy9z65sJIZ1r/13W afgBAzTCCfIDKBhdsWZUOIQFjfNIBsWWCexmncb2UajGzQWLZcH8Ny3QC77RyD8m17L2 FdjjiaS1+C+nBLpGin7w9S3LA+iLNC/pkboXMNv3FiIcO66tVME0EcaqMbHeKekDP/7g pc3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=6/hEB0KgeHmAN4HX/J01zWUbz1QvRcSpxCNd8Ra7j+k=; b=P5jQFb5gNsqDf+yL404MP6WtRxVxGlCV6PhQTIRICZ8PQzjBAH5hiJu6V/RFIb+UtG yLblVA+XM0PV8imSe/fb2QZ1DjZyna2c4JR4YdLbMFaL9jptLaogXqxqQtE0TxInUxXn GIevpAehHPY0WpjtEiMhXlBcKcTBeKMS+FqwagL5nknnMuJ+BrSSAnS5aJjgKf31qzYX Odkb7Mq2mW1wGwgYHmLwNqTXV1JVk980FQYyAxm9xp6P4y1w/WpZ6mCu4uSyuS3gDL04 /anvyHtQzYSlypGqsovw/n5GTm0GERXwpEnrzOKIoG6yCItCsl/OGiEM8l1cGCPdpnBr /YCA== X-Gm-Message-State: AKwxytfkQ8OynqL21OBULWmN4NIs2AXzwYwFT2ZXnXaBIg3SImeUPlM2 Vv58oDUH6Vt3mp61+bF0MjSIdaIW+RKY/qOK4Lo= X-Received: by 10.202.225.212 with SMTP id y203mr2745908oig.64.1516269651583; Thu, 18 Jan 2018 02:00:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.17.89 with HTTP; Thu, 18 Jan 2018 02:00:51 -0800 (PST) In-Reply-To: <030b9e2ee2d6ee309eebe00feea0e92687304e64.1515766253.git.green.hu@gmail.com> References: <030b9e2ee2d6ee309eebe00feea0e92687304e64.1515766253.git.green.hu@gmail.com> From: Arnd Bergmann Date: Thu, 18 Jan 2018 11:00:51 +0100 X-Google-Sender-Auth: 09u6pX-dGqfQ8i3ipXZnnr5foTI Message-ID: Subject: Re: [PATCH v6 04/36] earlycon: add reg-offset to physical address before mapping To: Greentime Hu Cc: Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , Vincent Chen , DTML , Al Viro , David Howells , Will Deacon , Daniel Lezcano , linux-serial@vger.kernel.org, Geert Uytterhoeven , Linus Walleij , Mark Rutland , Greg KH , Guo Ren , Randy Dunlap , David Miller , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Peter Hurley Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 15, 2018 at 6:53 AM, Greentime Hu wrote: > From: Greentime Hu > > It will get the wrong virtual address because port->mapbase is not added > the correct reg-offset yet. We have to update it before earlycon_map() > is called > > Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann Cc: Peter Hurley Cc: stable@vger.kernel.org Fixes: 088da2a17619 ("of: earlycon: Initialize port fields from DT properties") As this is a bugfix for generic code, this might be good to have Greg pick up directly for his serial drivers tree. An Ack from Peter Hurley would also help, as he introduced the reg-offset handling originally. Arnd