Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp719479ybs; Sun, 24 May 2020 19:32:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw1t9Nm7WHx/mWyTnHbA/ombqsXxMzERhZAyG5PV+s8Az0bcyN/YIdyCJhcsYrMsvYGWlo X-Received: by 2002:a17:906:34c3:: with SMTP id h3mr16941136ejb.446.1590373930551; Sun, 24 May 2020 19:32:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590373930; cv=none; d=google.com; s=arc-20160816; b=GkSHwHITeQey6g2jqVe8qUN43jU6r18+8KcMEqRsEYi+hl8eNmbUs/qV47brC67AUv q+q0zP3JQdUoEkejtk1JlNDpSxEU+MPPjBB2TE1HZCr2SOJbBu4p3iUUy8701KKgJMtv Vo3mFjXHvIXcRzNjj7XJoeh0C/c5NzTBJD5dkQGRUmNtXDOpTPaSw9Gz2iHklCH1d+oI gEzlGKCbVkYarOAY8J/MQnYWHE15REAM6vU5YuZX6on0tbfv0HzgvSFrlqW5+0S12IQa bPUAq3gGsEqByvlU89nkmkGu7X06dxEJqSmkBP75pUDUm9P0xmMlg9JdNem2YWbjkZ9H 1ILw== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=iCgaqwFsUfvQyQOBvfXfyk2ReBUFB1D+FN/5yAizTjQ=; b=bGyfUuMPoBrClhcj2EIudXfQL4W8NdPzBUGR+IKbq69eR8TeqchEKiyRzCCOVBSO4u ROeprBOMlJtmlgHiuZ9oEEJ64X0dME48Id0TZdzzbTNtbqgdhv2gmD5STeTt5wxiJOJR eJcuH9zUv5RpMM/sihtsOeYKUwJiekGjJmDhOUWxr1wwlf7bN6YBBm1fC4/nrc5wY1BA Mybbt9dKyyaMAQVIT/76hxgBjaJ287d/nMoXorS5hNVAXnMe/6qeIp98/V2Sf+M0xKls RKZB4W3yajJSpK6LsuT7SwtqXfg5q8qvkKO10abbYJ7EKZoeH01iV4mRH5EOhqr7K9eq dnsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=A9+20zyQ; 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 q3si9146662edc.174.2020.05.24.19.31.47; Sun, 24 May 2020 19:32:10 -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=A9+20zyQ; 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 S2388702AbgEYC1J (ORCPT + 99 others); Sun, 24 May 2020 22:27:09 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:26531 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2388375AbgEYC1J (ORCPT ); Sun, 24 May 2020 22:27:09 -0400 X-UUID: 4fc6df781b9b4a069b5cc16a77390c77-20200525 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=iCgaqwFsUfvQyQOBvfXfyk2ReBUFB1D+FN/5yAizTjQ=; b=A9+20zyQu4UmAW9DpAVHlg23ZdynfSZzOahsLkXaj9IjywU/R0exT/SAOvQ+G1ZxjSwrVRtzwmk2Ed8QQV7vvX6f2RSCETJwMS88O9FUxRN6O3exb2WLAuBDn7BMJ+MJuw87j/JNBhW2/oaMZZAylBZDVSN7uyH+aAwNRr2stx4=; X-UUID: 4fc6df781b9b4a069b5cc16a77390c77-20200525 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1671043586; Mon, 25 May 2020 10:27:02 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 25 May 2020 10:27:00 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 25 May 2020 10:27:00 +0800 Message-ID: <1590373621.31522.7.camel@mtkswgap22> Subject: Re: [PATCH v5 09/13] soc: mediatek: cmdq: add write_s value function From: Dennis-YC Hsieh To: Matthias Brugger CC: Rob Herring , Mark Rutland , Jassi Brar , Philipp Zabel , David Airlie , Daniel Vetter , , , , , , Bibby Hsieh , CK Hu , Houlong Wei , , HS Liao Date: Mon, 25 May 2020 10:27:01 +0800 In-Reply-To: References: <1583664775-19382-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1583664775-19382-10-git-send-email-dennis-yc.hsieh@mediatek.com> <1590341462.31286.19.camel@mtkswgap22> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 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 DQpPbiBTdW4sIDIwMjAtMDUtMjQgYXQgMjA6MTMgKzAyMDAsIE1hdHRoaWFzIEJydWdnZXIgd3Jv dGU6DQo+IA0KPiBPbiAy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