Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp928429ybh; Wed, 15 Jul 2020 20:46:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyb6OnWcxB68xNwanOnEa2/nQaEeS6C2Vr7/61kLk3puodSrKYxHyH10TqMQXacgmzDGWDY X-Received: by 2002:a17:906:e213:: with SMTP id gf19mr1888466ejb.433.1594871175091; Wed, 15 Jul 2020 20:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594871175; cv=none; d=google.com; s=arc-20160816; b=P0cWZB1HG0udzoCkvuFnIIdoyLhiIb+tigYQMJhELWWFI1PMCMXKNamghuRcZxO9ab 9lDzYm+2pxPr1RVNdejnffmCI889v5u/is55R56Bvf8UrGhAr6k33WorTbd9C+KR1VYO kPbZcUOSDdQAIr9OI67BG/j+d9QvcGBMl8op7Bg7cjJa9UaxUIYRhZ8EFILK+/4Cfjx1 g9ZFcye8B0WcfeMaPZVn8douYPF0leih06SI5SdZpFWRvuMrO32yEXSvzEdEZugkE4+S cNz2kKjM8fyfQV7NP1FGOvKjTkVYDwYpQBVrjc3bLhmSEhREw6pzrcyPM9qSqkoWYyVV +w/w== 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=CEsk1XhS81S7YqCL2/cfWNZFVQ4l+rq1KaxE7ps3pAk=; b=c5wHUfebSdRioIXZOdhXiImi825SFDk4VCjrB6L/f0fyGcvxnEMrQ6LSlv6y/n5cA1 baQwI84NJioXnPMEathsvdVfrLRWHXSZzcXfkSdFisDLnzAtDpl9Vxlay8Lk2nkXN+0E 7E7+A0/v/unfpMlX19Ns9gGB/VDGiSGnJcbEzWI6/THlHK2Er6a4YOMjI7zt9z3fEJiu i8QiMekVkra6mR3lwZJvMX7e0cjLougQ67rjc553IIscZ5vXnEW4UfccBYNA6XSVKb/k r+ehfo9AXFurTELBFEpr1SNgN6oLTwO1YprrXl9jVHyGGG97gQnxo+F3MzCUj1aC0OEp zhXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ot8bMGEu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id x24si2326802eju.623.2020.07.15.20.45.52; Wed, 15 Jul 2020 20:46:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ot8bMGEu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728276AbgGPDmq (ORCPT + 99 others); Wed, 15 Jul 2020 23:42:46 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:7621 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728179AbgGPDmq (ORCPT ); Wed, 15 Jul 2020 23:42:46 -0400 X-UUID: d23062ae6dd24211b7604b952cbb209d-20200716 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=CEsk1XhS81S7YqCL2/cfWNZFVQ4l+rq1KaxE7ps3pAk=; b=ot8bMGEuqZnvlaEM5bTelmKbuXoEhy3D168PxipH1v4qMrueDtoW5Jpa65+AtkCq40uGMlBhPfiX2xRM+UwggvVU7yQjJZ0JCvpm/QFLhItZwRyibzn6zndysV3u2dmJu1IZva0SFd3T3vliUEaZvJRBBf/ipeeS5fVgvsvcK5c=; X-UUID: d23062ae6dd24211b7604b952cbb209d-20200716 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1572197662; Thu, 16 Jul 2020 11:42:40 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 16 Jul 2020 11:42:29 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 16 Jul 2020 11:42:29 +0800 Message-ID: <1594870950.5018.3.camel@mtkswgap22> Subject: Re: [PATCH v2 2/2] soc: mediatek: add mtk-devapc driver From: Neal Liu To: Chun-Kuang Hu CC: Neal Liu , Rob Herring , Matthias Brugger , , wsd_upstream , lkml , "moderated list:ARM/Mediatek SoC support" , Linux ARM Date: Thu, 16 Jul 2020 11:42:30 +0800 In-Reply-To: References: <1594285927-1840-1-git-send-email-neal.liu@mediatek.com> <1594285927-1840-3-git-send-email-neal.liu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 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 SGkgQ2h1bi1LdWFuZywNCg0KT24gVGh1LCAyMDIwLTA3LTE2IGF0IDA3OjQ2ICswODAwLCBDaHVu LUt1YW5nIEh1IHdyb3RlOg0KPiBISSwgTmVhbDoNCj4gDQo+IE5lYWwgTGl1IDxuZWFsLmxpdUBt ZWRpYX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