Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp742232ybf; Fri, 28 Feb 2020 06:51:01 -0800 (PST) X-Google-Smtp-Source: APXvYqyzKHDCODmiVJkypctxh5rNkyjAsTrxz2kkGZQdW6SvJim9k1+HI8q7uDMZ4f3HqjsdVsw5 X-Received: by 2002:a9d:20c1:: with SMTP id x59mr3789551ota.286.1582901461340; Fri, 28 Feb 2020 06:51:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582901461; cv=none; d=google.com; s=arc-20160816; b=XM2idMI/fha/4RfdnJ2HcgtOlTQOyDGLU+67Z2GTBnibS9ofakgNFLAlUL7keXFsT8 qeAS+rWhihsfPJDw0tojH7hd1c/UFqnNlaSZSbAb71Ejm8O0+2BmVd+/DQdrVps6gSSe rWkAszNJO18eqwl6NAVsIKQ5XeeLiF5lqsA/7cT0qgKURV93Ifks8i9FfxRO72rIIJhb SNaRVDEqz1J6KZVG5dgobU/M9W0IS1NBugowqrQZjCMNwW+CrbjVtQVLuoYjqVWu4sAf ShX9pncwBuIh28OUBB+OAyKPnbGQRv5RtrD0b90RKfSTElLgIxYZecUIYtJLN4TvjahS NthA== 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=3ueQZiL6nqQ1TnauprptHOqb48LlnkrdGjJXo+9vhGU=; b=vd11MFfjWd+ZbeOBgUBDQmUeX9pgpdNRjWs2YAqpy7X0Qv4TPHUv/ursMoni2pBoTR 7o/ZBTKGuW2b7JB5EJqV1LO2rUvnz4v8PVLp2/NY/U4RNR4HZF+FrZ++Tok2LEFGbGzw nwU6VuuYKTUCb6E7JDYrZVj4tuEHXPRb7edP5vuhYZFe2dCu4XNK1EguqBJnQGT+TpeZ d9i10epLSYNdczzYyy9q+feUiQqx6HomqSsOq8Z6N2NGfQ4y7/a2xOnsqiAWwLMW/1SD RkhfbGUn+G+pDpBkYjn21DGSwR1Yl5Q6IzYUWfr4czkKEoepAaYwToP2fTlLVUmPI+zA LW2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="OyD/T0rH"; 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 e64si2143087oib.4.2020.02.28.06.50.49; Fri, 28 Feb 2020 06:51:01 -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="OyD/T0rH"; 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 S1727205AbgB1Ou3 (ORCPT + 99 others); Fri, 28 Feb 2020 09:50:29 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:62274 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726905AbgB1Ou2 (ORCPT ); Fri, 28 Feb 2020 09:50:28 -0500 X-UUID: 82bc67a19d344b1d90a1b70cde1a4245-20200228 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=3ueQZiL6nqQ1TnauprptHOqb48LlnkrdGjJXo+9vhGU=; b=OyD/T0rHPJluiKZmsYCpVCfNxrZEWj6P/RAkBv8mn6qz7q5iMYYxubn44OcoPPMCDzZNm5Wq2FkazYipVl2yW486eDt1G3KflhAvJiGq6Q3aY2oM/5OUO1TqlVVgKyeRvmJKldZlFv7gdUnI+r/3dW2d1ysSMsNs5uMUVDC2heM=; X-UUID: 82bc67a19d344b1d90a1b70cde1a4245-20200228 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 658126459; Fri, 28 Feb 2020 22:50:26 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Feb 2020 22:49:21 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 28 Feb 2020 22:50:11 +0800 Message-ID: <1582901419.14824.5.camel@mtksdaap41> Subject: Re: [PATCH v3 08/13] 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 , , , "Ming-Fan Chen" Date: Fri, 28 Feb 2020 22:50:19 +0800 In-Reply-To: <1582897461-15105-10-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1582897461-15105-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1582897461-15105-10-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 SGksIERlbm5pczoNCg0KT24gRnJpLCAyMDIwLTAyLTI4IGF0IDIxOjQ0ICswODAwLCBEZW5uaXMg WUMgSHNp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