Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3327024pxb; Sun, 31 Jan 2021 12:02:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwH+pjrKaw1wWYVElfcnfJp3oG2QhZQAM4xiQRu5RwpCU8B4FzVKwEA6POOk39c7qduCF9D X-Received: by 2002:a17:906:e43:: with SMTP id q3mr14120152eji.493.1612123337818; Sun, 31 Jan 2021 12:02:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612123337; cv=none; d=google.com; s=arc-20160816; b=WpeL7vrPaD5viCab5ifUmorFJgqyyMcWQqspcsGIzLN5pdRZIw2sMiqBBfr0DDClgD luEyy0nCCeAVkfMEhH29KvN7DiaLCfNRzhO82J+XizerLyTH8K6RX6CmYAwAyRVWj7td /y91ThmmdtM5y/hzH/tYlIVEw60DngixhBLsjXfSgyVJOEdCT0Ak8EKFFyOIS0V+n6hN G+HZ+yQPWb6A+10IS+9M692Sw4U49HvflU+gF0g6KtZw0HW39XNLMHYMc8RJbNK2zGpK sRTEn7QDghNeTmyDc1i34Dukis/DjuA/A9cd2CR/wf2OEPg9vQ3Iml8iFHFj9UxjgDRY pTLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=UhDv/BYCeM6la1A7sYj3SvVPGnwohy8wVXqenagBans=; b=kq/zweZMLn4epfpN5Msqb87/0judyIaaL8bNaLnB4+jiZ62JORoL1YPX3gdV/aVbSS uLF1owvBGGWz4cGLaoXXjM2ujaVv52Hjk+sjtxwmvhRjsjifYCxld6FTTjOpT0I5tIdw A9SZiOPMBluyVA/O49IuxLa3vfO+FElXjjSVJFWZU0caEDnRl1XDlxp5TzY1Vb8zzd6K dqT0X0wVKFas9fwkBL/PmEJjP8NlzKJsVpJQ1Upj9pNKbWjx3/g5WozZRa/LGNhv3NVT ZZElPbPsPfvVeBC6A2LXgl4LDLtGRUcCG2Gb65+uTA11s7LMV5rF5rYBU/Bql3sZs2hw jL/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="IXaE/GJv"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h16si10417151edv.17.2021.01.31.12.01.53; Sun, 31 Jan 2021 12:02:17 -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=@gmail.com header.s=20161025 header.b="IXaE/GJv"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbhAaO3a (ORCPT + 99 others); Sun, 31 Jan 2021 09:29:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230236AbhAaOOP (ORCPT ); Sun, 31 Jan 2021 09:14:15 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55611C061573; Sun, 31 Jan 2021 06:13:32 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id e15so10945879wme.0; Sun, 31 Jan 2021 06:13:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=UhDv/BYCeM6la1A7sYj3SvVPGnwohy8wVXqenagBans=; b=IXaE/GJvpRoj3dmKrJTG8REL6nbjkc0se/4mqdhaorihgZYPihaN+MahLQMcdjwswc boas0SxnBLVJ8emgsLU2Ld2ignFYbh+D4470J1EurUBEzwy0XSMbRiQXG8BB50acn5fy 3scIZYBsw4mJoekdCcbCSm/k7+BGS6qaGPikkdfpYYLitS7ke/iDXlE20DlzQKSRaf6p iYN8VrhGWfvUKnTka97bWIZqgKEpk6lxUaYsGFIJIJBtG2oNBtLqbAU3+++G/EEnPQr/ pfK0fRnZvKMGW2PZVxXpqVIYpw44WOUWrxPsMmTRGXzfUD+4Rsa9MOj49WMQMX+9WGjL XT8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UhDv/BYCeM6la1A7sYj3SvVPGnwohy8wVXqenagBans=; b=rTqP667t5gjGmAkECgcSdRQykn5tYreFwb7yQ0FFQDTJaiyjx8Le93FMvN4v/otlNa dkB83SQsWjyodIuX5/KLl0m1auzT3omYd6zFHBvPNihlS3ObybnnJU6jJIqs4RLNTCTL 1gyJq5rBOzjzuebj2ijf08wuZrAYqMrBK/+YrWwgfsWVgyTO/KHISw10FnJe6R6V7+Jz t7iw8zyeCeoF1HBwO8jFk14Q5ecuGfmmBUUIc1Stsu2YDLgM/CvQufL+5Vf2xwSShTWw bTUEM7szW/2SyFeBDnezpOmR1+alk1qG+q32F0ifolzWajjacDJI9aaOm80KRdqjAHqW jiZw== X-Gm-Message-State: AOAM532rPTTcM1n+yVUkCfW0pL2M0iDDB/DAArOtPY9CVZ+K2rTq/Ln2 dNmlKLkZbTqCEHSrSqmYsH67haiZNCNcHzTf X-Received: by 2002:a1c:2d8a:: with SMTP id t132mr11011669wmt.119.1612102410914; Sun, 31 Jan 2021 06:13:30 -0800 (PST) Received: from ziggy.stardust ([213.195.126.134]) by smtp.gmail.com with ESMTPSA id r13sm19349909wmh.9.2021.01.31.06.13.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 31 Jan 2021 06:13:30 -0800 (PST) Subject: Re: [PATCH 2/3] usb: xhci-mtk: fix UAS issue by XHCI_BROKEN_STREAMS quirk To: Chunfeng Yun , Rosen Penev Cc: Nicolas Boichat , Devicetree List , Mathias Nyman , Greg Kroah-Hartman , linux-usb@vger.kernel.org, lkml , Rob Herring , "moderated list:ARM/Mediatek SoC support" , Hsin-Yi Wang , Ikjoon Jang , linux-arm Mailing List References: <20201216115125.5886-1-chunfeng.yun@mediatek.com> <20201216115125.5886-2-chunfeng.yun@mediatek.com> <1608171557.23328.53.camel@mhfsdcap03> <1608794285.23328.79.camel@mhfsdcap03> From: Matthias Brugger Message-ID: <7ad022d3-ff83-9126-ee74-6d1e4d381366@gmail.com> Date: Sun, 31 Jan 2021 15:13:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <1608794285.23328.79.camel@mhfsdcap03> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/12/2020 08:18, Chunfeng Yun wrote: > On Wed, 2020-12-16 at 19:43 -0800, Rosen Penev wrote: >> On Wed, Dec 16, 2020 at 6:29 PM Chunfeng Yun wrote: >>> >>> On Wed, 2020-12-16 at 20:28 +0800, Nicolas Boichat wrote: >>>> On Wed, Dec 16, 2020 at 7:53 PM Chunfeng Yun wrote: [...] >>>>> mtk->lpm_support = of_property_read_bool(node, "usb3-lpm-capable"); >>>>> + mtk->broken_streams = >>>>> + of_property_read_bool(node, "mediatek,broken_streams_quirk"); >>>> >>>> Would it be better to add a data field to struct of_device_id >>>> mtk_xhci_of_match, and enable this quirk on mediatek,mt8173-xhci only? >>> This is the common issue for all SoCs (before 2016.06) with 0.96 xHCI >>> when the controller don't support bulk stream. If enable this quirk only >>> for mt8173, then for other SoCs, the compatible need include >>> "mediatek,mt8173-xhci" in dts, this may be not flexible for some cases, >>> e.g. a new SoC has the broken stream as mt8173, but also has another >>> different quirk, the way you suggested will not handle it. >>> And I plan to remove "mediatek,mt8173-xhci" in mtk_xhci_of_match after >>> converting the binding to YMAL. >> I'm guessing this also applies to mt7621? > Yes, mt7621 doesn't support bulk stream > Then please provide patches to the DTSI for all SoCs that have this problem. Either as a follow-up or as part of this series, if you need to resubmit. Regards, Matthias