Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp456272ybs; Sun, 24 May 2020 10:29:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6Nny9izwEc31w20VoNjrdwjQmKsWeQMLKyowU/3cGnXFsqVZBUHrRDZnkDRu/YWRSB6WV X-Received: by 2002:a05:6402:308f:: with SMTP id de15mr11990581edb.108.1590341366077; Sun, 24 May 2020 10:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590341366; cv=none; d=google.com; s=arc-20160816; b=vPNpusOBnv+401VtdmSt5NpwSlWlwmaR4K4v7ty5T4zJ0/cMH+sLVgzjut6DVyPkgu ePRK6N4SXsFIc7BuT5nbw0JOM/OJUqx/mdMoHaEAWXZYC7ivuZ8ZOn9/QZOEfRlKFNaW cRndOmiIL+jjrZl/Q9+3j46+bNzrDm08Bkhsx5HbhIv0QmmLFfUCFlRTYXQoTj4/ts8L GkuHu9XFe3vWYjb9laB0cUW/IuCT09gKLrEEObEapjAKK70Jhgg0UJMaqz1/ExhgGgvk SSK6ExvxmQreY0RKKyM7OLOVJ1/fH4rT1CQaANH2BFoSemN+DrQp6OF+p9XmqU2yScRr Nqyw== 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=Q7+n5IyoAxLjcdQC+D0mViZArPAyMtYuaRQrQ0r48VI=; b=VUPa9ksU19TmBzlU17qTNAB+sDOjVIOwjlghWeIFV8rFlHWisK8kEtVXC4tkx2WUpc Sjonabkza6YtdTqBhbBJCUGgkPW22ThxzvQsQKuEMzcPCXgLsQkTYU9CwziwvKzTeHMf tu6SEIWhzK5KxL9K+hfH2/mFuOwFWHBM4ohEh2od9xkZ74C5SgcJfCHSEIpJfhQF3Z6d XAFOFqsB9v0VTZNQZnq5Rrxs/xk3FPO7+UbOVTDXbVv3ht15VNdc9Yp5kxAy7Exqya/5 CrLDB12wzDekH9oe95CW1hEWd/9/rFJC1KFSFqsEPmi7EXlaLNs2aXzpAVbpCNrY1/fy Ps3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=M0cdk5PV; 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.29.02; Sun, 24 May 2020 10:29:26 -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=M0cdk5PV; 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 S2387816AbgEXR0i (ORCPT + 99 others); Sun, 24 May 2020 13:26:38 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:22494 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387707AbgEXR0h (ORCPT ); Sun, 24 May 2020 13:26:37 -0400 X-UUID: 8b2eaaaa314b4b85bb3a52b298e5eeb4-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=Q7+n5IyoAxLjcdQC+D0mViZArPAyMtYuaRQrQ0r48VI=; b=M0cdk5PVc6rciqm7qEZ2lhccJ4xoWVs3eRekMKtmPiIkQtJElWFAcpTHnclyfB/sG1FarVmZgYqlidbZdWJoJhxDm5nNw0N/0gPqWyiHYUAyFP/e3+a1JU/7vePKBeKBwq504BvGIn0QkfEUMVdNlDpBu3Lf158ayk9diXP4lws=; X-UUID: 8b2eaaaa314b4b85bb3a52b298e5eeb4-20200525 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 483365700; Mon, 25 May 2020 01:26:28 +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:26:23 +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:26:23 +0800 Message-ID: <1590341186.31286.16.camel@mtkswgap22> Subject: Re: [PATCH v5 07/13] soc: mediatek: cmdq: add write_s 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:26:26 +0800 In-Reply-To: <58575c2c-0b5a-55c0-f3b0-082bfd4b6144@gmail.com> References: <1583664775-19382-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1583664775-19382-8-git-send-email-dennis-yc.hsieh@mediatek.com> <58575c2c-0b5a-55c0-f3b0-082bfd4b6144@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: 8E1590C94D6BBEE4965E4561F86ED76CB9E64840B3A46FD7D8D95E317159995C2000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence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