Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1411598ybh; Sun, 8 Mar 2020 03:54:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsthmSa2pPRx5egtzgkxCiChpctjNwUGuK/RuYGJ1JTP61VNjNgfPwy4Eck9/20JJ8zxh/1 X-Received: by 2002:a9d:7617:: with SMTP id k23mr8748487otl.329.1583664854418; Sun, 08 Mar 2020 03:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583664854; cv=none; d=google.com; s=arc-20160816; b=EQ0refaps7h61Q0W6YDMJ7ehHd5Qh8EfQFHegJDOqZqm8HVf0TGiTsE6WDQNYrTK3S UntPYsp21w2iz6WUKn6zjo/eLIb+q0V5nkCMYzmwCcsUa6hhU6Iy8n5ZfCWbNst1mlns 9BMvlObl00bom4vfgBTAFpLC9KpZhq66yQeeSL9VWBPITHFPqxTMbo3K8feSNKvwUAP0 pwgcqX20w6YEA7ky1sgfLw0p3wMNJnJAJRkB+X2p470Zs9A8JVSGeEwuvrfXaOQfAVwh ZCJrevYHKry6L/PEDMkltmkWLhvfP/LfpcMWg2G4UQQOIo66D5WcVvOMgQ84prIwXsSB 3V5w== 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=pFpidpjWU9UHfwPEYw/xWfycZwgozB0gPn738asT3DNVsuMrTprfT3oL9hJ1ujcmSN 7hupi517iKy1CTaXdTde2yy98Os81uTTeF2DUZ+i6WrFCkko149q7cD3E7xhu8gS+FO/ kgBL6t0A4UHutyepLzmpZhPv1bFnu+Cmw7XmpcKy8we3c9vuAvrEMZ8e9vI7BTT/UwT9 i4MU4ly6S2QB6767lJxcFxZEdUF/Z3JePWPKSaJ5s/dbTcHKv/mWKIT+Bzccr9RtF/u8 OHiMbwmfmefv9zKD66fnLukEDAOpBEXlAB8XQgGA9A6ayGxCVJTm6U/II8buJFsqGGh3 wOZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ctWE+6J3; 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 w5si4473172otq.238.2020.03.08.03.54.03; Sun, 08 Mar 2020 03:54:14 -0700 (PDT) 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=ctWE+6J3; 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 S1726490AbgCHKxN (ORCPT + 99 others); Sun, 8 Mar 2020 06:53:13 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:60581 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726418AbgCHKxM (ORCPT ); Sun, 8 Mar 2020 06:53:12 -0400 X-UUID: b06b08725a9b4c8c9e7a30ebd23a6373-20200308 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=ctWE+6J3C7uELSxU6LJixbbXakTnt86mHVV3lH0vHXf1G987mkzKFpPbhbFwq4o3Tfqb33GIzU6JXwt+WuEAnYcB15qGVbDtqyTxuwmt3Is9L8ukGAh47XhlhO6/WOA3f4GjOALzDubtgM2bAhsDQGczqOV0Gkw3PyJAJtAjFIk=; X-UUID: b06b08725a9b4c8c9e7a30ebd23a6373-20200308 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1026291922; Sun, 08 Mar 2020 18:53:06 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 8 Mar 2020 18:51:41 +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; Sun, 8 Mar 2020 18:52:59 +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 v5 08/13] soc: mediatek: cmdq: add read_s function Date: Sun, 8 Mar 2020 18:52:50 +0800 Message-ID: <1583664775-19382-9-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1583664775-19382-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1583664775-19382-1-git-send-email-dennis-yc.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 631F22436D59D67E0ABAD80506678CF3B60102FEC44A73769B41787CAC3414502000:8 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 QWRkIHJlYWRfcyBmdW5j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