Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2857140ybt; Mon, 22 Jun 2020 08:42:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4Q8szoDcM+MHwL9lLoc+Vkz9B5Yc+zyTmJd6Raw17gXpOGvJq54ZQx6WO6sVCUFIya5ny X-Received: by 2002:aa7:dc50:: with SMTP id g16mr18164878edu.318.1592840542540; Mon, 22 Jun 2020 08:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592840542; cv=none; d=google.com; s=arc-20160816; b=NtS1+/5nMsZfmZUwXmeRtgWVae9oOLf5DtuCR6U/G1n+QXju+7NClnRn7TFxRgrHQh BMooZup4urnkDTB+2OazLNTqzQAxa/V3AoVtiiiPohVhhzzs/I6hSf0yXukdd33QXKrN rmkptq/dPJlwMs6B0Qti+UtEHwTLxZjbDPeDGxcg/+GcMEUhRv58PBz0sR09MtEUecmr VC/GB3nuiEihocjXa+Nj8697LZRtHkOXzUEMD3GLbrcZxLCFRAXX/zZh8moT76KrufUc mUjuoKOY5KWAGwuM9HZMWg3A5LcbB9LAqVcik0fPfBpLPtREBRcQb6QarqBEjDsdwcc9 SIUA== 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=4oG//lsr7WdU0sHSnJkzG35AGLgyMUzysVPRVO5h3hw=; b=uzfxt3KfIUzcCqUAMZyCv1pr9kQczTOYFHC3gU4xO/ioI+OnzznzjmwRy1t8NrPkHg nPNNAdNBjfb21sd1WEiD6YSZ3a6B52nzJv/1QlVVafdhooL4edbR+LLZPft3Hzau8cTO w/7udVwbdkSWdWDF18SzHL1lAPYr/6X6k9vl+CiPYI8aMWWY1axScB5U5Um9bk9AS7h5 zwyxIPXAAObK9I3xNJ+/D/CqBL9flYlvGvmKonh9PdVL94HIY+QrtePk7uDdHEwg0LW/ P/cKR3Zl/6LrH42EJIvW12MHM8k1wmr27mbXKN5PdFW/0qxzD6N2SvVYheO0aMOdF9fa nvRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=f3XIaZMm; 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 dj5si2824867edb.367.2020.06.22.08.41.59; Mon, 22 Jun 2020 08:42:22 -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=f3XIaZMm; 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 S1729323AbgFVPkF (ORCPT + 99 others); Mon, 22 Jun 2020 11:40:05 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:15414 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729092AbgFVPkF (ORCPT ); Mon, 22 Jun 2020 11:40:05 -0400 X-UUID: a34d21fcf9f848ef86d638147d7f39eb-20200622 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=4oG//lsr7WdU0sHSnJkzG35AGLgyMUzysVPRVO5h3hw=; b=f3XIaZMmkgBYWROQTozQj3+ZVsPfU/Yg5qS8MN672i/M4VXosArM/LwD6peLJNWuIODscHcjy+zMy+WmZcwtKE2WMEFZ/b0b0qc2LIYfkbLeV4hu/mrjuOjZbbb5sfjSBPsXvTEKiBeY6WzAT6am6AP6ZVJS816FYtVwUEWQ3Bw=; X-UUID: a34d21fcf9f848ef86d638147d7f39eb-20200622 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 374711574; Mon, 22 Jun 2020 23:40:00 +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; Mon, 22 Jun 2020 23:39:55 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 22 Jun 2020 23:39:55 +0800 Message-ID: <1592840399.1307.15.camel@mtkswgap22> Subject: Re: [PATCH v1 10/11] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api From: Dennis-YC Hsieh To: Matthias Brugger CC: Philipp Zabel , David Airlie , Daniel Vetter , CK Hu , Bibby Hsieh , Houlong Wei , , , , , , HS Liao Date: Mon, 22 Jun 2020 23:39:59 +0800 In-Reply-To: <8b469701-2295-2cb5-1b60-8681322db678@gmail.com> References: <1592749115-24158-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1592749115-24158-11-git-send-email-dennis-yc.hsieh@mediatek.com> <8b469701-2295-2cb5-1b60-8681322db678@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 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 SGkgTWF0dGhpYXMsDQoNCnRoYW5rcyBmb3IgeW91ciBjb21tZW50Lg0KDQpPbiBNb24sI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