Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp249896ybl; Wed, 11 Dec 2019 17:34:32 -0800 (PST) X-Google-Smtp-Source: APXvYqzNfrvd0s0VGlJu10+lAXFEBZFVOuVtNO1e8dk+ZXGvYVQahRwB5FH5ChXb6yJA1i7F/gCs X-Received: by 2002:a05:6830:1e61:: with SMTP id m1mr5201782otr.68.1576114472290; Wed, 11 Dec 2019 17:34:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576114472; cv=none; d=google.com; s=arc-20160816; b=p6XNpGWWrM494cCj7p6WmcfPGXKIN/KUADWSq/zgrVOUYDeXHv2V5D8Q+AgGwO4KR7 WetL7lnv39D2oprGRWq352b/xmwqSCDDEuFGuaABbJdqdS9Br0PiK7yHlnja0vuXpoDC keHZhqeMSY/R95uQL+SuSl6gBo7BAzB4NYyg39NGL7RayaYbhbYjcOOPIYSeq5CN8ku+ sVZ2oWaxbE7NP9AkbisD5EEGK47a7x+omkuzlgjaV+CwDo9T+z4aRpbroz0Ajszcihln Dywx7bHdMY5Wzc6XKM3uB4B6QhhKMlVyvrub62WcLwag93pofnIcqmMmR1rJU0cas46l HR4A== 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=nK2R9M4vgOMADfue/0FK/jrldLeO7zeckYA8kNQqoWM=; b=SkaYbKxSt+W7ab/Vvz1630N8IfClbMW4+YJ2JmDHh/qwjZSjSPY34QdbsvJarlIuJ2 aTmWs/+avM5qQeLQQkw6VJJQ0wAWBhfeIdEKpNguI5mX4WePTKdczOfA2gip2HrWSqUL mCMTNDI0wmSwHNS2uTnzZ8klYUh+G2fZrM3ESDWeHYvSasqMgtQpSgMPDzZhiPxYY9h3 KAB0oiOaPz5lq06tAb9Sojto+WsPRmDUi0oWL7ormngusPQTru7O8z3oC/dy9HQVfIpw GjJYzAOZtVEBDd18pAygidQJArNsNkU3Ma+OiVtINukRECdb71iWPA3hMFlKaCpHH7Vp jrtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Zo5ksowD; 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 d6si2221444oic.86.2019.12.11.17.34.10; Wed, 11 Dec 2019 17:34:32 -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=Zo5ksowD; 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 S1727538AbfLLBcG (ORCPT + 99 others); Wed, 11 Dec 2019 20:32:06 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:56734 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727409AbfLLBcF (ORCPT ); Wed, 11 Dec 2019 20:32:05 -0500 X-UUID: 4668d23a93624f75a55c9da384b7b2b0-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=nK2R9M4vgOMADfue/0FK/jrldLeO7zeckYA8kNQqoWM=; b=Zo5ksowDXa/rz9ggFN02MMM6FWU4+Q82Nx7N53yJzQpK6zdsYT4G1QEllbXno70fW9S5FnktnNVk1FBa3AeCWCtfuyqL5uoAS+OMqC7olxA6gbDqPEjfopAdoyq8RAQ1NuHtD3lhqUIhp/dXM3ZuMZrJOOqzDKBMGMbpQt0tdTk=; X-UUID: 4668d23a93624f75a55c9da384b7b2b0-20191212 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2075683752; Thu, 12 Dec 2019 09:32:00 +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:31:40 +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:31:55 +0800 Message-ID: <1576114319.17653.10.camel@mtkswgap22> Subject: Re: [PATCH v2 08/14] soc: mediatek: cmdq: add write_s function From: Dennis-YC Hsieh To: Bibby Hsieh CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , CK Hu , Houlong Wei , Date: Thu, 12 Dec 2019 09:31:59 +0800 In-Reply-To: <1575963305.31101.0.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> <1575963305.31101.0.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 SGkgQmliYnksDQoNCnRoYW5rcyBmb3IgeW91ciBjb21tZW50DQoNCk9uIFR1ZSwgMjAxOS0xMi0x MCBhdCAxNTozNSArMDgwMCwgQmliYnk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