Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp81076ybl; Tue, 10 Dec 2019 18:05:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwz3xrlcU/TgH3xbEnWUvLxyHnge0qRUBjKfhPJ/AmBJcQoGl/JTYQQkaibIxfge0MEITnA X-Received: by 2002:aca:d18:: with SMTP id 24mr994327oin.38.1576029937339; Tue, 10 Dec 2019 18:05:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576029937; cv=none; d=google.com; s=arc-20160816; b=oNeG1d4hYi24RHgM4wEelVPGitgOi0xsXtjJxLOEWLs0OZXHwIx8FoaQC2tcnt2kHa DJY/RnefHNvDOdm9Tu8KsTjRpbQBUPqvFtka3q11qW1i9/r7x1R1dgKYUnrB5lc5LQPQ zXvgV9ewlHThNBkCwdj/Go6KmSGgVxzYoTmSB15JK9VByIRXQRPq+nPiN5GsxO+JP+AN VKyVtXf/1Fo5jTUVZQvWq3DZpVBhJZV9pHVZw+zOpDjDOixBKvFxMTfFTUajpI0/nk8Q 8fCC8ibyygJbl/zIEC9rihFTH/Bqo7XTVlSVb6VW/AZeHhwj6L7Yk0q9yA3OjL9lGqiG 8QIw== 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=wg0RWtXnuazbnyWqaYUsInjXzTF5INnndGMTSvzSNXg=; b=AxrFUnIB32JvE/AQ0bgcPWSWzuQaIfbbvMOxqAyccN8I6Ze31zR9cFBGtZRhoCNLPB qCNXXSh4aDaHj2kU+cOpUBUf0o3klGj8eefMyHhsWT137sjD0YLGIg7r0A8B1fddpTDY wSIM2FDgJV7xiqP8b9Rqnr3QfrzS5ZoxEYUbZiTDY8eHuZVdwGmWSEsqsI1HnxFCqM4V C67BOGWV79xshcZwIlQKKC5O4cVKjjQQ2XDVqgVUloeCPLNtxSuTCHhB10PE7lvmmfPK mYKpmMMuM7wyOxYpMnsK0R7LBaQQ9R/PnQyVxNrbDuwJ8b6PdQPp5Mz82Dz9Kpg5lsKJ mk7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="VY3oVp/k"; 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 h22si266361oie.15.2019.12.10.18.05.25; Tue, 10 Dec 2019 18:05:37 -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="VY3oVp/k"; 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 S1726835AbfLKCEz (ORCPT + 99 others); Tue, 10 Dec 2019 21:04:55 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:32077 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726364AbfLKCEz (ORCPT ); Tue, 10 Dec 2019 21:04:55 -0500 X-UUID: c0e289d8c5a64e7384b49c4353133d96-20191211 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=wg0RWtXnuazbnyWqaYUsInjXzTF5INnndGMTSvzSNXg=; b=VY3oVp/kL+4z2JOIh6bbMIsWlTardtrptRq8k9S4xbwlHMFQhmFX6w1QBYXwA4lPtmAOBafnMXubU2L5qZncv3+adK1yTBkxszBKyb7X1+KbwN9wdT+5UAnkAqyyIE7/RrSrkfKFhR1P8neRM0mH7qGyXWVTwSlhjrWfoAfzhFU=; X-UUID: c0e289d8c5a64e7384b49c4353133d96-20191211 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 599611083; Wed, 11 Dec 2019 10:04:49 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 11 Dec 2019 10:04:22 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 11 Dec 2019 10:04:43 +0800 Message-ID: <1576029887.19653.17.camel@mtksdaap41> Subject: Re: [PATCH v2 13/14] soc: mediatek: cmdq: add wait no clear event function From: CK Hu To: Dennis YC Hsieh CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , Bibby Hsieh , Houlong Wei , Date: Wed, 11 Dec 2019 10:04:47 +0800 In-Reply-To: <1574819937-6246-15-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1574819937-6246-15-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 SGksIERlbm5pczoNCg0KT24gV2VkLCAyMDE5LTExLTI3IGF0IDA5OjU4ICswODAwLCBEZW5uaXMg WUMgSHNpZWggd3JvdGU6D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