Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4952183ybc; Tue, 26 Nov 2019 18:05:00 -0800 (PST) X-Google-Smtp-Source: APXvYqwRXH9PmFLuxqf80Fv7ai7//BVBRDpPvzYKvNjAVNglwWWXjOo7pQi0dAsq/3w9A7SWGvrq X-Received: by 2002:a17:906:27d3:: with SMTP id k19mr22119897ejc.290.1574820300376; Tue, 26 Nov 2019 18:05:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574820300; cv=none; d=google.com; s=arc-20160816; b=ujslbr2LqchVQgX0IKmuteRLPwMGZlM2/lNTltR8V8BwHZjIhpySbMBJ6jMU8Rh2bJ o/4utjSdho4UFm8fY661UjawQ9xWu3IinChvuLjLiAgPDBNZQyBS4pkbkQd4hJ5xeJth mSKdmuxn70a0ZjIySfSqjiEmS2ST9qoM1iEX7P+2h8TpV7fDfBme03Myn/NLvobLFOuI NwQWZUG+DxJYMQHIewmYfSZ5seD5en1i0kW/bZzLXisASdJHB58VbJwFQJJF/HDaTTyn g5B2tFWmJqTlRlZ93bdJqJXlmu5t/DNyEczIuOLECX9o3iPojqSOlGH3Xi7Lquvzv0VH BqfA== 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=ksFxZva0yVyymup3TRMDbaiPXfXSkUQBZI0ZSgsXP+c=; b=Ojpgp6eKIJY1mVh7CKW7NsGHe80i+C2tQl7gWl48LfH76bCPcBMnYaV0IA4y2rms6f pY0sybgZ+O2Ux1iyk5I9k14cTKZyPFHxK0C9+muU+x88JyAWh6T77v98BDZooW/5ESWY 9XpuSOJcbYq0Bo4zhQaErMLB9t6MXEna2R76RVWil2gbWP9d7IClE8nv/0+NJTGb8csp YOw4FJ7xYCgpON1n6wGehZ5vFj9IOxJNxJzFyV1G9epdoR9Mgw452NIIqU4ngpio7QtJ s58XNlOawXAySUU0x/icnal6XA6QdqCcYAyZ+ilNDDJa+eJuTfVjqHx9HM/E4fgIM8SA fBCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=S+7mIb+8; 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 o10si1681458eja.56.2019.11.26.18.04.36; Tue, 26 Nov 2019 18:05:00 -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=S+7mIb+8; 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 S1727399AbfK0CAN (ORCPT + 99 others); Tue, 26 Nov 2019 21:00:13 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:15799 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725883AbfK0B7S (ORCPT ); Tue, 26 Nov 2019 20:59:18 -0500 X-UUID: 2164318353b34eb88fb4b0aa0ffcad3c-20191127 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=ksFxZva0yVyymup3TRMDbaiPXfXSkUQBZI0ZSgsXP+c=; b=S+7mIb+8h4Kfl6gMBg+GgRIhy2I/Yjun1rCG+TnowbpL5HafgIccFMaZu9rGrBGTAHz2Qodb9s+e7EKEtc30mXEe/4+XnpTlSNpbl1j/AQenz29OPeduC4AQO0RXzWm0i1oN+Fk2mFU3uIeSxCukXvx974mOkfOuPgDQ6uvm90s=; X-UUID: 2164318353b34eb88fb4b0aa0ffcad3c-20191127 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 311223207; Wed, 27 Nov 2019 09:59:11 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 27 Nov 2019 09:59:00 +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; Wed, 27 Nov 2019 09:58:19 +0800 From: Dennis YC Hsieh To: Rob Herring , Matthias Brugger , Jassi Brar CC: , , , , Bibby Hsieh , CK Hu , Houlong Wei , , Dennis YC Hsieh Subject: [PATCH v2 09/14] soc: mediatek: cmdq: add read_s function Date: Wed, 27 Nov 2019 09:58:52 +0800 Message-ID: <1574819937-6246-11-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1574819937-6246-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 QWRkIHJlYWRfcyBmdW5jdGlvbiBpbiBjbWRxIGhlbHBlciBmdW5jdGlvbnMgd2hpY2ggc3VwcG9y dCByZWFkIHZhbHVlIGZyb20NCnJlZ2lzdGVyIG9yIGRtYSBwaH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