Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1146780ybt; Tue, 7 Jul 2020 08:47:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwF8Qb32utwS+moxd+1xxStuUuM+/FHHgUnXFDAgJZt6g+yAgSpVbWB71ur4HGN3N/0sNcK X-Received: by 2002:a17:906:1751:: with SMTP id d17mr31195555eje.140.1594136828107; Tue, 07 Jul 2020 08:47:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594136828; cv=none; d=google.com; s=arc-20160816; b=NYkRbpxnbrJlCV6QOyH2F37E/FsMeCpAYycs+hb2+GtDknobJeVC2/7UeBY49X7jBz eD6+1m6pF2ODJzxth4iFoqXnVX7cqTPPNuVQnUo+IrhQrhUecjZdOcM9Cy9wxgW+7lPZ Xk8WA5rVNyk0ThmAjcljv/GveiFtDGJ1n27knSDwoIyDo4kyMeRoGankzlrH+l23WAWb 21nPao2rYhtRue5Ya+Ah9gQLofn//saMBOwQoTkk1o2tgqeHAqI6M6tObez88ZXRdfGP SfoPMOKt+tpP8vrSw6yfnCm9YZCFdVd8dzI4vKoA0xP6xFgifV0vrqXvgybG+JSSKvSr 7Wmw== 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=3FlNZdINnBEnXf9Fz8xF8oCrmMoDe3gvspWZzkBEGQA=; b=aSs3mNpjvcxVmuyf2k2sWqxrBhcAu5RVR0HoeQclPj9/rRwM0Bn3qPEXeJd/bDnmEP vXJ10zkkKaarPZowZKSzNS8DBJSeFePD575CBHes9vG5mqQy4jV0RTJHBs9TJulpUBOk npdznarnLAi5L7JCRmUm3Lrh/mJsyR9SIXeD3qLjwsHbd7NsSVR6EO9MfXuwZ7UGuFnv dc7Cj0O5vk9XL84ZvK36k6VBM96Eu07MGIVpiwvGFki4nYoYvP6I5uGEEFhldlBJOQk4 fIXVDThrWH9bP5F5Z1scSZkKwVVizdc2MlWJS7ozy/srz7zhJxIf/HvDyHBZzf9Csezx bYdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="C/eo/y+P"; 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 v28si17124449edi.456.2020.07.07.08.46.45; Tue, 07 Jul 2020 08:47:08 -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="C/eo/y+P"; 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 S1728894AbgGGPqd (ORCPT + 99 others); Tue, 7 Jul 2020 11:46:33 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:52321 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728495AbgGGPqc (ORCPT ); Tue, 7 Jul 2020 11:46:32 -0400 X-UUID: 0be132844e2548488f17290144977874-20200707 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=3FlNZdINnBEnXf9Fz8xF8oCrmMoDe3gvspWZzkBEGQA=; b=C/eo/y+PsTiY4BgfYyh8k8uvIQ3ChsYSXkgyXz1GtaEwiRRa95wiTUDNVh4w8hDliNPBOoqgHARHCb+zBwkZKAzBNx8AAQGa+QTffEF7ZFqe1v7aZowtIJnA3tRzRyh0ahUHEHWCHk1McqbndVClPq6TE5qkf4nj21k76q9h2zs=; X-UUID: 0be132844e2548488f17290144977874-20200707 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 400272969; Tue, 07 Jul 2020 23:46:28 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 7 Jul 2020 23:46:24 +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; Tue, 7 Jul 2020 23:46:25 +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 v3 8/9] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api Date: Tue, 7 Jul 2020 23:45:13 +0800 Message-ID: <1594136714-11650-9-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1594136714-11650-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1594136714-11650-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 IGJlIGNsZWFyIHRvIDAgYWZ0ZXIgR0NFIHJlY2VpdmUg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