Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp256291ybl; Wed, 11 Dec 2019 17:43:56 -0800 (PST) X-Google-Smtp-Source: APXvYqxckNItunUlqCvs0R128H9H57S60ZItBs4Tr93W77slIqV3BwkhCImrp5DavUi293X9d8da X-Received: by 2002:a9d:4d01:: with SMTP id n1mr4874949otf.245.1576115036773; Wed, 11 Dec 2019 17:43:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576115036; cv=none; d=google.com; s=arc-20160816; b=kIlovjPGYXt9LpSA1Fx+BUDh253pPKeK/QlQxrY33lDpCdO+zuQL6izjlqype863pV 9qsd2lOwBlvGkC79jv9YdV5S6lFGCXYeRD2LnQaV3HNYRzotUXQoS8U9hccQ5egBos35 weamUOeKXZGLIv/jmZ7OIVNiNPFjulcul26Qn9ABWU5vxZDMN7qT0wengnKmZsmsEmTA X6n0u09y8hnMUnPScs+3i+HhDlY2TWoHOkx7whxCf1IVfno4zw3K/JfWGJVh3KnewGmm j8ZKA+fzmOD1gJpycOjSsHdiam1SddtjHHObksYTljfji/ynN3zuddaiG2NmYtKTM6cD Bb8Q== 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=phDsoiIyJCBnu4asobwbcjbE3yzCEaKCfb7CC35r6aw=; b=Nd0ZFu5uMWBuqbBOQNgNEb/vNBKpBR6pwkYd9BCG5dphZ5j1w8KfkuK0XOeE/P01r/ PkA4HdvZhZR4xOkJHNN1BLEUw++1YVBQR7QOzTIXI8tnBCTD/XWeTXXQuyhP94pxTfNu MEq3hSxGC2yh9osiuD52bV6zanFzyfFTH4Y6jLTSyHIBDz9gjHrJ1hjo61pnYKPoqx++ uuutQg0OxTbfHfcT/aSpsB+B6n1WfFjuqQ90mBf71A3BFGO8r3+VWyU1dvgbxhVaYwI/ TZqbI9pm7kJihss8GnUKHf6ZFdN6EWlUtSBP2IBN7zfDB6Qm6Erwkui7+6qouLoVoW8d DRhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=m7AdmdtF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d133si2201576oif.206.2019.12.11.17.43.44; Wed, 11 Dec 2019 17:43:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=m7AdmdtF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727589AbfLLBnD (ORCPT + 99 others); Wed, 11 Dec 2019 20:43:03 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:8618 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727649AbfLLBnB (ORCPT ); Wed, 11 Dec 2019 20:43:01 -0500 X-UUID: 2852b13916f540a09307fbd4b35acc9d-20191212 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=phDsoiIyJCBnu4asobwbcjbE3yzCEaKCfb7CC35r6aw=; b=m7AdmdtFaKS/md5+QEqjxR+L5OrA0PxvbrRYKDbLwgwpLWcWikGGq3iufCjmEwA7T04RZsOLN/ZmekFiDS8KcqM7AVdjde+n/wwGGFbQwOeybnsvmpXcVpnHAiblQPWheK2VyIBNyrWsobV/j7bTz/gz+xtNTKVV+C+D641OLls=; X-UUID: 2852b13916f540a09307fbd4b35acc9d-20191212 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1915842643; Thu, 12 Dec 2019 09:42:56 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 12 Dec 2019 09:42:35 +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.1395.4 via Frontend Transport; Thu, 12 Dec 2019 09:42:51 +0800 Message-ID: <1576114975.17653.16.camel@mtkswgap22> Subject: Re: [PATCH v2 13/14] soc: mediatek: cmdq: add wait no clear event function From: Dennis-YC Hsieh To: CK Hu CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , Bibby Hsieh , Houlong Wei , Date: Thu, 12 Dec 2019 09:42:55 +0800 In-Reply-To: <1576029887.19653.17.camel@mtksdaap41> References: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1574819937-6246-15-git-send-email-dennis-yc.hsieh@mediatek.com> <1576029887.19653.17.camel@mtksdaap41> 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 T24gV2VkLCAyMDE5LTEyLTExIGF0IDEwOjA0ICswODAwLCBDSyBIdSB3cm90ZToNCj4gSGksIERl bm5pczoNCj4gDQo+IE9uIFdlZCwgMjAxOS0xMS0yNyBhd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