Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3090900pxk; Mon, 5 Oct 2020 00:22:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6dady9yLqDQ/Ioh+QXlAMhcODkhpVqXVkptRtkkoS0RAljzv5yHeuJxSuREBO6QQ/v6RI X-Received: by 2002:a17:906:4d03:: with SMTP id r3mr13620087eju.364.1601882576091; Mon, 05 Oct 2020 00:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601882576; cv=none; d=google.com; s=arc-20160816; b=bW8XKY1luRGVh63Eb6EDXmkXgwUqJ6ek0fZpv7rJJRdhLDwwIlwZrRRC5RH+FQIKvN ShLe8uiaBovipAEtlBx4p2pHhAGulKahvBPE/KAVkjoWF8VHZWXvPWjDhD8zrBDkusgN rBjXyOHroOqz46iF+ci3pLr/45BjyJxFIc+gW1Pfuay220RIRy1AYl6j46Ds0WeSlfnB sjCz4Ow8BeSvy9NlO/6vDcZSmPj1SknUPnFr9VW+1MGQ38a/sTfkU3IISGmV0kzfQdWs FbjQW1ybxGrnaFuqeH+v8A2NmYqTsZEul9DsC+pSsziqI4oZ3/su8JskgwtLMpMLtiUx qa9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=7EnrdO3x7asX9gTBacmmrzjObvtt04/zORNX+OpwJXg=; b=y6mi90xWKzcluJ6Kwk/hN2cn4O6MjYNqzPTnptxRf2v+i0qcl9p8E4ofyQbTSBNRZs Nj5RbVZb78naKY0SGatii41NGnZpeLa5dsrdhA9eUpKsDmp6N4CRH+BPdOn2ryXxeQhU knb0RQj+iHRuQwpUdpa66RM/8nsKpp5wEwJ/uU7TGTyFKQETnQUnZtz9sgFvWlzc7alv WCRaL83B0VTheo3dq+PnoHrLJWfKiSn6o31laDXANa+H+BBd/74kujac5kuLuLuG0TjD Pqs9UN6Wl5qrX5213A3NrdnwSOJRYjzSQiITZ9grmRQJrMmkiaGgtNgJR1LjUEvy1eV6 z96Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jc6flCCH; 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 cf25si7400317ejb.718.2020.10.05.00.22.33; Mon, 05 Oct 2020 00:22:56 -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=jc6flCCH; 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 S1725896AbgJEHU4 (ORCPT + 99 others); Mon, 5 Oct 2020 03:20:56 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:55088 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725891AbgJEHU4 (ORCPT ); Mon, 5 Oct 2020 03:20:56 -0400 X-UUID: d911ef3a93b44619816314289bc9ae34-20201005 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=7EnrdO3x7asX9gTBacmmrzjObvtt04/zORNX+OpwJXg=; b=jc6flCCH9zmnOil4U8qr3ODs5lxQ8OBSH+4DPbecZ1wNMWvpx79Z+IxBhOQOfbtnclJDhWb78DN71ZOw2P5p5CmCWWeSr2hOg4k/qkz1Gn6iQeKiv3pGm85pqDf72y86gHS3WlIjESTFqkDscvgfxeVXd/JHzyPadIWcMRZkbic=; X-UUID: d911ef3a93b44619816314289bc9ae34-20201005 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1810721124; Mon, 05 Oct 2020 15:20:51 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 5 Oct 2020 15:20:49 +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; Mon, 5 Oct 2020 15:20:48 +0800 Message-ID: <1601882449.15742.4.camel@mtkswgap22> Subject: Re: [PATCH v7 2/2] soc: mediatek: add mt6779 devapc driver From: Neal Liu To: Chun-Kuang Hu CC: Neal Liu , Rob Herring , Matthias Brugger , DTML , Linux ARM , "moderated list:ARM/Mediatek SoC support" , lkml , wsd_upstream Date: Mon, 5 Oct 2020 15:20:49 +0800 In-Reply-To: References: <1598497593-15781-1-git-send-email-neal.liu@mediatek.com> <1598497593-15781-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-TM-SNTS-SMTP: 1231EE9725B1C9C9F42046DE7BAF97293F3EDAC9A16F4C5A7FAF9C62563B81552000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQ2h1bi1LdWFuZywNCg0KT24gU2F0LCAyMDIwLTEwLTAzIGF0IDAwOjI0ICswODAwLCBDaHVu LUt1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