Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp683062ybf; Fri, 28 Feb 2020 05:47:17 -0800 (PST) X-Google-Smtp-Source: APXvYqwT3/GPQuLzdkbwFLidcKzsGACB/WUDxawZBNVpH2dBxDR/Ny4MYA3sjQJ5tIhqvA7kyMyE X-Received: by 2002:a05:6808:902:: with SMTP id w2mr3243157oih.170.1582897637708; Fri, 28 Feb 2020 05:47:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582897637; cv=none; d=google.com; s=arc-20160816; b=EIwZFdGkW6OobiP+XRTrydMd0deDkoDdgzrbSq87fcNjMDN9sfBUWwcdUAurCvq1HI dGRJv5vrbD33jjN/LVDzwEnPj9aXs6anSIdBkSD0CX7nbxflPZugsDOtAA9VTq9ZvITI HN03kOox47B3RanDISJJgL05dPxg4zrOJKR3yYXmkut9BlgFdENoeoIrXuj1ZMmjiFmr yTFvdv0wtiITOPb6xZ6mworvUub1LXYBi/nfKzvw+8M4tH/Ox32jS9ebLh6Og/4/qMSH OWArFKHlg3QO4L/TvajA3Rbn1iij7BC6IMFWLjnpMVr+gKh4rjK9iOwltkSfoPMXDzG8 NIqg== 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=1rbM0FjWVbn4A7ZOtndn2GAuRV64Pvgtb7WDKwh/rZ4=; b=A6NVThLyAfMD05NoA4T4hNoLSIFSiTnMVfj5JqFLfvdKKSOyI7ZGMSNTsp2c39m6wK xKOblstbtHCTdRbZL82cgcabeKuGvSOdh9Dcaj0QIwD7/BdFXfpVOC33YFpW5tL0R8yb IusRxoyiJuV3MHRjl2e/zDKhCQOGdGgQnW1WN+y/EAo9TziI7VAP3/fjtYTgLMpkAO9z rAaLXSRbeoiV0AgIcxXAbuT0+mzNQX+sD2Rd0OmHn13kBgeBNTcPefHbFwttGmEi/gXx YRqVto7MSg+HnfwGwLhamJt4zBDbhNbS8LRhFGE1LalKPETiH8hYW80S3l1Pnj8sa7xe K1+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=GT93fBR0; 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 r12si1801703oij.113.2020.02.28.05.47.06; Fri, 28 Feb 2020 05:47:17 -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=GT93fBR0; 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 S1727143AbgB1NpS (ORCPT + 99 others); Fri, 28 Feb 2020 08:45:18 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:59345 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727048AbgB1NpP (ORCPT ); Fri, 28 Feb 2020 08:45:15 -0500 X-UUID: 7c65038df8954186812dddb68116d8da-20200228 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=1rbM0FjWVbn4A7ZOtndn2GAuRV64Pvgtb7WDKwh/rZ4=; b=GT93fBR0xmDQAYsp6l/VbDrfvqfAAi2LJldc2OgUMzDceyQuwQaubZubLCwAiUlTMBwf+3ybmduLhlN2ZMlh9R3KjhiJIgsV/2qgjBZqJRPf1iJMwoMXss1CxFzvv9/Y78O+W5Y++Lwt8k011PtIhZoZ5XR1zsJFQj2k2cBKb18=; X-UUID: 7c65038df8954186812dddb68116d8da-20200228 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 392299191; Fri, 28 Feb 2020 21:45:07 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Feb 2020 21:44:08 +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.1395.4 via Frontend Transport; Fri, 28 Feb 2020 21:45:04 +0800 From: Dennis YC Hsieh To: Rob Herring , Matthias Brugger , Jassi Brar CC: , , , , Bibby Hsieh , CK Hu , Houlong Wei , , , Ming-Fan Chen , Dennis YC Hsieh Subject: [PATCH v3 09/13] soc: mediatek: cmdq: add write_s value function Date: Fri, 28 Feb 2020 21:44:17 +0800 Message-ID: <1582897461-15105-11-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1582897461-15105-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1582897461-15105-1-git-send-email-dennis-yc.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 1C8DF74F6D1ECA49C6F7FF1CC6C1E97C1910ED5E88E7FD03DA95DF2D1656A31A2000:8 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 YWRkIHdyaXRlX3MgZnVuY3Rpb24gaW4gY21kcSBoZWxwZXI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