Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp458848ybs; Sun, 24 May 2020 10:34:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI1YJ7kZD9cH/tp3QqpzrE+qTBvfzhaDf9geGPbOsS3CrJfUzHCIxkPTJRBDDaUB0Kk+kO X-Received: by 2002:a17:907:10c2:: with SMTP id rv2mr15538457ejb.309.1590341650063; Sun, 24 May 2020 10:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590341650; cv=none; d=google.com; s=arc-20160816; b=XkZeEuhE3bguhen0xSRZFP2y90HNA5OaBikuct5UKt2e6rV3xGjg1aNZuVon1mU1s3 Sa54qyQOKj7y1S8Fop9JpJIMB0EW/qA3NR5txpisFhV0+1pXJvo4muxPNSixDrvtYTMq Nq8K7xunHD9Eqt0v+ajkG5johryz2RyO27VgyFlWj4KTpT5zLbz7lv839rZY8XvSC1Yj n3yP8ojh8E9uu90zti1KhToeLLTHrHJwAfaMqRIalGb50Pj5+h8ptlZh/kQDLUmpswcA M6mrRo7C6sIPyUkXehBc6DYxXIACzyCBvvxAyyf0qmzrPlvhtFu76VldR5RtBYSRMYqw 0zqQ== 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=bEukpIDc33kmSBnyaSWesUR3coz87RG9SGtY78KDiQM=; b=pgrKqPuPJnOn3vRNE4TWllWVT7eL2ifKS4o7mN9gc8cXFhlRhlDOQbj1qQbtv5v8WA W5Tsh3RiiA5Z8SnrDNEM4N8jfJGtSoXmnuJZBL0q8BBbx8vYp2SL4yKzpR/I6lZjSeiz AzF10VA+ibB0V1hlI0Qm5OItqJli0WueS9eWYeWwQQubWcTlqpVBYKOcVVZIBGVydy8z 5vBwGeRN1Dd4qRIRVpbSGUwyQ5KiqpOmmBPrdv3W4RMUb+eOyp+wMr27wK98agso3oAn B5vlO1BRBVw2sRniIm9lxdzQSeNSAoVkvSUJea8245VhsXDSFw54vFfxrKnHE0J03zNm lU0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="rjB/g/PY"; 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 dt13si10154277ejc.368.2020.05.24.10.33.47; Sun, 24 May 2020 10:34:10 -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="rjB/g/PY"; 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 S2387838AbgEXRcH (ORCPT + 99 others); Sun, 24 May 2020 13:32:07 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:47943 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387656AbgEXRcH (ORCPT ); Sun, 24 May 2020 13:32:07 -0400 X-UUID: a81777fc366a4390920a534f53bb5e25-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=bEukpIDc33kmSBnyaSWesUR3coz87RG9SGtY78KDiQM=; b=rjB/g/PYoVvsoAeButEc65q4Ml22yNb+QvyhY2w8xqxgta7N/5GD7nNL4ki47C4h0pkRq+QNiGRWnyqWEnr32TdrSGnQjnVLgyIEU2Xlh+CywLgKsC/H+0sDEOK7lw05ldhiA8fBPvkfKV3aBYKu5DbxwWn6kXLOIk4e2Uk0/rk=; X-UUID: a81777fc366a4390920a534f53bb5e25-20200525 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1274283432; Mon, 25 May 2020 01:32:04 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 25 May 2020 01:31:59 +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:31:59 +0800 Message-ID: <1590341522.31286.20.camel@mtkswgap22> Subject: Re: [PATCH v5 10/13] soc: mediatek: cmdq: export finalize 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:32:02 +0800 In-Reply-To: <5d6b61b2-23c9-647f-fa22-73e779010bd8@gmail.com> References: <1583664775-19382-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1583664775-19382-11-git-send-email-dennis-yc.hsieh@mediatek.com> <5d6b61b2-23c9-647f-fa22-73e779010bd8@gmail.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 SGkgTWF0dGhpYXMsDQoNClRoYW5rcyBmb3IgeW91ciBjb21tZW50Lg0KDQpPbiB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