Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4948955ybc; Tue, 26 Nov 2019 18:01:33 -0800 (PST) X-Google-Smtp-Source: APXvYqwoUSSUqwFAbcp2fhY3BFqb3LWxdXxXtTRuqwTkUijPl8gMQMPwshJ515Gabxl9EZyMoFcC X-Received: by 2002:a50:b632:: with SMTP id b47mr28991113ede.289.1574820093531; Tue, 26 Nov 2019 18:01:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574820093; cv=none; d=google.com; s=arc-20160816; b=ejVMV0+5j+cAFzKmRP91JulGNq2xCyxNaEOWa9I5TfOdA7jNEtT8AxihcRLc5UT0xL EY/RyTQZhgSc20Ul02lbzKLlTqwz28YwQhMttauCELJx8eVddxLAIrmq/3m8uV1paMsI luVeG52psssrj4kLK/fQHa92yX8u1M/6AASmKzMbZzyYTuMpPXGx9XTfm9vDnJLiZKFW wzua4laJUS8OGv/VEDSpLvk2onDKZ5NuDNze/9EargcS95dhmZRFdroQozOBJXWLV0Un Xj0zS/eX3bkUCF5hD7wZe/fy6lT1DVFdW/nAyWKVydqqycUuromW2Iz/E8D+/I4jJvLw TFyw== 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=3bmvDHDyrJS/9qz2LSdf3v6P9HJ6pP8KayJjB11i2U8=; b=YaWDShxg43XwaJQ4ODcnDPaKLPI9cbnSpEvjlnZSNjecWrosjmtdkrAWyRxY0IReo/ kjWx9fJq0pjfqVQj6PIAuOkLi6Lqpnz7bwplTnazhJZWenrsRDGxokhjMWbmwNgGqMu/ v0PxI+so2qLq7GYynTjHs/Mi9K5wZ8UYr8LR6e7JCkx95QFVQn/GY15Oj4nYzaXvZ4uf GF8u7GaXU6xc1uILrldAf+2dx84MJX6ygsADyk8VxwWtKMEDFbiiG45AwWUQ5sx8U6h+ lwplzCIuJ4jHpV3guko8S6Hv9CjiDfo6EKHWEdGhQhhYSR89f9abj13OHTsEQKRDevhd nDGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rLwomFl6; 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 m4si8082263eja.96.2019.11.26.18.01.09; Tue, 26 Nov 2019 18:01:33 -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=rLwomFl6; 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 S1727318AbfK0B7q (ORCPT + 99 others); Tue, 26 Nov 2019 20:59:46 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:15799 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727192AbfK0B7V (ORCPT ); Tue, 26 Nov 2019 20:59:21 -0500 X-UUID: 19253cbffc3348779d6e5eda30005743-20191127 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=3bmvDHDyrJS/9qz2LSdf3v6P9HJ6pP8KayJjB11i2U8=; b=rLwomFl6H1LsHDRgH0F2TMta54Wel1dsE29m2WvDOv33B4pLURCSz7BUESh5fswrUW2HLQEij2nlAjQ81li/EH678EyDyq1E/C8FI7+MAZ4eb524xL5C4tjtfP7OzhiL5NizR/feFPz6vE+L5BwXz2VCljn9AV9d95rx4gcLT+k=; X-UUID: 19253cbffc3348779d6e5eda30005743-20191127 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 403712291; Wed, 27 Nov 2019 09:59:11 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 27 Nov 2019 09:58:31 +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; Wed, 27 Nov 2019 09:58:19 +0800 From: Dennis YC Hsieh To: Rob Herring , Matthias Brugger , Jassi Brar CC: , , , , Bibby Hsieh , CK Hu , Houlong Wei , , Dennis YC Hsieh Subject: [PATCH v2 12/14] soc: mediatek: cmdq: add loop function Date: Wed, 27 Nov 2019 09:58:55 +0800 Message-ID: <1574819937-6246-14-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1574819937-6246-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 QWRkIGZpbmFsaXplIGxvb3AgZnVuY3Rpb24gaW4gY21kcSBoZWxwZXIgZnVuY3Rpb25zIHdoaWNo IGxvb3Agd2hvbGUgcGt0DQppbiBnY2UgaGFyZHdhcmUgdGhyZWFkIHdpdGhvdXQgY3B1IG9wZXJh dGl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