Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp156828pxa; Wed, 26 Aug 2020 07:19:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCxle0+Z9eS/ztS/9x3AbQs5heqRfVjiMN4eMnuJiEemXxWEJxFSMvAJ+3uk5p1sieEHNZ X-Received: by 2002:a05:6402:342:: with SMTP id r2mr11570961edw.353.1598451589448; Wed, 26 Aug 2020 07:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598451589; cv=none; d=google.com; s=arc-20160816; b=dN2/VzzsP/3BeTfBtyT6n3cSyif3v2sYd8X9GDt9JDii5sYDswqlU5r38VGl4Eiuk1 OBlyFyNfod2oj/BZrEw/H/ZlXElJreuT7pxH/Nvxb9wr7DVa1SWjEzWwjFWS11d665hz E4f1AktVeTKpmWdgV24de1yttJoXvz0qPrHE62i5qiQNtjKDUEW19pUrAZgWCi2g9m5z BTW/joSPe+ppwOBDFLRNoZBqnH3/xnXnSgV/8A6GIZ8aS5XCrYBbwAGHT2tkyImMsWJB r95N3gNXeESKepJtudk4lNEUO/jDFTa9PtHKMxS2Q7wwQdU9o9mJNMIGNJoDwHAa02Bk znYQ== 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=BsdewsnKtNxlvHGi6w0j9WZgDXhixi655WU8nAWL4Fo=; b=q6SAZ4IeNHwGEX8x/qMg6+/JFsmuwgjETshpTW+kYjY4oQgYeYShC0od3pbgKsXk2R mlsiu7IJgqBj6ig9w/cMrnPU5PrQHD/qb72s3G61o57i9nV2jQ1gHbZ4/gFb2T9PD0nl rsTxRfKT5bxPlEhR3K7P+OlFHw3m9f7K/gxDDl3LFL/FqW9llzKwQP5WZF7orlD3Auz+ WPs8tiHKiSpvYpbRyKT+t8ROIcAVq3lTrz4iISXt5zuwRws0xIAmQ1qqGTINSjpmfumN PntMN8+vVWfNovsTnCj6cBiwqJBfs7VHJ+CRyRDkVATOjMPdjNs+h7bwCvRyv5rWe5q2 H8Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=G8eQ1w2a; 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 om22si1756677ejb.195.2020.08.26.07.19.25; Wed, 26 Aug 2020 07:19:49 -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=G8eQ1w2a; 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 S1728371AbgHZKAC (ORCPT + 99 others); Wed, 26 Aug 2020 06:00:02 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:40510 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727956AbgHZKAB (ORCPT ); Wed, 26 Aug 2020 06:00:01 -0400 X-UUID: bb4d4cc237e3404483a1142281530358-20200826 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=BsdewsnKtNxlvHGi6w0j9WZgDXhixi655WU8nAWL4Fo=; b=G8eQ1w2ahXO7oQ2pKSnjULYecvgP29E78DTnRBhCskQKCmjG5+BwKAnfD63BIF6K/KG+hnSXu1PBtQxIrl7XBeX5iq1uSc8liaOzTT2plzCawTAl8O3bQ7maDWrCmbkUYThdz16p/AEJf3HRTsFQ/gbYipQICXOKDDmxGUIOx4Q=; X-UUID: bb4d4cc237e3404483a1142281530358-20200826 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1540181207; Wed, 26 Aug 2020 17:59:54 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 26 Aug 2020 17:59:51 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 26 Aug 2020 17:59:51 +0800 Message-ID: <1598435993.17926.5.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 , "devicetree@vger.kernel.org" , wsd_upstream , lkml , "moderated list:ARM/Mediatek SoC support" , Linux ARM Date: Wed, 26 Aug 2020 17:59:53 +0800 In-Reply-To: <1597731644.12680.2.camel@mtkswgap22> 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> <1597718679.5704.3.camel@mtkswgap22> <1597731644.12680.2.camel@mtkswgap22> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: BCA6C1CD50C12E69013FED584194D07E0B653F42725EAD668244F6F84F3648522000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mail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