Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1440849ybh; Mon, 13 Jul 2020 20:07:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxATC2fP+BHxzvXtP0gWo/JaolLTEEVr63SsSPtQWM9dXDTfN16z0LtQ1ImJ2D2H6IyGYl6 X-Received: by 2002:a50:ed15:: with SMTP id j21mr2466519eds.246.1594696062841; Mon, 13 Jul 2020 20:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594696062; cv=none; d=google.com; s=arc-20160816; b=Z82btNNVSaCysXQhGA2Ybw7jpXM8Izw+Xnma5/4rcJhDhmCMOHo2KhH9nv30n+llIn D3HLZBrNUjSfK8FLwoDVHvW+8CeTAfaOPcSeixwecqbKpBiW8OwsPXm03WlSWXW4xF+j kw6VECOoDP8BHFga+wWFcqLWd7uraDjVtedzpCIp2HBcqw7InViU1gb6w1aI3PdWysys i810YN+DLzT911oJVhUjfXpMjMQLYZjRsqrrIoIncLsIFsdfdiq+mDdxYVL3miookLS8 tLzKWL34+2APQhBho08sHswFvy9xRCMnQKy426nC4k6g3pQID1v08sD970Ok0D4CYG5p apyQ== 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=FgffRArMkE/7KEXUhK6dJi/sJmpWs+uSsflJMwEGte0=; b=yjfVWcRIttFEHO9ZqyR9c7nMIqcpZA9cTfyFa556vWmfuZxdL9V8TeTp7o+IxdMkp1 FVT3A9qNDvfK7FtErOjlhB5jsOz+JmnKW+f7DP/geV4EGN64DnFVVkn42NtZ6qitVCUa wJw/XoSegMyC2Iif/l6Z2DX0yR/iDx4p2MqdD4uIwGRzMYL4vMfpQmXqlOdrvujaV/Zw +O3yHqxPAFOb3IsXyrmKwf5FIfJgDtfdZfYjWvpWF5EaCtQXbE6of3hmHzQEkPG5HJnR XXZs3Oqc3K+9Yg35L8Kr0opFREoE9T4Se9mG9ishWEEpQMjadbtEXO5Twe7Li5VcYeht 9r3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=RVJaPakc; 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 j8si9608844edy.211.2020.07.13.20.07.18; Mon, 13 Jul 2020 20:07:42 -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=RVJaPakc; 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 S1726859AbgGNDHF (ORCPT + 99 others); Mon, 13 Jul 2020 23:07:05 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:39975 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726435AbgGNDHE (ORCPT ); Mon, 13 Jul 2020 23:07:04 -0400 X-UUID: 44287a7313544281ad5b2461daf51a94-20200714 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=FgffRArMkE/7KEXUhK6dJi/sJmpWs+uSsflJMwEGte0=; b=RVJaPakcNXSKxBc7GF0k/PXAN/NN2OhEay0CM0gyj/mX6Tu23d4/MUe2WyXjBROAo6medcMq+qWhwGM4Ov1Ee2OkXbn2k1iojt34+gEm/i2zHKoFX/Ix2fQRbsGDFRaP8SPsEgEgsQ+lCN5THsdSjM2CRkZxhqpSlSp92iVhQl8=; X-UUID: 44287a7313544281ad5b2461daf51a94-20200714 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 769161552; Tue, 14 Jul 2020 11:06:58 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 14 Jul 2020 11:06:52 +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; Tue, 14 Jul 2020 11:06:51 +0800 Message-ID: <1594696012.26207.11.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: Tue, 14 Jul 2020 11:06:52 +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> <1594351423.4670.18.camel@mtkswgap22> <1594628844.22730.48.camel@mtkswgap22> 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 SGkgQ2h1bi1LdWFuZywNCg0KT24gTW9uLCAyMDIwLTA3LTEzIGF0IDIyOjIwICswODAwLCBDaHVu LUt1YW5nIEh1IHdyb3RlOg0KPiBIaSwgTmVhbDoNCj4gDQ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