Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3297529ybf; Tue, 3 Mar 2020 03:24:20 -0800 (PST) X-Google-Smtp-Source: ADFU+vuOvTcagSo6ULa44L6WRNdlLjgXukOaQmVH3qrO2sU0WbLrf3M1D5E8iLjh/yJB56NGZtM+ X-Received: by 2002:aca:2b0a:: with SMTP id i10mr2107651oik.137.1583234660247; Tue, 03 Mar 2020 03:24:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583234660; cv=none; d=google.com; s=arc-20160816; b=heEpunmbwYzJLL/aEvslhnts872pDgbMiA0dgSersf7DZS5NvYbKHmco1WGGdcioyk Cwp7A3S5l2cRQAzwbFY1G5LIYYZEt5whvF2FkA80XY0TqpkQMyl+ypBFdsTwgbq+C3ge TowasPZjnVocWoe9eUs75/pqPLh3MXoHh6+nBwAKjGfONHAAxGLeyuoJHo1zYZUeg1HM Gi9s2s3VN+9N2M0Oua/dY86hE0JBk101Z1PVd/EBbkYfDY0zpHucB6Vj9Ks787dIwQrV OsL4aGpz4JuUBgFVr0PxhYSPkUziWtIfqHTDBppx12wYzS8BIxKCfcTzrehEwbqIXnE1 DEQA== 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=oaM/XIwHpF2f+ZEVvauAU9iZcPI0MXco1jk8DKXGPQE=; b=Gcf8ZdGNv2RE0AkFDvdY9JYQ03Tud9SZKeHHjofRAkvjaHB6QECGWA1gCCUq/8pv79 OqQKN2WGdPv2wK1FAZxnohS7QtqnZvko8acEamxtL06dTyRHEq3z4c4PMD/HSwnMosyL h5VoOYMs3HEP9y6SG0cG0PWvXh1WT2JfXRQoKBYEIq19Jb8PXNcnT8SSVxD9RuHl3Q+O M5sUomu9zZvX4llvjKiPQLg3KaFz+rGwY7Tz8Mzf0kCt47Kw9KCL0tnby4o9NeoOEvqU UxNvG1MJ540vy29ZrnOFlvwBJ+7NZrYNybOXq+WxSXue/nfkqx1r8TeMrEBRrpKmNEzd Sgng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=uH9RnuDl; 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 i1si5641176otk.2.2020.03.03.03.24.06; Tue, 03 Mar 2020 03:24:19 -0800 (PST) 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=uH9RnuDl; 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 S1728359AbgCCK64 (ORCPT + 99 others); Tue, 3 Mar 2020 05:58:56 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:59889 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727830AbgCCK6z (ORCPT ); Tue, 3 Mar 2020 05:58:55 -0500 X-UUID: de6f326cf8bc4e319d70b38bb07cb12c-20200303 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=oaM/XIwHpF2f+ZEVvauAU9iZcPI0MXco1jk8DKXGPQE=; b=uH9RnuDljqzEZCf6EFkSMMVWDNEwOXaN7Rg+1k07A4jpS2HUdFLggbcbaqR3ukTPNQ3oBxSOGmANYV522lLrBa+wY8kXkt7/LjcStB//ixMp9JiZA2exvp0aQtt5mRiEprf+hw1yP+UBTeGLFZ45oDj8v5H4PtQJwOP/b4VwJcU=; X-UUID: de6f326cf8bc4e319d70b38bb07cb12c-20200303 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2038546423; Tue, 03 Mar 2020 18:58:50 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 3 Mar 2020 18:57:54 +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; Tue, 3 Mar 2020 18:58:12 +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 v4 12/13] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api Date: Tue, 3 Mar 2020 18:58:44 +0800 Message-ID: <1583233125-7827-13-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1583233125-7827-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1583233125-7827-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 QWRkIGNsZWFyIHBhcmFtZXRlciB0byBsZXQgY2xpZW50IGRlY2lkZSBpZg0KZXZlbnQgc2h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