Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2407846ybt; Sun, 21 Jun 2020 19:39:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVat0+eA9/L21ww9rWKUPVEA0POzQwlqmXPhrOZ3xl5mLW3WKiAJxMXkFFkOOMvguN1n5+ X-Received: by 2002:a50:e8c8:: with SMTP id l8mr8908762edn.386.1592793575489; Sun, 21 Jun 2020 19:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592793575; cv=none; d=google.com; s=arc-20160816; b=E6BIxj0FjtR4OgyKoC+UBdNjfzSBD0v+BrYwJwlEyripM2SCY61lAvTo9vmxjBVvTs RlQjYaRDW/lZxomQZ9Q/PtGOUf1A+5NJINN1dWbv+a1roUQwIoP2GSDByUIn8O25crRV 6Kiz862RlBcJhlpmayqVLVFNEpvGi/W+r9SM/z0TavDND4mneoXv6k/so5bGMSQ4q1Ro gBpCvt7g6tTc6eXQY8rr3Upmo4lvdmNkYTwflJXVX0WANS/eZyAo1q7qjPOYazPqx1R3 mHdACHGPUUCMMV5qCF+l3eSpvaPLVlzD4d4kw91VpaaICRY8rOBik0KdtJOHbi62DXix tLlw== 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=3L2iJRLFz0cWplF3YyvVHCZSfWtaCZG+LYZCcDp7xIo=; b=TjaisRXjUzbcNlluECYD4HsiBLqOkZ1hSJspsDlpVZyJ6CIfghJvr62YmVhjedt1Xj JjN7Edyma5CVoQoO+FBuLHLCIR/XT0Hbpu/RMfJjMkFz6v7PKhoST3B2qLX35H3z39D1 s0q+mEjAk2wcHQ2VqhByp8Xkd0A4q0XijS55QUPtchBs2S10EQUUjady9oE2bU86XNwi aLWPdBK3Pu8SMKxxS6p6h4u6AdsRLQFds9cYKe8ECz8sbx1f6ikG//sk/l9R0/i7lE1j 9IbDAaRN644qlr8BJkFnSZlDCht3kthu4OvFytWcJ34V6tFqYqDsKelmubgKDVd4zjoK gFvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=XdcRkVR5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id e1si8081595ejf.3.2020.06.21.19.39.12; Sun, 21 Jun 2020 19:39:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=XdcRkVR5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1731073AbgFVChH (ORCPT + 99 others); Sun, 21 Jun 2020 22:37:07 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:41375 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731032AbgFVChG (ORCPT ); Sun, 21 Jun 2020 22:37:06 -0400 X-UUID: 11e8f40cb6fb4ec8891f034011c311c3-20200622 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=3L2iJRLFz0cWplF3YyvVHCZSfWtaCZG+LYZCcDp7xIo=; b=XdcRkVR51MYtCRyOm6g8Z2uIEq2FZNuPi3xmoer3blxqdeD8/62TjaUeyzObS3a5An1O2scvBT9BRc1K/vXJxV7+jRS6nHaG+cb466vkT7A25bSn1CSBpfeM/F5gD2crPuQm3bYmeM9C6TDYV/xoD0w2pALLcS/OIlY1+N8pMNc=; X-UUID: 11e8f40cb6fb4ec8891f034011c311c3-20200622 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 323343844; Mon, 22 Jun 2020 10:37:05 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 22 Jun 2020 10:36:49 +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.1497.2 via Frontend Transport; Mon, 22 Jun 2020 10:36:40 +0800 Message-ID: <1592793410.11692.5.camel@mtksdaap41> Subject: Re: [PATCH v7 4/4] mailbox: mediatek: cmdq: clear task in channel before shutdown From: Bibby Hsieh To: Dennis YC Hsieh CC: Rob Herring , Mark Rutland , Matthias Brugger , Jassi Brar , CK Hu , , , , , , Houlong Wei , HS Liao Date: Mon, 22 Jun 2020 10:36:50 +0800 In-Reply-To: <1592745731-14614-5-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1592745731-14614-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1592745731-14614-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-TM-SNTS-SMTP: EAE0CFC385DA52FD097CAAFA54CAE7070AA1C8B7CEE452C921733A983F9C1ED12000:8 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 UmV2aWV3ZWQtYnk6IEJpYmJ5IEh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