Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6230399imu; Wed, 30 Jan 2019 11:01:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN4svpQ3uy5rAMRQ5uFqspC5uLAixGitA3RQ8Ilp8fxMPg00f7EghuQdQEIVyCxHFyxL/1zF X-Received: by 2002:a63:7a09:: with SMTP id v9mr28741661pgc.112.1548874901646; Wed, 30 Jan 2019 11:01:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548874901; cv=none; d=google.com; s=arc-20160816; b=VOQBSyhkdOkGgbeddMgxoRthr+R5HIZmA/JnV1miyqzKgLJCgZfYiTydHBWPvUtx+R 3hCXyDJelKY/DfATn9WLq2qrPKA7snDVtvbsJsouh768vxa4lpkMJfQee73VU4pyEdf5 J8tPEa/LwHjFX74OJSfdLyPRA1O9hPsvPEaozG2bw9kRapNyQm1LDoXEqDKGjeT/Ow3S 0MCNNJ4eEvm097dTtub8XNds0nfLwpjb39NR3ThJeFp5TeLB74dN29oHigjS5Nf80OIs gyJDWEaZhfizPfWW20Uy6Ic92uaZ1choPq0eAFcw/qlOUdfogbaqINgHfP7wF0XHeSA1 0JjA== 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=iICV6iO5GGqy/9UyvLBZFlPh+9/PoKYpYWrjSxw2AAU=; b=D6K3uAnKJCbrcEoN5sg+AZv9RC3sRJuWqiFcmhK9BdtW3BsME390V2WpFBX6AmmXIj VZxrvuazu+KYUY69moJIOVeiMt8xJ6a8bb7SPIJ5NqgLYCat257pXYbE2H2UrbOV+DiA F30h7f+57vbpWwrQ6w9bNzwjmSII/Wa0fIkEKx6KhusS8VZolsV3vcUxtrX7GJZ1DZNo vPD4FDf6VxKeKEW2AUDIsuBr/HFAII9J8wfsWWocj+GOCwwN4l2QMg09Zo6hu/Z1wNl7 PZouwAGTUKwk4C3ko/2vtMauNE9yDg6VxV2Lj0zE0+O0rQFEgzvSS2p0fsIYRTnP+0QS Ltxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ps15UBi2; 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 c2si2134250plb.152.2019.01.30.11.01.25; Wed, 30 Jan 2019 11:01:41 -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=Ps15UBi2; 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 S2387430AbfA3TAu (ORCPT + 99 others); Wed, 30 Jan 2019 14:00:50 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:37841 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728461AbfA3TAt (ORCPT ); Wed, 30 Jan 2019 14:00:49 -0500 Received: by mail-lj1-f194.google.com with SMTP id t18-v6so542108ljd.4 for ; Wed, 30 Jan 2019 11:00:48 -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=iICV6iO5GGqy/9UyvLBZFlPh+9/PoKYpYWrjSxw2AAU=; b=Ps15UBi2+dGsGjwapfletBv+573yHf6DC+OJb8tE5CbQxaNE2HEFKvYtYKiZ49sauE qr3hdJPCfSK5vXOAYerx0ce6yfBZhbx5ydpwO5+nMk/tvHiBkQQHcvnbd4bHPcbwL28y V//kUweAepKdxRr1pyB9Zwnju1ExglqAg1+QY= 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=iICV6iO5GGqy/9UyvLBZFlPh+9/PoKYpYWrjSxw2AAU=; b=mUx5J8vvZf2/Ry7+bl8/36BE2GOfio2J92okQwqroX79RovavzZ/gMkY8HuwiAPEOu 6IEblD0ML5pdeSJJUTZwea3hXJyz09o68x2chtorqoPEig042sbjpDDkp2jDjaRqkKH+ bZo7xqc5xJIumPASO5yw7OESz+ph+UoG5PZEVzYUZe0lhM4NcEZ1ftDwuEz4bwQcy+Zh fAU8b35357WNIHwozE+OWobq8n/nE+Zh5qLG2n1A/mDy3yc9z4jzGjo1EnPOYk8i6Yqo 1wP/IH9DODyInzsH+o87PUZwvbDO0BxXnaakNrTSGWvNLEXB0J+CifSkvJPvRTRNY7kv elmg== X-Gm-Message-State: AJcUukd6Fp7Nu7b6Ed5bg4Tn3H22ykY8YvCQ6Ak/+XtsBqioVzYnhhQ6 NyfIHCAmM2TC/LTwQ0F+tz99w5wnyKg= X-Received: by 2002:a2e:9c52:: with SMTP id t18-v6mr25019535ljj.149.1548874847649; Wed, 30 Jan 2019 11:00:47 -0800 (PST) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com. [209.85.208.182]) by smtp.gmail.com with ESMTPSA id s127sm436418lfe.8.2019.01.30.11.00.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 11:00:47 -0800 (PST) Received: by mail-lj1-f182.google.com with SMTP id u89-v6so558987lje.1 for ; Wed, 30 Jan 2019 11:00:47 -0800 (PST) X-Received: by 2002:a2e:9181:: with SMTP id f1-v6mr18171528ljg.64.1548873092541; Wed, 30 Jan 2019 10:31:32 -0800 (PST) MIME-Version: 1.0 References: <1546314952-15990-1-git-send-email-yong.wu@mediatek.com> <1546314952-15990-13-git-send-email-yong.wu@mediatek.com> In-Reply-To: <1546314952-15990-13-git-send-email-yong.wu@mediatek.com> From: Evan Green Date: Wed, 30 Jan 2019 10:30:55 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 12/20] memory: mtk-smi: Add gals support 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:58 PM 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 So really from a software perspective the gals are just a couple of extra clocks that need to be turned on for certain larbs. Seems fine to me. Reviewed-by: Evan Green