Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5211440rwl; Tue, 28 Mar 2023 18:33:33 -0700 (PDT) X-Google-Smtp-Source: AK7set8x3iBRY88cm0PvKXgThkDMnawUkNY0wI9FuSTVRpqUlkMB0TjSXpMgmr734JFtuVltRT7G X-Received: by 2002:a05:6a20:29a0:b0:bb:b903:d836 with SMTP id f32-20020a056a2029a000b000bbb903d836mr14146554pzh.54.1680053613077; Tue, 28 Mar 2023 18:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680053613; cv=none; d=google.com; s=arc-20160816; b=MA24BbAqVEOapNGFQSgUZYdVFjjwwDHltrTUmgO2EPyvN0iwN5G1/9D/8TKSOu7lsY +P/jTuy/OKqv0mXTmY9Tb3X7IIGJQjiLHwpFL5v6eR3IAvbDSqN4k2KsWMdxnDoHq5Ok 9kHXadbmJyNlsATDbSuRdNSmi4DE0JT8ZTHCVQ0K7hfS3BYdl6Ib1ZvQqrupord+DMmw cISPUKKgJjhh/6AJRNZa3zWFuTdafCOgbID5aFI2jFXXHdsEL68KtB9pf5LZeNyAeqj0 cMyvBQ2tYt8gaaX884jOoaWY6kBoZWX3r6LyvSFxS2wY2z5sSDorstJaAjt2Ncb4HGvV LvHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=R+bl2jOqAxhapHDrn1yb1EQ5+zvuHUKPCi6FQtw5dMg=; b=UVEOmPYTD7QZGioVMLHLnJj/AE+QGeHLm6MxIT59x0xmoP1xkx+MhB7NKNMMa5nfvj h29ssrOWhsUkdwCL+gck4oOsqh/uBOoeZ6zeNDhHQk1MidaRzuaMHSYyQVMHALywMEZn J2BOQAHbHi1p2WuaC0c44qmul1pgQ04QPir9UXs7mUYN41/nWSBUS6lYlPLse9tqJGV7 qdS1yWY1Y1M3CYvlb3W1V5J75yGkfCiijyhse0/2pqmYGJNZvet11kW34F05yzSMVqen IBB6QtmxHNu/7TUMVLx3lBwZW5uAC2s0Xsw/Ze2oF+wia4AeAwL/ebSXDgtZ42+6nfiH SOHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YA40+Qhl; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n127-20020a632785000000b00508de5eb602si31308801pgn.311.2023.03.28.18.33.21; Tue, 28 Mar 2023 18:33:33 -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=@gmail.com header.s=20210112 header.b=YA40+Qhl; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229752AbjC2Bcp (ORCPT + 99 others); Tue, 28 Mar 2023 21:32:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjC2Bcm (ORCPT ); Tue, 28 Mar 2023 21:32:42 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98A561706; Tue, 28 Mar 2023 18:32:41 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id bi9so18156017lfb.12; Tue, 28 Mar 2023 18:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680053560; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=R+bl2jOqAxhapHDrn1yb1EQ5+zvuHUKPCi6FQtw5dMg=; b=YA40+Qhla2B04rSM3SnBmkaxakoM4INVok5CAbJ2EXY+z3ICXnU1c1M5qRym2sQrDF TIFApfhL0AXhR+DabzE0zHoX8Pl+gJgkm7oyeLFnB7r1RPULHEgeZJGggPw2tQVqN/tI 9AZOiYQQOxkG0CwdxnN98dCVMdc9cRTGg4bfysvN6ScLDZfHrSYbkEPior8lH7dfPsEH tceSvz5H9IzTvM0F/NBRJsZeNTI+Gu9PqcYxgiGPqxteD1znbtt7nw3amlen0ImgV+OT gbpk2dblyx422jTvGFbM9ZlhDJ9ddrOJfT1/mqVFav/7o/IHMl/87+mgbsgDCXF16lMJ KtmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680053560; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R+bl2jOqAxhapHDrn1yb1EQ5+zvuHUKPCi6FQtw5dMg=; b=3wsR1nNRtE53t69Jcr9VqX5OobofIoC5t/lxvdGOOMyE1IxdZfCtL6i06PPXgjpel+ B0Sxw9DpgTYBIVgDQ2DtHrRCkA4+z9NJXC0mULdhBY4l+BQhD8qhmufhCKfkWspGb3hd yJ9lbaPuzavhBUARGVCExq/TnN6/OlymdzBiPk6KKlpv//w+FvcKvrtUiXHXREtlLWfl VwKLrAdocqju95uJ152AN8667IpJP5VTsZf7zc8ktYJSeiQw58XNsBBJ9jgKoz2kNx69 F3eS1d2DVQ6pKJsVh7KrBUMvIgjpG7jA4Yk+JSlBpXwdhEkpzyNKtrgSFMpIZfg0XtmC Gj7g== X-Gm-Message-State: AAQBX9ebX9oNGCjhGa6I+OMyFqJ4IUF2pMmm7dCpaI1voxz157QTsq5s xbeUiD+ew4o2/MKM8wFkdbpuFoyhyMPcU1Ka7si5RKCAxn/X5VA= X-Received: by 2002:a05:6512:159e:b0:4e8:4409:bb76 with SMTP id bp30-20020a056512159e00b004e84409bb76mr309412lfb.2.1680053559678; Tue, 28 Mar 2023 18:32:39 -0700 (PDT) MIME-Version: 1.0 References: <20230328103801.11198-1-powen.kao@mediatek.com> <20230328103801.11198-2-powen.kao@mediatek.com> In-Reply-To: <20230328103801.11198-2-powen.kao@mediatek.com> From: Stanley Chu Date: Wed, 29 Mar 2023 09:32:28 +0800 Message-ID: Subject: Re: [PATCH 2/2] scsi: ufs: ufs-mediatek: Add UFSHCD_QUIRK_MCQ_BROKEN_INTR quirk To: Po-Wen Kao Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Stanley Chu , "James E.J. Bottomley" , "Martin K. Petersen" , Matthias Brugger , AngeloGioacchino Del Regno , wsd_upstream@mediatek.com, peter.wang@mediatek.com, alice.chao@mediatek.com, naomi.chu@mediatek.com, chun-hung.wu@mediatek.com, cc.chou@mediatek.com, eddie.huang@mediatek.com, mason.zhang@mediatek.com, chaotian.jing@mediatek.com, jiajie.hao@mediatek.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On Tue, Mar 28, 2023 at 6:42=E2=80=AFPM Po-Wen Kao = wrote: > > Set UFSHCD_QUIRK_MCQ_BROKEN_INTR for mtk driver > > Signed-off-by: Po-Wen Kao > --- > drivers/ufs/host/ufs-mediatek.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-media= tek.c > index 73e217260390..b4a4a580ad37 100644 > --- a/drivers/ufs/host/ufs-mediatek.c > +++ b/drivers/ufs/host/ufs-mediatek.c > @@ -901,6 +901,8 @@ static int ufs_mtk_init(struct ufs_hba *hba) > hba->caps |=3D UFSHCD_CAP_CLK_SCALING; > > hba->quirks |=3D UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL; > + hba->quirks |=3D UFSHCD_QUIRK_MCQ_BROKEN_INTR; > + > hba->vps->wb_flush_threshold =3D UFS_WB_BUF_REMAIN_PERCENT(80); > > if (host->caps & UFS_MTK_CAP_DISABLE_AH8) > -- > 2.18.0 > Reviewed-by: Stanley Chu