Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4059445ybf; Tue, 3 Mar 2020 19:06:04 -0800 (PST) X-Google-Smtp-Source: ADFU+vt33KPda7lrRHedh68zlMTY5cs1iqBBYj1CitzBNihkKyzDuqbWOU60wBK2Pmd2gm+1wgZO X-Received: by 2002:aca:b589:: with SMTP id e131mr411437oif.82.1583291164649; Tue, 03 Mar 2020 19:06:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583291164; cv=none; d=google.com; s=arc-20160816; b=kDCuVLjNHidd9w6gFcbjpSX3MCp79DQZQPLDwji0neJkVGR16/PTbpLX7vd24gdY+9 1F4hqfY0IdfIt7sqZvEatk0aqFrsuGnMqDMjD5k9ODJOESHn7O2rueAnp6H0yhYjYkcG TQ3O4Df05rhIIZL7JXaCNNV8xRHRlZfVAVI2wiVuAmScodtbggEKK6i6DSJrvnrNCFyE G3CvVYZ8yLS4OZvKH+11AmlKuf2H1d6DknvOINnlakNuYedSS3bUYVtZOrbd0uypOcl7 79ErALxLRaF3jM2UtnY0ZpPAYbfT5JTxSaPxRoEyOCPAEuEb/K4xmgCUotFaxQMHVH20 xCxw== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=uV6XAfR45kceIz/xzf1Y2H5SW6enf8ExjM5OoLYTjuM=; b=nxhDQv/C2upwj6kj0wQCNaBZXoDLig7YgbmWvJ9pARFGltnUz6P2FTZENs22K/Xk9m m1fK5ovT1zmO+4olLSqpAqD52ZLJfVffvFA52K9NJ74pF4zPHTTQwJwkTRcA/N2Pv4X7 jlaIqs6JfNuSqMEYPFHkddvWp902oT4CoaLH0yLIW6HBPiq+7vere5nTXjYHUkODdwhM oJu0NSq8+7gJeiEkuGz5RYQTx5jPT+FEJ0qr9iDXqvWS8HUnhr7jUu06IF1aqbbtiK2K 0eFGW55r2SWlL+rArP7zY8WcBEjOS+mRwMOec5ithIfo3fj+eCeoZ6hnRit/7AzZeSLc Ja6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=R1m1Kaji; 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 i20si346802ota.82.2020.03.03.19.05.52; Tue, 03 Mar 2020 19:06:04 -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=R1m1Kaji; 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 S2387539AbgCDDFf (ORCPT + 99 others); Tue, 3 Mar 2020 22:05:35 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:49191 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387397AbgCDDFf (ORCPT ); Tue, 3 Mar 2020 22:05:35 -0500 X-UUID: 05b93ba8f8584d23bd1d7e0ef70eba83-20200304 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=uV6XAfR45kceIz/xzf1Y2H5SW6enf8ExjM5OoLYTjuM=; b=R1m1Kaji0qro6LvyKkTo0iX3Zu3IK6TbdIOdIEPuHlaiIycUB8H4h9lhhkXJxTo6DEkrKGtLdyBp7YOC9DmRu8LDdi8vDSM944v7r9p/fm89cYFSTPTcinz9ug+tjiMmTHTLHb75gMgNjGTbGNbYiOAKdWxs0LQdIuR9pMWIV8s=; X-UUID: 05b93ba8f8584d23bd1d7e0ef70eba83-20200304 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 256793080; Wed, 04 Mar 2020 11:05:27 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 4 Mar 2020 11:04:25 +0800 Received: from [172.21.77.4] (172.21.77.4) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 4 Mar 2020 11:02:54 +0800 Message-ID: <1583291126.1062.7.camel@mtksdaap41> Subject: Re: [PATCH v4 12/13] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api From: CK Hu To: Dennis YC Hsieh CC: Rob Herring , Mark Rutland , Matthias Brugger , Jassi Brar , Philipp Zabel , "David Airlie" , Daniel Vetter , , , , , , Bibby Hsieh , Houlong Wei , , HS Liao Date: Wed, 4 Mar 2020 11:05:26 +0800 In-Reply-To: <1583233125-7827-13-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1583233125-7827-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1583233125-7827-13-git-send-email-dennis-yc.hsieh@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 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 SGksIERlbm5pczoNCg0KT24gVHVlLCAyMDIwLTAzLTAzIGF0IDE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