Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp590304ybm; Thu, 28 May 2020 10:08:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1LwD7hBBeymzYfnXJh6SulvL8kaB6zrSFSZo4+cmXNC5P4ODIFtvAZWvsWz0/HcGVOUS/ X-Received: by 2002:aa7:cb53:: with SMTP id w19mr4008460edt.328.1590685733905; Thu, 28 May 2020 10:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590685733; cv=none; d=google.com; s=arc-20160816; b=QbFish7CoXhpYT+lOHzktOKWCvTNgxzpRT3j8aVB4imwKeWgGZ/py/03IRbSrB8L6t TvmqdLS1/2Qg6Vv2fby6cWmkj3YGXPJ+vkvUJZCToWPvfS/UNhlqRr8AD4owizOAiGLp A5QYGqXfxRRnd2a3g+YgkaM7PVU3LO4RZkeMZMu+S9D5ldM6Z3N5+/hwipa1G/n3rhXB lCyNOeYBrGMIbRjD9mxWNXr+wsXtPXKUntbpdqyt/RSErCZXw4ekvlyU/b2R3sw5mdEO vF8/olB/LIXLgCDUAIxAdDKTiNu4npJ76Kl4XZWmNG3y53defXLeTygkwEsw3UFKuWI8 Kzeg== 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=cDduTwzUM4cbHoNLZW4CkXVkomSzj7HUBGDiEdYn5EU=; b=QH0/ednFvU025nB34H2JS1/mXvxhR5lwW5d0cwIpKCKIzqPgCObBCY9yuiBOISLydD nxUrkpf6LT5voEoZAHWdrHy/ggYh/2CKqBwp62+e8mGWjIuzdK+MTvr6rab0oSbYDesm dk5IHjpauTXeYIJDrUmkCl9LXps3v9jOA4LBVBJ016YsStCt6lIbNIF4wc07lDISLJ+S mo/8ecPeXbjs8cDxxqCHUG/QSp0ehScaTnpCOK0sk0iUbSF/rDgjOg2NaVCnW6wT7laD suHUsEqO8Rts1YW/H4sm/93BFyJI8kZ0wxcoq3puRwThicqd2j9iXqmF1WHwFTXh4fRp KMig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=X1pyLM8D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id ci9si1746723ejb.218.2020.05.28.10.08.31; Thu, 28 May 2020 10:08:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=X1pyLM8D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2405327AbgE1RGG (ORCPT + 99 others); Thu, 28 May 2020 13:06:06 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:23025 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2405387AbgE1RF0 (ORCPT ); Thu, 28 May 2020 13:05:26 -0400 X-UUID: e85c917b7d314a21b8572b409e964c61-20200529 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=cDduTwzUM4cbHoNLZW4CkXVkomSzj7HUBGDiEdYn5EU=; b=X1pyLM8Dk9OljAtgcrw9SDX5I3ugybx8awrLQsVE4sPmCXST2oaPjFZsb1AI5EFcrbNaPS6x/0rTGfrPZthM8NY2kNKKvyhaTplBuMD6Z6l1EXVzrxxVXiG9THUSgkP7WdTDHvfUG1QfH0yfptVchOtKnqlrnnFHhxeldu/rWN0=; X-UUID: e85c917b7d314a21b8572b409e964c61-20200529 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 261678183; Fri, 29 May 2020 01:05:12 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 29 May 2020 01:05:09 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 29 May 2020 01:05:08 +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 v6 10/16] soc: mediatek: cmdq: add read_s function Date: Fri, 29 May 2020 01:04:45 +0800 Message-ID: <1590685491-17107-11-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1590685491-17107-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1590685491-17107-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 dCByZWFkIHZhbHVlIGZyb20NCnJlZ2lzdGVyIG9yIGRtYSBw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