Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp458451ybs; Sun, 24 May 2020 10:33:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxkTD3csnbBgdjbBNyPk/N4twfeDEV3/acuHkBoaIZo1MTQP2zOqJXt0YyYD+AHi7XmbYk X-Received: by 2002:a05:6402:417:: with SMTP id q23mr11952953edv.139.1590341600203; Sun, 24 May 2020 10:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590341600; cv=none; d=google.com; s=arc-20160816; b=YJKxp9CWtKXRbUt5YtXgYM9LinWJaSnt0vyCIPPNpM5cYnp6nGmWgPFa0bhlSwpLWh KIFYIqpgXEGRhNb6+ADoEqbD913YO9vtNJDpMpntQptpZOMj0YLyz4oxs0QnAVLJ5UvM XLiha1TPjEwEZdMJmDvvmOURVRdgYdajBAwaJ4hlIlLbAKqOWP3BT1bcMw27oEAeFYv+ zty4XPsXBeTPwIzsbpfFK3aYykH/1Gcu+Yfl88+sEAl331B5CclggJRgfsCnxjrJzmNq SDlWIo8btJXBDV6j8ha44fO6dXrvdAurfuwmB6S3uXyNQhcey7Dn5hnq3ySqerUbMZJj 1ZuQ== 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=4ZqV79H8kGJw9jKHV///buqGRMGB7UkABgH45B0mwEU=; b=MVsWCuTWLk/c5ZDMVncIfUtfzCfHAdgv5z0eRqmABIScwTru2ldfMnnyB61z6gz8Wc wFB69RbsDEtTPI0qQRVx+DFfO1pPNc133LgpxTqT2VQEqjwJEi2QBFPtbkR9Lw/EzN7w gneNVYf9BAEAVdR+dHgk2Y+LAYFixbM5CVXkf+S5hH921ffgmwCuqMtl8Ssw7aCmY+lx 6AKFtWQIMzpQ5hx+vthB5UWoC6b0P1/ZmZEKZU5fdZkfXOMlVbqFeiYiAmqic7uH255r ORg61waGzYqe3ZnQYlWtJHGXVh+fs8eIIlPRpwHqYGgm38dCwES4tCSpo8+1Yvi5ZO+4 6l7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=IFOC0kdU; 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 re19si7912769ejb.68.2020.05.24.10.32.57; Sun, 24 May 2020 10:33:20 -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=IFOC0kdU; 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 S2387810AbgEXRbN (ORCPT + 99 others); Sun, 24 May 2020 13:31:13 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:19186 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387656AbgEXRbM (ORCPT ); Sun, 24 May 2020 13:31:12 -0400 X-UUID: 973c9456470544e9914d24d4dfde948a-20200525 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=4ZqV79H8kGJw9jKHV///buqGRMGB7UkABgH45B0mwEU=; b=IFOC0kdUWv+Q7vv18nDp5/HQTmtE5SnyY3Y7I4c2SNPNYkAY8jXh3mTkMNvZJl/uHKbiJRJHTQ56h+gSNmhaoUOvd/sl4gd9UZJ8xUMf3HpRMPpPOxDf1NKYJvD3SCX3CxUArosRQKgLtpSjNpfBbKFjPtoc1r5x/SLzdr2xaco=; X-UUID: 973c9456470544e9914d24d4dfde948a-20200525 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1623128748; Mon, 25 May 2020 01:31:10 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 25 May 2020 01:30:58 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 25 May 2020 01:30:58 +0800 Message-ID: <1590341462.31286.19.camel@mtkswgap22> Subject: Re: [PATCH v5 09/13] soc: mediatek: cmdq: add write_s value function From: Dennis-YC Hsieh To: Matthias Brugger CC: Rob Herring , Mark Rutland , Jassi Brar , Philipp Zabel , David Airlie , Daniel Vetter , , , , , , Bibby Hsieh , CK Hu , Houlong Wei , , HS Liao Date: Mon, 25 May 2020 01:31:02 +0800 In-Reply-To: References: <1583664775-19382-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1583664775-19382-10-git-send-email-dennis-yc.hsieh@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: B6B32E7834C0775BF207157EDF3D12E23C8F2F2B886FA00EB0AE01EEBDB016C52000: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 SGkgTWF0dGhpYXMsDQoNClRoYW5rcyBmb3IgeW91ciBjb21tZW50Lg0KD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