Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1656264ybt; Sat, 11 Jul 2020 18:30:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxO0EsQ4DFE2fejmwF2gkZIRw9XdvxQYxD/neWL/3dyrj8cu0hLeWz5Pr8BVnazd/wuiuDO X-Received: by 2002:a05:6402:1a3c:: with SMTP id be28mr75831241edb.140.1594517416067; Sat, 11 Jul 2020 18:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594517416; cv=none; d=google.com; s=arc-20160816; b=uxdnn3sB5cGDDDTKpJoZGovigRHPlG2813KrsciLW9EhIpFHdkiB1lexhoyP3dBQYe xJ6pNmowiEsSe13BZp+7qPZ4z8lOdqXzJ7Tn3EkS8X6OIJMcO+e/ycUqtCgoRjxrCSqy uaT8o/n60pNik+ZLSkPVS6Gm3ePXlAArPK13B5iINZlEEwHEbAZux8OGy5oiR4AQKxBe mksl4Xp4yCd622UHhFycQ5c3UZC7N/GljxAbXHlGOYc68JXwFBFnxBlCbElLCjmEdxBI Af3KYBt2mW/qi43e/dq1XCRBZdgfZASN0bPLyC3xkk8FKqOInwcY9ximckcvHlJvWDfi FdJg== 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=5+Yrq9V4GhTf7cocU/ltdK++Qz2IRNUuCTCYC0FtTd4=; b=xtNv7CcoXoULBG6zXccOuaN4DcmOPJFAdsGI5e/2uuMdhF5oqKei2l8U9c7iINfoXi /ylLLz5/8KM/th3T+qroYBwOn/TYzy+jx62JsORMigpsQbNUFe8EYKpPdTKQ6Tpkd46I 1LLb+ZAz+n9pvEYuOibLBetH0sLQHrNeEYYiyNldSbSILfdtJYQuh+MU7Mrz624HVXZv hIXBkMCxnGt/TKTa58hJxlNY3Mi3jKzHoToMowVvrtsvGOToOXJ1ocI+Js97VvEsmSnb ghRl12lh8KtT642b2hB881Wa278G57v6CNwNIG7OPljdUNLUjgzwXs2ecxvEP8RuaDmx KDyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="bhH/g5V3"; 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 i21si6455513ejj.293.2020.07.11.18.29.36; Sat, 11 Jul 2020 18:30:16 -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="bhH/g5V3"; 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 S1727868AbgGLB0J (ORCPT + 99 others); Sat, 11 Jul 2020 21:26:09 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:44407 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726948AbgGLB0I (ORCPT ); Sat, 11 Jul 2020 21:26:08 -0400 X-UUID: d61f647dba124a59b33ed1398bbd5501-20200712 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=5+Yrq9V4GhTf7cocU/ltdK++Qz2IRNUuCTCYC0FtTd4=; b=bhH/g5V3ul2PR1nE7dMymRTKQcgi/CeVKg+RRuZL2Hg6WC1cZYWao3X1HpD8aYhsN1UB9QnEPA9oRsQUrNS+A9qxBHcChtd1qt0FLccH+9vs6WXQ4RSjGYO7iefqbyIvR2dlY6Y/ezs6Fq6zqvCYhnRt5PPUpcXG2rx4SFAC7Zo=; X-UUID: d61f647dba124a59b33ed1398bbd5501-20200712 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 59267435; Sun, 12 Jul 2020 09:26:01 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 12 Jul 2020 09:25:59 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 12 Jul 2020 09:25:59 +0800 Message-ID: <1594517160.10600.33.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: Sun, 12 Jul 2020 09:26:00 +0800 In-Reply-To: References: <20200706132113.21096-1-stanley.chu@mediatek.com> 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-k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