Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp683269ybf; Fri, 28 Feb 2020 05:47:35 -0800 (PST) X-Google-Smtp-Source: APXvYqwwYbSlrQoEsWXcjnsaJaI0Moy76Ncrl80meVCKmY9uxETsJ0oa5j7EXqHZdD1/1xSfsTC7 X-Received: by 2002:aca:5dc3:: with SMTP id r186mr3159667oib.137.1582897655115; Fri, 28 Feb 2020 05:47:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582897655; cv=none; d=google.com; s=arc-20160816; b=FXmd17JE2XD4YolEg8zXwQVEkz+q+1PyOLa1ruZwNGpikXvayzcX1rbcxSSKVX11Z8 ebEgr9IYhNIvF48jAkE5cK+rqBb/PkfFsmGgFZPjJ3OH/6MFk2qIvw1Qftxai8KSFSED Nim60aXucJGweGct3FSaHjJ3WQpRMrQSp5UoaKIQeGzzsm6fKKK0TdsFmHjCWi1OaoH7 +DdtKbq1LwVTKtJlanhTAdrgSNt5AdjDp2h9/TjQvJr84Mwe8+93RQ6ARozOGr78aL79 8z4B/s765NJEO6N4/0XAk3snbfUHEeGQF0qF0Yff+eMNpxGgBK/csRCqibalJmpxFIad q2+g== 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=6UQiazPp6mEi0e2sLZd+ePjNTwzK31Dm31hGd7uJBTw=; b=IDaScqrCsuZOCpgkbW71oCd1K+qle681IWsVYK9GbDRFQ7eQEe71zF6BMfyeLU28i3 Shm7+xmJ9SNSl15Y1uaMlnF1rrrzoX1Z0jwIQxG2PS23qhLVy3773LCISxpDvSIXAqiI AYn8iZmoB4C8tdYeBgn+O6FVFF/+aecf/aNNOTtJZQnz+FWpetNrOY/U3ntxnxiBZTma yleQisExj57gDkVQ6K824MRLzV7KMviTfiGdkTdAEu0kysVWoFE/l5dcHERKvWXmCoPn 0MaBCuVPAmdaXLCr9Rc6sxdVuHxtSqjFa7keMuQ09ZUJRiddQjJGkmJk2O1QJayxJdOT pqmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=QYfI9vPX; 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 a19si1916877oia.142.2020.02.28.05.47.23; Fri, 28 Feb 2020 05:47:35 -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=QYfI9vPX; 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 S1727366AbgB1Np7 (ORCPT + 99 others); Fri, 28 Feb 2020 08:45:59 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:3103 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726525AbgB1NpM (ORCPT ); Fri, 28 Feb 2020 08:45:12 -0500 X-UUID: fd638e1a525643c1bd7174593202d998-20200228 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=6UQiazPp6mEi0e2sLZd+ePjNTwzK31Dm31hGd7uJBTw=; b=QYfI9vPXycwyT1vNFOOikXtwVnSeIGLvcdSktIt5Mc87py9viuXSZ9nz304YA3v+wqFN8mVlgrKZ8D2CqHwAJ5T05tPc/n1mT6joZWCzEslpqsgWXwbSaRMvw/W8mFfiMk4IZIftYZ2OIrQy1gbASTNiXjEVlTo1Bf3d8iW6bh0=; X-UUID: fd638e1a525643c1bd7174593202d998-20200228 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1576130903; Fri, 28 Feb 2020 21:45:06 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Feb 2020 21:44:01 +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.1395.4 via Frontend Transport; Fri, 28 Feb 2020 21:45:04 +0800 From: Dennis YC Hsieh To: Rob Herring , Matthias Brugger , Jassi Brar CC: , , , , Bibby Hsieh , CK Hu , Houlong Wei , , , Ming-Fan Chen , Dennis YC Hsieh Subject: [PATCH v3 07/13] soc: mediatek: cmdq: add write_s function Date: Fri, 28 Feb 2020 21:44:15 +0800 Message-ID: <1582897461-15105-9-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1582897461-15105-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1582897461-15105-1-git-send-email-dennis-yc.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 YWRkIHdyaXRlX3MgZnVuY3Rpb24gaW4gY21kcSBoZWxwZXIgZnVuY3Rpb25zIHdoaWNoDQp3cml0 ZXMgdmFsdWUgY29udGFpbnMgaW4gaW50ZXJuYWwgcmVnaXN0Z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