Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp69015ybl; Tue, 10 Dec 2019 17:49:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwu7bgHDiy8T/FTxnWr7NPVg7zj56aw+zvCYsYxeg/EW5wpcikVZTt7+18seTy9djfnto1L X-Received: by 2002:aca:4785:: with SMTP id u127mr883238oia.94.1576028950601; Tue, 10 Dec 2019 17:49:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576028950; cv=none; d=google.com; s=arc-20160816; b=zpzSCYkY3/4MGapDGvfasQrOfljG5PA11LiMnjLE38h7zaRHftn739zV48OeVgYKqP 9NPe8yHX6RdV5F6JnY42ept3kF2aQhW1US9deq8WFr3e/VDevtS13upVoDvfZ2S91ecm HyQ36XZaq/wAdU5BnncpgpH5PkgKbvL2xq97g9RaXlHzMU5fRHSh/j1TXElDTa2pt51B qZTgRSnQjjIO84PID2aFt5Foy3SssxdFExBSwDVUrrzfpMqfC8ycB4tEjcblY632egKT LVUYfKrEl6nWOGsQd0prIIwssfVvQcxLoKSWixTX5glJJdCjB9Vu4SOODxlbjOEVAPID JlcA== 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=sqQ1DVfAQShEvzPrqHNKDy4tI0jEIAeICULZI5AfwMw=; b=SUnsm4y/6AtMfRPbLSDMPA5Sp7jTyT/WRa/q0CuuKN5IhM5n9FS2dHe6gY1GzH3dMQ /ry7tC51Rm767UZkjCEKkkleF11njgtLpRFNvJBufYEixTvi66iopK0o4dn5u+myFwm7 qjOpq74dj7XZqfTyXh3fttF0uUghaQvgTWVZn3i7xo1bqdV67VuQn+jsPzX83mApnSwQ 1cMW5dfphBbQb76HNFEuGunsW1f8z2/ItbG8ya2nV/F8RXb6X9ChqRMOl9w7bJbBhfx0 0keq7o09h8uByQA2WT28VarfBTu2C9PhJZFScVByBLmz4EDj4I0CJkMmcA7cx779DTJ8 NZsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="J/FSAdTO"; 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 x2si169985otk.66.2019.12.10.17.48.58; Tue, 10 Dec 2019 17:49:10 -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="J/FSAdTO"; 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 S1727502AbfLKBsb (ORCPT + 99 others); Tue, 10 Dec 2019 20:48:31 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:25487 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726417AbfLKBsb (ORCPT ); Tue, 10 Dec 2019 20:48:31 -0500 X-UUID: 8b5177e1fe0449ba9ecefa0631edfa49-20191211 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=sqQ1DVfAQShEvzPrqHNKDy4tI0jEIAeICULZI5AfwMw=; b=J/FSAdTOdRqXo7TTzVE34BYBc4wdpei3wrEjp4ZrZ4tWUmyLj3hfU2WD5XeFQ3BjnGLV9iU7wqen75AIcpgCTPb1y1En+WaetQ0Wx69XyOzA1PPfkA+TaSRI+Pln38xVpl/ktdKMPQI/+2UMy35SdwQZhEOO56SyMyMvJY9G9fM=; X-UUID: 8b5177e1fe0449ba9ecefa0631edfa49-20191211 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1426890370; Wed, 11 Dec 2019 09:48:21 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 11 Dec 2019 09:47:21 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 11 Dec 2019 09:48:14 +0800 Message-ID: <1576028899.19653.5.camel@mtksdaap41> Subject: Re: [PATCH v2 12/14] soc: mediatek: cmdq: add loop function From: CK Hu To: Dennis YC Hsieh CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , Bibby Hsieh , Houlong Wei , Date: Wed, 11 Dec 2019 09:48:19 +0800 In-Reply-To: <1574819937-6246-14-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1574819937-6246-14-git-send-email-dennis-yc.hsieh@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: A5230DE48B16A267340064E1455F9D274E3E4DE6A9287E6E0E4EC648793AA9F82000: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 SGksIERlbm5pczoNCg0KT24gV2VkLCAyMDE5LTExLTI3IGF0IDA5OjU4ICswODAwLCBEZ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