Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp124311ybm; Thu, 28 May 2020 17:59:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8uLm4UrUfPm6yAnJqy9lduWfhIRBCKCsRwNXsJlWRoeSG773cQiQ/LSmMxWsWAZLM9voO X-Received: by 2002:aa7:d612:: with SMTP id c18mr6230153edr.282.1590713955046; Thu, 28 May 2020 17:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590713955; cv=none; d=google.com; s=arc-20160816; b=W6wl+rCMlsOFijWZgelG2tsEXRQD/eucQt5VH1GAd9syodLCEWYW2VJEDXe/4Qt5kr 3RZoO/kcFNVtw4P5D/qoTacw09+Q3pqgz2EaPk9PjLMcszQzQtCP/Mn0wSkOjKXkJTeJ G67/tqWHLVicBfxlOtM4xS6kSwfoEDoz+4/oNEC4W208RLu+LMGzv/QxgTHu1jpZe7rZ dYwV26hKxKSuIXe6087Una9C+/COa7lQSspv7GZd4TMmxAeBMKe1H6for7XOE1NVJjDR xCYUfF82yx8C+sdlJS2CgDyhWNKoBwSy/P2TCn8mDCIDSVWi5n2r6TDvCdkUTmqdLsR5 0bPg== 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=/lOPSyCSRH8SaRh0UrYmb2qBLU0m25A26vWSjOAhAzw=; b=IvWDwOyaK9KAADcsL+SJeHtZrZv8Ets/cA8RkLB1PTekM3Bhb1sNu0qthTRvjbEBH/ XkejgqvRrAPvnzfsyMeTX1H4JfNB6XeBmOG1wGoPjWuuj+n/9v2tZSBHXSVxumzlpGfw fGcKHSYyB2gdK5TjxpSS8klLng9+nwAILRIoVR4umWqYUkAC/GOCx3aFL1wN8blbXP0J I149x1grch1sYn4wRSPFcV7bpoZKDF4nv5pD+okIqdgNKMaQnHeTuBfmYZyiLnDLMgEB +d1MkN4MtCPDPr0AhNVCm+Az/QshWTP/1+dQhBgZ5a/zRT0ySuPghHT6I5iAqf2tjOeR 7WSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Awvs9rJt; 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 lr24si4706485ejb.383.2020.05.28.17.58.40; Thu, 28 May 2020 17:59:15 -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=Awvs9rJt; 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 S2438191AbgE2Axh (ORCPT + 99 others); Thu, 28 May 2020 20:53:37 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:32304 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2438167AbgE2Axg (ORCPT ); Thu, 28 May 2020 20:53:36 -0400 X-UUID: a68046c16bb149f5892918719c8b01ff-20200529 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=/lOPSyCSRH8SaRh0UrYmb2qBLU0m25A26vWSjOAhAzw=; b=Awvs9rJtUKRmaW223hgHgyROhiX52oAfmrGmw3ZpYy6TYQpmtDDq+SX9c35JGpO7btn9XMChany4W56FhL+V1w5rzroUwt0HDnhFxfEmBTnEyhoy3fIb2Sybs8nzhX6aEMoM7dUieZUwHol5yEuJVSSQiokfnezy2lneosR4RuI=; X-UUID: a68046c16bb149f5892918719c8b01ff-20200529 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1393919277; Fri, 29 May 2020 08:53:31 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 29 May 2020 08:53:25 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 29 May 2020 08:53:24 +0800 Message-ID: <1590713609.1313.1.camel@mtkswgap22> Subject: Re: [PATCH v6 08/16] soc: mediatek: cmdq: add write_s function From: Dennis-YC Hsieh To: Matthias Brugger CC: Rob Herring , Mark Rutland , Jassi Brar , Philipp Zabel , David Airlie , Daniel Vetter , , , , , , Bibby Hsieh , CK Hu , Houlong Wei , , HS Liao Date: Fri, 29 May 2020 08:53:29 +0800 In-Reply-To: <086cd50f-1cf5-a87d-9547-7a826e6b6252@gmail.com> References: <1590685491-17107-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1590685491-17107-9-git-send-email-dennis-yc.hsieh@mediatek.com> <086cd50f-1cf5-a87d-9547-7a826e6b6252@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: BADAF1CEB1FE522F0D19D2C0252EAD855B25F39E7E640634BA704236E5DB5E2F2000: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 SGk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