Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1411818ybh; Sun, 8 Mar 2020 03:54:35 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt3PnGSCf3CCp1JC21JDP1+HVI6gn9KFwmE+9KRuYQ+Ibqhulp/ZbGCbTvlvHE5pxc4VZXi X-Received: by 2002:a05:6830:1144:: with SMTP id x4mr9135703otq.59.1583664875792; Sun, 08 Mar 2020 03:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583664875; cv=none; d=google.com; s=arc-20160816; b=zm06D3Y8jgcS7oAiaVWInDKc4Rb49Hgri0SRBavxu7JjAi+uOEEccyX5FeYgq2Sf9H 8/E88kozcDXqMtuq1iTBLr8wQb16MgEMCthEq+RruW6ZqzaYCcgGU/yVrSlygxWLiqCW z5deH/9glszhgu3DtUznu0DR3IuGJVn5PykPAKE8NgjnRIMvxK/cHcUSSyviCQJcTfBI iG2Nq1lshI4WnaSf9xW/ISyzAbs1bSFQsqj6pZ44ubW/oYlTilfbiKbtugpdcvJVD6pg q5DIgrn4xFn+2rYLFwulcODTqxTXDZm3sp8m3eYUsCuV59HNJSaHTPe1dC/ZXjczjQ2X yzdg== 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=plPRMCv0gSjWkN3Yby1RX9eA2GpH1jcE9KjYJ51C3wA=; b=Er5JFffIQnx4AZr7dJoNHk6iC/yiG6IUugN0oTwZ1cEPanmkBVrFKBuHUBGZEzsfF0 Zkrct9kER4veUuFbAwvKPl8YZOtRAAadk8efpYqE4+0Eu9J78+CE27/3kRWc6Akc/+fT gLm1flG6CXbzFfqwqt3eWZc68zUWoqml37KAmZvsQkR940LSpyIDPxaoSOVWKReyxdbd vMcqqOyHZgrdjiKgYqdfw4z7gCTHyyOveXhlxk3kkvLBiykQePW2QecQyj0DbL2UO+cj MfnnJAPlbgieYLXlOKmLeOwHTw6flqGmE8W6LqlynKLtSBcdF992WvjW5gs5/99pEgY9 oCmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="s8/c0YGB"; 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 12si2420046oir.69.2020.03.08.03.54.24; Sun, 08 Mar 2020 03:54:35 -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="s8/c0YGB"; 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 S1726422AbgCHKxK (ORCPT + 99 others); Sun, 8 Mar 2020 06:53:10 -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 S1726303AbgCHKxK (ORCPT ); Sun, 8 Mar 2020 06:53:10 -0400 X-UUID: 64c1179f5d194a068920a379d641488d-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=plPRMCv0gSjWkN3Yby1RX9eA2GpH1jcE9KjYJ51C3wA=; b=s8/c0YGBV2asOq66pi6DF0a59bvhatVguMIU/vHGITYyan3vXpPaJ1Ep5LwA/0NKkrTZFkwZKgia11AFYDxpPPBNsCPRn9gk/gpICijJ3z9RSfctX2yxxeYQHfYyrlpZz3XC+j0XQ8m10hnhOVKEl5RjRG1FIeU7uXCzxog/hiU=; X-UUID: 64c1179f5d194a068920a379d641488d-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 1287345391; 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:08 +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 09/13] soc: mediatek: cmdq: add write_s value function Date: Sun, 8 Mar 2020 18:52:51 +0800 Message-ID: <1583664775-19382-10-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 ZXMgYSBjb25zd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