Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp737611ybf; Fri, 28 Feb 2020 06:45:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyENx4EIYtj4vY96rdU73GPBpWQRYUJ0UuojKJG8GGo7TZ2SZbH5NDxyOKUVlpsSpw9laKA X-Received: by 2002:a05:6830:114:: with SMTP id i20mr3598667otp.320.1582901144802; Fri, 28 Feb 2020 06:45:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582901144; cv=none; d=google.com; s=arc-20160816; b=WqhZjTOLkoa3hslmncMUHfD7PziCeqoysZjlqSlXQ9Yp+hrH8UhRIuu4hYQtXfpXej clLUvsaz/BxHHCL+1NFHXec6HJfx6yliw13AsOGuuWQLo8s0k23A66T7qGYUNKqKe03+ puE9Kb0d8l9bg1ym2OFcGInqPul1DR43BiIsOeXyxyaoBzYJPJttYlvKqh52gfu+XLVQ KWmr2KdSwx3pcfqVIGggG3CaOEKcTR+W9ELROITWDoXe2DNjzKjDYEIutadBKXUGNy6P LjBRhawHNWFvjUJSuxug0vBdsux+zkBtGyCuieKIyCn1E0IxgNnOnwq9IaJfu18YU0kb 3cJw== 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=Oo9OqLwNu+IUBMtwmf3xp6IAkUZJKqSI+TGBkTXf0MU=; b=YKCfeBZnv+lMwV9/dNLidgTrulvoF24IOybmo6+Mb91qxSqjmjNn+YQej3Iep7tYjm EN0uN3txXARDSJEBpgwiuS14kQI43ESyxv+riO7o/rStYHdYTRtvaM9TRfkelCAa4vts DaNyRLnCSzW1jclG7fzgfcC5vn/1v4jTYGM8cbr7RnxhWdfTulrhPDLiwr00PURTjwcN vv0v16xX0KEirx+AVaXOFcnLZBg2SkdZhi6J0+D9jJmQ8MHn49ndp/G+bpxOyZo2BkJP BPoQBWycHz0Km5ZUs6YqeIFe4r0346uOaRLa+TuMQXvhXivMYcsG5URUirj7oX/Ov8Kx nDFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=fEwVUgql; 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 t3si1776622oth.247.2020.02.28.06.45.32; Fri, 28 Feb 2020 06:45:44 -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=fEwVUgql; 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 S1727177AbgB1OoS (ORCPT + 99 others); Fri, 28 Feb 2020 09:44:18 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:46938 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726860AbgB1OoR (ORCPT ); Fri, 28 Feb 2020 09:44:17 -0500 X-UUID: 134be1b3739c47e38870e25573550941-20200228 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=Oo9OqLwNu+IUBMtwmf3xp6IAkUZJKqSI+TGBkTXf0MU=; b=fEwVUgql/zgAEvFPUsB1rTth52ppMq5xvxEtXGDFEnmLQAwzf1iwYmv5g9NQp2GyQFqm1kGUfeWgOREcWZ96HM7YfgEaQrPogjzACShpLTDF+v8lvVjzC2NKuImn5d+Mc/xxcy0fExBkNGQ3sOlK6LTWLJjX1XH+hfIpcrthZW4=; X-UUID: 134be1b3739c47e38870e25573550941-20200228 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1620552108; Fri, 28 Feb 2020 22:44:14 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Feb 2020 22:45:52 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 28 Feb 2020 22:44:05 +0800 Message-ID: <1582901053.14824.3.camel@mtksdaap41> Subject: Re: [PATCH v3 06/13] soc: mediatek: cmdq: add assign function From: CK Hu To: Dennis YC Hsieh CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , Bibby Hsieh , Houlong Wei , , , "Ming-Fan Chen" Date: Fri, 28 Feb 2020 22:44:13 +0800 In-Reply-To: <1582897461-15105-8-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1582897461-15105-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1582897461-15105-8-git-send-email-dennis-yc.hsieh@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 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 SGksIERlbm5pczoNCg0KT24gRnJpLCAyMDIwLTAyLTI4IGF0IDIxOjQ0ICswODAwLCBEZW5uaXMg WUMgSHNpZWggd3JvdGU6DQo+IEFkZCBhc3NpZ24gZn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