Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2386998ybg; Thu, 30 Jul 2020 19:53:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0oIQjE9WTnMCqsetCc7LFT2N3fpxXjsAQvQwoNAqTBMyK8u3NbXlP6el7x804GZHmN33x X-Received: by 2002:a17:906:7017:: with SMTP id n23mr1974750ejj.262.1596164021357; Thu, 30 Jul 2020 19:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596164021; cv=none; d=google.com; s=arc-20160816; b=wfGOo5ZN+pglWYz7i5qz1JkzN5eYuFGmulp52YSyFhtB+PG/pz8qdj3nas3M101jcX xQiThrgtibQNdaNE5cX1NwqgSTzHv5nRRn6FGFGKy4Vl9fjU53Zq4lN8lQLFBXk1g16J rnEVxbj8a7iHV9ia7AmcqnchYIDh8WKCtSnOcGxRHL/5hOWTat6zs3shXzFPQugjUd9L q5B21Z87aJ/yiqdaPfupVM1QA5Pal1PEBx0f0xo2jEIqFVwFAeSBAucGwcIs/SpVKYn3 V2/20CRcPiw5UEzlr7ZorXR+OLqr9Sl6dUeMOpJwr0booIQe/4Bf/O0tz2kP1k2/BZHX toaQ== 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=cFIZ7AH8wP53gxkMXNCyFCEQBG9OwGZTiAZ/fcp/WMM=; b=nmTBXoPB5JCcfiRw3cJ7G15hlYoRS6zXKfrmpvh0SzOjdjPVUWUgh8BT08Lj6oyj6t bW5cilz50ulZfF7YmOocLOy+pGL6QYzUVK99yt9vOM1B7ccRL9e0HA8k9ZyyEmGAqrh0 0zPcefm20X39kA6l9GfeICztdu/go/lsfZTxqgJQIOLj+pPa9bpoVQEQ9EGMdE7sXi1T tcxAQnQrEjZYcgfQE9O9U1k17NJCjo2wjWe84d6TMfVlMF3+n1qetOhVa3PoyVLfEPg9 6VJhbQZfmCrnma5CqRZWLIPZXuXaMrAE46OY/SvW/aSXUJ/HgKPG3UVcy69rDJtwvink 1OKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="kia3kxh/"; 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 cw21si4012204edb.600.2020.07.30.19.53.18; Thu, 30 Jul 2020 19:53:41 -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="kia3kxh/"; 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 S1731234AbgGaCwz (ORCPT + 99 others); Thu, 30 Jul 2020 22:52:55 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:47927 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731124AbgGaCwz (ORCPT ); Thu, 30 Jul 2020 22:52:55 -0400 X-UUID: e8de2b2ae81e483e9073d83b4e937833-20200731 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=cFIZ7AH8wP53gxkMXNCyFCEQBG9OwGZTiAZ/fcp/WMM=; b=kia3kxh/xLsY5o/LAnggUes2TxPWk6hh7M5Ketp2D/F3ooE+WYlo03VvAChdW63y/QhV5/pLE5BtARSuKGAh6FiVorWlJ0JRCn24JZfctEQIRhqeO3Rg3pgPi/RO1oHDKnMV66Uykf1mfV6VAsWtaJCZE3mGnZYGL9gepb3MdOY=; X-UUID: e8de2b2ae81e483e9073d83b4e937833-20200731 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 1583896948; Fri, 31 Jul 2020 10:52:51 +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; Fri, 31 Jul 2020 10:52:48 +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; Fri, 31 Jul 2020 10:52:50 +0800 Message-ID: <1596163970.3932.24.camel@mtkswgap22> Subject: Re: [PATCH v4 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, 31 Jul 2020 10:52:50 +0800 In-Reply-To: References: <1596010690-13178-1-git-send-email-neal.liu@mediatek.com> <1596010690-13178-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-TM-SNTS-SMTP: DEF49C35DD5F7474C2C42C04E1153A4CCCB758172807FE52D0D1CF94F024EAA82000: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 SGkgQ2h1bi1LdWFuZywNCg0KT24gRnJpLCAyMDIwLTA3LTMxIGF0IDAwOjE0ICswODAwLCBDaHV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