Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp214558ybt; Thu, 9 Jul 2020 20:25:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaZUqWZ7HoOlZ30vSh50ER+fTcIYUAiKE3ykmzeYogW6+OwmnHZOHA3KaROtpW1cI6ciZn X-Received: by 2002:aa7:dc46:: with SMTP id g6mr70347965edu.194.1594351507380; Thu, 09 Jul 2020 20:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594351507; cv=none; d=google.com; s=arc-20160816; b=huQltGzyI7Ua7RVrI3EOFk1EOwgGInXvEnJWwTGE5Ja5/tGJ4ob50PPf0l99Q2PPA5 20URmlQnNEYO6tt2zHopLdHMSacTEsl7dBDoz2ZprtuNy7VlUU8ZcAZpna0OKWDx371H sFE0OA2JiR0xaJJBSmCSxdTcq7SHwbMBjIEHdbKP4zY0XTe8lqk/UPyeeNV7LCGXtHxL aAn+mZj4sjgQAlWK/v5wl/JS+a3Ac7mgbL5pRkX6zNpPxJrxmmW6sAoOZ00t1x+Bc7zq NBfb04rwwHa1GHvn3t5yxZkO9nL8emG7N/s5JVOD4gZPQABokeCi6EZgezKJdz++Ro/3 h62A== 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=aVokGLS8swWtFu2TZi5OW5HHpT2IA0OUoFqf4tEbDBo=; b=yxK0Xk/oJHDwBk8qSA2ga396fQx6rSv2bVyDM3tviEsYLZJBcAZSZIWEbCkpkRzDuV 3fO3hXglJzibiWgy4+PhV52DpR8yLeaf6JNC0AhtKQ3oFVgDha4Hnzbd7L9JD8UKi+uv fmulQzn9l2ueo9H8oHuje1qd336DvdSzEcpofglXnX/VK/vaPn79Vi/amxC/xja+g2Bl Sg7mKPzrmepmQP1TgVJEiH3R1J5DB53FHe/Bk49h8G/4zZ6BOGy+MsndrxIheaaBL3Jm 28wZ50Sc0XOy/WHLshlDo6Xbmvzt7/NYF+QkxrYG+eZ0XKDVorvJm8MhdB1YE1L7APg7 RT7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="DwJIium/"; 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 n7si3183437ejk.154.2020.07.09.20.24.45; Thu, 09 Jul 2020 20:25:07 -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="DwJIium/"; 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 S1726913AbgGJDXs (ORCPT + 99 others); Thu, 9 Jul 2020 23:23:48 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:3041 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726495AbgGJDXr (ORCPT ); Thu, 9 Jul 2020 23:23:47 -0400 X-UUID: 9e78b155131542698fe7c697b3c11a51-20200710 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=aVokGLS8swWtFu2TZi5OW5HHpT2IA0OUoFqf4tEbDBo=; b=DwJIium/PwrDuzlJmWByXQFyM3iXeRpfDrUmFQFq3lRg+DazSMB3M+Yq7Ri/J+GQKRD78UFtq31KGa2f+w+PgFEW6PtDr0hYgclr1SNtTogAG0Mr+lSozf8emp0XG7TANl++r5EeyU3X7G/NpRRLbEKcy9WMn03T3khVXOblRlU=; X-UUID: 9e78b155131542698fe7c697b3c11a51-20200710 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 485038827; Fri, 10 Jul 2020 11:23:44 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Jul 2020 11:23:42 +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; Fri, 10 Jul 2020 11:23:43 +0800 Message-ID: <1594351423.4670.18.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: Fri, 10 Jul 2020 11:23:43 +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> 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 SGkgQ2h1bi1LdWFuZywNCg0KVGhhbmtzIGZvciB5b3VyIHJldmlldy4NCg0KT24gVGh1LCAyMDIw LTA3LTA5IGF0IDIxOjAxICswODAwLCBDaHVuLUt1YW5nIEh1IHdyb3RlOg0KPiBIaSwgTmVh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