Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4982495ybl; Mon, 9 Dec 2019 21:19:14 -0800 (PST) X-Google-Smtp-Source: APXvYqxx7fOQa6aU7Ho0Pq+M3qbc0FZ+3FtKVSL4AM/N83gVoKzwirIMb9atwcmwtlckO/vTm0pc X-Received: by 2002:a05:6830:1309:: with SMTP id p9mr24992430otq.328.1575955154024; Mon, 09 Dec 2019 21:19:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575955154; cv=none; d=google.com; s=arc-20160816; b=vHGb/+HTOPnCg9fjp0LhKcLnk0KKFLH0fjfiLOkjBwkO5lQCbaSuUNjxP0St9em0sB 6X0KLxObmWLSSMYBmxCZOv0R/f1KQj2HkCQVOXKbds44turi8piThKqDwpjHBeSsEWgC E6bdFDb7+U3mSt8U3qlGwBY3eXeU+FCJc/wbp3sd5AvurZ4+tTnxai6chFN69QmQeueR rUuPBohXkAn2K8jWoN918NBiDRQRn4ptCmbIrFKEwkI/JuLHKmXafj7HZmP3H3jgK7WE OGHadY4XGRLeNWEG++E0VQEqwO6Zslj/FWdRUeANDiSJNPGOCtIEACicoAQUiikD92E2 wDOQ== 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=U5dn9iiS6Lkny5IY/aF5ZMW3uyg18odEyEQls0K5nvY=; b=N+rD4i67zAqvJX3/rpTb5yt0wv/N5JJs82Nq2cmotmnCeu2fy6WzbXVSas+kn5CkWv GlWwYs6LEEoMzZz7jBzxaansSNwQmA2W4GKT/0zMPfRfdZhtM1XGe2C767eqzbTqDSa1 mPCeSfXLhQR2iep2XrDgdCXFFM/xVtM6yJf5fg2AwiiHj9183Pvvdd717GnYT/MuawEz buaWj0kghc+hRozoFT8OhRN2J+PfPDQ+8C1RGXqLIwV0f6V+T6T9yCln+2gKQ+WbYMVy gYRbkkmue/A4Yvv/ByzhJYhIEheCFE4dhDoMaaBggQ6ggsfkA+9sdwFEbb6ZRQZXAYsE Vj+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=qyd8Ajmd; 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 l21si1243823otk.142.2019.12.09.21.19.00; Mon, 09 Dec 2019 21:19:14 -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=qyd8Ajmd; 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 S1726500AbfLJFSc (ORCPT + 99 others); Tue, 10 Dec 2019 00:18:32 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:60003 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725962AbfLJFSc (ORCPT ); Tue, 10 Dec 2019 00:18:32 -0500 X-UUID: 1a45ddfda67644daa0b60742d67ad7c5-20191210 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=U5dn9iiS6Lkny5IY/aF5ZMW3uyg18odEyEQls0K5nvY=; b=qyd8AjmdbjWrwWMz26LJC1Y0teT8iupvnBZhwcdqezVOyapKuZ6JuPGHwB5lJ6OCUd0ND2MzXmjqO1/6kcSU3SRRJ6PcUlVmsYdtA9CaZw8+Te+6SFz7r7vCKWlNTVGA+RerLfZYQ9QrGmO727OeofMwRSW3msB5i1qnXiESX+U=; X-UUID: 1a45ddfda67644daa0b60742d67ad7c5-20191210 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2041595387; Tue, 10 Dec 2019 13:18:25 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 10 Dec 2019 13:17:28 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 10 Dec 2019 13:18:28 +0800 Message-ID: <1575955103.31262.10.camel@mtksdaap41> Subject: Re: [PATCH v2 08/14] 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 , Date: Tue, 10 Dec 2019 13:18:23 +0800 In-Reply-To: <1574819937-6246-10-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1574819937-6246-10-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-TM-SNTS-SMTP: 19114C2D8273052152C91583BBC66896FDADFDC8BD073E8DD6DB629FEDD384B22000: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 SGksIERlbm5pczoNCg0KT24gV2VkLCAyMDE5LTEx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