Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2776511pxa; Mon, 17 Aug 2020 19:45:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeDxJMk0eNOri3hH8Ra1nM1H7qGZGyfde7RpR5x76SVNHWZ/pNtjvvu2Oh4ZjKdIlY1r8/ X-Received: by 2002:a05:6402:3110:: with SMTP id dc16mr18158037edb.218.1597718747210; Mon, 17 Aug 2020 19:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597718747; cv=none; d=google.com; s=arc-20160816; b=EMHZW9Tb6G6PcVRKBx+j+wpRMIHSK2iTLxt+nUK2sgP9pKE81Rm+e1ht4JgY5zPI2f q0zPXYOIkHFCI3+vA3Q6ZlHT41dF0+NM+xIfbvt5f2CccETHZkuF6hD2LNERYEWSk7CH o87NMw5OzfZslFPSSM+6nKkEG8Qt40DpQHlJDs2/J8GteOgFImLRPONrt2R273xihdbD BlUhgDzjyj1DkX9PeldJTTIuG+qH15H5+ZnCIYbWp4vTliPHhlNYl/sgurOCvGSCDi/b pqGCdivefIU5I18Buvl+zJDqD7gADWW9PCUgwzjiCvPPCD+RQR8oTfAmGrjrATOahnQT 95Pg== 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=en2ljHqsnZ/VPKCY8bno0iSD5K5hgy3QPkxO0IChSmg=; b=rj6bzaFMQrU03vHHeLO81GVR9+euXrzdQFA2oEZrUMDn0dBM6GegEfXsSl7wL8KfNM RDsZ6U99lJDPkWgHl/6IGHaE1RfvJFYGnKC3HPIlKsY4NkiadZmBCwaET2bMZW/U5bDB RFwdlitvBitSX2RFrQ7hhJJy/L80GC44oRssOu9lpGLn7jwSlDJ9cP2nNQ8H3As+jScb wTU1wk/jsnpDvdNkYRGu5pYTASolPPpjjrZN04xqVTOjq4SzHtcOeQplp46YH/gABCCc FkYyD2w1DnRe7FwygXK2t0mWidA/XQPloreLI10732ukD7xRqtOD3m8udWUj+pcrwNac XViQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rok244st; 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 j7si13689233ejm.538.2020.08.17.19.45.23; Mon, 17 Aug 2020 19:45:47 -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=rok244st; 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 S1726381AbgHRCos (ORCPT + 99 others); Mon, 17 Aug 2020 22:44:48 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:35656 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726360AbgHRCos (ORCPT ); Mon, 17 Aug 2020 22:44:48 -0400 X-UUID: 47f689674dcb4c12b389755fc9f029c9-20200818 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=en2ljHqsnZ/VPKCY8bno0iSD5K5hgy3QPkxO0IChSmg=; b=rok244stEazfl4qerr1v9g4k3UYxTeAZcPDYBhjgRv9UPY+L6Wj9+qGLhKiOWfaaoBTm7IXJSaFPe1euF19oPeVib81AMaZaKTmOMGYNp21GlCKr4JzvFhO1BUJ62CHcDluNDExKdmxQvWVBI5l90el7JWox067OFOjLx0lznek=; X-UUID: 47f689674dcb4c12b389755fc9f029c9-20200818 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1080151321; Tue, 18 Aug 2020 10:44:40 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 18 Aug 2020 10:44:38 +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; Tue, 18 Aug 2020 10:44:38 +0800 Message-ID: <1597718679.5704.3.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: Tue, 18 Aug 2020 10:44:39 +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> <1597636953.3394.7.camel@mtkswgap22> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: 456BB4DDEFAE25A5B5D0432379B20AE28B9A6A79FB0FF20C0668B7C7963BB0EC2000:8 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 SGkgQ2h1bi1LdWFuZywNCg0KT24gTW9uLCAyMDIwLTA4LTE3IGF0IDIzOjEzICswODAwLCBDaHVu LUt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