Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2039719ybt; Sun, 21 Jun 2020 07:24:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXnviX+53Td7SmE++u7ZqfdKZQQd6V4+T3IRpw/ja6AdIlX9Md7Ux+jNYcsx3V/ssLf+uO X-Received: by 2002:a50:9b14:: with SMTP id o20mr12805276edi.371.1592749440140; Sun, 21 Jun 2020 07:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592749440; cv=none; d=google.com; s=arc-20160816; b=ZbUi/YYL9TD2WD5yVOjtbVcF9sBVMScHWWXUNS0Q2HpXlSXmvGYqYtGbnu+xRFdVhC vvNmgR+wMZzZEkyywAIrh+BTYlbgN/nszTLcRoG176rhJJ/heIrRfRU2HS91AzpMnqcE AJ5QfJKS61qd4ppCge3PPya9XNf3iQdlYC2UhXO1lLSveiusjZmoVSYNkqt7BTjjEcpT FTTFvQHoUs1XH7SC1prng+Tv/frUo47tNdsXNL3rufzrB01lCnyp8PkEm/3pVsp2lK4j fITJEn+g3o2+gYxisk3ah5Om2pmK/+sngEo1VYR2cQDXh8jJdpd68gokvFTKi8TdDqTo QkyQ== 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=z/6MqrLHQsTQsidTuO2irev1UR5xIKmOifSBkXoSUNg=; b=tdi7ZNEmD051U/8y/5pEZ9gZ/g/ZYXQptI+H2ZK7F/m5PslvS3BNoQk6QH7yrlv1QF DKuENl5+1NhWn5acfDNb+Hu7GpUXKpheMfou4cmUhCi/hk2npjpqVEXsLZWsyJLzF4ZU xnZzPf/glwTvngBOFDGDoUNLMGNZ6DOEVPVVSBwTkZM/ztun50aCal+HzQj9IdKDVj+P shh7Fpe9lLGELVI/yCn14XNeSfhq9tmjxosnjgvP/8pA1yl1AkHXI4/BQdyqnE2nHuEv 5Gc4eLh9a4e/kZDkjk7Tt8KCFvKJ24ZN7QiN/PdykazaVzCU3cOWdreCumERFvaw7MIJ 8clA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=bln4AG+0; 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 d18si7391452edz.309.2020.06.21.07.23.37; Sun, 21 Jun 2020 07:24:00 -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=bln4AG+0; 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 S1730279AbgFUOTI (ORCPT + 99 others); Sun, 21 Jun 2020 10:19:08 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:17793 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730212AbgFUOSs (ORCPT ); Sun, 21 Jun 2020 10:18:48 -0400 X-UUID: 12948ce7a11b4243a23cbb0e9e05b9ca-20200621 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=z/6MqrLHQsTQsidTuO2irev1UR5xIKmOifSBkXoSUNg=; b=bln4AG+0VjMKgJ8vPRpqkAYNx450z1hXuTT7+ZICca6RRLBbaGNW56BIUWOUuDq9wruTJDr0TEF8HYYQn3pai5p0lZZ3zuP2I0BYHEmHas81TCja+ZNwjm6UAO58Q1QNfUfDAaDYi+creeIc/FiFxSGJAm0Hy0KiO34DNPCvY8o=; X-UUID: 12948ce7a11b4243a23cbb0e9e05b9ca-20200621 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 282607526; Sun, 21 Jun 2020 22:18:42 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 21 Jun 2020 22:18:29 +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; Sun, 21 Jun 2020 22:18:30 +0800 From: Dennis YC Hsieh To: Matthias Brugger , Philipp Zabel , David Airlie , Daniel Vetter , CK Hu , Bibby Hsieh , Houlong Wei CC: , , , , , HS Liao , Dennis YC Hsieh Subject: [PATCH v1 05/11] soc: mediatek: cmdq: add read_s function Date: Sun, 21 Jun 2020 22:18:29 +0800 Message-ID: <1592749115-24158-6-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1592749115-24158-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1592749115-24158-1-git-send-email-dennis-yc.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 2881870B036DE4DA193C50849BC95BCEDAFF4D93D72505568081E3DCDD0D60412000: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 QWRkIHJlYWRfcyBmdW5jdGlvbiBpbiBjbWRxIGhlbHBlciBmdW5jdGlvb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