Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1412929ybh; Sun, 8 Mar 2020 03:56:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvH2GIyY0p/WiOrnjD0PTPbvHDBt0u0v5Br73SJxQvvVTg6+l+SzlkRJALbxsbT0yU42JbN X-Received: by 2002:aca:1a03:: with SMTP id a3mr4323001oia.38.1583664969519; Sun, 08 Mar 2020 03:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583664969; cv=none; d=google.com; s=arc-20160816; b=oAcg3Nrw9hGHrwGdRqBXoraKq1T5guDQxn+/JADFw63ZwYhFdkxZ5j2WJx24hs3n5z EN0I+/qJrgiNOWRMCQG3hY7Cvd2qLtvAhiDtqzsSVC+wYL7DFhAVcRhnhNXPxnIhYGLy dHSkevACO1tyt9cr1iPgyZssiv4Oek+q+efaSDuOoli9BKpATv85LbXkabXaUptu96UU +wMXimnOMO2nqE3EQNA5zIO1ypPft5Ib/ddlfh8DfCIr3KWBvoGWQR/4sVqmBMx1c1PW rXKD5MoPfxR8PN9oyuXaoYLKzy0AGGPfLHGVen7a+qYO+eV4G7538BDdMXLaSiMku7eI 3F4A== 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=MYH+JWtN3TW3+5HBk7PMR9MHuRJoGMcqVVaD9IZJVF0=; b=FKDi2Z4Jy5KwiER5He4UJCS6KvwaXFlYiekyPXUpnh2V/Jqh71Q5U9OurcYggSivbr 5xo2qdeGuMUb9ycdIM+9iVZkWHSL0kJAvlm2s4SIFjuCtFfknZX35NugBGCKJWrXVHx/ n7K1sraWtlyvPXAWdzeeyhUbltVvIik2/QzDUhSgcPJEENevHgTmGLEQYe0100d52Ixi LJ+cUVVkjq4cf4X/dWx39XOSesA3gs5gcpIOoWHx8nS8dIFSSPG6KjddVdvxJ3iirC1+ x/4vsylqfg/uxIlpWGMf8zah0dJUUv3pad/gWgzPy+NLHAKmm7tjDVYp3G7W/U/3T9fK OdNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kxNjrTgr; 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 a14si2540486oib.31.2020.03.08.03.55.58; Sun, 08 Mar 2020 03:56:09 -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=kxNjrTgr; 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 S1726352AbgCHKxJ (ORCPT + 99 others); Sun, 8 Mar 2020 06:53:09 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:47671 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726267AbgCHKxI (ORCPT ); Sun, 8 Mar 2020 06:53:08 -0400 X-UUID: 6ac139c1dcc74bb2aebe453063fab199-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=MYH+JWtN3TW3+5HBk7PMR9MHuRJoGMcqVVaD9IZJVF0=; b=kxNjrTgrtRcrXxFsl0CIgOJ8nfidqGM/m0857NETEPBUizAz8MBKzOs9P9QsATVSgi2p9+GeBTvwXC3M7Ir0hNWDwqMY3os4m75h34RhnqKfBxdcZ8dHlmua8gSUjPU6mC7OwHWyYED7gtRiLhl2btQnmQvm+INMe2ynUv8CuoY=; X-UUID: 6ac139c1dcc74bb2aebe453063fab199-20200308 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 85943508; Sun, 08 Mar 2020 18:53:00 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 8 Mar 2020 18:52:03 +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:52:59 +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 10/13] soc: mediatek: cmdq: export finalize function Date: Sun, 8 Mar 2020 18:52:52 +0800 Message-ID: <1583664775-19382-11-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 RXhwb3J0IGZpbmFsaXplIGZ1bmN0aW9uIHRvIGNsaWVudCB3aGljaCBoZWxwcyBhcHBlbmQgZW9j IGFuZC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