Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp233969ybl; Wed, 11 Dec 2019 17:14:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyKeWfMDXlsm0rOPznSWE7EA2rdo048jELCjSh8vgFXgWMjAnTBNQJxr3O/7oxPqRnNfpKv X-Received: by 2002:a9d:5885:: with SMTP id x5mr4897870otg.132.1576113276629; Wed, 11 Dec 2019 17:14:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576113276; cv=none; d=google.com; s=arc-20160816; b=IIV9G3G+qQXT+TaITjpIFTEonMoLwQ74d1ODNpqw7cwdHL/drHSF0x2FeY/3ONPEIs fvQrqUhvhBqpk6bZiSyFJL+pOfqeohLttUyAY8guwWXWJpHDTrIIVDiinG8IkWr/CfQD jfeYdHwUgORBxkhsGqeh1EW7dFugzxpRuxnQV5NfCg0eEVSAgLoQLFc4MwsqMT3DY1Sp LIGaiagKSC76ENf72wSwLKwSeur2VVINqmFI93UYMypuYv2sx1A2dpxz0a+FeLOWUqxd fKCoehHiADXpOpg/qer5yBeEZlyVLbbZLq+vtomshWNQB8MT/lbZacqMXj2i+KXKgFA/ yl5w== 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=B4MILXq3ZMERWeqsdACp65BTdrLNU+AFrjMI+Ui8c0s=; b=F171mF/Ad6JtFRbbFakjvKUJBbwz0+orhrKO5GcwZjkpG2YGK0i3CIwfI4vqP51OV9 t9oHjzpXAlv6mSf25/DF9AYcGYmh3EFzJa+BkbdXQmOZzLP7keNZHFOJWEosnb28Nd7v Dl3qKd0tk8KwCaTPyfwXs+d3Q/fUZ0kUoKycBex2kJ3b1JTtS0gkqpRyy90Z8TnYSSNi iddsxaFKuNzlTZequ9lYqNxpxCD2MJfJYtLjH3lxBFPZIaxmqViUWaE/csVF7ci8FDML 87JNvqFfTxTE5IvmeV9J0/vFunv9r+Nz076MxlCmYUaX82Okmr6Ahhi7yh12r+c0HV5j zKgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=mOf6cG7l; 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 k8si2610462otf.76.2019.12.11.17.14.23; Wed, 11 Dec 2019 17:14:36 -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=mOf6cG7l; 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 S1727452AbfLLBNq (ORCPT + 99 others); Wed, 11 Dec 2019 20:13:46 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:43875 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726791AbfLLBNp (ORCPT ); Wed, 11 Dec 2019 20:13:45 -0500 X-UUID: bca38d7082df45099191f9447f744823-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=B4MILXq3ZMERWeqsdACp65BTdrLNU+AFrjMI+Ui8c0s=; b=mOf6cG7lzAyHQaWJzLGQ1IwDcHX1n70k9sM+f/NzOge0xvRurzaA9nhOr+Q3LWMBQZV6cBqcyeGFUqpZAaxYRCIZ+e22jFTDCnOGhUn2hotuR3c6i3j+mwVgoqFTo2XaVR2WSk689d3oDghkpwNoo1/ZKSS9qZffPaOGTJ4GD1o=; X-UUID: bca38d7082df45099191f9447f744823-20191212 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1427452136; Thu, 12 Dec 2019 09:13:42 +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; Thu, 12 Dec 2019 09:13:18 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 12 Dec 2019 09:13:37 +0800 Message-ID: <1576113221.17653.6.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:13:41 +0800 In-Reply-To: <1575946181.16676.4.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> 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 SGkgQ0ssDQoNCk9uIFR1ZSwgMjAxOS0xMi0xMCBhdCAxMDo0OSArMDgwMCwgQ0sgSHUgd3JvdGU6 DQo+IEhpLCBEZW5uaXM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