Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5270943rwd; Mon, 12 Jun 2023 02:32:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bi1QAbzRLPnIPNUqTkZ9p+4JaQgPrg3U3E2+tlps1m7VtEFwSKvXL3rBlxDqrjDAiMq8n X-Received: by 2002:a05:6a20:1607:b0:118:2032:8109 with SMTP id l7-20020a056a20160700b0011820328109mr9557081pzj.11.1686562339734; Mon, 12 Jun 2023 02:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686562339; cv=none; d=google.com; s=arc-20160816; b=gBF4bO5eyS0KyZaRk5K7n9RH55n3omKS09qoIz3QjK8ayxjRS/26ZBrt2x45T9culO sWQvQyy7lt+afXzJYr/ZCDLPWtQoNtio2Xy6JydK6BmMN/MitTulbNHz/5WR1VQMMRmP CPc7QOvDrZHQEOOYcYF0F2XgdNb1qZGc9/yhxpsnB06C2F0KBan6loT6Jv9Dtf+a2dZj Zd59wDCmCR7QECJ2yJxwa6B8Xvd96yMz6NVf0ZT2kIynGsbXlB+tQeEOJKaILpCrWvOF b0kxnbHXcLps607sFE82Kdj/JcN3yRdTA+1RsFj0FrQhiX8YFyQGXQgZAU0QvvTDcH2C /oLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=NmJpU3AAHuoEIUMXLbfzk/CtPh/H/ZReuel1xWW97o8=; b=c4kHFq53kMeXSpta8kC/tuKaKtGxz0uhAWMvnw4mvEVMp33rfdTe1ohKrrbJSywafA /lN9eTibZkFyL7xIA6ESsgq8rlvJmN13pFGzfFTR1710rQ+4q+mOD4Gt2+bq55HBuQ0l wjnvBFVGvs8LRw3qkjNvKpn9SgRaPGuosyc/uya5UQgccr/LrPTDkazYokiyBfsU5gTC v+swcQLuw2IQdK3OFTDXVwtj6CNMT3ZP8NYu2KxlPnDM/tJDdSrA3Rg8FkTg9VYlx2wP nyGaogRaVr9cwWtKe3C+1fIPOEZ+IrqiR9UXtMvzL6QuW/K4fz48QZvkOtJ9tNI1ePIC fMTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=GC6MZrV4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k30-20020aa79d1e000000b00652dbdb97d5si3324841pfp.356.2023.06.12.02.32.07; Mon, 12 Jun 2023 02:32:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=GC6MZrV4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233278AbjFLJCh (ORCPT + 99 others); Mon, 12 Jun 2023 05:02:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229946AbjFLJBp (ORCPT ); Mon, 12 Jun 2023 05:01:45 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDE0110CB; Mon, 12 Jun 2023 01:58:29 -0700 (PDT) X-UUID: 496ed2be08ff11eeb20a276fd37b9834-20230612 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=NmJpU3AAHuoEIUMXLbfzk/CtPh/H/ZReuel1xWW97o8=; b=GC6MZrV4M1zx31GwhMw6Ln8vkVuU275YUKD9fJrAepj0I1p/htjNYXDI/BEBOqO3wxpoLe6HmNro9HmGZqzjFIyIiSmnoidglwUc8I+2eDvUQAl7quesVhd+TnG99HSMpFHEto6iF7cUsiW0c53WU0TsMN4/wzSFQiG2mKdVLWc=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.26,REQID:aa360100-ee5b-4453-9ce6-101c88236f0c,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:cb9a4e1,CLOUDID:7f9fca6e-2f20-4998-991c-3b78627e4938,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 496ed2be08ff11eeb20a276fd37b9834-20230612 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 284636375; Mon, 12 Jun 2023 16:58:23 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 12 Jun 2023 16:58:22 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 12 Jun 2023 16:58:22 +0800 From: Po-Wen Kao To: , , , , Stanley Chu , "James E.J. Bottomley" , "Martin K. Petersen" , Matthias Brugger , AngeloGioacchino Del Regno CC: , , , , , , , Subject: [PATCH v1 3/4] scsi: ufs: ufs-mediatek: Set UFSHCD_QUIRK_MCQ_BROKEN_INTR quirk Date: Mon, 12 Jun 2023 16:58:11 +0800 Message-ID: <20230612085817.12275-4-powen.kao@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230612085817.12275-1-powen.kao@mediatek.com> References: <20230612085817.12275-1-powen.kao@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable UFSHCD_QUIRK_MCQ_BROKEN_INTR for MediaTek host Signed-off-by: Po-Wen Kao --- drivers/ufs/host/ufs-mediatek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediatek.c index 33b301649757..269a26d72784 100644 --- a/drivers/ufs/host/ufs-mediatek.c +++ b/drivers/ufs/host/ufs-mediatek.c @@ -898,6 +898,7 @@ static int ufs_mtk_init(struct ufs_hba *hba) hba->caps |= UFSHCD_CAP_CLK_SCALING; hba->quirks |= UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL; + hba->quirks |= UFSHCD_QUIRK_MCQ_BROKEN_INTR; hba->vps->wb_flush_threshold = UFS_WB_BUF_REMAIN_PERCENT(80); if (host->caps & UFS_MTK_CAP_DISABLE_AH8) -- 2.18.0