Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp758293ybf; Fri, 28 Feb 2020 07:07:48 -0800 (PST) X-Google-Smtp-Source: APXvYqzJLqObZkCZou5idMjP+zfSdYGv3ldW9jv9qeJa6D1s+SXgviT/Yl5ftZO9svJjUP8bfj0B X-Received: by 2002:a05:6830:1447:: with SMTP id w7mr3566914otp.368.1582902468063; Fri, 28 Feb 2020 07:07:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582902468; cv=none; d=google.com; s=arc-20160816; b=wFUPl6E9TTndiJi7jBWP/NmnL9vqrJCsFyYbBMxTIu2wLW3bZNR6SIj7lU/RmKLwL/ iIrUlPdjijRcCes5UMHrk6LzW3Dxdb7zIXG/+Mt+XswglkAfpjQq7bBMQl4OIDSZc2YB EVQV9sEXICnu7NhybtstMzj7J4+wFtXudRyxU/1eeyqd6C1z5yLcVVb43u6NzCT0XFxe qnpiX8P7xQwvZsIKH0NE2eeuBpvkmi5WeXY4UB007naFagY2m+iTmM8kJ7z2puS9UV1x aLqPF3YIU20dWDrlI6VVbEum6zIdhUN1BuSnm0SJ9ISHaMI/lWqkWn8LLUAnk8FDs9Z/ QBeg== 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=afn0AiUTWzXbXY5VokBw7o3NfO+VtwljFnYyh1mt1oc=; b=ChzEh1W/T6FIaihL1C8sb5RqQm22hyuN9qTQUxXVbW1RHBnQbkgClY0ccUSzAGxIFG gABVMzs/Br4XRwAaT9nolmdpdkQrjACMDwVgFXgQ7yaRy49QJWvz+7y9Sp2uXgigIG7X E4oIFNoaRtjMh2514XEG895TbAdo8/o+pPBe4IDPV6hlFGZU/VsnY6NlzLHBk7qfwjSI XKxfMvnZm13b/a8j3/MQsPyoxuNqEkIg0nKHn/IOAQeU4BAltBLDINs0HCSR5aMZKt+F cAgCNnt8MHUvtYE5lziUVR5yHJ9NdCSg5Cyz9QV3UbDcwkJNzJaLlUZPl3SPrJAN0zv7 rBQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=YIp65SgP; 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 n2si1848993otk.177.2020.02.28.07.07.30; Fri, 28 Feb 2020 07:07:48 -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=YIp65SgP; 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 S1726945AbgB1PF5 (ORCPT + 99 others); Fri, 28 Feb 2020 10:05:57 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:40807 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726805AbgB1PF4 (ORCPT ); Fri, 28 Feb 2020 10:05:56 -0500 X-UUID: c0943b4c5a8c4db8a9781917ac9ea4cd-20200228 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=afn0AiUTWzXbXY5VokBw7o3NfO+VtwljFnYyh1mt1oc=; b=YIp65SgPT8zuhTLBrBE7JlukFDrYR4YVlAm1tCX/nOtttWt7IH8gyh9X3aGUB6TTCUVfo1vqUJTbp0v79npyxx/jfkXUpb+KLO3IEx+PxBMebNim0FQmNWltK4ZFy17Yn3upZrtC0ugD6WdnpzkE86AwhuDpGGYCCSl4PI3fvuA=; X-UUID: c0943b4c5a8c4db8a9781917ac9ea4cd-20200228 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 235942894; Fri, 28 Feb 2020 23:05:52 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Feb 2020 23:05:01 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 28 Feb 2020 23:05:33 +0800 Message-ID: <1582902351.14824.10.camel@mtksdaap41> Subject: Re: [PATCH v3 13/13] soc: mediatek: cmdq: add set event function From: CK Hu To: Dennis YC Hsieh CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , Bibby Hsieh , Houlong Wei , , , "Ming-Fan Chen" Date: Fri, 28 Feb 2020 23:05:51 +0800 In-Reply-To: <1582897461-15105-15-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1582897461-15105-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1582897461-15105-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 SGksIERlbm5pczoNCg0KT24gRnJpLCAyMDIwLTAyLTI4IGF0IDIxOjQ0ICswODAwLCBEZW5uaXMg WUMgSHNpZW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