Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5075382ybf; Wed, 4 Mar 2020 16:51:38 -0800 (PST) X-Google-Smtp-Source: ADFU+vtgxmvC0/F5b2UujwltpF0ECcmNCMjKXHKUrL6gjP+8YLI12sfoTMo4r59JnzHhfT+EgatD X-Received: by 2002:a9d:64cd:: with SMTP id n13mr4558311otl.274.1583369498650; Wed, 04 Mar 2020 16:51:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583369498; cv=none; d=google.com; s=arc-20160816; b=mFSCNTvfIXzBxPIQNV/PwifUUS+T7Ppgti8EICp3tNjj7jI33ie87Ml/A3LVgfrBvy AWxr/fcXydUMN5oXDIXZASU1jUYThLVAu2NShxPtD7Z1rYMrT4c3pnRDmGsLrbk5amzI S/gg+Jw/Cv1CTF87gXGSCwqOG1GtbgT0VZgI+xVfLo1zZ2bXqKX99iWItWsQ7YTPkWNj 9xZEHCT+vJAsi0andsdbB2a6BBAPbMWZ6UiJFHcn7EiNZVnUdnj/APM3NOLUydu8wDSr 0SjsH7gwzPILbBClIsof32v+7QbVPEr65qjeeLEwpG25HDVYBWgiqKYAnRyvEL0rZxkn i/4A== 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=kKyBokw0nHSD5G4NnU/6ssdFSMmw3W6g132ZYmBRN8o=; b=iPwZUo1fLCftjBrWSnxruVSEqkxXFkdO2azXplKn/T2Kon6Oauvpd2FPG8JF+hF7ah ls1Cz/njhX1/L5crxaR7sb2XPwlWDCQOYX7lcAg8b4LRy1vU5qhlNhK2M0u9XTU87LmQ W2+3ciA/qVkH+D8oriDQMxDq/EOGF5tMq3HytANww52JP6VQgmLErhWbfr6TBDiLrW2M 01ZYCNK2KH2/cgILIa3DHfI4CHNZmp0Xu2+XVEhGMJ4IbXDz6+H+1i8wRKtO59iAV+NX tvjSKpXhZOxdin+kM7SEIDh9KqivBnd4lChXbdjiMuUy4K7opZWqSadr8IrqQeF3xzN1 9wQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=JmvWG41R; 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 i20si2424688oto.259.2020.03.04.16.51.26; Wed, 04 Mar 2020 16:51:38 -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=JmvWG41R; 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 S1725912AbgCEAuE (ORCPT + 99 others); Wed, 4 Mar 2020 19:50:04 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:54461 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725797AbgCEAuE (ORCPT ); Wed, 4 Mar 2020 19:50:04 -0500 X-UUID: 16a3c3b4396f47f9ad509f0e2531cf64-20200305 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=kKyBokw0nHSD5G4NnU/6ssdFSMmw3W6g132ZYmBRN8o=; b=JmvWG41RARYZiVlIyy22bD+tS7VwPyYFsdlT7GUPj1HscQLMXU5tP5WPdYzXVCTV8EulJAWhPvnbC4ayDy45+22A5wg6NeY8kq2jN74Hdz0qXLvDSPXraYWVFJGho7TjHnBBDwtVc2wYWofm9Ut6OSVWUNjhYBSLP9yTQzS9fX4=; X-UUID: 16a3c3b4396f47f9ad509f0e2531cf64-20200305 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 553839731; Thu, 05 Mar 2020 08:49:59 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 5 Mar 2020 08:48:57 +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.1395.4 via Frontend Transport; Thu, 5 Mar 2020 08:49:13 +0800 Message-ID: <1583369398.28558.1.camel@mtkswgap22> Subject: Re: [PATCH v4 12/13] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api From: Dennis-YC Hsieh To: CK Hu CC: Rob Herring , Mark Rutland , Matthias Brugger , Jassi Brar , Philipp Zabel , "David Airlie" , Daniel Vetter , , , , , , Bibby Hsieh , Houlong Wei , , HS Liao Date: Thu, 5 Mar 2020 08:49:58 +0800 In-Reply-To: <1583291126.1062.7.camel@mtksdaap41> References: <1583233125-7827-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1583233125-7827-13-git-send-email-dennis-yc.hsieh@mediatek.com> <1583291126.1062.7.camel@mtksdaap41> 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 SGkgQ0ssDQoNClRoYW5rcyBmb3IgeW91ciBjb21tZ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