Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2033308pxa; Sun, 16 Aug 2020 21:07:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCLsiS8VzQ9UUgcFNG2smTma3qSfWNSD+rXB1BogKFHOuK1rqHDdukBS6QuvAEruSvFFVL X-Received: by 2002:aa7:cc85:: with SMTP id p5mr13387579edt.369.1597637254030; Sun, 16 Aug 2020 21:07:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597637254; cv=none; d=google.com; s=arc-20160816; b=QMQOzKFlcrtG6VDY+GBMSFr5biFD8/ZrEX0EZC9l9qT+wZlSxixxaAPmNcSALENRAx gVHEwZLDiM2dKjypBmbyEz9cQWsq77aScOyD3vRMVJ8MeThwkBQCyAo/ULB3sANHU784 9vZkRbGHDzxUkTxEoWgDy55PMbwaUjXwWXA2WoOiHhDfmPKP/HEKA3wzp6KjADgyQI+h bPheJbgX8SgaQ5Lu0BNmfiy+234rAn30djMxft/Cnpv+u7x8ICabKOnYPRC8gr7M1CwS dAYxM3n+ZWErQCaWZbFS+dJBxPeJrA+Gzzj/NROwuVYWeS46Pafl5tpl0x9Wy+271aXh SJ/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=pACLi6wbKi9AORYpzxtaOBRDENoBN/knrxeP2OFFLTY=; b=iYn3y6arO8JcLKAXIgrRmfiAnxx/w8UPGhdoiioT4NJuzRgbgpWzi3nhsBoB4tr9XS KvaeJFMZCGusiJF0v38FZrY148aaUeoIf/7odA2jFqM9A4hKlB/stdZoRN8jedbmF9Sx zeLsPTdMEuGFz1hSx9AxGRhal8sR3/kgVoHPZrUckujYyRGYpYKC8QYnO9eoR+OzJEb3 cl+owpLLEcUkDKOgkO9bOfd7fFiMoRQc/korLLy1S/tZdZS/4FXG96WkYXeaZ/B+lj/w xFFvaHHJsJYNLJv0FBkFpM8HViPyE/l6PRKKalzNkxFs3QmAywevrgOVJ5JMGYviF2yq emTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=FKrS86B9; 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 c22si10790655edr.146.2020.08.16.21.07.10; Sun, 16 Aug 2020 21:07:33 -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=FKrS86B9; 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 S1726366AbgHQECt (ORCPT + 99 others); Mon, 17 Aug 2020 00:02:49 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:22945 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725765AbgHQECs (ORCPT ); Mon, 17 Aug 2020 00:02:48 -0400 X-UUID: 388c34d1e23c4b7e8cf9e40e9b2d1a37-20200817 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=pACLi6wbKi9AORYpzxtaOBRDENoBN/knrxeP2OFFLTY=; b=FKrS86B9fgmvYv0bjbxQBjEROkx4buduqT262mBjdAthGuhVBZ2kIRRPihjQ7hvv83gXmVtfjtWiPKO5dRYxVqW5s8M7RdpYIEhY/AzGvAzlVUQQKlrryrpI7gaqS2Y70nkSdnfuFdrnVJT7c6FWG49amjDE/YkC32AC8t5fo3s=; X-UUID: 388c34d1e23c4b7e8cf9e40e9b2d1a37-20200817 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 917943585; Mon, 17 Aug 2020 12:02:40 +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.1497.2; Mon, 17 Aug 2020 12:02:32 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 17 Aug 2020 12:02:33 +0800 Message-ID: <1597636953.3394.7.camel@mtkswgap22> Subject: Re: [PATCH v6 2/2] soc: mediatek: add mt6779 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: Mon, 17 Aug 2020 12:02:33 +0800 In-Reply-To: References: <1597289564-17030-1-git-send-email-neal.liu@mediatek.com> <1597289564-17030-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 SGkgQ2h1bi1LdWFuZywNCg0KT24gU2F0LCAyMDIwLTA4LTE1IGF0IDExOjAzICswODAwLCBDaHVu LUt1YW5nIEh1IHdyb3RlOg0KPiBIaSwgTmVhbDoNCj4gDQo+IE5lYWwgTGl1IDxuZWFsLmxpdU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