Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp590031ybm; Thu, 28 May 2020 10:08:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKvg7jgO+Q1dT9zfmXL9J4chlzhpo5J2Rwxb2eU5KhasMwjB+wMVjotYIvTc4EvNrG5X89 X-Received: by 2002:a17:906:41a:: with SMTP id d26mr4067584eja.217.1590685714708; Thu, 28 May 2020 10:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590685714; cv=none; d=google.com; s=arc-20160816; b=ryoii0w7m+guQRpN4J5CDAIUJaGsoxR9vux/eIWrytOzmRCMUB0ae9UvFH2hLpDqpm m0R2bw6bLc2KU77ANEDP710WdLRNxTQp7vQU+rk8yFr08EhPJaYPP11Bo0tttpl17hIk SlZ81sXTCaVPV3zd2icLHuDfs9QFar3NdOtMY2uWG7sFpDfBSrw5PxPLj1ozy48hkZsp RZUlIGwdVK/3Zq9i0RqdfZ945mT6jldUwhndGGUbKpGONvKGRTVWcHt1TWUG84i0Vwh9 rhtA56sv9U3N51asdPNxtBqIm31eYmTCiE78SYTasB0jUzwCpfMQxwPSd6RNByAdNAAl aB8g== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=jXGE+hYgBs3oPyBPAQ0ebVKN3bSWPLCsVNhlOqhbvHg=; b=RQ3pZWEdKTV7mreweiz+ZrNo0e1eNP6inleGnO9MLIyJr8vMVOvdDLl5TeLdo2Sqkc 73sppDa7w+g24+8teJs33u7qQ1oaWS7Lro6JXXddLhltZVXTzOAT9grFw/z6KH/RGZUD jnKHoSgRrtYlmJ4ACY3NwC2bq/SvmBrirheTBtHsbI1cLFYCHeUJhZYDrAA8BCjPJ1tm 1D3rpGqETyaK4OpO9JocFcJ+Z230xhDD85ABJfXm6IjFBap01jXdXPtwk54fvBGj3Wzw V7J8ddksvOpeGS8bwZzGQpnsMc+T2mCx7T92lteKzl3RgFHAuo7T0MselPQnWzdOixbt ODXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=V1pchG7A; 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 y20si4182310ejf.224.2020.05.28.10.08.11; Thu, 28 May 2020 10:08:34 -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=V1pchG7A; 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 S2405444AbgE1RF6 (ORCPT + 99 others); Thu, 28 May 2020 13:05:58 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:31229 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2405378AbgE1RFX (ORCPT ); Thu, 28 May 2020 13:05:23 -0400 X-UUID: 472895f1d076407fa927842fa5903ceb-20200529 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=jXGE+hYgBs3oPyBPAQ0ebVKN3bSWPLCsVNhlOqhbvHg=; b=V1pchG7AVkud645jmQ3QAjaqrm3sbr1oB0R0E7zI7sH7fd5x0uSQ3LKzTt7gMfZxoXu9D4n4aVIAVM0oyVtEWWlfGju1pxJZFzDTXk64UtdxaFI5qLuwHAPtERzq/AebaYmanxQGWht3+ConwvRf2yr03Ixuhpw2gcE77EIB5l4=; X-UUID: 472895f1d076407fa927842fa5903ceb-20200529 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 276028837; Fri, 29 May 2020 01:05:14 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 29 May 2020 01:05:10 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 29 May 2020 01:05:09 +0800 From: Dennis YC Hsieh To: Rob Herring , Mark Rutland , Matthias Brugger , Jassi Brar , Philipp Zabel , David Airlie , Daniel Vetter CC: , , , , , Bibby Hsieh , CK Hu , Houlong Wei , , HS Liao , Dennis YC Hsieh Subject: [PATCH v6 16/16] soc: mediatek: cmdq: add set event function Date: Fri, 29 May 2020 01:04:51 +0800 Message-ID: <1590685491-17107-17-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1590685491-17107-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1590685491-17107-1-git-send-email-dennis-yc.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 56617F63CC51ADD7C66EDB7B1D4639E09A5C3E1F232749219309A55CBEC22B882000:8 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 QWRkIHNldCBldmVudCBmdW5jdGlvbiBpbiBjbWRxIGhlbHBlciBmdW5jdGlvbnMgdG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