Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4952088ybc; Tue, 26 Nov 2019 18:04:53 -0800 (PST) X-Google-Smtp-Source: APXvYqxQaWZedJusOvh5w0wRmxANhRl2AmBwuOTK/pcFJNBTVvwRJWk0pgwus5IALo2R7n3uaP6y X-Received: by 2002:a17:906:7cb:: with SMTP id m11mr23297394ejc.76.1574820293824; Tue, 26 Nov 2019 18:04:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574820293; cv=none; d=google.com; s=arc-20160816; b=yptTO2MINOgEP+0Q/3V0H1Ufg2lXLK9nalaNn5yOwdjSC66itYjQ454aIcDPo4Kpmu NpRkY3aogRcTfv+L6D5col/qzwNFYdvw23hvzFpcaMzqgkJ10sJvOMa7y1MdkktQUBi0 28eWg6RGO41hZHQkY/FK/dZ4sqBDagVHGolPeH1nDlXTAOv90bCt7VcG7oTsjkYwZH/D FQrHf5nLWhp73udOC0qO2fB733bsTxQCnuaxIhUamrkGHeunt/JZeZ8Fg7OuWQ/Y4NTv LIUey7Eb3kMirjyfMTH+2HSY3AnQazk/bHD52CO/F4LGXVE5WwxHteDEUQYm36vr1FsC 9hFA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=FdRT2zy0znueH9kDzJ8afxW0I077oey2yRxx8zkCk4Q=; b=AXP+FoEGBczPpYV5Tip1/U2brBjCvYDwdi9RHJxgeSjh8w1x7ZCiZrewizHEH8e3Dl /fLrRaGh/UQIbhv8Q8nPUYDMI8+s8Z2qWm2Epv4d4v3aYfpMfO+DxwBWFICuuTUpnYh0 YAf9IXFKFVQMeELunGLdqlTJ1Y+hQwJoF1T3R58g9gQzpKDtPp6vZEgrWfGP3UiXoA5l QJdzRW/+kS86xUvrT1ml8JBhj9iZxnVaL5u40YqQBhZSM/2TIteWbDDJdhTNZAxrFvdn 3CWjVJLLCecuhdUoAsqIktNd8ZTsY9OtS9GHqAmawRjd5zJgmYJHLpU424vallOiTY0v Du6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kG21XOIs; 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 b18si9151457eda.307.2019.11.26.18.04.29; Tue, 26 Nov 2019 18:04:53 -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=kG21XOIs; 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 S1726970AbfK0B7Q (ORCPT + 99 others); Tue, 26 Nov 2019 20:59:16 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:8751 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725883AbfK0B7Q (ORCPT ); Tue, 26 Nov 2019 20:59:16 -0500 X-UUID: c2c7f94cdc2c464eb1e75a48527d6207-20191127 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=FdRT2zy0znueH9kDzJ8afxW0I077oey2yRxx8zkCk4Q=; b=kG21XOIs27pTOrs2bdjYa/6ARaUymBILlLM+0EhTYBy0gzeNMmzWLCasC1yA9efX0akCB2nJUWdkmNBp3hHXzh+xP+1PqYp5RsP9dVqgTI0+sWiuko9oT4pKPREHfPr9JMMxL5nEVXMO9Z9+a+Y1kTrozLX0ln3KD75uIWbMs4g=; X-UUID: c2c7f94cdc2c464eb1e75a48527d6207-20191127 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2094393305; Wed, 27 Nov 2019 09:59:10 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 27 Nov 2019 09:59:00 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 27 Nov 2019 09:58:18 +0800 From: Dennis YC Hsieh To: Rob Herring , Matthias Brugger , Jassi Brar CC: , , , , Bibby Hsieh , CK Hu , Houlong Wei , , Dennis YC Hsieh Subject: [PATCH v2 04/14] mailbox: mediatek: cmdq: clear task in channel before shutdown Date: Wed, 27 Nov 2019 09:58:47 +0800 Message-ID: <1574819937-6246-6-git-send-email-dennis-yc.hsieh@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1574819937-6246-1-git-send-email-dennis-yc.hsieh@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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 RG8gc3VjY2VzcyBjYWxsYmFjayBpbiBjaGFubmVsIHdoZW4gc2h1dGRvd24uIEZvciB0aG9zZSB0 YXNrIG5vdCBmaW5pc2gsDQpjYWxsYmFjayB3aXRoI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