Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp250262ybl; Wed, 11 Dec 2019 17:35:02 -0800 (PST) X-Google-Smtp-Source: APXvYqyYUH8aNYapU8/6rBfDbr2SFMpFIziLNAxyVxcXxFBUqqzJFXnWY5Jk+t19bhJ+1He1C6Pa X-Received: by 2002:a9d:74c4:: with SMTP id a4mr5277566otl.119.1576114501854; Wed, 11 Dec 2019 17:35:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576114501; cv=none; d=google.com; s=arc-20160816; b=P+8Lncd2h5lT6pnLVe6cqFuCFTMnFF9h+FpUNJh1I/qmlYN1b8E/LgezbePnAUDN29 zYEXzaR4nBgzP2npU9kKUMbx78z7SWQXu8WGMncfDf/McsKo1pd1HfPzskhjSWnmfhxb 4CxIANT6yQFZF1YPdZA0P8FfcYOYPdaj02Qu42ATwIK1j3iY+PYMmVFCzD3nner5I4ga k2cA1q6a/ZwiG94TaSYAAT7L+bzpqbLmwVWy8zTtF4+w3Ps6sMbEiMx7rOJbVLStB6HZ Nm2lZ+hmo/Hv+T7ni1jFred5XTFByFn4D/XxkIaZwhhngbRJKVVmYw+0U3lZ/sIiE0oN n6KA== 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=ARecqApZNNYt1nHRIt9ZYfGP9FOkfwd1O+i0oCs1XL0=; b=ePGoX4SgTfgjwBBzlr19nkSV+nC0DYATFWeF3T+w4CLzJtckJ+gBjOg/6SuXOnF/5v yUVlBdAiH19xlREWsNqqPdnVJoYOfs+vjXKSeyC2gLvGPwCf6vNneinyVyMwp07labGp yK0eWbt0DJci82S/Y2zPQGl0+kjqeU3iaZzqvbgaGg5oHsootcf2m69CAjQldbpoLrQc pVW5HKhAuCbpneq6BYN1wYJBMo1BdJ7RpMEpRuIcoVTn5leWU7mSo+jZbUwJmoLkEGaY HfP7+XMoVFUTGsoFVExh7cyJICzCgQ9IB9tMa42bAlDr1oKgSCqJMEZk4EVDemO3cgZv y5zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=dOmIJ0Eb; 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 w11si2347958oic.62.2019.12.11.17.34.37; Wed, 11 Dec 2019 17:35:01 -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=dOmIJ0Eb; 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 S1727557AbfLLBdv (ORCPT + 99 others); Wed, 11 Dec 2019 20:33:51 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:18098 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727351AbfLLBdu (ORCPT ); Wed, 11 Dec 2019 20:33:50 -0500 X-UUID: bf4c1f74419146da87338a099d456b7e-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=ARecqApZNNYt1nHRIt9ZYfGP9FOkfwd1O+i0oCs1XL0=; b=dOmIJ0Eb/dEGSqxcnZspet2VG4fdzQysCRKzSETcg2EwiVcb/Lk8bOWU1Adjfrt7iHbgy9IysBD9rWpJME5N4O7OG5kkXloAE6rI2Xmt07Pe1U3xycCOXVTH0zzJQcPzUXKWEHKkA9jh40jkiTB7WnJOOutEYhP9axrrzE3bGxg=; X-UUID: bf4c1f74419146da87338a099d456b7e-20191212 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 1959977323; Thu, 12 Dec 2019 09:33:47 +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:33:26 +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:33:41 +0800 Message-ID: <1576114425.17653.11.camel@mtkswgap22> Subject: Re: [PATCH v2 09/14] soc: mediatek: cmdq: add read_s 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:33:45 +0800 In-Reply-To: <1575964515.13210.3.camel@mtksdaap41> References: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1574819937-6246-11-git-send-email-dennis-yc.hsieh@mediatek.com> <1575964515.13210.3.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 SGkgQ0ssDQoNCk9uIFR1ZSwgMjAxOS0xMi0xMCBhdCAxNTo1NSArMDgwMCwgQ0sgSHUgd3JvdGU6 DQo+IEhpLC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