Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp592812ybm; Thu, 28 May 2020 10:12:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw++jersOggIs6D1Ok0fvZOJcv1v4eyavgNFrfYniv0CWK+RWx4k560Sz9pMfZHDW+eMARu X-Received: by 2002:a17:906:5615:: with SMTP id f21mr3754731ejq.372.1590685921504; Thu, 28 May 2020 10:12:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590685921; cv=none; d=google.com; s=arc-20160816; b=wsUOZ69rM7+WZy9bFBpkvZZR5GRXJE2pt4mvJdIDnYKgVX6MW1khUqUxZLYPql89OP TG/b5xcegeM/bHD2cM6hJiY3GQWblIba+53E/nESyUX+GCeA2r9g8FbnsA6eEYzlSdVS EM7exko07Omg3qRFT1QF05SraOiSW7W+QgluwK8BMayYS52cnJKSVRIL/mHe8oRTnWzP +49wPvAUvm2MFAuKxsNMhSEzhSR5ft6KiIuL11ptCsg7VIL+JcdicUa68YckD2xaiStW vdlbR+U0SkEm5uN0C5nErg4SbZ6LpRrkeBtYrSABarzxBCVKvxxldy8zbPeFSkNsa9m0 JlaA== 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=jXJOAQoUzXd2rU2iANdUYvuiImO+8biZmv0Q5o4y4ds=; b=fxOlB8uCjFLmj8sR4UWOmGIX9RqD9V57OKAvgnULV0r5L+lazc97reYoUQIq4oRDsN 7YWgcltY+uG3JAhi+l2bQn7VFP3eIQAWJwxIl+Qe8I/rbqFUu8Cr5stUv6gW9Yw30cMq 7YTE4dgHov6bD6jjvjwzw7qtDOgf+vmfAXD5ty/eUREctPtGGRbOBJmX5MC1h0D/xvf/ OW+m7qDqNQ+jC39vyNqFAiJzxv2a0gkPRPORTSrsI6Ft5bz5mV70OirZpAVpBDrTr1gc CoeNm+i3m4iloMoK3LSBSfweQAfiQuySU7v/PNZWIbRLjE5u+To8pas3jYQH+dEAyBUu Zyzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=AKmun7AF; 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 n23si4293167ejk.174.2020.05.28.10.11.37; Thu, 28 May 2020 10:12:01 -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=AKmun7AF; 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 S2405500AbgE1RGz (ORCPT + 99 others); Thu, 28 May 2020 13:06:55 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:23025 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2405371AbgE1RFX (ORCPT ); Thu, 28 May 2020 13:05:23 -0400 X-UUID: 7c0abf73305c400bb76417665d51c855-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=jXJOAQoUzXd2rU2iANdUYvuiImO+8biZmv0Q5o4y4ds=; b=AKmun7AFyD5+565g1rkS9N5SKFunYuRDRagJlCtJX1fw/vrHHjn0c1+f4hwixg8LTXoOPdVpY3bXeOoStNcqOfc3+e+hrQQXoBAkyglyFAkCD5X1nvCHVJFgdMD0lo0xjGiZfkOzxPOwAyw/5ubCdY9To4/Wg2T1V2Wfa3FliGQ=; X-UUID: 7c0abf73305c400bb76417665d51c855-20200529 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 206309768; Fri, 29 May 2020 01:05:13 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 29 May 2020 01:05:09 +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 13/16] soc: mediatek: cmdq: export finalize function Date: Fri, 29 May 2020 01:04:48 +0800 Message-ID: <1590685491-17107-14-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: B222A76046E33343BE5B049134F52DC03B6DFA20A3152CD5D1241F3BE9943F9E2000: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 RXhwb3J0IGZpbmFsaXplIGZ1bmN0aW9uIHRvIGNsaWVudCB3aGljaCBoZWxwcyBhcHBlbm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