Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3276595pxk; Mon, 21 Sep 2020 09:28:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz96auaEUs6UHzpsePs/eT2KDTT9SCfheGtupMGGCAy5iNl5KGdKKAgRb0kjF8jjh26wcUo X-Received: by 2002:a17:906:4902:: with SMTP id b2mr279642ejq.208.1600705711353; Mon, 21 Sep 2020 09:28:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600705711; cv=none; d=google.com; s=arc-20160816; b=D/QmxeC4X8aAB1b2Ihjd5KRj8sLRmttxxkEPgoc0YKejSGLUU6bGpVZDW5V1aGtSr+ lmz2YZveDD/4Z9Gf2KBpST7RDz43NYQce/OPl9CmJ1JxI/+jz9fkFaxMhg2nK0N+qZ43 VkamGE6LIPlXrKZ352VGP2G/RRo1KbNtbYpx8q8xxiUKZo0+Q1i95SBzaZYoGqbl8/3j /YrZsMpznomEVb14aKprSA6m6dmKfleuXsX6N4p5SpVnJUxFpJgErnqEcBRZowciw2AY FlQZpPoBWyVhWTqFDS86syrSngY9epsLkcjV4OfG0ZC3xKP4P0+yCdZ9Wjv7iuGkqwYt vrpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=Wqur0A/O4zCVq+R1isOtEyenroFb1CxOmxqgph5t7K8=; b=fnAnnkD29UKf6iKsFim/F/i04d1axKDZtBcNdwDI/kV7fhTpUjeYISQX0HER+spPzG HkHy0FnZARFKYg1FRP/qP8ir4MCkbbaWN5RimTEoB/RHmgc43yHJPoG3psss6m/bs+gb oXb3eCVOjBRw13kgDuOkCCOwl3ceBRmfUsDZVYElinyN7tJQLgX39Uev9980c8wmfmWC SSrxIDT0f5dP1ThU3f+DA9V4Eq9bqKyw33WMV+C9J059wIcu44qC9tc6VozqO7P7CJ3v 87QoAKITGeQWgtMddrASQHZ8oGer/Z1k2woXaB7WoEJ4LK2pl26ymUOBw/n/WZmP/NWu YZoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="QKd/jSJr"; 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 d17si8303394edx.591.2020.09.21.09.28.06; Mon, 21 Sep 2020 09:28:31 -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="QKd/jSJr"; 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 S1728425AbgIUQZ4 (ORCPT + 99 others); Mon, 21 Sep 2020 12:25:56 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:41748 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726795AbgIUQZx (ORCPT ); Mon, 21 Sep 2020 12:25:53 -0400 X-UUID: 4525052a9fc94ad78410c8aa92d2a3a3-20200922 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=Wqur0A/O4zCVq+R1isOtEyenroFb1CxOmxqgph5t7K8=; b=QKd/jSJrHQBWbNJbHDv/cRTkTgSNh2JEb4G1Hu0mGc4J+To8yClG33Thd1Pp/TielJ5SNhNKT4MgQ/Y/p8yiCbU6wkSUZ+TlPI3ydIJ3eXwywfEkmKXvebgW22XitMSobzHWcFM9osPE9WgPhChiuLEVcLAEmFbQEEELxysu+Lo=; X-UUID: 4525052a9fc94ad78410c8aa92d2a3a3-20200922 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2094375674; Tue, 22 Sep 2020 00:25:46 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 22 Sep 2020 00:25:42 +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; Tue, 22 Sep 2020 00:25:43 +0800 Message-ID: <1600705544.26565.0.camel@mtkswgap22> Subject: Re: [PATCH v3 8/9] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api From: Dennis-YC Hsieh To: Matthias Brugger CC: Philipp Zabel , David Airlie , Daniel Vetter , CK Hu , Bibby Hsieh , Houlong Wei , , , , , , HS Liao Date: Tue, 22 Sep 2020 00:25:44 +0800 In-Reply-To: <728ace99-e5e6-f8bf-1687-e9b51dfae8d7@gmail.com> References: <1594136714-11650-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1594136714-11650-9-git-send-email-dennis-yc.hsieh@mediatek.com> <728ace99-e5e6-f8bf-1687-e9b51dfae8d7@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: CF75B351C78BB23BFE95C06D5BB530850A195FB215A3BAA5AF935BDF06F4FA5B2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mail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