Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1591778ybh; Tue, 14 Jul 2020 01:51:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzRss1Q0kLQpdCM+jjdfribW2lutMMDNlLszUq3hXaBsGK7iyQiB2S6LmCd2pGfQRpFYf+ X-Received: by 2002:a17:906:6959:: with SMTP id c25mr3411462ejs.375.1594716717772; Tue, 14 Jul 2020 01:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594716717; cv=none; d=google.com; s=arc-20160816; b=L0FFTn+xCLwZXdHY7NOkLo29ojNTU4h8nokFdcRGeW2h5f3clxiMwysWQRQOFA1sze s4p/uPyH0TtsbKNXQ+8WL4HlVShNBEtCSeK2oP3ZP8hiyNNRmSNol6LdoumY2hz2ybqJ CYGFNZUVIfGfetrDs0Kreg2sjGF0l0bq5Fs0S5TEWSxMHMEqWCC+jb0P/xbKPg7wOnOM Kh4NNJsz5aYkdrm4tqsJzBZk3Y263/94K3LLsydJ1djwiO749hF+Q6+zyrlhgSmUBKBV ozyzTv2q2Rz0zK8+lvtJJKfRI5E6k6rIaQ979/OtluRaCzPv1aRyClkzyKCW8k+AMcrl YVrQ== 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=vnbU38YH1fLWZ3HM1C/sYvZdgYd9jxLvr3eoKT0+obM=; b=clZcuxqyGo6alRnLtTvTpMnBFerrfZSudj535QUY6acGQpB0sosMvIWe+gtTBFhx6S SdpFFwKriWccVYxjpIi5nfU6tLD3lEawBF2lXfmfxsgZHeEj2O87TKUwZ1Xi5LV34GF1 FT2vq77B6X3x9BTGvuXVowB2IP4gMnuV4P1IWp0MApRgRozXh/6+dtWwNPJzPALgxKwC MZXlf+HVoeVvnPScyjilQF3k9ez2rQtUtdT///FXVNKDJHVdhpHSD43lUnnqzC7piJ2G k3S1Ds2fbHNldgNV3ufFRoqZlP0jXTmKUqMqWJs0XxL7JOUp23yvqy2HC/34kqY3+77W 9jZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=CeMkR8ga; 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 u9si10457373ejx.100.2020.07.14.01.51.34; Tue, 14 Jul 2020 01:51:57 -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=CeMkR8ga; 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 S1726722AbgGNIs4 (ORCPT + 99 others); Tue, 14 Jul 2020 04:48:56 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:36211 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725816AbgGNIsz (ORCPT ); Tue, 14 Jul 2020 04:48:55 -0400 X-UUID: 3903e3c2fbc144aa922f777f0f419ab5-20200714 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=vnbU38YH1fLWZ3HM1C/sYvZdgYd9jxLvr3eoKT0+obM=; b=CeMkR8gaz97ktebcZOfMScpiZiYEL8ViFxBqbs2kvvq2VV2GQMtVjBE6hdfWffvoTfRfJbd4SVnwjVTpaVpRE10hgixtSTmxoXVJkhHrgBXdMsoEbw9PSEvWO1Cst3MCCy4YGSRZkyU+ILnBIo1/3/VLqK3KBdabyjJSqtutY2A=; X-UUID: 3903e3c2fbc144aa922f777f0f419ab5-20200714 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1406989274; Tue, 14 Jul 2020 16:48:48 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 14 Jul 2020 16:48:46 +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.1497.2 via Frontend Transport; Tue, 14 Jul 2020 16:48:46 +0800 Message-ID: <1594716527.22878.28.camel@mtkswgap22> Subject: RE: [PATCH v3] scsi: ufs: Cleanup completed request without interrupt notification From: Stanley Chu To: Avri Altman CC: "linux-scsi@vger.kernel.org" , "martin.petersen@oracle.com" , "alim.akhtar@samsung.com" , "jejb@linux.ibm.com" , "bvanassche@acm.org" , "beanhuo@micron.com" , "asutoshd@codeaurora.org" , "cang@codeaurora.org" , "matthias.bgg@gmail.com" , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "kuohong.wang@mediatek.com" , "peter.wang@mediatek.com" , "chun-hung.wu@mediatek.com" , "andy.teng@mediatek.com" , "chaotian.jing@mediatek.com" , "cc.chou@mediatek.com" Date: Tue, 14 Jul 2020 16:48:47 +0800 In-Reply-To: References: <20200706132113.21096-1-stanley.chu@mediatek.com> <1594517160.10600.33.camel@mtkswgap22> 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 SGkgQXZyaSwNCg0KU29ycnkgZm9yIHRoZSBsYXRlIHJlc3BvbnNlLg0KDQpPbiBTdW4sIDIwMjAt MDctMTIgYXQgMTA6MDQgKzAwMDAsIEF2cmkgQWx0bWFuIHdyb3RlOg0KPiANCj4gPiANCj4gPiBI aSBBdnJpLA0KPiA+IA0KPiA+IE9uIFRodSwgMjAyMC0wNy0wOSBhdCAwODozMSArMDAwMCwgQXZy aSBBbHRtYW4gd3JvdGU6DQo+ID4gPiA+DQo+ID4gPiA+IElmIHNvbWVob3cgbm8gaW50ZXJydXB0 IG5vdGlmaWNhdGlvbiBpcyByYWlzZWQgZm9yIGEgY29tcGxldGVkIHJlcXVlc3QNCj4gPiA+ID4g YW5kIGl0cyBkb29yYmVsbCBiaXQgaXMgY2xlYXJlZCBieSBob3N0LCBVRlMgZHJpdmVyIG5lZWRz IHRvIGNsZWFudXANCj4gPiA+ID4gaXRzIG91dHN0YW5kaW5nIGJpdCBpbiB1ZnNoY2RfYWJvcnQo KS4NCj4gPiA+IFRoZW9yZXRpY2FsbHksIHRoaXMgY2FzZSBpcyBhbHJlYWR5IGFjY291bnRlZCBm b3IgLQ0KPiA+ID4gU2VlIGxpbmUgNjQwNzogYSBwcm9wZXIgZXJyb3IgaXMgaXNzdWVkIGFuZCBl dmVudHVhbGx5IG91dHN0YW5kaW5nIHJlcSBpcw0KPiA+IGNsZWFyZWQuDQo+ID4gPg0KPiA+ID4g Q2FuIHlvdSBnbyBvdmVyIHRoZSBzY2VuYXJpbyB5b3UgYXJlIGF0dGVuZGluZyBsaW5lIGJ5IGxp bmUsDQo+ID4gPiBBbmQgZXhwbGFpbiB3aHkgdWZzaGNkX2Fib3J0IGRvZXMgbm90IGFjY291bnQg Zm9yIGl0Pw0KPiA+IA0KPiA+IFN1cmUuDQo+ID4gDQo+ID4gSWYgYSByZXF1ZX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