Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4044114ybf; Tue, 3 Mar 2020 18:42:26 -0800 (PST) X-Google-Smtp-Source: ADFU+vtMDGqXhDioIeXF8IEqU9rTa8loHlkgGcUWAqEUzBjoQUcMmDyfFQo3ej/k3D1iYm/a/2wG X-Received: by 2002:a9d:66c1:: with SMTP id t1mr645370otm.73.1583289746156; Tue, 03 Mar 2020 18:42:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583289746; cv=none; d=google.com; s=arc-20160816; b=dRfkI0kUBzgTZp+nS6AY/n9r+aYA/3FDIYbvj7lF4vWxG8Pjuj1R3t7bVfCYUg9m5n D4gqXFx0lSVDW8HKWWgNnc0v66Q5YJJF6Ms4ZEnfBfjZZyxxMQ4qK+A4FbBLPEkEKgRH 4eSHmsXLkdAtDTj/W7TkHXu5C5Th/91g5RRGfdlRsQa9sV8BK6GrYaYWqHsyOWUU498B LbZWcllB4TA8zyLGfbUmksywXhHy3rlQMjsJ2jFbN4E0izsmwMAueizBnKTr02knS97Q MD0uIXBx52o48SZ+clpgiYtpP/iNOBkn0m3E/wzRAr7Fc5OHxKH/Xu0zclvwmrO7OW7/ vH/Q== 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=mwCceAp0UE9DP1V1oSslAhzkGTPBm2qHepKguK+CBVs=; b=0IlKejURExhlM5M1ElWfOZFXAI0wt9ujgK4gH/6cjj7EDEXakFZO0rU9eIHKtg6AQt +KIBHsTROpnevEgoygHNjXCNhcJD3ZUzJ0rZSnxyLcW/L9+zjfgyekTcTLujbym5oaN+ ZnDMN92B3n57t/H+wWqXP2CzCqnv+f4vNwOASxIr7zoJpB0/eK9kFSPiXO9a+t6+zf8h Nz7slq1cMH20O9dOVWf0hCJb63wY3PedzTF63RDoO7QnRFxlfJ3ZD7mCXrzf4S5RezDO Q9lU2bka7RoCoT5eZWNqWdG+k5qkttdXfQEKx1PZ4XW2y1DXJsG49AzelKJkFhCqkoR5 k0uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=b8h3XU70; 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 w22si349057oih.103.2020.03.03.18.42.15; Tue, 03 Mar 2020 18:42:26 -0800 (PST) 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=b8h3XU70; 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 S2387488AbgCDClH (ORCPT + 99 others); Tue, 3 Mar 2020 21:41:07 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:21963 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387397AbgCDClG (ORCPT ); Tue, 3 Mar 2020 21:41:06 -0500 X-UUID: 804602366f134ddfb09bf3b2940cae11-20200304 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=mwCceAp0UE9DP1V1oSslAhzkGTPBm2qHepKguK+CBVs=; b=b8h3XU705L8I67ozIIDv1hw4ls4Mzu6TOah08CH+8hm1iyvhZlur8ZnpypnYQQ3TNCNM50dsaSEWyy/tZzyp7zll9Ow0B96v7fAjUtx13uf+IXIWeIEF6odBi8cEqH0VkiBGcwRzl39fXCw/dI82utaIV61OdYCuR5KKspb6jGk=; X-UUID: 804602366f134ddfb09bf3b2940cae11-20200304 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2121261097; Wed, 04 Mar 2020 10:41: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; Wed, 4 Mar 2020 10:39:59 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 4 Mar 2020 10:40:20 +0800 Message-ID: <1583289660.32049.4.camel@mtksdaap41> Subject: Re: [PATCH v4 10/13] soc: mediatek: cmdq: export finalize function From: CK Hu To: Dennis YC Hsieh CC: Rob Herring , Mark Rutland , Matthias Brugger , Jassi Brar , Philipp Zabel , "David Airlie" , Daniel Vetter , , , , , , Bibby Hsieh , Houlong Wei , , HS Liao Date: Wed, 4 Mar 2020 10:41:00 +0800 In-Reply-To: <1583233125-7827-11-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1583233125-7827-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1583233125-7827-11-git-send-email-dennis-yc.hsieh@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 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 SGksIERlbm5pczoNCg0KT24gVHVlLCAyMDIwLTAzLTAzIGF0IDE4OjU4ICswODAwLCBEZW5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