Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp599412ybt; Mon, 6 Jul 2020 17:48:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPWkgTWNMEb2WI8xhtJoEBpYydw8ZF4IUK6TqdcN0/grF9rFN8avk3YZuyhD5bF+R0tfiz X-Received: by 2002:a17:906:9408:: with SMTP id q8mr44314745ejx.496.1594082889846; Mon, 06 Jul 2020 17:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594082889; cv=none; d=google.com; s=arc-20160816; b=bWcS3Lyrj9h0lHoUL2CRiukp46G9b8/YuJcDQAaajKp50gOdFcDuWDHBj4RfmcIVF8 FOQHHs9Pj6fDHteH0ep2ow7m7w4hc3myNPFNjJjzDedtPWORXGxwrdCvqgp+ldXYniXl d9KLgKf+KddHeKz96CM9fR0p8JwCvSBYtsLK0MoeTSlF0oLXPKTQ9KmrCwwlKEGfZ5PK 83Q+RRY7grcXCyZFjJPOgPWCQVSzjvBQlVQkQlA93mzrWIidZEkZjyfiJBXM8mBj5hD4 WX4Qm6qfHksUeEQxpd9NZwMIP8tRePlGZHMX/Fi7bFaIzOgAwd4A5zTFPb/c5yu7FWup Lh1A== 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=9+BgWtK/CBgwcVCXkyOr08QW0zYWgf+PY9UfH+ilC/c=; b=QBAjuG3m8ZykxBgqOEXC08Zul4spQqOpFZz9ZOVaPAk7X1zCt1QOfuQbxZavy/SBJ6 U4kWtb+EGGkslaEd7ZZDjSUkLggxzpBfkib8vk1LJ5TZxd43uGJkh7KRJ5i+2l/JBIGd iivwufsqVM6Kaxx7LXwmqPz6Z3dULAlTEptu/X3CH167VV1bh81wKbqfSJhgZVx+MnTt GNRtgx3iCD7CorEu0dgKTSke0tZxei9oaHz+5yQ+yt8Z8fzz+UQLT8AereXaX27UQpOg ujEDZDMi3m7ms7TrzkBueoQzTRjfr25fWkCToWnHiO8iq/AjAPXUNLSkRWyZaEBARGuc 8Vxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=pkgM4Awg; 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 b7si19578823edz.250.2020.07.06.17.47.45; Mon, 06 Jul 2020 17:48:09 -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=pkgM4Awg; 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 S1726864AbgGGAqp (ORCPT + 99 others); Mon, 6 Jul 2020 20:46:45 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:51162 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725942AbgGGAqp (ORCPT ); Mon, 6 Jul 2020 20:46:45 -0400 X-UUID: e40676f9293240e6a31db48b3fdd0b16-20200707 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=9+BgWtK/CBgwcVCXkyOr08QW0zYWgf+PY9UfH+ilC/c=; b=pkgM4AwgulucaxKgow4xvjadIqp24Lynb/33XkSbzV8yEmSqxxSRSSttDwK2otU0YGxNWGJrvQgowRL23aNBjwzo2UczvnLhXBEvx+93xXsqvqSH5eyss72owU4KTBkrzX521pzBWGEp4QwGeK+4TyDuvWtFj9rG8MuuEBRKa7Q=; X-UUID: e40676f9293240e6a31db48b3fdd0b16-20200707 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 455299607; Tue, 07 Jul 2020 08:46:41 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 7 Jul 2020 08:46:39 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 7 Jul 2020 08:46:39 +0800 Message-ID: <1594082800.24876.0.camel@mtkswgap22> Subject: Re: [PATCH v2 8/8] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api From: Dennis-YC Hsieh To: Chun-Kuang Hu CC: Matthias Brugger , Philipp Zabel , David Airlie , Daniel Vetter , CK Hu , Bibby Hsieh , Houlong Wei , wsd_upstream , linux-kernel , DRI Development , HS Liao , "moderated list:ARM/Mediatek SoC support" , Linux ARM Date: Tue, 7 Jul 2020 08:46:40 +0800 In-Reply-To: References: <1593931715-32761-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1593931715-32761-9-git-send-email-dennis-yc.hsieh@mediatek.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 SGkgQ0ssDQoNClRoYW5rcyBmb3IgeW91ciBjb21tZW50Lg0KDQpPbiBUdWUsIDIw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