Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp252666ybl; Wed, 11 Dec 2019 17:38:24 -0800 (PST) X-Google-Smtp-Source: APXvYqxSA+GyJoNZt3hQfY0qbCQxKOwcF4VFrlJ3OLj29lW+d8OewA3OJDdZ99v98SO6JnTWl9ua X-Received: by 2002:a05:6830:20cf:: with SMTP id z15mr5135812otq.277.1576114704163; Wed, 11 Dec 2019 17:38:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576114704; cv=none; d=google.com; s=arc-20160816; b=orRoRs0Bkc0I4pVetacDttPP6C+HoG69UWXDBvdPoSn94vZoYBos13W94FFZmd10c2 Sg6lmE9rWDJQ70Eg6h27jZRWXIrreKg/1nid1IYPk58P2/pSdQsIEWDUfDcQ3JJmedOM wew5mPNXTyAZk9Ys2FTn4GRHUn/1zpn6nXfoPpOlKK7NjtEXnBKwITB1eusD773D1BiZ XU1ZPfUEv+zTTbdfAz1+wKTD6kSvF4Nv+LurZnRF5qVcM0xij6tEcr36DAhNFf2vlCdv W3yvH9bwUZU/xIi0g8M3BmrJ21q9OZnyKX4jaZFyWIc4/OfirrnvfwjNiuQJ9WhO8jTx BWQQ== 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=PipsN9f6SWadwcwIrVs3U74QlgXQz8aVan1+C+FVNtA=; b=TaonFt3RVfy9a/bwr1ZguswKrLbJCXzDh/CX76fb/f3jGpBi9SG+uEhYELYRUZguMp 8FbeJecZd7fCkZ0pdFWrVhQlK1Vce3K1T8O1UVvgcjVwJmzRbI8Yl/8Sy0xMIW9prpf0 hnZnxYvawKbQSqx4u1ZX2FeGKbvGY+d7oMsFVqvFt/5cDi6JdU2VZH/vDKfLqt3NPoHV VbFZJgqEtPhTi3KQjKOon3PojTB5mzEhceJWME35LszYx4g0k63WNHVWhjLdrrIa5Jvk Mxx/z0ONurj4cvAKQAj1hbf0V7fgZDRb5PRf+aZWDls2tH4crzhLA6mPlnY3HcXif9ze eF0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=TwGczfOt; 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 m4si2114771otn.281.2019.12.11.17.38.11; Wed, 11 Dec 2019 17:38:24 -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=TwGczfOt; 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 S1727548AbfLLBhl (ORCPT + 99 others); Wed, 11 Dec 2019 20:37:41 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:35071 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727473AbfLLBhk (ORCPT ); Wed, 11 Dec 2019 20:37:40 -0500 X-UUID: 844b7efeed284b5a8e5fc471bae98c14-20191212 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=PipsN9f6SWadwcwIrVs3U74QlgXQz8aVan1+C+FVNtA=; b=TwGczfOt/sn2BvfIAJGPx0gzPpkXhck7/79SNxXautFLDURVlPDA85L38tAdur/DzjQjPtRQ2m/SnNHhx0H+ErsCyZd/gqWwDeTpGZbqNJlX51IC30sP8Je4AFlbbd51N3Jis56mgwfE1BU6kKXIZOYJSNazyOs8F+vf43DkqAU=; X-UUID: 844b7efeed284b5a8e5fc471bae98c14-20191212 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 497109503; Thu, 12 Dec 2019 09:37:34 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 12 Dec 2019 09:37:17 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 12 Dec 2019 09:37:28 +0800 Message-ID: <1576114652.17653.13.camel@mtkswgap22> Subject: Re: [PATCH v2 12/14] soc: mediatek: cmdq: add loop function From: Dennis-YC Hsieh To: CK Hu CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , Bibby Hsieh , Houlong Wei , Date: Thu, 12 Dec 2019 09:37:32 +0800 In-Reply-To: <1576028899.19653.5.camel@mtksdaap41> References: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1574819937-6246-14-git-send-email-dennis-yc.hsieh@mediatek.com> <1576028899.19653.5.camel@mtksdaap41> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 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 SGkgQ0ssDQoNCk9uIFdlZCwgMjAxOS0xMi0xMSBhdCAwOTo0OCArMDgwMCwgQ0sgSHUgd3JvdGU6 DQo+IEhpLCBEZW5uaXM6D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