Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5096646ybl; Mon, 9 Dec 2019 23:56:06 -0800 (PST) X-Google-Smtp-Source: APXvYqyrXmP8JKXfRkNJ36biADVo6CGc+j9gy9kAC9fOM7iSSOJ9yHvjtGIuygx4nJU0mzXOjcPa X-Received: by 2002:aca:37d7:: with SMTP id e206mr2944401oia.87.1575964566602; Mon, 09 Dec 2019 23:56:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575964566; cv=none; d=google.com; s=arc-20160816; b=NNwCXVyPphLdffGqMFRMTUlFHXRqWdrt59FyU3uMk4e645KD8UPwBFYF/fszFLB/Or 9CuOEmn9HMEprbKy/7WxQzwalqqDFSudFTHq8Xj8XYYs7DLukqUH5AHyQaQAvprWV8O7 kwcAI00ZvGx0GUhILHnA4ZP3FXXI+M6Ovtd69xxehHY8iNDSlsLKA3w4NeqEl1ei/A7F wnjtbxQRmEzcRMsNbU2sUPBYxe5KFEDfGuOKEupCTuF9/yWYKpDhqkkfLx4B8Iw5Hy4u /5f9eYUawvGJ3bGJpkIFaABtNRGEmyk+8MmNaKIO190TECDvbcBN5nCpUpyIU6k+BOsw 0i3Q== 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=JVrSUftnU6zu374DeJmbQdbn/1WkZQorVyvlrHedkhs=; b=Kw+c8R6gj/8GEZyqilLh09W/nHZV8VflfWb3UaLcfFsEsjb1UiTOWYneUjHN6FR8y7 SSKEnkVZx4adEPoKJ3vbWya2qnspjTtoC9I4P1YuvxzDxLOUlkWZy+MCvf7v+upvcuBC 4Z4/uvG7Ch/1FGt41r/57rV3NBvjdHbhS0hERCGHDBUcPNb6iPPvn38DPEve+phmo/bn DV2Yp23+JyfO1kkK5Gc8Fg5iPMM3jBacQWdpP/2KUGh09ZAnv41qL/P+ezuMa2Kyzq77 YqiwdwZZr4u1tNcoM9INPCNizQGSCFfenSk1plN0i2HsFj2tA/t5JQttxZTKa43Xf/Qm jaDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=J8Hz74sk; 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 o128si1505123oih.66.2019.12.09.23.55.54; Mon, 09 Dec 2019 23:56:06 -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=J8Hz74sk; 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 S1727178AbfLJHzW (ORCPT + 99 others); Tue, 10 Dec 2019 02:55:22 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:12187 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726062AbfLJHzV (ORCPT ); Tue, 10 Dec 2019 02:55:21 -0500 X-UUID: fbe1b8f9fdfa449ea7285c67eebc5ec6-20191210 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=JVrSUftnU6zu374DeJmbQdbn/1WkZQorVyvlrHedkhs=; b=J8Hz74skYS0bk9AvTrD9mhRNxhLc3pvsAtBW5vPw3WtPridK15sZIT/xtXMoGkD472VvxtmnWYbvSfenov/4xFZtChoPm4IB/N2xN0roxiYnzIgf+Mrn8BKedQEgUXKgLuWOuTtFWpCqSLFo2rrH3u5CJu6AzTb53xJdH/NWAHE=; X-UUID: fbe1b8f9fdfa449ea7285c67eebc5ec6-20191210 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 1197431199; Tue, 10 Dec 2019 15:55:17 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 10 Dec 2019 15:54:51 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 10 Dec 2019 15:55:19 +0800 Message-ID: <1575964515.13210.3.camel@mtksdaap41> Subject: Re: [PATCH v2 09/14] soc: mediatek: cmdq: add read_s function From: CK Hu To: Dennis YC Hsieh CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , Bibby Hsieh , Houlong Wei , Date: Tue, 10 Dec 2019 15:55:15 +0800 In-Reply-To: <1574819937-6246-11-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1574819937-6246-11-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 SGksIERlbm5pczoNCg0KT24gV2VkLCAyMDE5LTExLTI3IGF0IDA5OjU4ICswODAwLCBEZW5uaXMg WUMgSHNpZWggd3JvdGU6DQo+IEF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