Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3260186imu; Sun, 13 Jan 2019 23:00:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN46Zwfhz5JnVsygdovPwso7P8MqKH74cQhoczxZyyzdMFFWIiIrExmdcCC0K+Un/alrm8Wv X-Received: by 2002:a65:6392:: with SMTP id h18mr22008513pgv.107.1547449219203; Sun, 13 Jan 2019 23:00:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547449219; cv=none; d=google.com; s=arc-20160816; b=CSjD0edRxirRJno8PqkDyP3mqdzNL/xXX8KktEkh/pUb2hk6s3mHdr0oMyW/atb25C pCTcUGyYOIS6sCfLGO4UM7a/mThFvpWsn5hEHBX3Kr+TDfl99nlvfdjnsuH7bq2X50rd XvOk9I9gqzb1LiLqzQ596WYWqvW0H4U/FFKjb9YUdQF6w1YXsnxhXPEwoPVISmsYMI3p o1scfYpUYNSscBFHcUhfLCoiioMPtNwkIgQuLp3CUrgWMNJJdCZnuoSSZNppRWO5wYxm 7+tqEBIqf4yvGFfGjQqgS0ocYE2eRd4CMUwRUKjE0p230CAO0rAf0XXlpa4Fa1rxoCeL Q4Jg== 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 :references:in-reply-to:date:cc:to:from:subject:message-id; bh=e3Pe8foUlHOyDevv2NGs7rLIOqNG1QdkOWpa2xSdrog=; b=bh3fiyGueLj/mJ66tah3nKLhlgvqsHsCa9HqUbnVCvhsAp+JjEVX8VwwCt6rmmUy7Q RIuxd5/PlQclkbbwyoPwtY183tsODp3it+fowwqtrMQa9KcIWsOTPMdt3zidsPedBAVa f09tVenf4jc051oI/i9yGOmhHlzw1xGz6xADNvYpZNoXPuARGkqc4U58soTSKnhmWzN/ lW59RttTg8WS29GKa+P4LXnIdsa+kYHDEvaBPIkJiIIV0/OcqqMk3SD1NjICKvntK0/A 6FqkovFGrlH7NCtelEyTGQLoFGqMhzkgKnlh1XkKst+vAahkt3pHF88a2ldFjPeLETbP I5ew== ARC-Authentication-Results: i=1; mx.google.com; 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 h127si17533327pfe.204.2019.01.13.23.00.03; Sun, 13 Jan 2019 23:00:19 -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; 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 S1726579AbfANG5k (ORCPT + 99 others); Mon, 14 Jan 2019 01:57:40 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:29528 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726067AbfANG5k (ORCPT ); Mon, 14 Jan 2019 01:57:40 -0500 X-UUID: f7039342ff9e44c0935e6fc2e4188c5a-20190114 X-UUID: f7039342ff9e44c0935e6fc2e4188c5a-20190114 Received: from mtkcas32.mediatek.inc [(172.27.4.250)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 470450526; Mon, 14 Jan 2019 14:57:30 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 14 Jan 2019 14:57:28 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 14 Jan 2019 14:57:28 +0800 Message-ID: <1547449048.24830.15.camel@mhfsdcap03> Subject: Re: [PATCH v5 12/20] memory: mtk-smi: Add gals support From: Yong Wu To: Matthias Brugger CC: Joerg Roedel , Robin Murphy , "Rob Herring" , Tomasz Figa , Will Deacon , , , , , , , , , "Nicolas Boichat" Date: Mon, 14 Jan 2019 14:57:28 +0800 In-Reply-To: <1546314952-15990-13-git-send-email-yong.wu@mediatek.com> References: <1546314952-15990-1-git-send-email-yong.wu@mediatek.com> <1546314952-15990-13-git-send-email-yong.wu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matthias, Gentle ping about this and the other mtk-smi part in this patchset. The memory part don't have its specific maintainer, normally we need SoC maintain's help. Thus, For this file(memory/mtk-smi.c), your review is needed before Joerg accept it. Appreciate in advance. On Tue, 2019-01-01 at 11:55 +0800, Yong Wu wrote: > In some SoCs like mt8183, SMI add GALS(Global Async Local Sync) module > which can help synchronize for the modules in different clock frequency. > It can be seen as a "asynchronous fifo". This is a example diagram: > > M4U > | > ---------- > | | > gals0-rx gals1-rx > | | > | | > gals0-tx gals1-tx > | | > ------------ > SMI Common > ------------ > | > +-----+--------+-----+- ... > | | | | > | gals-rx gals-rx | > | | | | > | | | | > | gals-tx gals-tx | > | | | | > larb1 larb2 larb3 larb4 > > GALS only help transfer the command/data while it doesn't have the > configuring register, thus it has the special "smi" clock and doesn't > have the "apb" clock. From the diagram above, we add "gals0" and > "gals1" clocks for smi-common and add a "gals" clock for smi-larb. > > This patch adds gals clock supporting in the SMI. Note that some larbs > may still don't have the "gals" clock like larb1 and larb4 above. > > This is also a preparing patch for mt8183 which has GALS. > > Signed-off-by: Yong Wu > --- > drivers/memory/mtk-smi.c | 36 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) [...]