Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3293287ybf; Tue, 3 Mar 2020 03:18:52 -0800 (PST) X-Google-Smtp-Source: ADFU+vu2NI/ExxYL188vBLN45VJucE7fJd1WfJ7yl3RzaKUTk4V46CqYifxwGtzk0NnYm5BKbtWM X-Received: by 2002:aca:f12:: with SMTP id 18mr2060283oip.126.1583234332451; Tue, 03 Mar 2020 03:18:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583234332; cv=none; d=google.com; s=arc-20160816; b=id3pq32o9fFnKsEdiLrxv1zFy1X7sXt2dbqMnxV+liwfARSRkr59j9mDzkUvrQw0oY QKHsHSyjc024pLaVggRfJWiBJQLp1GvphevfO79S7d7na/klfB7tyf1t+cWFBVKvXdds E/MpcZS/YlQpRbDS4Cwh/c2KPE65kYagTyOWQoB0glcRFgBzZyUAv0zBc61MuecNnb3K 4FKKpSfXECi1E6zLaLLSRpihf8M8WJixWwXYnVixW7HI681ncspDx+xkXcoJzk+0WQ0r xzw/t8HQ/hi3FYj8+ypRe38nH8p0FA632b0dm8IuF9F60yFgsZ0hJdbFRJsO/wovDyIr wCow== 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=ZXTqlHQ5kstWwThC+eGNwP6IEjw8Bo5QLkKexQfVUioWKMHveutRUr/CPEOY9QxT7W HNtaR2tq/Ap/UPyGlaPU7D+s7GU17TYQK1faHupMTKix9ItHh5G4PIY7FSqvzoIhWerI arLIxr1XqRBLDPzCsuP41LpxadM4GHiICNBGnP2XWwCipiDi3FUNNrUGb3fU34JXZDhO bCFlmiatUJmJrowqFRSeBT7rFLJkBZEsmfEQ25PZMasO8nBHV8FsTyJ9rEey9Jc5Nq0T Xc25HEbSxkCUKDiA9udklCwYSvIiNf9x+8kFYNFKkq1JWkQljZyfqIUs0DWU4AVBopHi RMPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=R4cddJfO; 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 d2si7883625oth.267.2020.03.03.03.18.39; Tue, 03 Mar 2020 03:18:52 -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=R4cddJfO; 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 S1729021AbgCCK7J (ORCPT + 99 others); Tue, 3 Mar 2020 05:59:09 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:30785 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728995AbgCCK7H (ORCPT ); Tue, 3 Mar 2020 05:59:07 -0500 X-UUID: b2cd4d6133fb40d0b63c914db80a6be0-20200303 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=R4cddJfOkjEJSbP0Tx3dvEVdNBp5fPSvPd53Fg4Gsrm2dvv5TqI554K4R5qwP1BdhZqoSkxpQ5SGZ7FKRQRWaV/XDzZSaIE2olOGBozREFNWeLeJ1unqa+74pMHE4tcC2VRHD3diAH8pHoZ8IadknXYwsJvP08R0OXZLQgBn1vc=; X-UUID: b2cd4d6133fb40d0b63c914db80a6be0-20200303 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 2076472764; Tue, 03 Mar 2020 18:58:49 +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; Tue, 3 Mar 2020 18:57:48 +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; Tue, 3 Mar 2020 18:58:11 +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 v4 06/13] soc: mediatek: cmdq: add assign function Date: Tue, 3 Mar 2020 18:58:38 +0800 Message-ID: <1583233125-7827-7-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1583233125-7827-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1583233125-7827-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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