Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4876406ybl; Mon, 9 Dec 2019 18:51:46 -0800 (PST) X-Google-Smtp-Source: APXvYqxqvIfE1PNzssl6vD/DtDathg/ZuUY93CnQ9ecOFgNNKBLZFL1dlnUWUelk3OBPS8PJSqQe X-Received: by 2002:aca:3285:: with SMTP id y127mr2129474oiy.67.1575946305885; Mon, 09 Dec 2019 18:51:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575946305; cv=none; d=google.com; s=arc-20160816; b=C41NCRcww0viN8+Yfdy52G1ss7N0tbMx+IgEEV84UHohru0JFr052Lh1Hn3dCbI99U akqCh+mqPXyWzsJ1u6CE2MEfKafkiTrCwGiDnBAQeCkaFsc1P+2nS1AQumB8yVAX9daG cOSxOu867f5BZt7awxooVE5uE9jfhnaW8BUSNWth55qp4/1RWXHAHKT9/pdIuXKcKjUc w4LGwoJ3kQ61OCVTsCK9xYgVktfmrSXFJX+I00p0fZTTwR91ReD+nKo9UjVH5lz1DsDN nCbByqhCw9qCrbYUZH880j2gPNPfp4LxwFS/SBLFS5GXxlNrGdHFhFlwpHW3Yc7+0FeB IgnA== 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=3p9xe1k8UZpHU7V65IFk3agqCgquUJjR9B/HHNjxoE4=; b=ezwi2VysWR6s6LR8pKfU6mZZA0qUrYNOXTNM9LnVQWWIMxUMMSQJHi7O9oeC21eFBg ekmDhb4dY7m0HFxJzUsYxzlt+03aBjWmKjMEnYSs2bzvhbCr2j6lti1mtWRGi3HOZqdU fM9naSpEVeY4i3qoo3f6GS8grqWt1OIMl1MHRTHzIhZnceIS+o0l9MobCs1hV0nal203 bWNXYTJYVD4epRyB17D2SA94hI9xK0TbEOqABEhfaiq4mwUvbgGNZW2NCZAl3Evjhyll RbLsg1OGRAcRhRhA1tOtJdHV77EOInCjPyUcPBFUX12nGmixq3MBYvOOfJUrHh5oM137 yd5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=iXHtkFlw; 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 h138si1144151oib.6.2019.12.09.18.51.33; Mon, 09 Dec 2019 18:51:45 -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=iXHtkFlw; 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 S1726677AbfLJCtt (ORCPT + 99 others); Mon, 9 Dec 2019 21:49:49 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:40597 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726509AbfLJCtt (ORCPT ); Mon, 9 Dec 2019 21:49:49 -0500 X-UUID: 9c5509bccf6f4399b862490ffa15bd33-20191210 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=3p9xe1k8UZpHU7V65IFk3agqCgquUJjR9B/HHNjxoE4=; b=iXHtkFlw5EqtcJGCRYIPyntinI+xVifE0nr4IvDgZRIl/aq4thDe3nIk9dpHgyrYFJW1BHUFdu3st2/sl8tVzGiUPavST++VF5LAuVQzb6fGTE398Cc8hjl+iNhjcQaiS6tIBarGU632FVV3ao18dQPePtT+3mScB4p/kRiohKo=; X-UUID: 9c5509bccf6f4399b862490ffa15bd33-20191210 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2088386181; Tue, 10 Dec 2019 10:49:42 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 10 Dec 2019 10:49:20 +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; Tue, 10 Dec 2019 10:49:09 +0800 Message-ID: <1575946181.16676.4.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: Tue, 10 Dec 2019 10:49:41 +0800 In-Reply-To: <1574819937-6246-6-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1574819937-6246-6-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-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 SGksIERlbm5pczoNCg0KT24gV2VkLCAyMDE5LTExLTI3IGF0IDA5OjU4ICswODAwLCBEZW5uaXMg WUMgSHNpZWggd3JvdGU6DQo+IERvIHN1Y2Nlc3MgY2Fsb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