Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp802398ybf; Fri, 28 Feb 2020 07:57:27 -0800 (PST) X-Google-Smtp-Source: APXvYqxLKWxOeQew15M4HQHZ8s9ygX0/eTlkWno+3RKp35bKv7bfbCvbqqvDByWoEPX0WZvASZIF X-Received: by 2002:aca:b284:: with SMTP id b126mr3660115oif.79.1582905447262; Fri, 28 Feb 2020 07:57:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582905447; cv=none; d=google.com; s=arc-20160816; b=qUFqMoin5XBFRKNxhb1iS8jEvhxT6UqLdVQINPloATrOkrj7y4gO43iGrUpQ+GYyYV 9nXE9DOgwDcvF0ccZQeuVEty5F7H0wXOnHdZM4rM9v4Eh1zC/gYjENGcXfNq21n7mg5M u+ElIBFLxi9eR3HaY3kQoJoCRQieVXszYRRtjPRY72KKlpPxftzanzBh1hucGwf53ZUY IyUiGr+5tiDihVdHz0rYtteczJzQLqvx3YH9Mh4AEWKhInBpwCkD2p39dgDmBuQTJUZp 7LYC+Nz2BHpkJUuVD3WFFggb6Fm4URi1prfDHPmdHNyIh5rfo+5hEwrRwlEJj41Yo/Pg WFTg== 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=7cG0Tkp+Ug5bunGNSSGHb42Z5Rk9tRubfSu6RGs66GY=; b=Mfw7urD8baBptVRBZiDedhy3MPRsKVHFKsxDjXa3lLRhDmvqlmxcuBifPv9+tAW6Es p9EJXBWtrtWxbuOi1NcjVS46VAXuoVtCxG2I39wop+L3p/VnRYvZKtSYZBdoaiWzDwcj F4Fl67MnMuk45ZCjAhWNH09VjrSaFC2jiCmzOYObC1m+HMkxtkgNka+75wQ1EpQ/mkzU Na7PyesPnfnYL7ichuKUOKa1NWPNTFJov8gnJiUNxHAeCQOZKsq5U2SO/fu2tIOXTwcI 7aPuaQGIYu+yNx++TZ1HlHL66ZSY6vELnXFt//hzYtizA5Xcz8uPV4IZLtEKZcWa/9ZK VQtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=U9wljsTS; 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 193si2095071oie.51.2020.02.28.07.57.14; Fri, 28 Feb 2020 07:57:27 -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=U9wljsTS; 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 S1727120AbgB1P5J (ORCPT + 99 others); Fri, 28 Feb 2020 10:57:09 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:64132 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726974AbgB1P5J (ORCPT ); Fri, 28 Feb 2020 10:57:09 -0500 X-UUID: dda641ff5eeb460aaa859fb4d8141221-20200228 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=7cG0Tkp+Ug5bunGNSSGHb42Z5Rk9tRubfSu6RGs66GY=; b=U9wljsTS+9QA78E7tkaGPYnKRaB5orpxGtjvFBYeqcJEedZvENz3p8MuQojKtJGZ5i5DNk7F8Nmg17qHSqbVgd2CX9jOG2ZnEC8G6pzmyM5KG/h2IyM/WN35kN4zcimEoevusFKYE5JYL5ZFeddhuPP67WNJD092YvejNCEjZsw=; X-UUID: dda641ff5eeb460aaa859fb4d8141221-20200228 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1629152953; Fri, 28 Feb 2020 23:57:04 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Feb 2020 23:56:12 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 28 Feb 2020 23:57:00 +0800 Message-ID: <1582905422.14824.22.camel@mtksdaap41> Subject: Re: [PATCH v3 04/13] 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 , , , "Ming-Fan Chen" Date: Fri, 28 Feb 2020 23:57:02 +0800 In-Reply-To: <1582897461-15105-6-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1582897461-15105-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1582897461-15105-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 SGksIERlbm5pczoNCg0KT24gRnJpLCAyMDIwLTAyLTI4IGF0IDIxOjQ0ICswODAwLCBEZW5uaXMg WUMgSHNpZWggd3Jvd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