Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2038144ybt; Sun, 21 Jun 2020 07:21:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwSrpF9ATQGtVfICFiyCMEnke75EEeBveBY/Ls01H7s2y1Be9W4NqbMoJhILPdrYzh0eeJ X-Received: by 2002:a17:906:ca81:: with SMTP id js1mr6794805ejb.369.1592749275076; Sun, 21 Jun 2020 07:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592749275; cv=none; d=google.com; s=arc-20160816; b=GdnPQE8wNslMnkwEHuvTBEIEszhh58ZIW/qj0rfFy3+zc13nm6dGJS7D0gHu0AtrBU chAS8f5+DCKk9K3tDbVvrqdRxIXTtk++Mb6Nutxi3U1JkWc6wMIuC4+JPuofUIwpgktK 0wvq0O/IS8ZxkoAZNUY6N6iF97+Pcf2cajdAYcR60QASV+3+rsLK8p1CcGVDqKZwfF8r AQ9qSHgnaIBf576xxU02CkzbZ4/MdREZ+aJFflKMWCF8xbCdxLnMhORFTOfrPpdI6mFg I41cVpZ55L0KX5Lx+7PG7uFuDfWZkIArcqrgZ8/vDX0qgBLkoQWEMpWzhduRlbynxshq szjw== 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=Zam9mPbD4TBF/qNyMPB/G3Srii8O8qND0/RAC8+CNYQ=; b=n1kVoWDCdSnF757I8Ms3rXDhdRivS6TTAPf58ff3D1HL5j8pNgGOwWZelKDB6H9dC0 4rCdpwkiPV7Rtp2/UXca4wZdZAkGhXvcyXjsBgxwpxseIe+0hxllOSrFyZ4NDDxklykq hcPPlhoPNcTFTjF3jW/Tmqoga9Oju5dPWLyIU950xoAIzMxR4uvsfH5udvMqgkAmhdZH +nUt/f9p9/vyvqrjezfmu/QPOzjmorqT3nSzed4tM1ZhDoQotDbPQCFJUFPslpZGTmDX ihTw0m9m+k4ucX2GvJL+pcYmA0p2fSFRTJHtZ4cFFKrBLOmSE/7TR9FXsh2bGs/nJ0lK 3+bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=W4vZCdWS; 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 dm17si7630268edb.312.2020.06.21.07.20.52; Sun, 21 Jun 2020 07:21:15 -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=W4vZCdWS; 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 S1730257AbgFUOS5 (ORCPT + 99 others); Sun, 21 Jun 2020 10:18:57 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:17793 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730226AbgFUOSu (ORCPT ); Sun, 21 Jun 2020 10:18:50 -0400 X-UUID: ccaf08de44bf4e5ba52618804f0a4b3b-20200621 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=Zam9mPbD4TBF/qNyMPB/G3Srii8O8qND0/RAC8+CNYQ=; b=W4vZCdWSjeUpWliIMXFQ7qoABeR46fjzrvo4yMjUzrc75YwJ4SEHKJPuRLAsnT4Ow6OgQ1duG0VYFdb62+wnuHf6MHFbotA7OSe3nUMxOLw3YJjjlMahh+TxEz7eA5AZcPkp0beIYFG9SyoSIjTtuVaYNb9OCsps9OBC/jx91W8=; X-UUID: ccaf08de44bf4e5ba52618804f0a4b3b-20200621 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 1886059077; Sun, 21 Jun 2020 22:18:39 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 21 Jun 2020 22:18:30 +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; Sun, 21 Jun 2020 22:18:30 +0800 From: Dennis YC Hsieh To: Matthias Brugger , Philipp Zabel , David Airlie , Daniel Vetter , CK Hu , Bibby Hsieh , Houlong Wei CC: , , , , , HS Liao , Dennis YC Hsieh Subject: [PATCH v1 02/11] soc: mediatek: cmdq: add assign function Date: Sun, 21 Jun 2020 22:18:26 +0800 Message-ID: <1592749115-24158-3-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1592749115-24158-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1592749115-24158-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 dmFsdWUgaW50bw0KaW50ZXJuYWwgcmVnaX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