Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp262687ybl; Wed, 11 Dec 2019 17:53:38 -0800 (PST) X-Google-Smtp-Source: APXvYqweOh7RwIynuNKR+U0P8HaOA6iMXnmczJc0Y/FwFsJyyRbQtft8YZrpCt2asKzVfxtoL45C X-Received: by 2002:a05:6830:1f29:: with SMTP id e9mr4965009oth.272.1576115618202; Wed, 11 Dec 2019 17:53:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576115618; cv=none; d=google.com; s=arc-20160816; b=kxTCOyorwFdSPFlvLU3Sy4s0bkzmNzXAIQelAhR5HZYhuzUktwndUTiD/BZKK5cCTa XHNp4V90JsMm0gTY71tku7I5Ks38fnw7kSxItjN6qUPOBfibf7Aife1Kxohz+84URmXP ayf3/KmdXItlATqQ7v+texZo2l5afNqioxLU1524hWpDx/av8GXMzD0RqP7YlaTVFICR yw5z55Y4vmRjVpBAhz7odbYRVGU4pViBp4JV6razryenJv7COgfPbyfdd9eBaf5sMs8Q 6uhb864mdVp8z3ps2LyDqmVY+SQ4FbyWcqr5dK96QfNgRjmtEPazlP9MiDfDss6oalYe KMDg== 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=Of+6/V6XHKRPg6mlAyJMUp0eBfOyc4qsodtrpJM/gLY=; b=ktly1ZJfWWaICnQzYFAVp7enEBEslfkAKI6is1NK/AoJ6VVi9To481z+dAnLuojrM0 X0lYF4611cwp/tUbYxsxri0Z+byOq6mMWNt5buxptXxZBWSDexixlOAB2KhRwCUEetkZ DXSMYHrCi2iO7GohJkdjB2CWsrqG20kF9IMP9WarEpFAI87aZn1/U1FrGkwT5okEn9dz wDNWSRzh5Dm16PjZ/RYqGBg2rFojHtIEPw93+i67Oa7VkELALol+cVvBMBrcRmfw9NQe zw9IIWtCwPf0m4IAGlIX+1pCGFqeY4g+5OCRdRiZsuPtZDyCG81gZ5hmksnY+gmIJytb FmfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hf0wI6Lb; 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 l204si2278166oig.31.2019.12.11.17.53.24; Wed, 11 Dec 2019 17:53:38 -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=hf0wI6Lb; 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 S1727591AbfLLBvm (ORCPT + 99 others); Wed, 11 Dec 2019 20:51:42 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:4534 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727542AbfLLBvl (ORCPT ); Wed, 11 Dec 2019 20:51:41 -0500 X-UUID: 4d76d4903548490187c1f044308c533d-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=Of+6/V6XHKRPg6mlAyJMUp0eBfOyc4qsodtrpJM/gLY=; b=hf0wI6Lbzx9A3JC6ZZvvjJLvUFs4QR2tHG8ke1hDEqxM8UvvfbOGF97Iejlt6Bw5QPrh0id8jPXIMAoZD4IiEo9b7m4QZvnEg4Elw7IfRC93saQBdQ1flVYjeksu5UEXsdmQ/qd1OUMVw+Wj9JNZe5l+LnY2zZnIqpT663El8rs=; X-UUID: 4d76d4903548490187c1f044308c533d-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 1924915242; Thu, 12 Dec 2019 09:51:35 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 12 Dec 2019 09:51:14 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 12 Dec 2019 09:51:31 +0800 Message-ID: <1576115494.17653.21.camel@mtkswgap22> Subject: Re: [PATCH v2 04/14] mailbox: mediatek: cmdq: clear task in channel before shutdown From: Dennis-YC Hsieh To: CK Hu CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , Bibby Hsieh , Houlong Wei , Date: Thu, 12 Dec 2019 09:51:34 +0800 In-Reply-To: <1576114297.11762.1.camel@mtksdaap41> 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> <1576114297.11762.1.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 SGkgQ0ssDQoNCk9uIFRodSwgMjAxOS0xMi0xMiBhdCAwOTozMSArMDgwMCwgQ0sgS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