Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp460749ybs; Sun, 24 May 2020 10:37:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykR2vHCr7gSMGi75pUVXRGQNz20T8xNlEGtiWVopuOqGLL7WUjhzUMYnWD5W7LZZ2FOuTs X-Received: by 2002:a50:8750:: with SMTP id 16mr11574977edv.309.1590341859684; Sun, 24 May 2020 10:37:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590341859; cv=none; d=google.com; s=arc-20160816; b=sScahJv2Z/qV3LsFIo0C5JCRW9zhs3bFdHpJMTJVU4ueTZBXi4ifgMR5F5PMyxs8ty TyLZbCVJzWz8Mooz4YgMDK6WKLM91vVRGwtk91L6jOoSkqBsZC6rOVMd7fUu/smTYEnt eCBtVY+PT6XzBIsGjkfaEyqbGpnSXMnDEt8yICbPmqfwDFfmSN5n/ujv09JLsN2gCVOa Oe+TRcvJSsX7oE1hu1f8AwYK+FQHWDyzhR826mA+huYe+0T19IOT8PdZ+UPKUwjw3f7h X5j44IxlfFl2JDGqGnXQ3qNUGR3/JCtg2pAUb55HTJVJe4o0Cn3c9T4jXHE6KVk3Qnz3 gvTA== 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=NRUfXSdH1Y0b7w27gA4nSFgrpT/xOAe4KYnqqpyaLVw=; b=lT/yIUDELXMvF13El7YuVJP3z0C5zbjmwfXPKedPtcg4iQrHWn6UHkbX0INB4s8srt b8ZOdkbOkSroVm1Re5qneJ2+KYGWha8Ik1qGTjm0ypWIJHUfmOmEukty3C2ri/vyBUFp OyJFHeXo7OIFVnk2kFFFdwYWnI5CpVQ2NgqNgMzqDG1cgapP0a5l+DkATnKhIlTRRMDX tvCmpu7ZX2wrfSGIJwq15PSCH60q53Z48KHD3kZTDgvpOFY8muArkVWeqc7UB+aDv7sy uF+sFGbkssOgDt8qIDbYjfabktDPPuhKUtS2iTv2Kvv30jYAZlRzYvVbzbjN02nBS9vG Wp5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=X8VpmNW+; 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 lr24si8088739ejb.383.2020.05.24.10.37.16; Sun, 24 May 2020 10:37:39 -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=X8VpmNW+; 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 S2387860AbgEXRdB (ORCPT + 99 others); Sun, 24 May 2020 13:33:01 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:54155 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387656AbgEXRdA (ORCPT ); Sun, 24 May 2020 13:33:00 -0400 X-UUID: efaeabddf4da4df19a9e277644f1f120-20200525 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=NRUfXSdH1Y0b7w27gA4nSFgrpT/xOAe4KYnqqpyaLVw=; b=X8VpmNW+J3DdjGJswe/ENk/xqoBwJxero0pFRH8kfuauOXM/eBBjB04WwCfCwJaG8eZGTtwfZzRg86lipVGLtzWW5AtBwNCA3vA2kdZFCTktzg77DOHe+LMcxaLnmd0KA2iX5F81KvKt19XeOLZk1Db2W3DPSVNqMhmNR4F5/os=; X-UUID: efaeabddf4da4df19a9e277644f1f120-20200525 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 1232601585; Mon, 25 May 2020 01:32:55 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 25 May 2020 01:32:50 +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; Mon, 25 May 2020 01:32:50 +0800 Message-ID: <1590341574.31286.21.camel@mtkswgap22> Subject: Re: [PATCH v5 12/13] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api From: Dennis-YC Hsieh To: Matthias Brugger CC: Rob Herring , Mark Rutland , Jassi Brar , Philipp Zabel , David Airlie , Daniel Vetter , , , , , , Bibby Hsieh , CK Hu , Houlong Wei , , HS Liao Date: Mon, 25 May 2020 01:32:54 +0800 In-Reply-To: <6029e0eb-70fa-825f-7fd4-f5127384bd8d@gmail.com> References: <1583664775-19382-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1583664775-19382-13-git-send-email-dennis-yc.hsieh@mediatek.com> <6029e0eb-70fa-825f-7fd4-f5127384bd8d@gmail.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 SGkgTWF0dGhpYXMsDQoNClRoYW5rcyBmb3IgeW91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