Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp589953ybm; Thu, 28 May 2020 10:08:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+mxQdZb1KPXaWcSTpVBILXFo957VCN0XE91oexEKvrn/4bUohtmPS6g9Cc+5ogyV26KWn X-Received: by 2002:a50:ace4:: with SMTP id x91mr4155536edc.361.1590685708359; Thu, 28 May 2020 10:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590685708; cv=none; d=google.com; s=arc-20160816; b=Cswg8NEmwGofCtQiEQkSYv6ccC4nrCydhtPLFwhEDFHus/BRtwUF1nMt/KV+skfSgO r38krDRclTKyF7rBNzyythqlWEcoC3CF5OR3wPwRv6ogbYcNAwrVZmk0WqG2tCSARUgO DiwUnKvPt8uJ7XDxMlJxPvCltpCh10urJTQpacs7ztMFYzMLZCjVfZpjqjAuI7Ow0K3v BWG8sK5wIpXmDwfh91XHyxKwK2f2DEZ/FkSQ6di1YEkKvBMaiDyMkYqSJygB68pwhO5I YBuDQNj6MW8bHQ2XolCnfr0obFry4CxIHOZNybfCWUbbcbBCYQvCDf9qB0yR7wHI6I78 rFsw== 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=Ji9H1E5vbwxd7CeKqgjMppwKo2IKtgv1TNRwCWXxzlU=; b=T+WQlihqmAT8CXM9/2vuMFW8Bu3aKTuJFiJ4WVfqwcf2QLYYHboYC95d4XRwaUtHqO 9Vg6jiAvpMsFEjDynBQmo7B2UYGL+CrkZjbXOk5hxO8XQjzpreKKSRX47ytXyueRl/29 viM169OY/mobnaQ+YsddJ5jpyyZZULk+i+iMQAPfDh9X9Elco9C7sgiR1zSzMhKkWdWJ CPbCPS4vWB8OoCumtgeOxwPZqzpUOYHzScPuWYTn8S4hhtqAm+WEjGPR3PodIjzCfHM/ jIk7Zk9kwczIuqWrJrQvPBduwy/UL7VgdrbHqbp3cC/DLJPvyryLfbcf2lTOA4lCF1/T 6dug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=tyRoWPAz; 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 p21si3924265ejw.285.2020.05.28.10.08.04; Thu, 28 May 2020 10:08:28 -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=tyRoWPAz; 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 S2405430AbgE1RFs (ORCPT + 99 others); Thu, 28 May 2020 13:05:48 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:31229 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2405372AbgE1RFV (ORCPT ); Thu, 28 May 2020 13:05:21 -0400 X-UUID: c17741b5fcb1400b831acbb7300696ef-20200529 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=Ji9H1E5vbwxd7CeKqgjMppwKo2IKtgv1TNRwCWXxzlU=; b=tyRoWPAzaQf1rtT0N8NuM4Tt9wGzM0FxhdtwNRCk/Z1YSme3I9PDIA11aqacG+daWvrZdW+Hv6A+za49witPN6lZ+0I1j0wYITyJ5zx09onb71F+JD2HFxPsWmNA643E47pKbaUapHZo/bEJwZFFSqAALsJrt+aHdcM6M1CBW9Q=; X-UUID: c17741b5fcb1400b831acbb7300696ef-20200529 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 1113529576; Fri, 29 May 2020 01:05:13 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 29 May 2020 01:05:09 +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; Fri, 29 May 2020 01:05:09 +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 v6 15/16] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api Date: Fri, 29 May 2020 01:04:50 +0800 Message-ID: <1590685491-17107-16-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1590685491-17107-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1590685491-17107-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 IGJlIGNsZWFyIHRvIDAgYWZ0ZXIgR0NF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