Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2006247ybh; Sun, 8 Mar 2020 19:21:39 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuH3o7Estrj/9BBd8JrHXju87A5OSaxIKEKTUOlNZMayS3IX8eEUfaGmsNLxzstVl72kRU9 X-Received: by 2002:a9d:5e06:: with SMTP id d6mr12040301oti.311.1583720499667; Sun, 08 Mar 2020 19:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583720499; cv=none; d=google.com; s=arc-20160816; b=al0defIgTn3eAV9Wr1GVJzEJwjOfV7+KcQRTX+pBEV81fPaIZlxnHRhZker/XpRczP wWX/N6NExjvjWJfG2l2faNnWRsIns5JvmKcirperNotFpO7bFzxyizOfMw795MVra6n7 aFzcmCvbLkDAA2tuWuzcgbjetL/WhoFUl4T/3emUzP79+SLQvlviCqhASrYBqA+ae/TU 258MhdTS/42crZaie9c3fo+AHj5+kX2NLDT7PurLtAbsszyeTYXTdgq7vtmEixfPSFkq f3/rCNQpRrVBJA+5lcSnqLKQJHdC+9IPV3hrCbdLApIfQ98HUMnP/33t8fDQ5fuCVeQI k6Qw== 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=17MyIh5es8+oWEfzyMzpzHwqTieeb22zUb4UUI66VDE=; b=h3waCSuRatMzi0Ggatw/DGv7JsqdeED6F6AEotJiklCm5QRNHY3gFI9ry3iarzkfUK s/U8vJ+1E28YBCSjROuLI+juXW+EmO/QflZP+Gn1+NyrmSnGAyg8/ABru+XgRH37jr+L lOMkkIUwXfZ04eNJfHpsVSvBOqxQYnSJn+V9QZdQyxM2cE+4kyUJEyzGEcjWdjl0KzZK 3ThSK4vzsblWtfne+OdPv6asy+tZKBmdg5QK2JLEy+TWZ/h1R6QXRMFs5cAYF4tPf80V Kige+KpAFekTJ37BTO9sycLJ5UVbRs934LBLKjDg4WuEryWrvsJv3ub+jLGHzf8JwV4z kXxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=GsbEro2Q; 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 l75si988017oig.59.2020.03.08.19.21.28; Sun, 08 Mar 2020 19:21:39 -0700 (PDT) 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=GsbEro2Q; 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 S1726926AbgCICHo (ORCPT + 99 others); Sun, 8 Mar 2020 22:07:44 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:54618 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726346AbgCICHo (ORCPT ); Sun, 8 Mar 2020 22:07:44 -0400 X-UUID: e2fedb98a27a4aa7807276ff00b02162-20200309 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=17MyIh5es8+oWEfzyMzpzHwqTieeb22zUb4UUI66VDE=; b=GsbEro2QROKwbTUJcqFz6G+vVTLniRBvF+e8J4Z9Qqk/BYiixF5YhWtxizwGfSMXOre02+Wh99mivEJB5iPmzRdP5Dr6kJ9r4bbuv6CMA4bEdilrsllEaj3bEzXIYippAVPJLht7V0yNK8bRg4fiQN09RvTWN5tBZEKjlAodfjA=; X-UUID: e2fedb98a27a4aa7807276ff00b02162-20200309 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 356268346; Mon, 09 Mar 2020 10:07:40 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 9 Mar 2020 10:08:45 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 9 Mar 2020 10:07:36 +0800 Message-ID: <1583719659.28331.1.camel@mtksdaap41> Subject: Re: [PATCH v5 12/13] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api From: CK Hu To: Dennis YC Hsieh CC: Rob Herring , Mark Rutland , Matthias Brugger , Jassi Brar , Philipp Zabel , "David Airlie" , Daniel Vetter , , , , , , Bibby Hsieh , Houlong Wei , , HS Liao Date: Mon, 9 Mar 2020 10:07:39 +0800 In-Reply-To: <1583664775-19382-13-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1583664775-19382-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1583664775-19382-13-git-send-email-dennis-yc.hsieh@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 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 SGksIERlbm5pczoNCg0KT24gU3VuLCAyMDIwLTAzLTA4IGF0IDE4OjUyICswODAwLCBEZW5uaXMg WUMgSHN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