Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp373740ybf; Sat, 29 Feb 2020 05:40:54 -0800 (PST) X-Google-Smtp-Source: APXvYqxDkOkbUwUgAzSCTLBTNu2NyaqfxAv0hsQiYD5jVpv1qQIgrudclRlNF2vaHsJ7PlqgOAqH X-Received: by 2002:a05:6830:1d93:: with SMTP id y19mr7046803oti.350.1582983654644; Sat, 29 Feb 2020 05:40:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582983654; cv=none; d=google.com; s=arc-20160816; b=RwJzMqyhK72PBhm2vJpWkhmN46Rc2qEEW/vtab9zPGKhA4hTYhNX1OOHpx/CqD/0La yVEw8zvTk9X7gJ9witohnndM5TjJkAmHSwln7EjHOpVJ0bJrHA7oNB5Glxzl/FD996Wh n/oLXbmvyAdQ76RDktF24bbifx6J6N0WH27QvmJjyrYWlBoYrFxv8je6YkJOgOoo4CEG fiBHr8eMcNz6Tui9aP3YXtPqlBtCyZJswXdl79plid2LwDVIcj2XrPPMDTQVJqFn8LB0 iwpMnt5h7bTaiIcewm9ha8cdx+PriHj9P44qW5OyLmXfAbRsSei4F2qzNYVhKEv8o0R4 B8yA== 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=zitOnP+eApgORZH5lc1x2JLP2/ns1VkO1JNAYN3t0Mo=; b=xSb4MwreFRnxMfFPvnfvbdEBZs0UCoKwJx17paXHaZE4t/JE1Zt7BUEapHEVS5VRcI 8G1ncGySdM40/JMYr4Zx2LZT29C7DrfHWJ7TkYFl4HSy/9HecNmE3kecI1dBhKekViMx mAOfvJK7iaAoIgCcHlieSJ4UnVUNF+lrSXq3n/qd2P+J4cBaa4mEL+jNtoDDmEDWab48 IraSrVWfZwSRmBs7KozCPdq2d8ceMs924Q1Bha4VZPJGY70ftDec8DFJGskMYIGNnZd/ XUP0H7qea0cRpENv186AFu80yMLEGhyrh6ibbeWBSOHYxm1KRqHTcS0fcOFfnw1zQ49X y5tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=e21lr+6W; 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 o1si3215332otk.154.2020.02.29.05.40.42; Sat, 29 Feb 2020 05:40:54 -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=e21lr+6W; 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 S1727009AbgB2NkY (ORCPT + 99 others); Sat, 29 Feb 2020 08:40:24 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:23442 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726995AbgB2NkY (ORCPT ); Sat, 29 Feb 2020 08:40:24 -0500 X-UUID: c27bc30714f845e08a1227099f8995c2-20200229 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=zitOnP+eApgORZH5lc1x2JLP2/ns1VkO1JNAYN3t0Mo=; b=e21lr+6W/xGpU+TUl+IqaTN3WQh2yoA+rlZmQeq5gkmpGM2yipPxQOlED9B4xpnYiMCHDzdgPLYXCdX293LMHY7ETbCiwFwcmJZBaYHpi6M4kYsEJOlbVLb5ynemiTU87WSWIwRMVCrC7d4up6f4H+W6tdfns7w7IelYoTbfvbY=; X-UUID: c27bc30714f845e08a1227099f8995c2-20200229 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 127865145; Sat, 29 Feb 2020 21:40:18 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 29 Feb 2020 21:39:16 +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; Sat, 29 Feb 2020 21:39:54 +0800 Message-ID: <1582983616.21073.4.camel@mtkswgap22> Subject: Re: [PATCH v3 04/13] 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 , , , "Ming-Fan Chen" Date: Sat, 29 Feb 2020 21:40:16 +0800 In-Reply-To: <1582905422.14824.22.camel@mtksdaap41> References: <1582897461-15105-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1582897461-15105-6-git-send-email-dennis-yc.hsieh@mediatek.com> <1582905422.14824.22.camel@mtksdaap41> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: 3FC05AABEE98AB8056D43B46ECFD21BB96CB48C37D022F69760BF94E6E4745AE2000: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 SGkgQ0ssDQoNClRoYW5r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