Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2038052ybt; Sun, 21 Jun 2020 07:21:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5VTSZ8rT4VymgrpFZVFOxH8ZXpHool9lQMoA7UCjFokFiY6M2iPfKvzZDfcVQf3e/FNEB X-Received: by 2002:a17:907:11c2:: with SMTP id va2mr12221212ejb.98.1592749266498; Sun, 21 Jun 2020 07:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592749266; cv=none; d=google.com; s=arc-20160816; b=CcSYn5FJeTx4TMrvc89ayfDw1APe44DU894JhcWaAkmqJ45SKis1kN+j9sxKjtI5Gb 0d17+eQUXfZyspFEXfXozA+/ixAH26iRBz1+PE4oPdHyGQQ7b8fyrBuRxrHJZo/N7xZB qn+hMsRqJDpJI7PL+HMlaOECURGKy3IEqAt355FpdM25QGYYfp/gejW/Unl9FSsSQz88 Yv50fCuFNLgijrrLPgiRY9hFQ7gsmO9iHYdx33oGjAJajBvpQyoB5plPqBkpRJrT0dS0 NGL4/UIVK2/fRcdKRlX1sxQen6nR2CqNmN5TlXbx9a0nuKHMVz0rcke1dRxO7270manq Qo5w== 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=5m2JuhX9blldWadMtmtkEJTjR2iulTmsLwnDRtr3KBU=; b=O1wQb1lk5dw5VjGCxm6zwTM3zX3v1t/8mRrffHczs1T7/C1AlHhvYW5TQ3hSislSKM R8qAuPfkAjnSa6SiVFvosA+8UPn8bwCIWi6o46bDaD8ggqxDF04tYJa+HQ4pZgmJP+8E zwEmYsEq2//X8ORi5uTEgM/cIuMFGknZjtpvUmBUtryqXFsoxoxPmGrXtM3OJ1voaWZF RsW41qEfTIQboCuI1S75OfXuLyHTgcN8R1iPV5P7g+0AbAxq3fWLKuQ059vvQLnZwsNX XgkEZBpAkZfDRnWzOMTX6WrlRwxkVi6tULWoILvPuCO/KLjjuudTCropHdF2I19T7u3G LCwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=iJltMxXx; 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 j12si6126583ejs.213.2020.06.21.07.20.43; Sun, 21 Jun 2020 07:21:06 -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=iJltMxXx; 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 S1730249AbgFUOSx (ORCPT + 99 others); Sun, 21 Jun 2020 10:18:53 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:53483 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730180AbgFUOSq (ORCPT ); Sun, 21 Jun 2020 10:18:46 -0400 X-UUID: fe77747e07774aab9990b85ab1a9866c-20200621 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=5m2JuhX9blldWadMtmtkEJTjR2iulTmsLwnDRtr3KBU=; b=iJltMxXx9S4xJFgnMavKDgCD80PaI/KRc1CTNSLEcreT1paOUvVpH1d2LqyEOqFs8zv+3QaxnS56QeKGZmxHrP6F/GXznor5E5K9YDGcUc6/JiNSzDfT4FfcmX7HhzmVmQzfaFiCW+6B+3kuYkHkTWK4UYSoZF+utytewb+amsI=; X-UUID: fe77747e07774aab9990b85ab1a9866c-20200621 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1670965879; Sun, 21 Jun 2020 22:18:40 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 21 Jun 2020 22:18:31 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 21 Jun 2020 22:18:31 +0800 From: Dennis YC Hsieh To: Matthias Brugger , Philipp Zabel , David Airlie , Daniel Vetter , CK Hu , Bibby Hsieh , Houlong Wei CC: , , , , , HS Liao , Dennis YC Hsieh Subject: [PATCH v1 10/11] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api Date: Sun, 21 Jun 2020 22:18:34 +0800 Message-ID: <1592749115-24158-11-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1592749115-24158-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1592749115-24158-1-git-send-email-dennis-yc.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 QWRkIGNsZWFyIHBhcmFtZXRlciB0byBsZXQgY2xpZW50IGRlY2lkZSBpZg0KZXZlbnQgc2hvdWxk IGJlIGNsZWFyIHRvIDAgYWZ0ZXIgR0NFIHJlY2VpdmUgaXQuDQ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