Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp740895ybf; Fri, 28 Feb 2020 06:49:25 -0800 (PST) X-Google-Smtp-Source: APXvYqzR8N+cf4lfWK91WkZ4xHP8N31agLcQrBTpJye44EY22ZU4A9eIRoIDHa5J3UpTs39rN+Xu X-Received: by 2002:a9d:4c81:: with SMTP id m1mr3652634otf.5.1582901365355; Fri, 28 Feb 2020 06:49:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582901365; cv=none; d=google.com; s=arc-20160816; b=EQipiZrMTvkcGmUE9I3lxHD2Kch7kP0sIsm67bo+JGFagQRqtI0HMg3OyYqEsGcVbs qZU5DwA2eJkTnXftzjaOXWqWCAZvo62JN6eDpayMD8hYdqJTCVMxBKbMh80q7W8DR4AG ebYYGP7OmzFmki3VQmB8ZDOeZ1/sNH/Hu6MnqiBBBQfQcSfwPB9+rPhypOX9sMKVForn ZvYHoGFQTRWTfRlK+/eDv7fEHN/0OJBD6VpcMm5IoiL5xQzvoZVd+8u8c/qQiG41IvH9 29FlsV6eqzGn9ffqs+CL5a7btTQYNsfG0+pqUZ/jTHdIoDC0i3Sky8oLrVDXgas0a5As ru9Q== 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=S8rYojz3CCXZsrWk7K/95dRmIjgQg2sAN3aYNGrhVNU=; b=iLfMP04MzhmPGDhYmRdTLFBiL4dUsjCI4uOCM9kEFA0PZH4jGd6k+2qTVN2yHwWFCG OqHvDa7TRxDUxwYNi5VWhW/V0GPP0eykqUCqb1R8vXdbnImwf6LEcj4G56XJJVf17F3L xSxf7aQMeG4xbBjzZqhDfk0vtCz7CCP1czqkc5jintI+VdZUzk2og5Z6nUrdXulVeJUx gTP4YpW3K+yEGwXQoCh3Nsso0Wp9OSGlTCZeZfvFoY5p1b4wiwEEFJNw3BBXLyM0SXLF laEpEoy7raH/2tx6jnr8pFu9SseHPaDBp1j6a/wA1mfOiOt748CIrthKwcq3z3+v+lZ4 WMTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="tdkTQz+/"; 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 e64si2143087oib.4.2020.02.28.06.49.12; Fri, 28 Feb 2020 06:49:25 -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="tdkTQz+/"; 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 S1727024AbgB1OtI (ORCPT + 99 others); Fri, 28 Feb 2020 09:49:08 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:63173 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726788AbgB1OtI (ORCPT ); Fri, 28 Feb 2020 09:49:08 -0500 X-UUID: 138b06b591704c6280134076cf712b37-20200228 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=S8rYojz3CCXZsrWk7K/95dRmIjgQg2sAN3aYNGrhVNU=; b=tdkTQz+/pxE8T8E9ABQZY6jLqaEt9mCR2M84Q9jFd/Wo2sIHnlBkybhd916CA5vHQXJgQyO+dO0nBvqqa2tXy6R1YMcHDacsGlZDzy2xI6p+Is9L0QfV2xmkvGtzZRFuiRiqYxxva+ioihsXHP5wD+VaVnUrBOzvNkJYduRdymw=; X-UUID: 138b06b591704c6280134076cf712b37-20200228 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 820977458; Fri, 28 Feb 2020 22:49:03 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Feb 2020 22:48:08 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 28 Feb 2020 22:48:54 +0800 Message-ID: <1582901342.14824.4.camel@mtksdaap41> Subject: Re: [PATCH v3 07/13] soc: mediatek: cmdq: add write_s function From: CK Hu To: Dennis YC Hsieh CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , Bibby Hsieh , Houlong Wei , , , "Ming-Fan Chen" Date: Fri, 28 Feb 2020 22:49:02 +0800 In-Reply-To: <1582897461-15105-9-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1582897461-15105-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1582897461-15105-9-git-send-email-dennis-yc.hsieh@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 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 SGksIERlbm5pczoNCg0KT24gRnJpLCAyMDIwLTAyLTI4IGF0IDIxOjQ0ICswODAwLCBEZW5uaXMg WUMgSHNpZWggd3JvdGU6D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