Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp590093ybm; Thu, 28 May 2020 10:08:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxy+m6rx6b9O1E5zWUTZOhohHD/Glrx+e1Pbw27wlkCBdA1NtkXB8TqMUpwj9MTK4FBPmUP X-Received: by 2002:a50:d715:: with SMTP id t21mr4086115edi.194.1590685718030; Thu, 28 May 2020 10:08:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590685718; cv=none; d=google.com; s=arc-20160816; b=dO3Ww4LTQJnP+86n54Hj0APtcjQR/PeW2Ed7IX8vjnZOSW2mJWZsWtzSX99MvLz9l3 as1eOxHq7t8MBu5flsI53SdBpy+2kVSJShtRwXema1Yy6KU16rXWGYtrNJo6f3uhnb9m +5Ql3JrKnRRPzBf5QAQv6Sdp1lvKXJqbK5XOLE8aI/1nO9foANqtwFPNHQNozKF7BIWD rsW1CPGdV6rovIK81J09CqtcsACurPnHgnYDHsd2Z6z0GKjQz5S2CYJbHHRLuCN1F/QN VK9O1eTRCwuCGKJGvXdEAXMgjpNPuYqWFu1xLnZR88/YTsrleD/G/MeLx/uqiRPZtW79 /niA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=Y/SpmX9E+bEC8sh0zo1++jK/O9BI2h4qV9elHeuJ+go=; b=Zs39H+wI97B2hxlQmrceAeuLpI2IhAz0yM4xRXUqZddrwtJ4ZrsunfCktNpx7rvApa S23+KjYJ3DgLIpe864i1j5LYmktF51+qvepWXIeCoJRUtsHY5r+KNHykHNEaj1g29jym e49PwJ/QMUvcE3J+ZQD2bCe9Hs1Me8Uw/tCiNdVerArsrHQn6tHGRv6gYu/srnjm1CZ/ VnS6a8bSVMJQYtx6/P4w8LWYjeAHAsAUlXF8QT8duOc10+bKowxCVu6mqI6s5oS9FSYo PmzLgYEcjReS9uwlDS7ZqaOg3uJGFRG4UXtaUW12WToM2N38qvON8t3BcW7a1Okp4IXf exoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=bdLkZ55g; 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 qx7si4148457ejb.526.2020.05.28.10.08.14; Thu, 28 May 2020 10:08:38 -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=bdLkZ55g; 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 S2405451AbgE1RGC (ORCPT + 99 others); Thu, 28 May 2020 13:06:02 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:54841 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2405379AbgE1RFY (ORCPT ); Thu, 28 May 2020 13:05:24 -0400 X-UUID: 8e47409db21241609d0e96975fd64d74-20200529 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=Y/SpmX9E+bEC8sh0zo1++jK/O9BI2h4qV9elHeuJ+go=; b=bdLkZ55gFj148EfHy8/SSTn7B4xpFYuajYjCgkZehmtw9lIP7ERmv4xbg8H6bA/s0gnREqYxuZcizPFSCnGVk2aTvqFcKAPHFVnmuGU17BJRKiMtuo5H3/rrcKpO3mLl/goNK0VGHTIPiNkFWrO2TrerpmnmigrCrFWdWoZpMIo=; X-UUID: 8e47409db21241609d0e96975fd64d74-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 1513456672; Fri, 29 May 2020 01:05:12 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 29 May 2020 01:05:08 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 29 May 2020 01:05:08 +0800 From: Dennis YC Hsieh To: Rob Herring , Mark Rutland , Matthias Brugger , Jassi Brar , Philipp Zabel , David Airlie , Daniel Vetter CC: , , , , , Bibby Hsieh , CK Hu , Houlong Wei , , HS Liao , Dennis YC Hsieh Subject: [PATCH v6 08/16] soc: mediatek: cmdq: add write_s function Date: Fri, 29 May 2020 01:04:43 +0800 Message-ID: <1590685491-17107-9-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1590685491-17107-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1590685491-17107-1-git-send-email-dennis-yc.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: E3C3D0E7B3FF7BF8B63BF0C3994412FE370B6B6C6A306CE9CEEAA4033BFA898B2000: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 YWRkIHdyaXRlX3MgZnVuY3Rpb24gaW4gY21kcSBoZWxwZXIgZnV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