Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1412767ybh; Sun, 8 Mar 2020 03:55:54 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsw/VTQe64ClKQYi+SiKNVJYpoq88bHdxh2FKVLx70sWJVGWVM41nXEzRtMXp5VQbrl7P94 X-Received: by 2002:a05:6830:2105:: with SMTP id i5mr9040455otc.141.1583664954262; Sun, 08 Mar 2020 03:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583664954; cv=none; d=google.com; s=arc-20160816; b=Y/uFk8L6+yuSkX7/U9Ugo2p8jMnO7b3ZqUwir4yyDBlnf9alQWUdhctRIadVjaZgEC 7FawxFPy1yZQdAGHRxQYeImWOW1Usc9wwGtmYbtva97P7XZIzR1OwKUjLXcIHSBlwomF yH95aW+ZbjTHBbvew2h+tO9BNLvn1S8N1p/2ET1WmtTNRVIkEAJT5mWPkCNISQtxZW+i MG+5HNtbEpZqM20Gj/RAXDRp5B9lJ1Vf5Mfo2zPuGQd3uPLCed374nwbJRMyN4rD5mR/ 9Ovzj9cVlECr2Z68etTFF+9LhuCdeccGxp0HmjKFx+8RRKKhE9oLcbomi8C8J1MLk+lh MHlQ== 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=w8iD1qX9gbep8MCS/om0Izrl053bUY6aJGA54o65/5o=; b=f00hfnj6Zaxd4t3lL63Vmh1GAyGNxajhBmHugpqBAfJkTy5QUat2d4geuOxoBLohxt Y0qNDdUzCr4udAvoQCLpsMQe1zMxYwTp4cIEApn3xsaCZ57P97J8Bibl/iANhHP8Rxfy SVgvztoXL4IasKzIg8KS/23xc562BTK+t2pff5ZAb2dyMc+wT2/KrCJfdqF2Xai1+jFz q5ST07xvwovChEvt3QGP0/ZUMYGjh3QHsAjoO1C+ibpV7m3R3mF33j7kI1iRS5HK6LNc wdhWqRxKnxaF4ACh6LkUBw/nejcYWidcFaG3wUeoiPSxTG+vy+J4nVuQhd/sHrsbi/nA I2bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=DkYVx05x; 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 p190si2857006oic.206.2020.03.08.03.55.42; Sun, 08 Mar 2020 03:55:54 -0700 (PDT) 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=DkYVx05x; 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 S1726659AbgCHKxo (ORCPT + 99 others); Sun, 8 Mar 2020 06:53:44 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:60581 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726267AbgCHKxK (ORCPT ); Sun, 8 Mar 2020 06:53:10 -0400 X-UUID: defcc032b5f74bea9f0436bf6a0341b4-20200308 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=w8iD1qX9gbep8MCS/om0Izrl053bUY6aJGA54o65/5o=; b=DkYVx05xdoiGoYd3QcpdkBh/xmAjX/J+MQdBdflTccQYfbFWY7eHUb8oGQv2UtcgLey9lyn8Y2R221D4HsYNg8l14AIHolumhvtBC2MY4abbZ6eWLEBert5/ysuouBO6zD5sR9F8X44NKZ3UArVPhK5Ijsi1zGafi6sAS1IJ5JQ=; X-UUID: defcc032b5f74bea9f0436bf6a0341b4-20200308 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1830550628; Sun, 08 Mar 2020 18:53:01 +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; Sun, 8 Mar 2020 18:51:57 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sun, 8 Mar 2020 18:53:00 +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 v5 13/13] soc: mediatek: cmdq: add set event function Date: Sun, 8 Mar 2020 18:52:55 +0800 Message-ID: <1583664775-19382-14-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1583664775-19382-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1583664775-19382-1-git-send-email-dennis-yc.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 QWRkIHNldCBldmVudCBmdW5jdGlvbiBpbiBjbWRxIGhlbHBlciBmdW5jdGlvbnMgdG8gc2V0IHNw ZWNpZmljIGV2ZW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