Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1808523pxa; Sun, 2 Aug 2020 22:29:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypUOMyVLWOKTr0ElddouRc4DUVY3T/EPEmETkejd7byNMgeyAR6gzdHdWD2lJ7SmqNFAwm X-Received: by 2002:a17:906:960a:: with SMTP id s10mr14728677ejx.60.1596432590346; Sun, 02 Aug 2020 22:29:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596432590; cv=none; d=google.com; s=arc-20160816; b=LB4/f+PTBQCkvqodLD4xy7UeEH1cVm63UJl7v3dCjYN4yzyVrThZ3SJkO4I+toQsji FA9u/yJ6pOTCZaDKECqAZ1FM6+FEx6pjyu7bvG78dT67DKS/JtIevC0bdcQ5BO2znECH If0G7I2MnlFVg7QIoJtJMu9MW9ITt8lt0IQX7vDAxItdKKntjIcc1GPXy7pltDLclQ4k PnsGX3i7X+lEKo3CLrU9/Mr/C3kLXurt6VON9+PJCaGGxwW85FdBfHvy8xJT1WJzwD2e VBI4gIaf9Kd+rjL3NyNfUFCaZqbO54OauOpEcRPYkqiSOvTwKDoLIpYKtPZf/wBZOmgK b23g== 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=/fOt/eF3xKfY11u6+UWB2DQ/mmoIvFrJMCVjHj8/gng=; b=JvnvsaHqyqV0BOZvfoCkm19b+WUVvIWISyZ1ox14WISHSwZjcjkcvY1MFm6C1eb1Pt X4r9TohFD3RHNgSYlXcfq6lqZUH55JOtJFHz6bH9oki6DHaDUgNQru3aEFX7BcXHN4hS sljgweDoXM1ZkoawXE5NBV8j0sIQ3tA3umT1I4KVq4g5qsSTn/0HencBfCSoYPCQqR7+ whiiBcc7prjHc+OLPQJZyTKm5eKvQzezksY551NgKNJemhyEOGZw+iC3J5Qk97EyBiZC /ZC3+yAirL2Z0SfME/HDHFv5LO7Wsbvz0oL8NDAC/V58B8letfjaqUUt4xMaxF1SrBTw myZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=t2K+txY5; 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 qk10si9523852ejb.487.2020.08.02.22.29.28; Sun, 02 Aug 2020 22:29:50 -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=t2K+txY5; 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 S1728127AbgHCF2J (ORCPT + 99 others); Mon, 3 Aug 2020 01:28:09 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:23921 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727985AbgHCF2I (ORCPT ); Mon, 3 Aug 2020 01:28:08 -0400 X-UUID: 86b8549b815b41f5ac464fa9c033a3df-20200803 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=/fOt/eF3xKfY11u6+UWB2DQ/mmoIvFrJMCVjHj8/gng=; b=t2K+txY5P3G1IH6qQoJGIIUj6wkcj0lHh5vho9sQ53iMhrXyogWuQ91IsBaZNODDbTE/2XQgKXTWBlSES+/I7wciAgkWmV983UQQJak/u+JtCxTWKMUA28eIKVq0/pEpVRQp/thvEyCF072tPJrSBtVLoCG946HQ57EGz4aybSI=; X-UUID: 86b8549b815b41f5ac464fa9c033a3df-20200803 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 1898354270; Mon, 03 Aug 2020 13:28:02 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 3 Aug 2020 13:27:53 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 3 Aug 2020 13:27:54 +0800 Message-ID: <1596432475.32283.10.camel@mtkswgap22> Subject: Re: [PATCH v4] scsi: ufs: Cleanup completed request without interrupt notification From: Stanley Chu To: Can Guo CC: Bart Van Assche , Avri Altman , , , , , , , , , , , , , , , , Date: Mon, 3 Aug 2020 13:27:55 +0800 In-Reply-To: <3b144ed6897483d1ae3ced6de2dfc64c@codeaurora.org> References: <20200724140246.19434-1-stanley.chu@mediatek.com> <1596159018.17247.53.camel@mtkswgap22> <97f1dfb0-41b6-0249-3e82-cae480b0efb6@acm.org> <8b0a158a7c3ee2165e09290996521ffc@codeaurora.org> <548b602daa1e15415625cb8d1f81a208@codeaurora.org> <1596423655.32283.7.camel@mtkswgap22> <3b144ed6897483d1ae3ced6de2dfc64c@codeaurora.org> 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 SGkgQ2FuLA0KD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