Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5571722ybv; Tue, 11 Feb 2020 18:57:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzJbgiXrvHghyC/REit5BlCtSTPvU19cIQ13UMDPmqVt5sx7gHvTU53CEO5DLimEkXAEuRk X-Received: by 2002:a05:6808:84:: with SMTP id s4mr4923634oic.147.1581476222223; Tue, 11 Feb 2020 18:57:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581476222; cv=none; d=google.com; s=arc-20160816; b=VZQ6ECGarOWg+V5E4kXWjr4PvNhHqcYXLZ7zwol+ErOVuv1CQ2DIUtZXKCgEv9r+Cr o6FCDdPFMcsp5Z9KHJ5jrkZctQDuBY7n7+gdUtgELZvYnGOXz+0WH9cz+/59IqEAbOM3 O9oPz0nq4nwCysWjdlaflBE08TwiVMaRcwiopBr85KMkrycFoz/zCsrRlzNijHeNehcT /8myEvZkuktUMK8BY0Iu5SE4GVZM5PMjaLbNrgZLkPrMYNXyuEeFikJCt0aWjr3vO9xS uvmOZkstwmtygi0xdQTYf6aZkCADaqJxlubAG3r+D8X8hVAc/g7iZSB/WVk6TA/2cHu3 PoYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=QdBTe7gC7JKil+2UQTfobpCtMYtklWuvZOCuYuWCF58=; b=TUJEm00lu5jGG5Xt1qj116RDO03W2X9vUPpZO+XQJhnwtZU5rD7UxAFyDwwgQNp+/Z LaxkhHUgwLaiPhOGM1Rkkrdnfv3sGLXENWA8yYxVpcc6OIB13OH2YXYt78mVUb8wbW4P mCAetGH6+diyPMyEE8KUitlCH5feCpTdRc0MvOhXdXsfskAYZ/EvLJcE7xGsF7HNIsGk HB2E1W6Jd+x21PZG8M/GBVtqbCfnxHboMA1wcONAMpaNntWBFJ7hLEf303vP/7/KFuvv vkFzwA9zTdsfgqHZlQoL3ka/+mZ3PLR7qGrOxyio4WUaMmUS440W3giDWr4Xpf2EMIxe MCjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ijjN9Etd; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i78si2784198oib.1.2020.02.11.18.56.50; Tue, 11 Feb 2020 18:57:02 -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=@mediatek.com header.s=dk header.b=ijjN9Etd; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727754AbgBLC4H (ORCPT + 99 others); Tue, 11 Feb 2020 21:56:07 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:44506 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727565AbgBLC4G (ORCPT ); Tue, 11 Feb 2020 21:56:06 -0500 X-UUID: f15504b7c94b4922a93d396c68286bf8-20200212 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=QdBTe7gC7JKil+2UQTfobpCtMYtklWuvZOCuYuWCF58=; b=ijjN9EtdiE3PCggNx3sotA+exutjRy8H6hFdUmOsLIUuRM7nh2HVMp3r0dbOTUp2c7J8QiX/p2aB3v2uSg2vZhEjOGmGdlvJiPeT3CQCFA4edw6AZTtpvZ3saikPg6UwpDhR0Uvp51b/stl8VhCWpgsZbecaE7uYvNY8K4gn628=; X-UUID: f15504b7c94b4922a93d396c68286bf8-20200212 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 721817637; Wed, 12 Feb 2020 10:56:02 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 12 Feb 2020 10:54:24 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 12 Feb 2020 10:55:02 +0800 Message-ID: <1581476161.22901.36.camel@mtksdaap41> Subject: Re: [PATCH v11 07/10] soc: mediatek: Add extra sram control From: Weiyi Lu To: Matthias Brugger CC: Nicolas Boichat , Rob Herring , Sascha Hauer , James Liao , , , Fan Chen , , Date: Wed, 12 Feb 2020 10:56:01 +0800 In-Reply-To: <28fcf690-74cb-b7cd-a53b-e54be71457b9@gmail.com> References: <1576813564-23927-1-git-send-email-weiyi.lu@mediatek.com> <1576813564-23927-8-git-send-email-weiyi.lu@mediatek.com> <28fcf690-74cb-b7cd-a53b-e54be71457b9@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDIwLTAyLTExIGF0IDE4OjA0ICswMTAwLCBNYXR0aGlhcyBCcnVnZ2VyIHdyb3Rl Og0KPiANCj4gT24gMjAvMTIv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