Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp249391ybl; Wed, 11 Dec 2019 17:33:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxfr2NYDaFJKM9Jm/C7qTviI6jDPoYNvCkGPFQ8CY/fVTIkNhaEwtRvGDAI9GEv+RbDYsYE X-Received: by 2002:a9d:7b50:: with SMTP id f16mr5288682oto.18.1576114432305; Wed, 11 Dec 2019 17:33:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576114432; cv=none; d=google.com; s=arc-20160816; b=ok4YKziFBWBuhRRpwcDd5aQNR579+xY4A9cPkJv3mnpM8jbJrlvC7j8PZ3bQ2hXMj1 eunHROmSu0cfKhr4fcce53b5nTzDQeN0aY4W0n7L795YML8CvMoA+2PRERGAhuWc6BPW A0QjFnvhFo4wljnUJHSPoGxuo3kqmLzCIxuLiE0DYQSjgg3UijVDbgaY4bJYsH14O7CX +bGFUMHZgVGLQTKsPMKQsyVKRoTNoFxFql4kbRoPb5J0bG5dpFb4I31iprf1jO29EIv+ N9CYMRoPGfa/sA4d/QwySUG3eco6jq5K5Uu2ibGkkb0gidAAyrTxrQcet4U6zeYY9qpL fAaw== 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=q8/oNDXucgX/Eg8dpJir+m+Bj6aJJFfQRqRdzNzivkQ=; b=Nm9X4XcPBTPTbRpHsHiqecFQFJKtRcGWQ8ag/AtzdjPPmXzoCLz49slt2oGWKCnn4q VhBdhDjRlMkJtpiTaTpgwWbPWDU7PmZxKHwtoos81xL5Sf9nQTKfiHuffiFz3f98gggl ENkGZP1tRvkjU5W6E9cv4BdYMS+oImsh8lJtWUZ19tAcrwMwtYo8t2Xz1uId9IhuBj9F F2OhGC/XMXii9mOKSCCCofBe9l9v5pYBAnhwD/P4OWcWDBUJ6uhYyi+8g0hqgzrrqReA bOanGYJeUQ2vKxXViXepPIxi7Ue7E4GCMqaWSo1qh81dNYPwVlg4YPvSdUFCWKcdQeH9 H76w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ctJMPO1b; 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 j13si2214012otq.146.2019.12.11.17.33.28; Wed, 11 Dec 2019 17:33:52 -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=ctJMPO1b; 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 S1727522AbfLLBbs (ORCPT + 99 others); Wed, 11 Dec 2019 20:31:48 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:51556 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727409AbfLLBbs (ORCPT ); Wed, 11 Dec 2019 20:31:48 -0500 X-UUID: 1282512acbeb4759b0798f94b9793544-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=q8/oNDXucgX/Eg8dpJir+m+Bj6aJJFfQRqRdzNzivkQ=; b=ctJMPO1bAR3Ly2dqN4Olo+fF2yHpLIa9kh2ZJAHPYmCmIAzUmmnMY9vZGr6WTQFaj0zbeNeb2k1k9xJYi3MYtzvq7PsDOrHivdeI5i3dmpSJbpUGx0oTPJbdAWvZ0KRjmNS+mjSH9JultH46G/UUVQz1Veou8oBYQxCvbReIafI=; X-UUID: 1282512acbeb4759b0798f94b9793544-20191212 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 799098882; Thu, 12 Dec 2019 09:31:39 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 12 Dec 2019 09:30:38 +0800 Received: from [172.21.77.4] (172.21.77.4) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 12 Dec 2019 09:31:02 +0800 Message-ID: <1576114297.11762.1.camel@mtksdaap41> Subject: Re: [PATCH v2 04/14] mailbox: mediatek: cmdq: clear task in channel before shutdown From: CK Hu To: Dennis-YC Hsieh CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , Bibby Hsieh , Houlong Wei , Date: Thu, 12 Dec 2019 09:31:37 +0800 In-Reply-To: <1576113221.17653.6.camel@mtkswgap22> References: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1574819937-6246-6-git-send-email-dennis-yc.hsieh@mediatek.com> <1575946181.16676.4.camel@mtksdaap41> <1576113221.17653.6.camel@mtkswgap22> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: C441F67C5D7EA4E3320772BC92C7B1B7DFA318C63082BF0DE82C3B1EB5E06E732000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-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