Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp589610ybm; Thu, 28 May 2020 10:08:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyK69H7r8Gv34ALcp21YlDrdarPumSkOzhYFcqboHEBaZvb6nWFqtbHfjFnvaPe60pZTJW4 X-Received: by 2002:a50:9f0f:: with SMTP id b15mr4072027edf.60.1590685681767; Thu, 28 May 2020 10:08:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590685681; cv=none; d=google.com; s=arc-20160816; b=uv7q0ugxTfo0CBW1bdJ/wW67NE9Rj/fDM4PkNa2FGAQys0iN/yup3mjIjC5OVdLPal c0eAE3lvyxxjhSMJqkgM6kQivYiC3V0CxJF23G5ux0tHmRHimyG+KMd21c6lhauYPEKU 7JxyFjpZMI7JMmyROsYBQ+BKoPxqaW1+hvzPyGDdnHO7yObicoCuyj+d+E0Myd8N+Cfc itRtgNLZB8HgXJa2SCNwoOxGuVgvmE0fz4BvSfGQRHnh248vuSPEyhdXADbLbU2dgUC5 I5Au1MijRFSTnwC1s67cCBzzk2L+g8pPBfHBU7vm5iwMNVhz9emRybN7lsuc2uL21FOx rZDg== 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=UVgt7ge/fa+21BVMr/cXRd5QjAWybnpNKjM4SADa62M=; b=0DfQPrQ9lAf8RpXWwVER85+9jFt1ggJvh6crflCfRALU10/QOyRC0GgdTKRlx1X4G8 TfeXRNA0ThdgfBJt9b5y2GHiFUFBnfy0rhjzIalak/Hw4aBuX28M2LF4QrWSg0c46MFp h4F3drNJ/qTdpzw9h7u5PdcjbsdkURcDBOENcyK0B5glwQySjqWc+FI0M+C5E2sPPnzL e4sBJFPA8/g/cdSx9jo4jSTUW97caumkaxB/qHOR29YJeuowjuwvPAILAmxfzp78F2NL ZyYoucLxqJIad797/2wh3i3TFmMnXsgAg80rIKRYyGH3fTAOtzccspi50orjOIFybWrk DrGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=DFgrxuS1; 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 yh29si1014348ejb.71.2020.05.28.10.07.38; Thu, 28 May 2020 10:08:01 -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=DFgrxuS1; 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 S2405399AbgE1RFe (ORCPT + 99 others); Thu, 28 May 2020 13:05:34 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:23025 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2405360AbgE1RFT (ORCPT ); Thu, 28 May 2020 13:05:19 -0400 X-UUID: e48d3ca3a95e4226a5f1fe9fe5bca577-20200529 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=UVgt7ge/fa+21BVMr/cXRd5QjAWybnpNKjM4SADa62M=; b=DFgrxuS17pSGh2Ocfst6KDX1Ee7fij9acL+QEiOtjASA118bBLLVsMWMFEv840/yi1IilnrsGTOnNsGEZ/ZSX2jNS3Wauf2Yo2RImypWTw5eCqNnUXakMOkwnJYC5vB6y2QtzmJHo+cdN3wKszV7pFT9jsGC4JDMHbi0XeLJbPY=; X-UUID: e48d3ca3a95e4226a5f1fe9fe5bca577-20200529 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 635232611; Fri, 29 May 2020 01:05:12 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 29 May 2020 01:05:09 +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; Fri, 29 May 2020 01:05:09 +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 v6 12/16] soc: mediatek: cmdq: add write_s_mask value function Date: Fri, 29 May 2020 01:04:47 +0800 Message-ID: <1590685491-17107-13-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1590685491-17107-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1590685491-17107-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 YWRkIHdyaXRlX3NfbWFza192YWx1ZSBmdW5jdGlvbiBpbiBjbWRxIGhlbHBlciBmdW5jdGlvbnMg d2hpY2gNCndyaXRlcyBhIGNvbnN0YW50IHZhbHVlIHRvIGFkZHJlc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