Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1412212ybh; Sun, 8 Mar 2020 03:55:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs1KfnXDgwczk5C2k8Wp0Bm5ldWQ2CNMITp8um1i440ByiVMksf/LKCxBDAO6pULPukVDg0 X-Received: by 2002:a54:4496:: with SMTP id v22mr1373568oiv.132.1583664909667; Sun, 08 Mar 2020 03:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583664909; cv=none; d=google.com; s=arc-20160816; b=mTNmJdUh1Vt5nLM24fMkrW2GQyOpJ+fvGlApeVegZF4FbLf4cwMiJSrI0Zi3szZcsA /LEcOFTKhs8pWOA44xX3UfLilSwt3JiyNtXXLQ6uwL1FciU5JQYd+WHXoJqvFPigniZh ICJPydVD/kD/jRZgETts6rbUhoN258JcER0f9n76tA+QBaWgTWvCqnLAn7IRLgGC88xT mDaieSq1YuMjCUz5Gq1hr5AjO/tT6162lQG1mJiiHVFE9WfsPWiuMyQrhhSxzh8ZdZha tfkdXZBhbWkepLdtHd4BwCF9GUtjGytJwMW373WkLWhElH7wdvXSlhhWnt8FuaaSzXgX WW2Q== 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=8AiHAdYJBCibSgwBrJh33Kf+JbDiJkLpjqc838PjuJM=; b=CkDieoAZXsqkJ2HQrV+duEbU+rlbCj/CScyDOlJDGpGnM6wGVMF/p1Q1ltRJOAfwqx UPNBHzvwRJhbnT8onP0+G8ljpAzGQRVSKcBMdU0y7bmBJOYT8YIIotT4KBL/akTOcasB 5HsemSAima+f1QMA5KcqGjv+VBuzCdgrRCRGADKA4XVNqzpypb6vu54Uv6mcQT2FW3OH h8qatk9Erw0NfuWKZOkVGHYP/JgnphT7SQwJTJCwqKnvnq12l58XrDed3HSlLqSb+L+t K8uYyXY3riJtFsD8fRkcIL+DP6Mlz/ZSZEcz7mtVnxkso90u7VpTQtmUv9lFEDs5MODt XmKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=JxZIMh0r; 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 z9si4683724otp.0.2020.03.08.03.54.58; Sun, 08 Mar 2020 03:55: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=JxZIMh0r; 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 S1726696AbgCHKxu (ORCPT + 99 others); Sun, 8 Mar 2020 06:53:50 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:60581 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726279AbgCHKxJ (ORCPT ); Sun, 8 Mar 2020 06:53:09 -0400 X-UUID: 4fb031a6b798459d9608c928407b543d-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=8AiHAdYJBCibSgwBrJh33Kf+JbDiJkLpjqc838PjuJM=; b=JxZIMh0rnems7TrSBAMa2pUGDUsMq5ABG9f65O+FkZVS/iuAi/j3nhGhE7Lg8eRRjzEMATfR6h4J40/hj4XJ+yCtXHCw5OIIk4ZIMx+IVnT9feg0djlq3QyhTcfqxhv7F6QkHxWKGm4yNyUieBdhl8J9/KafTc7wnqKwbT0yQbY=; X-UUID: 4fb031a6b798459d9608c928407b543d-20200308 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 567638535; Sun, 08 Mar 2020 18:53:00 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 8 Mar 2020 18:52:05 +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 06/13] soc: mediatek: cmdq: add assign function Date: Sun, 8 Mar 2020 18:52:48 +0800 Message-ID: <1583664775-19382-7-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 QWRkIGFzc2lnbiBmdW5jdGlvbiBpbiBjbWRxIGhlbHBlciB3aGljaCBhc3NpZ24gY29uc3RhbnQg dmFsdWUgaW50bw0KaW50ZXJ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