Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1411800ybh; Sun, 8 Mar 2020 03:54:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvWFv4Zlesa/zptjTSzuuZin+UM/pdsnPgwkx3K79RrGa3cwTlrFI6kbbSCdd+UDyQ0g5jR X-Received: by 2002:a9d:6e87:: with SMTP id a7mr9224289otr.352.1583664874158; Sun, 08 Mar 2020 03:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583664874; cv=none; d=google.com; s=arc-20160816; b=ji8e5WqhnLDB4sYmxjrd6SwBEZP3KyKV2Pu4vZFxDEx16/s542L/DFE2w2GQ3/FuaL roJBv0AGsusKRDcIfeaQ7qGH2v2eUrXKEC7W9TOlGyAjoZlyUgSVmi1FcJAoOvPyenZn l1oXDDUwV2G0bpaoRjVVGuYdgbtTtN1AnG76mW0cBc9nfqmk7Ybr0HpCeXamA+iKo+3V SKinWrePfRzVFhpalg/b8DhjdoGZjfU5xwVMh9eOST2LgfLEyhAC8Kdo55HdNKorG3V2 TD89o3G9SkCEPlE47bnsaGYaIwmll0R3KLQkgsvvcFwq/ds7FjXNehBRTxUd7Rb3nkjd uWJA== 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=eLK55L0fZn7XN3zfsQBv7sALD9rbgqr0/O+Yq+Tslao=; b=wYB2AO2hONX7795GODLhCHTCYnj0354uJ65wrLLwiCe/zUNmAwC7/ct0pmPHLNvi6Z dj9XVoDV6UcdCw6MSHAu8Tr6vcDq/9m9MEiD6gprYD5jnHW5Tj7/aXDiHuGn8VQRSbqc J6atQEvvPBZHJ6uxqxbc+VHR22PC5bNhpOlAmQMH/qPEhVwo79Z0dWsEDXNGlxPPnGFq iJ7LhAt3qXpd24qYccIo2rXnAtnuZA6ZlJVzU3wZweztLVcMXPAen7kgm1kJoJ7STYOo Mo4kAMSUtZgQ6bmXmXX5v/kRQS/Gw+yQu4O6pX2fTpZqEF5Ag7FyfxTw5rg+0zmZo/zb /P+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=VVcirgNU; 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 w9si4984192otl.138.2020.03.08.03.54.23; Sun, 08 Mar 2020 03:54:34 -0700 (PDT) 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=VVcirgNU; 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 S1726636AbgCHKxg (ORCPT + 99 others); Sun, 8 Mar 2020 06:53:36 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:9987 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726292AbgCHKxM (ORCPT ); Sun, 8 Mar 2020 06:53:12 -0400 X-UUID: 71d8b507b23e45a8976468faff248270-20200308 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=eLK55L0fZn7XN3zfsQBv7sALD9rbgqr0/O+Yq+Tslao=; b=VVcirgNUfStpi9lGzJLXdc+709Hgxgto8CCKOOrIyKH3NOG405gAeZR8v2FiZFNBOJIF6z+G3V+SfFfCeseIbRIhdTMLqMChECtikveduR7z9SzU+J71H/6ANcYcxI7RUnWFivw2tSZ/r9pETKXwlYNCC+rdEGyNhs+u1XHIGes=; X-UUID: 71d8b507b23e45a8976468faff248270-20200308 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1104674785; Sun, 08 Mar 2020 18:53:00 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 8 Mar 2020 18:54:07 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sun, 8 Mar 2020 18:52:59 +0800 From: Dennis YC Hsieh To: Rob Herring , Mark Rutland , Matthias Brugger , Jassi Brar , Philipp Zabel , David Airlie , Daniel Vetter CC: , , , , , Bibby Hsieh , CK Hu , Houlong Wei , , HS Liao , Dennis YC Hsieh Subject: [PATCH v5 07/13] soc: mediatek: cmdq: add write_s function Date: Sun, 8 Mar 2020 18:52:49 +0800 Message-ID: <1583664775-19382-8-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1583664775-19382-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1583664775-19382-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 ZXMgd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