Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp248057ybl; Wed, 11 Dec 2019 17:32:10 -0800 (PST) X-Google-Smtp-Source: APXvYqycz2HOrJryEm8qxq9aeLBjE06w/drPBkRfCQkYmsD3QzZTVFpYfBh2NRR5CslPgX7DzPYU X-Received: by 2002:a05:6830:1353:: with SMTP id r19mr5276036otq.288.1576114330804; Wed, 11 Dec 2019 17:32:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576114330; cv=none; d=google.com; s=arc-20160816; b=m8NEC5iom1O7zPDWYj+6k3UQfEMsLQbMreGYBX/7rDpaa88RDFuJX+xvBagdlmDos/ 7Xwa8czZBmW+8tHiKruclVCZxzAlDuT7V3AJCM+33LXm67KbU73xSqjWc13Ko8W57ha/ UURduSaM9JEDBPnZvi+Z9ev3DzfkFf2m++ZT7yYJjs6puSLbAJbx5cqhuOvDPfRnQJdB YlXNWk0Qg+KJrSPY0xrW3T4oF8iFlvQX1oHvJDH5Q4K6gltmEaoPRH279RDEsoTC6gln fK/uxQ3U8MNBFrQQzH9ojlCU4arDDzPW4E1LozrDZtkjjWXp7SrQ83yNcoiKX1kKPMC2 pXdQ== 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=z3jXfILSOt5N95Q9i/yWWMY8RXxe+WYzygOicgGVo+c=; b=BBFuv1ZbNFk4UZpQQ/E5QJbBJqSJ8QkGnRM+rkouwSNPJfCGJaw5ekkrFhVhqP2cvx LW9OYDmvh0TbROg2TEyDDt8LMFqwemreDb20zVi5XRITlN8vrZF+b8+6iS01rOdqkfzj ZVhQrU3qRH8LEJvKHq4uwPrO9fplG43zz/fWrq5RKzSU/0BFLcSU2KOeSu6k3L2OcfuT HIOl8ztCQq9TAGjOuq24Lyz2FG3ua5qLACENPZFhnEKiZOFk4SHm0oOgQyxeoSo5F0/N Z2tGp5ruZumrC/QFN2L2CPCz9cK9Bd0mjVgrUnUvoYsLjQuYI7T13KhWiIxHCEkkH806 tSmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=CvmyK1ZE; 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 k23si2221655otp.181.2019.12.11.17.31.55; Wed, 11 Dec 2019 17:32:10 -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=CvmyK1ZE; 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 S1727483AbfLLBbJ (ORCPT + 99 others); Wed, 11 Dec 2019 20:31:09 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:9779 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727351AbfLLBbJ (ORCPT ); Wed, 11 Dec 2019 20:31:09 -0500 X-UUID: 29cb4f943b0e41fdbffbe04318898630-20191212 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=z3jXfILSOt5N95Q9i/yWWMY8RXxe+WYzygOicgGVo+c=; b=CvmyK1ZEyOxeN/Fs1neZS0/I5uk/WNBRs/4ovVFHQU1sdNZIqdvLk5np8L+xx+4nMPnGHm77tHoJOkyUHDzyH/2w0QgZ1ffEeaG6JX58m2dGJORDhKxV9we+Ou/A9XMCxZb0D4PQ3dwN5ctprDkISeM8rnHKKYrCBI2fT96wSF8=; X-UUID: 29cb4f943b0e41fdbffbe04318898630-20191212 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 191698795; Thu, 12 Dec 2019 09:31:05 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 12 Dec 2019 09:30:44 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 12 Dec 2019 09:30:59 +0800 Message-ID: <1576114263.17653.9.camel@mtkswgap22> Subject: Re: [PATCH v2 08/14] soc: mediatek: cmdq: add write_s function From: Dennis-YC Hsieh To: CK Hu CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , Bibby Hsieh , Houlong Wei , Date: Thu, 12 Dec 2019 09:31:03 +0800 In-Reply-To: <1575955103.31262.10.camel@mtksdaap41> References: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1574819937-6246-10-git-send-email-dennis-yc.hsieh@mediatek.com> <1575955103.31262.10.camel@mtksdaap41> 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 SGkgQ0ssDQoNCk9uIFR1ZSwgMjAxOS0xMi0xMCBhdCAxMzoxOCArMDgwMCwgQ0sgSHUgd3JvdGU6 DQ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