Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp682199ybf; Fri, 28 Feb 2020 05:46:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwYJJniqXtzcE2QtUQsWuMZjYG40nOubeB6NLJ+ZLBO5HMloi4cIozUenJNWI7gOfLSmzAT X-Received: by 2002:aca:6543:: with SMTP id j3mr3131932oiw.150.1582897570820; Fri, 28 Feb 2020 05:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582897570; cv=none; d=google.com; s=arc-20160816; b=GAHxUG5OyopGdy1Wh/+l5rIui7kut0piTs5JsvE0Jdj6C9fnKKQY+y7ozbdcysNJbY ZGxdWLCd6DUU7tNeaLtvssud4zSuA4NV8sd1v0ThGnGH5dDfGTlqhMbXv2rjs/Bmg81j HUShq0CsN9cclrCyBwsnITzrl9VGQtrsnignw5A5+HOLIFj9ys6FbYN+E26J/hxS0r86 derzL8y3GGZSRdmsod7zFqHtwsk65Hx9PhpeN/ydXW3oi+Fy+E7qU58z5V6P/UqJoc3U I1whx3tf9ImFP5pROieqcf/VQ6DvPPUC+GOeU5kakiQJTlw81zEs0Al5j0ZJzACzr5BJ SeDQ== 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=V7rjjdGPaGIo71CRHrYBci2AlddPz1yKHLbHWKcAbso=; b=B7/FW6W0uJ1guXYkaMVQDPl03B4g8aT88zKl0/+XwDEiynfaSEMLMfMO1WF6tjYvyd 3rQe/rIZgremGr/SNohadT+4WNvzfl7HtTN8bF4sEYNm760eYU1ELv/I7NCqfbxT7d3v z+SX4Tav3R73E+x8b+nQcbeiEcn6PQx3yLHoY7IdLCnlsCh1QcXktd73axGT9lyWWJEM 6fXWBZUHMrCgOSoB6cHwoAiGEGi7oigUTGGw9BTCHfowkigai9Fm/sQniHFHpDmYvMFY RiIWipFpHLjmefmVpHHMB9vLcYAgEb2+rHLtXJN4kQgXVy/0lLmwN7dCjxHUG+4DYRTP y+Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=bE7OuYGy; 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 t7si1594110otl.133.2020.02.28.05.45.59; Fri, 28 Feb 2020 05:46:10 -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=bE7OuYGy; 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 S1727192AbgB1NpW (ORCPT + 99 others); Fri, 28 Feb 2020 08:45:22 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:3103 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727168AbgB1NpV (ORCPT ); Fri, 28 Feb 2020 08:45:21 -0500 X-UUID: 307f37c30b464ff985f8b41ad03a2667-20200228 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=V7rjjdGPaGIo71CRHrYBci2AlddPz1yKHLbHWKcAbso=; b=bE7OuYGyFnORdFNntUExbivh/VjaU5tHSNFPy7xpBx7mabRyji9Glc80MbeBuJIo/EOBeZi2oxRWieZ+24PDO1UqWjZbpq4ud1Lm+Ldvin5amq9FWTuRfNqi85KCHnJSCLIjPwkntqKPKLk46WfkUB4t4KEuC7NahVY4OZkwipw=; X-UUID: 307f37c30b464ff985f8b41ad03a2667-20200228 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 692356981; Fri, 28 Feb 2020 21:45:07 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Feb 2020 21:44:07 +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.1395.4 via Frontend Transport; Fri, 28 Feb 2020 21:45:04 +0800 From: Dennis YC Hsieh To: Rob Herring , Matthias Brugger , Jassi Brar CC: , , , , Bibby Hsieh , CK Hu , Houlong Wei , , , Ming-Fan Chen , Dennis YC Hsieh Subject: [PATCH v3 06/13] soc: mediatek: cmdq: add assign function Date: Fri, 28 Feb 2020 21:44:14 +0800 Message-ID: <1582897461-15105-8-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1582897461-15105-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1582897461-15105-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 dmFsdWUgaW50bw0KaW50ZXJuYWwgcmVnaXN0ZXIgYnkgaW5kZXguDQoNClNpZ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