Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6202207imu; Wed, 30 Jan 2019 10:30:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN5aN0m/vnRgk+DI46XJB7eOD6zEz0qTAQB+UYaAFwVbplRqhcy9b7csaj0uduM/yHOpHVVN X-Received: by 2002:a63:4706:: with SMTP id u6mr26989056pga.95.1548873046893; Wed, 30 Jan 2019 10:30:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548873046; cv=none; d=google.com; s=arc-20160816; b=BWAvoG7NmfkakjVqMTBzabqnZRjkCkN8/GFZQ2FVTOHpAxzt0stEOt1o6x6lw+BiV0 483P3DwRE3gEWz9u8SWk1myL631aEofpq5EhyptKDKcS58tzz+/Im1SzGXN4SUniqDdN QUXOU3RbNEQmszWaz2PcpTyKLsMTatKo5U23Iu/oDadz19TZnx7Y7NQE3SiR3wljW4To vfH4Eo+rZRiQkrJBP72UB+a/YlAY0dlupAJt4yJx4w83TPja0qcoJbT0MaJLZpsmtnGg WCklWhhtIcPEZI7pfY6M2FQ2UZiSzOwujnR9ZyB4+XhodDZfuDxOfgdPAOeMOulZAqju BrFw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=/8Po7PAew1Si7r0kpsvoOXR+vsOhQ/wQS/c90BOpM+o=; b=rzFEyC6ZfHoqI1gkfJqsT30oNGjyMy0dfhXITcWZHEd2TXXQAwkN/tx6Bm+HQTkEW/ +TEJE3YyQdqnYljdkP5eNOpDg434IZdU56gFRuM6QB60h0a2D/yPVe6+TwrGezzQ3gQd 4Hbc+U3qOcCozH5FT/GfIlVnCKYBDWob66I30PfEGGpHfGx22+KGZFilvxtGmrM447wP TWfO8nvMa4RZqn6arEVkQE3PiyaJ99l9+SlmxgvXMchehQX6bFjiRHCvWr/FBKe26ObR Ggy08yMR78UyeRj1dRIjtfhUpy2ZkYNEiD95AKGx/BhutihXk7++DR/SFuJ6hipbAlLx R/5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=i+nPMG1r; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u188si2146179pfb.232.2019.01.30.10.30.31; Wed, 30 Jan 2019 10:30:46 -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=pass header.i=@chromium.org header.s=google header.b=i+nPMG1r; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733012AbfA3S2d (ORCPT + 99 others); Wed, 30 Jan 2019 13:28:33 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:39156 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732982AbfA3S2d (ORCPT ); Wed, 30 Jan 2019 13:28:33 -0500 Received: by mail-lf1-f67.google.com with SMTP id n18so386695lfh.6 for ; Wed, 30 Jan 2019 10:28:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/8Po7PAew1Si7r0kpsvoOXR+vsOhQ/wQS/c90BOpM+o=; b=i+nPMG1r3BI/2v4XPoi3Qxk/kyH3G1OXuf0sHhgCbPAbYcXLYROQd0o7vHLB8tIMVG 0wHlqSAI/zcWD35MQr0mMRtLSOoWn49YJoMDi8M/DkYsRnrA3ldMNB66BLD0mS2BTcUs +NLvcXdtfk1Kb419xwb8cwo3+bS9vjDC5MH6k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/8Po7PAew1Si7r0kpsvoOXR+vsOhQ/wQS/c90BOpM+o=; b=EBRRg1xHvA1Qq2tXbt4kSthayT05zXM0j8nbNASaVYZMH1VKNRSXRwXZ2deFhzZMIS kfHib9Ea7yMbRLS5QYC7lNkJTFFYmoPnMT7QZ1RkqIhJmNqaL/Y8x3VurctHtkv4Spun dW1TL9jjj1JMtZu6dHDMPGIJ2UpWEZXRZTAl1u4q2Oz25CqvZceAMkB8bHd/ZrGA2sz8 hLULWm9sE87NG+tWje1A9k1Kpe8q376HVgwvU0V0KKN6YcwGMO7cMaWXGV9vYEtAT63t GjyM3bNAP0qDvOsaHsrZBv0WKnu6ayjcrxUpA0zxo6686pYVg8UiqsYYhTL6/CsVsSCR 09oA== X-Gm-Message-State: AJcUukcdLu8PU0cdMMzwY/M07wed947IdXcqC6sUwQW9FWCgGSVJBpun BlIDjMin2Y8Vmr06DygL1LnMIFXaJE8= X-Received: by 2002:a19:a60c:: with SMTP id p12mr24889856lfe.63.1548872910985; Wed, 30 Jan 2019 10:28:30 -0800 (PST) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com. [209.85.167.45]) by smtp.gmail.com with ESMTPSA id 10sm410529lff.62.2019.01.30.10.28.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 10:28:30 -0800 (PST) Received: by mail-lf1-f45.google.com with SMTP id u18so359503lff.10 for ; Wed, 30 Jan 2019 10:28:29 -0800 (PST) X-Received: by 2002:a19:7352:: with SMTP id o79mr25471998lfc.104.1548872909383; Wed, 30 Jan 2019 10:28:29 -0800 (PST) MIME-Version: 1.0 References: <1546314952-15990-1-git-send-email-yong.wu@mediatek.com> <1546314952-15990-4-git-send-email-yong.wu@mediatek.com> In-Reply-To: <1546314952-15990-4-git-send-email-yong.wu@mediatek.com> From: Evan Green Date: Wed, 30 Jan 2019 10:27:52 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 03/20] memory: mtk-smi: Use a general config_port interface To: Yong Wu Cc: Joerg Roedel , Matthias Brugger , Robin Murphy , Rob Herring , Tomasz Figa , Will Deacon , linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, Arnd Bergmann , yingjoe.chen@mediatek.com, youlin.pei@mediatek.com, Nicolas Boichat 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, Dec 31, 2018 at 7:57 PM Yong Wu wrote: > > The config_port of mt2712 and mt8183 are the same. Use a general > config_port interface instead. > > In addition, in mt2712, larb8 and larb9 are the bdpsys larbs which > are not the normal larb, their register space are different from the > normal one. thus, we can not call the general config_port. In mt8183, > IPU0/1 and CCU connect with smi-common directly, they also are not > the normal larb. Hence, we add a "larb_direct_to_common_mask" for these > larbs which connect to smi-commmon directly. > > This is also a preparing patch for adding mt8183 SMI support. > > Signed-off-by: Yong Wu > Reviewed-by: Matthias Brugger Reviewed-by: Evan Green