Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2856232ybt; Mon, 22 Jun 2020 08:40:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymOik7UoGL3D8SZ2p6uznEjPWJc1upq116dNZBqcCTZmx7IG5LbSjShPNEe44LU/5hKx0v X-Received: by 2002:a17:906:6dca:: with SMTP id j10mr11623986ejt.64.1592840456118; Mon, 22 Jun 2020 08:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592840456; cv=none; d=google.com; s=arc-20160816; b=Fy/sxO2IQqU3F70Pb/Xddf0s7fCXtN0410zc84IoU+JXoK65CPcZfTtGtPUSivUtOw 8bCdUX3yI6mzUIbhQXLX5Jam9oARe1gWgRYzamkUJyP9f1apn0/EbUcOcYyhBgWjfkFv sXQo5Oyc+lKtKkG4+DpmedzhxxTa+TSXx3mWwmuefLGUjnl9/taadu0hxIvhcA5UbY8R spWsHUSS87yecF+MtGvgINNw+Pz55t6uaAZ/810VnG0oeA5MN41fGchLwDWve2IY1OUi 7KLKDkPSIUeQaCH0TTQczUHZ5AnSKvyb64RYCZkht7RrXoeKs+gzEbeZJWOGVm4RadoW w79g== 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=qdItIghJblrh+db3nUEdEkdirsZuBwUJohdvjwiFA2g=; b=IOpUsU32uyEY4gq2RRU/rfktedpyWVIAW4BEHmPDRkJ7CYnkeCC4LM6kYhaqq/n1Wt 0kiS+Re+Hfuigc2hiWtSl1Khd8Djch9jSXxtDj2sf4V+xzc/LO65/dGC8Iz79csvaewB qlqH2g5MX704yXsMqLkrnBPXXWR7CjSKqgG9mGMMHM5injYLZVhJAUIku0DfrE6i8Txl MN96BGnQpkJ3gEZxR8JyybukkP8Pl4OzVlREHBOAH6K3ZHAAWWobjp5uOwxaNG+zJBFE mxuDdoJRv4GuSfFsa3J++0qXIehACKOV/6qGLJych8LlZSCb3hqtq6gdvE9UN3Itvof7 QLBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Kh07k9mI; 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 i26si1530535eja.98.2020.06.22.08.40.33; Mon, 22 Jun 2020 08:40:56 -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=Kh07k9mI; 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 S1729304AbgFVPga (ORCPT + 99 others); Mon, 22 Jun 2020 11:36:30 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:42271 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728911AbgFVPg3 (ORCPT ); Mon, 22 Jun 2020 11:36:29 -0400 X-UUID: 953dfad5722f44c9a217319518176f26-20200622 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=qdItIghJblrh+db3nUEdEkdirsZuBwUJohdvjwiFA2g=; b=Kh07k9mIL6TjTltkdT1EqxEwMOXT7Lz3joV7xWNrJ3KwrfRNiPQW6KUIPeynAHRzEBxEyOeZDiR0admpp+yqpKqRdTGJCaZaoBJsXLkwi8Ax1GQZQp/uFrYOpqKwBoc+pE2eTdn6xQ74iOtpp2blVbcFizKdDxecHZwiX0ETk+E=; X-UUID: 953dfad5722f44c9a217319518176f26-20200622 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2018445330; Mon, 22 Jun 2020 23:36:24 +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; Mon, 22 Jun 2020 23:36:19 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 22 Jun 2020 23:36:19 +0800 Message-ID: <1592840183.1307.12.camel@mtkswgap22> Subject: Re: [PATCH v1 03/11] soc: mediatek: cmdq: add write_s function From: Dennis-YC Hsieh To: Matthias Brugger CC: Philipp Zabel , David Airlie , Daniel Vetter , CK Hu , Bibby Hsieh , Houlong Wei , , , , , , HS Liao Date: Mon, 22 Jun 2020 23:36:23 +0800 In-Reply-To: References: <1592749115-24158-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1592749115-24158-4-git-send-email-dennis-yc.hsieh@mediatek.com> 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 SGkgTWF0dGhpYXMsDQoNCnRoYW5rcyBmb3IgeW91ciBjb21tZW50Lg0KDQpPbiBNb24sIDIwMjAt MDYtMjIgYXQgMTM6MDcgKzAyMDAsIE1hdHRoaWFzIEJydWdnZXIgd3JvdGU6DQo+IA0KPiBPbiAy MS8wNi8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