Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3298151ybf; Tue, 3 Mar 2020 03:25:20 -0800 (PST) X-Google-Smtp-Source: ADFU+vvWYu8ui+Cxm1aXRr6n1+FFRbYt0yg4pyAFyMBYa1/hHsAP/c7GFV+54XCxYuso69NrZ7Hg X-Received: by 2002:a05:6830:1351:: with SMTP id r17mr2772145otq.227.1583234720525; Tue, 03 Mar 2020 03:25:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583234720; cv=none; d=google.com; s=arc-20160816; b=I6yX6WjtgTfLgAoxUKAsBGk/19raFcfsBZ+nHzXlgK/0qdNH+lpy4ZeS444K98ZFUf 5OUYTdWxOC3kiWpzXcF7v0DepsqcLlG+FWYH1ne7v4V5zW1pAFu6NF64QudtdJINTZrl eg9zb1SsXDSeHg3GVLyxIPlwEkH6iDQ+IoQkFQ13xmnmPPGgQ0OSAbq3aZmJ4c0hwVZu /E0K+5S5YBe8y3tu07q9HmSn5r/POzMTFJCKjVAqq4ps0Bd9+9PDsqCHREKyNOGB/XPo rALfJYi2lujNLsfIELyTUw14PRAejOtlMCx7eWWaF1YFzKeR0sQptfyunfSxtiSOBSvl WC9w== 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=330LQhd/xVZ1G+avzxWZxFCOS8OiLlS0YT5gBwzchlc=; b=w4GYjsJztNG1y9hvk2jw3y73kfqxHigxiax29MoIurVemIBn+sSy0UjN3128EUNzuO 2kksnlbtH6E0K2fLPFmf9ZER3ZN5OoYTq7dqGye0xNIiHlOj4s/2wWqF7LroXNwfYRnv OaW8CKKA0JcB141XTDmQILWW9vDI+MZp4M8k++Aw8Vvk8i7bkwADlYW0x46YKeNyFqAS 0q6FfLoAaTl2th/4/BoxlCATkT3JqpkPieEWLb/VUB/9yKyERdO8ZsR7AVhwci39y0jx AL46beF5FsbQT5XbyoCIAqgcXV8bbFyiZZgCR0izuv8WUeWZO8Ns65tkPz3AnQBxrhlN UlBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=S0Sqm0zc; 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 g10si419392otn.244.2020.03.03.03.24.58; Tue, 03 Mar 2020 03:25:20 -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=S0Sqm0zc; 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 S1728963AbgCCK7C (ORCPT + 99 others); Tue, 3 Mar 2020 05:59:02 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:40631 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727830AbgCCK66 (ORCPT ); Tue, 3 Mar 2020 05:58:58 -0500 X-UUID: e18f7376a3e84fed836cde0404e8c849-20200303 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=330LQhd/xVZ1G+avzxWZxFCOS8OiLlS0YT5gBwzchlc=; b=S0Sqm0zcUIkkTbVkz6Z607PvMVoaKIYtPWFltoNQkunSBf7W99OcSseM35K/KZCzdZppjs1V2jx9Mfdd7rLBne3G8PdiET2vohGjyb4xll1Qqblgju8AlTHk6x4yw+89dP2m7wemPl1Wu+sQIXSME1QhUGnuo6U5G0NyaV7LL4g=; X-UUID: e18f7376a3e84fed836cde0404e8c849-20200303 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 840710997; Tue, 03 Mar 2020 18:58:49 +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; Tue, 3 Mar 2020 18:57:48 +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; Tue, 3 Mar 2020 18:58:11 +0800 From: Dennis YC Hsieh To: Rob Herring , Mark Rutland , Matthias Brugger , Jassi Brar , Philipp Zabel , David Airlie , Daniel Vetter CC: , , , , , Bibby Hsieh , CK Hu , Houlong Wei , , HS Liao , Dennis YC Hsieh Subject: [PATCH v4 08/13] soc: mediatek: cmdq: add read_s function Date: Tue, 3 Mar 2020 18:58:40 +0800 Message-ID: <1583233125-7827-9-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1583233125-7827-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1583233125-7827-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 dCByZWFkIHZhbHVlIGZy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