Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2038219ybt; Sun, 21 Jun 2020 07:21:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFjRlSg5Uai7mA/JSU6OG8sG8BPOgaPHK2aSBnp0ryjeJ119BxRB2BSiGngnKGANfLSSpH X-Received: by 2002:aa7:d283:: with SMTP id w3mr12874819edq.262.1592749282306; Sun, 21 Jun 2020 07:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592749282; cv=none; d=google.com; s=arc-20160816; b=wlQJpNkKGrrkmMRbE3T9byjYOniSuTqMF47feJ1JcO+QrsYbF/G9McwPichf1ieQj7 lqnW0i2Djq1gOW6z+VDXsk0Z76r4n9NO33/ykiA/MadDWurhEG8pkuc7MvusNG/kBpwz 27Vh5gZ6wW/4oJOMY34WDE4GhXNsUt+qkJJCXBw8wRGtuyC6dq+vbz3zFMFFSt65SRBu zAGOqT8N5pHSp3tlg30HmA4qvpgzyw/BLgePX9HSC0n3rBYwvrhVcMXBtbE6sQB2Lww+ gUJ9ijdcU4xpKJ53fPZM+41xuiFFK/SGpCgXM83L39m5r3KtTIv/sVo5DiKE9vhG3zk/ saWg== 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=THoMsPA1sJW3adGTnzrxakfHwiHoKvAI9fnw5opp+Jk=; b=nbcsOFFyCjYaIUExfAgOOhcDvKH27dSqwociKbsUNloPNB4sKbUw84oxfTYTQZNiPx TOG0IwC8VkJ7PXW2z+mpHgweBbqxCGSR9K6DFWj1BdUK2PVJCG1MJ9vOjn7fcF0CoQ5s Zndjbd6shgN0KNe6fwjSuhD2WfsHyAxvBOOsLnuqmHqHbW6ky4hwTjzbfaMehT6tfPut MGK4/OQRe4piluw6mydXyb/dCMbjB0mRkQ3XUXGORJesWek+s5X8fcdJ9ouMGGusnjEF yaaa1jwcRSlRqZObNjOYTjnZZhgV7xHWzpkk28IjFjt2HzaK7eIv6lyO5FexjuXDcx7z l9PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=fzh5ESVd; 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 l12si7344490edn.427.2020.06.21.07.20.59; Sun, 21 Jun 2020 07:21:22 -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=fzh5ESVd; 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 S1730269AbgFUOTC (ORCPT + 99 others); Sun, 21 Jun 2020 10:19:02 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:38162 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730217AbgFUOSt (ORCPT ); Sun, 21 Jun 2020 10:18:49 -0400 X-UUID: 8e2069050b9e4e759c12adcb794c047e-20200621 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=THoMsPA1sJW3adGTnzrxakfHwiHoKvAI9fnw5opp+Jk=; b=fzh5ESVd0OtGymNy5SCO6ITSlR0S2EkLxpI6ZpzxUY/bt/f4ghs0sy4VBVXBUnFjOp7wmCY3DrOwVZX7NxG0DI1DnqL1rpcq48EOA2TMge+YmknDRgptsda8d5ehcMVYcmM3anuXLnB/gtNzHO+kp9JNWrJsQuwYvZuS+fVqJmc=; X-UUID: 8e2069050b9e4e759c12adcb794c047e-20200621 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 721556941; Sun, 21 Jun 2020 22:18:39 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 21 Jun 2020 22:18:30 +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.1497.2 via Frontend Transport; Sun, 21 Jun 2020 22:18:30 +0800 From: Dennis YC Hsieh To: Matthias Brugger , Philipp Zabel , David Airlie , Daniel Vetter , CK Hu , Bibby Hsieh , Houlong Wei CC: , , , , , HS Liao , Dennis YC Hsieh Subject: [PATCH v1 03/11] soc: mediatek: cmdq: add write_s function Date: Sun, 21 Jun 2020 22:18:27 +0800 Message-ID: <1592749115-24158-4-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1592749115-24158-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1592749115-24158-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 ZXMgdmFsdWUgY29udGFpbnMgaW4gaW50ZXJuYWwgcmVnaXN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