Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2520871pxa; Mon, 3 Aug 2020 19:08:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsYBNlp9lVomtisQVKwKzNGfOWG//cjBX4nnBCSLC9FBSr90yLHOrKo3wJVK3m6BzXyFbK X-Received: by 2002:a05:6402:1587:: with SMTP id c7mr18557926edv.213.1596506927109; Mon, 03 Aug 2020 19:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596506927; cv=none; d=google.com; s=arc-20160816; b=lwx8oLOtv+bKqXnZCErKqXlbS5kK9v+Df8Mr4gYsxSJVKit6rIPzufiOUolIDO7xNS jOgMHovnYY4SAUeW6R9t7SUDbvMlB+7EwCH8FoU6gX7UDxsTJDVgV/+xvuDiroQvYV7Q DfablBFf7DLgHcsoKo44oobmJCy8seyEM6lcAzCnX6FpsZL7WqxHmPyWNgbQPjrCwqoH Y4825Nb/JkwY1sdx50gUC3RVQbRt7P8OaspwDPcoy3HBAdkONeIKK7jZOTA7HmQujaJl gMdsUYeqXvdsi4/smglFDUBeEemx2z3wdE0J9CaLsxT4H7ExbVPGlFYjcbE5DcBHqcUc FldA== 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=fgyIQ7DsULlTTKIxA3Jlyx2v6bU2W2sQc//rLVyQcYE=; b=XOPeWDH3XjfQpIxB/8mIr+fE7ZrMok8wdZX2L1p8nzkj3kF5dsSqgyHsaerDjAoTpv 3Flh4cBw9mD5iv5izNXArEVa7FvzlhbN0bYwtK+Rj0+SLX9P3B45LX+dRlzI7HFR98ig G5bdeWLOOqVZhpBS9tlI09enR917HajOyagGsbXRAeqRkf4YVt3gENngEWv72cnmlUlt NXW5O2uHjmw8Qi3Ym0AUYPZKlUxWZgeHQrFeRFfnYVQ+cA08GB7rt0Oc+SLwe3hEatF7 2YE6xGSRekX3mTK1GUldnf4lSQJqSzuwEDvrvlKybj6iFwrCx6BUOcNo8iFaVL7wpVke 99rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Lz5xpKJ+; 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 z20si11373860ejm.732.2020.08.03.19.08.24; Mon, 03 Aug 2020 19:08: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=Lz5xpKJ+; 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 S1726398AbgHDCIU (ORCPT + 99 others); Mon, 3 Aug 2020 22:08:20 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:53493 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725877AbgHDCIT (ORCPT ); Mon, 3 Aug 2020 22:08:19 -0400 X-UUID: d56bcd55be65427baf041fcbb342cc98-20200804 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=fgyIQ7DsULlTTKIxA3Jlyx2v6bU2W2sQc//rLVyQcYE=; b=Lz5xpKJ+f85TAWAFi4aRa830BUJDuzh8wcnYLAHoehkgjDIyPbSoTJSqau/rRx2gorfIAbBs6dsz4ISHxViTXhjLl2Wj++dUERIj3thL9kkne97EF2iJzvV1i0kzBvRAxaa0EnQxcvWgiiWgKe5OATdx6sCy4EpOS9029R13peM=; X-UUID: d56bcd55be65427baf041fcbb342cc98-20200804 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1559518393; Tue, 04 Aug 2020 10:08:14 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 4 Aug 2020 10:08:12 +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; Tue, 4 Aug 2020 10:08:13 +0800 Message-ID: <1596506892.17917.2.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: Tue, 4 Aug 2020 10:08:12 +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> <1596427295.22971.20.camel@mtkswgap22> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: A1D2B56BE3B7D7DFFE750BB73D1DE48D8AD510E630AE667407D111F587BA25032000: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 T24gVHVlLCAyMDIwLTA4LTA0IGF0IDAwOjA0ICswODAwLCBDaHVuLUt1Y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