Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3292774ybf; Tue, 3 Mar 2020 03:18:14 -0800 (PST) X-Google-Smtp-Source: ADFU+vtmwyPS9j8ubaTQx/spXsbZpvt1oLmVYgBlJPaOeH4MXcmqjnuA0zmMHvKFHSEpWgTHJI3r X-Received: by 2002:a05:6830:1051:: with SMTP id b17mr3077336otp.158.1583234293995; Tue, 03 Mar 2020 03:18:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583234293; cv=none; d=google.com; s=arc-20160816; b=t4R0oOYhKQiA6zGC0ySrYDDKfdhVaqMd7SWs3hjsLXQaK03tf5PczXPq1tgjeprbMb FPkGmdXjQYPORewqbjBXjNYplYKsGL7Hkvrkgv8njh2xsbfqnSr3kgw0+S61bF4/NoBo AiJed+U41968Gcrf5atqaOinwlbaZ46OLp04brQQzpcPU+Wd/3vDQDCPqkWbq3WQWppw HvoPMgVMoUuXEX+c2uuEniuSiYC/pPAg1lAaEuBYwzaJmqnIEs0yf0GP+C7ucsjGeXlj 33R3w2k5DmI5gdwEGHdUi1WNZch3YfaSZAbdfcGBZFxUzybA+ztIhHD4lbXabmQxSBj8 u66Q== 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=eLK55L0fZn7XN3zfsQBv7sALD9rbgqr0/O+Yq+Tslao=; b=Z9rtBq9V66x1ueJGqlkUh4lCoZbTC298CWqvGW/0wOWfigRAENnf4G20Wld4LN6bbu KYkDKnDbeaF8E3dp9ugTN70bIuW610x68Qsz//bimrKZToltxKxqI03/L79am56vID3U 7fQ8rIMoMWsLME9ZbHS3U4no12Y6HqGnmOVaELNE4lESfSRORC4BABNGOIw9K8w7qxL8 bhRBP9VOjAJUDg1dmQ2nxeNaMjX0GSRhOkKo4G6ayp78DMX84SoScSbuvszrMjjsVZXv dB+/6PWlbV405o+DxFdRAVkBFbGw31eioVDBfRHWDh0L2IHOfA40XagtOM2UQ2nzRnBZ sOVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=utzUNipm; 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 c10si7654465otn.266.2020.03.03.03.18.01; Tue, 03 Mar 2020 03:18:13 -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=utzUNipm; 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 S1728975AbgCCK7D (ORCPT + 99 others); Tue, 3 Mar 2020 05:59:03 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:40631 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728304AbgCCK65 (ORCPT ); Tue, 3 Mar 2020 05:58:57 -0500 X-UUID: 0cbe5b52ca504fdeb1940224d5785c8d-20200303 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=eLK55L0fZn7XN3zfsQBv7sALD9rbgqr0/O+Yq+Tslao=; b=utzUNipmqmCR8e5SWtwTqvU0kvmHNRmDsT1PHwmJ6264cUnqZrbvOYVbCN6cc45m1083ZvAveuxfjH3DeaB0CxOKe9lATjweBz/S7ZqPrgrtzYYZfxgrNW5lE2ulgqFp8QwmFwdKobotUqVrH/A8ZJtxS+OiMiHY1fJJOYDbjBc=; X-UUID: 0cbe5b52ca504fdeb1940224d5785c8d-20200303 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1388856979; Tue, 03 Mar 2020 18:58:48 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 3 Mar 2020 18:57:41 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 3 Mar 2020 18:58:11 +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 v4 07/13] soc: mediatek: cmdq: add write_s function Date: Tue, 3 Mar 2020 18:58:39 +0800 Message-ID: <1583233125-7827-8-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1583233125-7827-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1583233125-7827-1-git-send-email-dennis-yc.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 YWRkIHdyaXRlX3MgZnVuY3Rpb24gaW4gY21kcSBoZWxwZXIgZnVuY3Rpb25zIHdoaWNoDQp3cml0 ZXMgdmFsdWUgY29udGFpb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