Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4951262ybc; Tue, 26 Nov 2019 18:03:57 -0800 (PST) X-Google-Smtp-Source: APXvYqyWXko+g+VvW94qNKxbKJotmNhqHAPtXymB+7txle+HjYLcq6Y3KIO6ZpLjFyTMUNuyTuW1 X-Received: by 2002:a17:906:b25a:: with SMTP id ce26mr46045322ejb.13.1574820237035; Tue, 26 Nov 2019 18:03:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574820237; cv=none; d=google.com; s=arc-20160816; b=b3nDmgiUiAD2AFLLwCoEn9sB08Z4CzD/Vt+pUR66l7d0uGGWQHiATG47PnVmc94DRe KeO4kUdCePvJZXbAdg0YNGeNI6jOg9iJIzRfIGTUiNYXgA377SKdyJwbd5of1Kz+WGmf o2doXLiMBF7DEqNa2qP/hd3WompbDqzxuWVz6uLPsZZVsV9u8R1aKfRcgLfUnaNQpmoG Qc1jtOfb8+4RrcSjlz0OluCWnmy/Mj9GXHJgDz/GEUrLuxR4zKa43pmyDDwiwzPS3xJ4 H4Y5IcTWc7IvWyR5haU+7y7Zskxq2HWXGafbpbpeMnRIjoYlkQ31iv0Pdqr0i4vailvc Buhg== 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=zPGMC5v6t5MUoD7pzD6uczn23q0QRwnhRiBaw9woapI=; b=0zgUM7c79XvJwI0IeZ5TKTtWpvolS1QekSQSiIiS3qWodAfkSBu6w4vo/JdpyGfd+r rRgqADzB4AIwdqNSZphoK9HYo02//VfgxiFBEPRIxtoOLC0M48IdnLlZL5e5AeKUc4Xv OzmfEG9rZL7IUlES5u57U1Itp/TBTSIpiAn5dkrzsbVhhA6l38elJSerKalouMnvTOLn pvPBSbjXm3onEosy1ToztcpW4cMjfyBMuAWsxVkBBhiGYv0wwK8YpVEHYKt68hMJwI1Y reFOJhRufLT43fU2FilBNLCJKD6bY8AW7eDbkLVTN6zJ8FRlkYaJfc+z8Hbqisa2l8yY FGgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=XpnmDLdp; 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 d4si10204848edk.445.2019.11.26.18.03.32; Tue, 26 Nov 2019 18:03:57 -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=XpnmDLdp; 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 S1727217AbfK0B7U (ORCPT + 99 others); Tue, 26 Nov 2019 20:59:20 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:27971 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726081AbfK0B7S (ORCPT ); Tue, 26 Nov 2019 20:59:18 -0500 X-UUID: 253b34aa4c9b4b578e3e128092e9d71f-20191127 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=zPGMC5v6t5MUoD7pzD6uczn23q0QRwnhRiBaw9woapI=; b=XpnmDLdpB5OTSqunNXKxr7gGWFDnFfXbPmN8kUxU3J2HXawwkk4l051YQAFky7LGM8m1vKW8CufgywixJ3ihujuhS8XF1WqIJixXSgUALLj/ZhGLudYhMghXqqrMQoLQYOcl5tIiYzhiox12SbhPyDwLaHSSz+KOnswjIZbPe2g=; X-UUID: 253b34aa4c9b4b578e3e128092e9d71f-20191127 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 36497751; Wed, 27 Nov 2019 09:59:11 +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; Wed, 27 Nov 2019 09:58:31 +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; Wed, 27 Nov 2019 09:58:19 +0800 From: Dennis YC Hsieh To: Rob Herring , Matthias Brugger , Jassi Brar CC: , , , , Bibby Hsieh , CK Hu , Houlong Wei , , Dennis YC Hsieh Subject: [PATCH v2 08/14] soc: mediatek: cmdq: add write_s function Date: Wed, 27 Nov 2019 09:58:51 +0800 Message-ID: <1574819937-6246-10-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1574819937-6246-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 ZXMgdmFsdWUgY29udGFpbnMgaW4gaW50ZXJuYWwgcmVnaXN0ZXIgdG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