Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp871046pxu; Wed, 16 Dec 2020 17:30:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwv4abDn+xF/sK/0hv3XykKb1J42f01R8ux9rH00loajiGCRUb9Wg8h7gK/qhY1MP2QdN+q X-Received: by 2002:a50:f1c7:: with SMTP id y7mr20839795edl.184.1608168616835; Wed, 16 Dec 2020 17:30:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608168616; cv=none; d=google.com; s=arc-20160816; b=sH+f23s8UQti99SxFQStKMosk2qmPw7nEApHN1BGOo5kFVJOSmsyDZPDNB3Swiewgu 2/yrIN87hDFrbMNZ5wHmKejK8j0RJa+h1DsIKraE0Ji95Od+F075xCU5jWlYXKyq3ASF sC60grjE6QLqJYtlBYF0F/2TYOlWDZ1Eivn5I1Sc2Sfv9WmR/GdYIRquGAt3T6gWb306 8GkFECF80+E9/b+jPQmtsJns4H3D2jAIcIynukBOHw2rf5yaxP0dEWWo5Q/sexVsyFXO aFII9IddD2ikOwubukdUTAHfWnA7OX0d4CMtjxe0Rl3FNv3tJw4ZEp9OLoVkBFihTibN 4lng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=6zUO/pFL9ZBaYYczz1xolU5TEIyS65c1XFta+4Buk+k=; b=t82LEjYdiUD09rScq3qEpC6BjZvapY/B4UA3IP09V9UmxSCB/hw59aAS1ovOT8cZao Me14G9Yj0cNwaynNBsQDaQ5EAWcF0jKrOAoLZhwo4S4+Tv/NEUR1d9kIEAvwIQPN2egO yqCuiykJFMsLgSRB2+R6atKHqcFJjMqSGKP9vZj9wqc0JOiXYqVmi2s4DB4PA8EcHfVP RCrduOD9uLvLZLwmGfpv9LCngXKeiQFjC/HeDR2pAQ0iulbB54cpFJqyZm5U80LvcALC PjCfacBEALrnu6G4UY4fx6LeeY/ANn1ClX05MGrLoAZ+hvNRS7iQhIkGEMFNhPMLVdtk ASTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=aDCe0PQ5; 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 y17si3658392edm.386.2020.12.16.17.29.54; Wed, 16 Dec 2020 17:30:16 -0800 (PST) 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=aDCe0PQ5; 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 S1726571AbgLQB2n (ORCPT + 99 others); Wed, 16 Dec 2020 20:28:43 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:42541 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725988AbgLQB2n (ORCPT ); Wed, 16 Dec 2020 20:28:43 -0500 X-UUID: e64650355f984528820cc7eb8ecea633-20201217 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=6zUO/pFL9ZBaYYczz1xolU5TEIyS65c1XFta+4Buk+k=; b=aDCe0PQ5HhntOGOlYT82oQnpVljXDRdhntA1jtleUrzrt+fRBh3DuwWnKWzkG4Ry2bFRlW1VRwOgzKN4/9AZz7KcGoOjm3+8Y4BDgYMZLeG0iAZMzROKZ1XL7uFu9hiZwsnZRwsNLbgTVIKgX002gbzCul/HfJVxkGX7OXj/GUk=; X-UUID: e64650355f984528820cc7eb8ecea633-20201217 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 516339937; Thu, 17 Dec 2020 09:27:56 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 17 Dec 2020 09:27:54 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 17 Dec 2020 09:27:51 +0800 Message-ID: <1608168474.10163.37.camel@mtkswgap22> Subject: Re: [PATCH] scsi: ufs: fix livelock on ufshcd_clear_ua_wlun From: Stanley Chu To: Jaegeuk Kim CC: , , , , , , , , Jaegeuk Kim Date: Thu, 17 Dec 2020 09:27:54 +0800 In-Reply-To: <20201216190225.2769012-1-jaegeuk@kernel.org> References: <20201216190225.2769012-1-jaegeuk@kernel.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgSmFlZ2V1aywNCg0KT24gV2VkLCAyMDIwLTEyLTE2IGF0IDExOjAyIC0wODAwLCBKYWVnZXVr IEtpbSB3cm90ZToNCj4gRnJvbTogSmFlZ2V1ayBLaW0gPGphZWdldWtAZ29vZ2xlLmNvbT4NCj4g DQo+IFRoaXMgZml4ZXMgdGhlIGJlbG93IGxpdmVsb2NrIHdoaWNoIGlzIGNhd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