Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp235302ybl; Wed, 11 Dec 2019 17:16:05 -0800 (PST) X-Google-Smtp-Source: APXvYqwVcBbrZPZ19HKdWWAxHQua3YsCRhV74P5p0zgUKPyBfWtxzIQzMaEGx3z/v7AEuJDVtoQ1 X-Received: by 2002:a05:6830:1353:: with SMTP id r19mr5204816otq.288.1576113365104; Wed, 11 Dec 2019 17:16:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576113365; cv=none; d=google.com; s=arc-20160816; b=JBoM6OdSEeUPK2zXuhx3vo8dW7rl46OijrB/bpkDpbirHt2Vrjzv+JDlrpJamLhgxG lQE2MH2ICApPVT62BwayK7Nbrm2JX4nrm4wORE1EgSs69F22qQT+zp54w0zwJapuwNx1 jUAPwl6g9i13563M63JYM+9cRkYNbY7FzBSsfdgZaxgerA2h9DpwwyqmjjPd99rlDZii vBUuj7o7/tN8VTwlCuuh5x+h2IZP3PMRuOcdjltMIr6KP6eHvuRyYAZQ+FwnvG7/8EHT 68F3/nZRqsspOxzcnbbfukTSn0+/fT8GOfYnV8ngSFC0d+m5B9eTO+cm7orta3VygWbj p5BA== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=S7n6BLXFBYrGU/yLiTGj/uEVDc5Kend99TF6tXx8EAI=; b=q4rns908VVe96xLnM2j4Yvg0Dy8xPv8eZIsOWJJUgAj+vNEHfhD/VxJyFNCeqZZ8WB LmEbySroKHbSqnK1VZCUW1eHE0qqPkCmUE48u02ceFQsVIKQUtcqnDpI9izSTY24t6l/ zxjXrngj4+fAW0q5bYTV/1o2zRQevw3/NEvhaLMYNGmnSW95QvYJd4HKrBXp1S+Yid/m jIijpWVSSRTitCJtEGUZEkk5UuQHk0MsJHMw+3M/RI2/0FsaFgRev1IW5QoT9kFaMt/F ZNcatNZGOJEz+Q9trFHmFq4VTCwr+hCWIr8tYFngxA+aLQ962mE83evklhF/fQQqkw4r 8cSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=pIzoge9N; 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 u13si2232450otg.118.2019.12.11.17.15.51; Wed, 11 Dec 2019 17:16:05 -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=pIzoge9N; 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 S1727461AbfLLBPH (ORCPT + 99 others); Wed, 11 Dec 2019 20:15:07 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:12479 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726791AbfLLBPH (ORCPT ); Wed, 11 Dec 2019 20:15:07 -0500 X-UUID: 01d595a00e4e485c81ffc37da6944f23-20191212 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=S7n6BLXFBYrGU/yLiTGj/uEVDc5Kend99TF6tXx8EAI=; b=pIzoge9NbhMCQefIEXvCMsp7O3fTiZpbja5sppxPRkSoaNfEbGcBZzQSXjSxO6/vFd+Y/A5zYwzvMrsHj6Z98uWoRyn812tsUlJWhINhg/whq68EJq1GI2fy6OMbGDQCeQ/s0C5uZ+ucycbxWIJtpu1ES24E2bonBpSGqIBoI4s=; X-UUID: 01d595a00e4e485c81ffc37da6944f23-20191212 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 566963519; Thu, 12 Dec 2019 09:15:02 +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; Thu, 12 Dec 2019 09:14:41 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 12 Dec 2019 09:14:56 +0800 Message-ID: <1576113300.17653.7.camel@mtkswgap22> Subject: Re: [PATCH v2 07/14] soc: mediatek: cmdq: add assign function From: Dennis-YC Hsieh To: CK Hu CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , Bibby Hsieh , Houlong Wei , Date: Thu, 12 Dec 2019 09:15:00 +0800 In-Reply-To: <1575948247.9195.0.camel@mtksdaap41> References: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1574819937-6246-9-git-send-email-dennis-yc.hsieh@mediatek.com> <1575948247.9195.0.camel@mtksdaap41> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 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 SGkgQ0ssDQoNCk9uIFR1ZSwgMjAxOS0xMi0xMCBhdCAxMToyNCArMDgwMCwgQ0sgSHUgd3JvdGU6 DQo+IEhpLCBEZW5uaXM6DQo+IA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