Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4040961ybf; Tue, 3 Mar 2020 18:37:13 -0800 (PST) X-Google-Smtp-Source: ADFU+vsNF8jfuTuWqPFPfQ2RpQb+fczLrzoxVXC97TVnE+BHxuNnJJGiUejuWml9x+OYAYJb6vJD X-Received: by 2002:a9d:6c56:: with SMTP id g22mr686147otq.276.1583289433775; Tue, 03 Mar 2020 18:37:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583289433; cv=none; d=google.com; s=arc-20160816; b=QrN+eIAfBbHqQrgsPRxMG2WALW9cmsCc4B39FbxMdfK7BWH76PY88fEwsEwBqn3TBP 2n8+toZxEueFJEtrryUHs0s3/TGRnQDFUj/dhwJltNsoL5y6X3BQg5QgqR1Gv9rovns9 25f/534+Ea6S7mSGxKqKmvx9PeMiDTJkiVCqwzr3odEOOGJO7mKsOgat2C3OUmyVdBrh J1Uy2Ni0pwPdLkeW4ty+hXKcWN3BA9jmh7xl1q2j9z8LMXaNlQnsOsbBKmAmmD8hxkNJ 3cHMo2BfxeCpvB+wpvdH9IVzZVCP6Zm7TCg/KZEC6ICCblQ6xGSNsxH0nrJQdw0EQv8J 8YUw== 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=N8uzmfi4oZf5SjaF1khnb5BTauSzbMkMnOjjAfK7Xwg=; b=GnQjVt6mZ5E5oP5A6kvXdMIVvxgcSSw9YQl9cKIenfEKGr7TZlk6PA26bpC+EhuDgl PYCvsW6mNIhFJhNbKbM3S4KL1D2Aak99fPhzxhhGVI+aPUH33zzvJ/JXR7ou5/bJRCdY nBGysEMEYbvzCNwzUluS1A8WQJkinp897UyTtnOSj9c2VJx7Jni0uapCEpESacvWHxwO z3D680N35cJRpu2Xzwn1MMtWgXB3iuqxn4NtgBieJUzfB5KRXMWAryRvG7kClneByOy5 O+MhV5dOANfjQ/DhLAzawf7hwTiNk3jTv2dsz9KS1cAM7N3UICQT7OLHUw5c+eiEUd0n DkQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=kUv+Q1W6; 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 b9si326405oiy.274.2020.03.03.18.37.01; Tue, 03 Mar 2020 18:37:13 -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=kUv+Q1W6; 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 S2387488AbgCDCgs (ORCPT + 99 others); Tue, 3 Mar 2020 21:36:48 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:8565 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387406AbgCDCgr (ORCPT ); Tue, 3 Mar 2020 21:36:47 -0500 X-UUID: 4e0a777e8c7149e8b7eb90a0ce6943d3-20200304 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=N8uzmfi4oZf5SjaF1khnb5BTauSzbMkMnOjjAfK7Xwg=; b=kUv+Q1W63A1dnmFWptEDLaQr7gyze9SehA222Fyqr7zllZKbNIHIf1F0EGqReLd6ka4+p/1Rgd3Kknmz+q33UEJoyThY6z4k9bHCjdynbyilnP58GhkJMgF49xLrDBYnlqIeIHnIbzsr+BM84pff+IG5qmD0tZrypsAxt+bV1OI=; X-UUID: 4e0a777e8c7149e8b7eb90a0ce6943d3-20200304 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 212195843; Wed, 04 Mar 2020 10:36:43 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 4 Mar 2020 10:35:46 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 4 Mar 2020 10:36:01 +0800 Message-ID: <1583289401.32049.2.camel@mtksdaap41> Subject: Re: [PATCH v4 04/13] mailbox: mediatek: cmdq: clear task in channel before shutdown From: CK Hu To: Dennis YC Hsieh CC: Rob Herring , Mark Rutland , Matthias Brugger , Jassi Brar , Philipp Zabel , "David Airlie" , Daniel Vetter , , , , , , Bibby Hsieh , Houlong Wei , , HS Liao Date: Wed, 4 Mar 2020 10:36:41 +0800 In-Reply-To: <1583233125-7827-5-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1583233125-7827-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1583233125-7827-5-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 SGksIERlbm5pczoNCg0KT24gVHVlLCAyMDIwLTAzLTAzIG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