Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1411537ybh; Sun, 8 Mar 2020 03:54:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsB1akNOQ7vbQhzbCIsHyPfa0wy3TKrxMltl4VfkrTiXmMtzAqJyTsxf44mc9y0CnFjOlf4 X-Received: by 2002:a9d:66d1:: with SMTP id t17mr8840703otm.235.1583664850141; Sun, 08 Mar 2020 03:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583664850; cv=none; d=google.com; s=arc-20160816; b=WR/V04RAOMoBK4oO9/eIIcwx3zOxGEnlrM7kNQdrzhxboWOOaRrIPzHHvqZ2ba1pfi MroY+jrBoLBtW2liLhAqE9O/bXrpZPQgFV+YuIyeHBHdljRH9wNJlCATQfMzcwf6Twb9 OjGNhTtmHLA3Hn4alKrQ1sxF74weNXV9JTjfkVub3klWkslbkrYOQ+MQh+cgBOyd9d82 o/85tyflgujyfY8Lyp6YTVaW3AfnOBg/awvx5m9yASVoyUpp/nWKRi7g3/V7UtIOPyAR jLn0UHonDj6GycmVLgIW8j3oan9yLTBxJx3n6V3u8Rrbp2thDnTr9AiO1MnSSOgA9u63 Yrkg== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=CvTPJvmtqN1E8WLI9vWa00KK/YVMkDvmUTHUqyoLW4s=; b=W2mOG3qdShZDSO1mbzduHyMrYiWC/WO9zVM0TKQtzF46sKzF5Nex/mX7u4JroXIJNx 9xKhAKLyWfGSLfyAJL2a48chu3hzVN62+UWHz87pBrGXCjzFtEeai8QYAJHdh9+EywSd bsdGmKTcP1FSCqJwdMVBYkFAXEyLxPK0L1m461IOKj4mD6G0zKdcVDHLn9/mKJ67vUek /GpsKw7QA4JU5c8PZ920WQpyoiEg6zG1vFl/91CelVOkFXAB2r5WYTJC7LD05pGxpMVi Cgm6z1Ccxfr58NlvbGA5F59QJsnGoSTp7AHalApR3Dg1FJr7GLs+/Z/+S0cRYmO6pccL S40Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=NpgtF6Mk; 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 m11si4363964otl.297.2020.03.08.03.53.46; Sun, 08 Mar 2020 03:54:10 -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=NpgtF6Mk; 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 S1726548AbgCHKxQ (ORCPT + 99 others); Sun, 8 Mar 2020 06:53:16 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:60581 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726298AbgCHKxO (ORCPT ); Sun, 8 Mar 2020 06:53:14 -0400 X-UUID: 25a511fc1dcf41e9844a0cd7d3517c7b-20200308 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=CvTPJvmtqN1E8WLI9vWa00KK/YVMkDvmUTHUqyoLW4s=; b=NpgtF6MkxxZaCiiKjB3ctxCDiXFxd3UY6uHqHu3AjZfohsq3sjgVERXN4Id0rnI3Fv32MIQdoVzQBvjllNAJHMIwsYxxNGFKjzHYs8o6ruC3hTCWsw4EmFc5GhocrnE4UnxQPyeXFjW1Od9/J1U7Rq9DHHPT6Wpi3q/+uLdR6Kk=; X-UUID: 25a511fc1dcf41e9844a0cd7d3517c7b-20200308 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 1949027757; Sun, 08 Mar 2020 18:53:06 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 8 Mar 2020 18:51:42 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sun, 8 Mar 2020 18:52:59 +0800 From: Dennis YC Hsieh To: Rob Herring , Mark Rutland , Matthias Brugger , Jassi Brar , Philipp Zabel , David Airlie , Daniel Vetter CC: , , , , , Bibby Hsieh , CK Hu , Houlong Wei , , HS Liao , Dennis YC Hsieh Subject: [PATCH v5 12/13] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api Date: Sun, 8 Mar 2020 18:52:54 +0800 Message-ID: <1583664775-19382-13-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1583664775-19382-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1583664775-19382-1-git-send-email-dennis-yc.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: E3435D08E6740123CC940912060538D8D2835AD76DD5089F1A698B1829C76E2E2000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-k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