Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp462743ybs; Sun, 24 May 2020 10:41:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw14CTVDtfywv6x2OPSC/0JWfmap+CDDg85BgaEVIeV66il0Bz45Hl5JICOpZzaLGnHK2fd X-Received: by 2002:a17:906:c112:: with SMTP id do18mr14795090ejc.231.1590342110142; Sun, 24 May 2020 10:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590342110; cv=none; d=google.com; s=arc-20160816; b=x5YF6QhRiYYnilFyI8cflYCNDCQLl8DeUbbCdrTEhDYZrTbjGZ3NInRaLsrK4bF/vw yi17P2iYyNS8wN2nWiYzo5ZLJnkqf9nRgcZ2xKlek/hCTanQpAJlPJv7z4HrDXXiGf5m 4ZVd/PSKCkx3kL83+1PEcDpSHA9F9K2xFjdYodDxPYED+kukADnP+kpbOXpj5Opgp0Du SIY1Wkf0oWZ9WR1uKBn2EGFxnpggG+I7/8SZhfUkEHFJc6n+U8PogZqvezjHAXjfGEBU 9SkvWdDEEcuecmsVE6Y6eyxbBEokiR16uT27MdMX45DABni242ysRoY4VZOP/R1KOqM/ KX0g== 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=Budt1Q/YKyyHz1LfMtaltAftGMWuXZGR8k5sFbQgD9I=; b=kIfALmmtLLvoYFKNLoaOylEFOU4cTn0RkfZAR0604cGEYXZeHkhwMCGCOxwePcoZV6 F+JTVKbqOg7DDSOQN7aECJGWObLalLkbbf6NuEwS2hNCh7bH/YSHORPhd7wX35RbZCt3 8Dqt0OGYjXEJXrYUtSgPot4705KSbz/WJuJNA3S2qXVe9h3ZKTT7R1wNbsWlv7K6RVLh sBAD28VHzRYJHd1WxHnjDPMMYewYHM3wf1+LsrhcLMLlsUIgTK7NtCAybNKdXRm0s8yP /uT/OG+aPibuIHpBnzKI/JYf4hvRczvkpfW7HT6HKYXWyDx49VOx76KJPD7VC6i0reYz 8SlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=uVtaZAO0; 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 gr15si8148652ejb.503.2020.05.24.10.41.26; Sun, 24 May 2020 10:41:50 -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=uVtaZAO0; 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 S2387842AbgEXRje (ORCPT + 99 others); Sun, 24 May 2020 13:39:34 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:21691 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387656AbgEXRjd (ORCPT ); Sun, 24 May 2020 13:39:33 -0400 X-UUID: bd043902c5a64ada902523b1c0ac946b-20200525 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=Budt1Q/YKyyHz1LfMtaltAftGMWuXZGR8k5sFbQgD9I=; b=uVtaZAO0ztm5vjRXLPBVsHPSqkJDUZIT8Nku1f1uGLGcCikpf2MC6DJ/gmfZeJ0MeCFEAy7xDlaiL0bmnyCP0fgET1W/KvHNQHdIklTni3sMIPiLSHhAbNoH4R2GDlr7qdRcAW8vI+P1bdK98QyCkiNNdtt+8u4E6X3ufujFITo=; X-UUID: bd043902c5a64ada902523b1c0ac946b-20200525 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 303714022; Mon, 25 May 2020 01:39:27 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 25 May 2020 01:39:22 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 25 May 2020 01:39:22 +0800 Message-ID: <1590341965.31286.27.camel@mtkswgap22> Subject: Re: [PATCH v5 13/13] soc: mediatek: cmdq: add set event function From: Dennis-YC Hsieh To: Matthias Brugger CC: Rob Herring , Mark Rutland , Jassi Brar , Philipp Zabel , David Airlie , Daniel Vetter , , , , , , Bibby Hsieh , CK Hu , Houlong Wei , , HS Liao Date: Mon, 25 May 2020 01:39:25 +0800 In-Reply-To: References: <1583664775-19382-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1583664775-19382-14-git-send-email-dennis-yc.hsieh@mediatek.com> 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 SGkgTWF0dGhpYXMsDQoNClRoYW5rcyBmb3IgeW91ciBjb21tZW50Lg0KDQoNCk9uIFNhdCwgMjAy MC0wNS0xNiBhdCAyMDozMiArMDIwMCwgTWF0dGhpYXMgQnJ1Z2dlciB3c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