Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp593039ybm; Thu, 28 May 2020 10:12:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrq9NnbytmI+WZ6BCuIGn6jCoU3yphpLkbjjg5n5tP0S0IHsmO6YTt7GZuwqvJ6VdgjRT7 X-Received: by 2002:a17:907:1002:: with SMTP id ox2mr3839104ejb.189.1590685939869; Thu, 28 May 2020 10:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590685939; cv=none; d=google.com; s=arc-20160816; b=0bKZNrwGtZmLzu5t2e8CfERRs97HE6gkx3QQSnHEdaIQolIHyP7EuCeZOy+hykrZMh ZznRJ/ewY91+kRBCBpSrn1ycgYp34gbDvLyk90MRJSuzB7g2fIF9oumQCpKD+uYKKP9L Xs1rnIEJSP3u7CWuZ9FK18lY7ItP11/cJ34pK4AeiS0M6MnqB/Er3VenShTGtYspSIH8 8VaLAiMYRXOP4E3IPNUDk3Ujrf2Ou1QvywSBV2K9yZmjTkBOx6zieuXFxjnQZxKOBjqu OMp+yRwK8y1tbZcg4vJJqtZyq2tAZRS2/uQhdTYvpnIT9mC70py24VCA695eKU68K7OE wCvQ== 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=JrD79DxkPG6vgTthr7F1uhmCq7ArkvZw4DN+7HGtt27fbiXTxxhVDJTxrb/apjq6kx CZ9Mluel12JElGNaFpLx8sepP8iXQOlaSQ/iPSmWNhaiQJbEjYoFq/2z10N1EipthKnx 4HHRkwSUd24jjiISDwDhc8RVpznX0ml06B9y95FwqNNRrmrs9jzy3NdPu3OOhPKuDIS5 22jyUJvnNxkOR/vIIx142yeBNbVVfDq1eJcK1b1dwsCiTo92GaWQD77OdRCad/XKKW/b WnQMtu/V6tyRf+FhLfxc4ymdyieXwZCVOi22MiOHWDOv9o9yqSODUTMwv6QvZWvWgKJB BTAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=LR9YXxh7; 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 t15si1108352edr.173.2020.05.28.10.11.56; Thu, 28 May 2020 10:12:19 -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=LR9YXxh7; 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 S2405526AbgE1RHS (ORCPT + 99 others); Thu, 28 May 2020 13:07:18 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:23025 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2405311AbgE1RFQ (ORCPT ); Thu, 28 May 2020 13:05:16 -0400 X-UUID: 311a9738b6714c5b98b03d8413b7362d-20200529 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=LR9YXxh7S6Vdmr0Y+Fsy32R/LrIsUPH8PnlE3albe3mqcCTTANRBU/zhNTjlO8wfVXuDFsHMncqTKfV8blWNmdBrQSv87Jqa2XWsvGF2MpypeRZCg/6xbbYQBx2vXiX8mjgmPb175KHBuWnu4QtEPo4LNkMkh+mvBjQK2sjm3X4=; X-UUID: 311a9738b6714c5b98b03d8413b7362d-20200529 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 1605795944; Fri, 29 May 2020 01:05:11 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 29 May 2020 01:05:08 +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.1497.2 via Frontend Transport; Fri, 29 May 2020 01:05:08 +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 v6 07/16] soc: mediatek: cmdq: add assign function Date: Fri, 29 May 2020 01:04:42 +0800 Message-ID: <1590685491-17107-8-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1590685491-17107-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1590685491-17107-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 dmFsdWUgaW50bw0KaW50ZXJuYWwgcmVnaXN0ZXIgYnk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