Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6771879pxv; Fri, 30 Jul 2021 01:51:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfgxjiu9l67OXntCH8yIJnOMtBOcJ2bVitqAzLZFzKUJfmbBEUhoJ+IX+xNHP3Ve8QUWW8 X-Received: by 2002:a92:d388:: with SMTP id o8mr827591ilo.247.1627635118548; Fri, 30 Jul 2021 01:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627635118; cv=none; d=google.com; s=arc-20160816; b=mWKkpKo8bkhw6TZ7L1naZZuZL9Rvf9K+uny19AJ/CrLQvbWfIw1mtaQHXOqGqL5EDx 1Pu3yT8E7XFE4Yr09fXfz7e2rNKZcu3rPfY/SzGLBXwOaESN6qGTvm25W7M2bSWvS+uo 7BIwkKSVn1p7XczKVsmWvIMPJHKy4OpvvNJwQL4S9thO6ANli0o4UjaG8moVIPeu8aUS cDKmQyNwB6sCieJ05P+2OGho4JhoyVVq7o6z6go48/aeBV4qWX8jpALoQciSh5QLw2Kr 5aaz5WwrJQsYLvLMLWT+BDTKgge4ukErZXJnOtO8ioQx8f60Q9x5oJm7VwELuMP//Y+Q nrPA== 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; bh=5JUdPmei6mzUmMgSZjh5UfvvlRAZaJiP7WML5dHyzDw=; b=ROz9Y+1UjNMnBLKX8a6DZbBkENrxc1ovfSfjsGo72wgJivwcEpbD9lJQTNT+ZykBTH mVW4+KwLQVV2KW7fDd/Cnnh9s9dJWSDxuveYRewRjsiIyBF9C9noT9UbxtsLdH0Lmynb VtExqlnzN+fBGbpvtNa9wHqfy/FaSMMcCzhSkouJzTfiIYs9jXE3LnE/uWdGxrxXk4ZX UZHcVLPGpBEEg8KDf6PclsbjhhLFUfe7Bk0Zw5y+hPydOF/n2LTRnacKbjRwqSW3NbVC kuyVC2h5eujeu0gP4Mip88d30YAWxC3+UwwHmtvPYVIAGu3F8DSq7qx6pJM6M67HjuMw /T2A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 p20si1246655ioo.40.2021.07.30.01.51.47; Fri, 30 Jul 2021 01:51:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238176AbhG3Iu7 (ORCPT + 99 others); Fri, 30 Jul 2021 04:50:59 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:35966 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S238083AbhG3Iur (ORCPT ); Fri, 30 Jul 2021 04:50:47 -0400 X-UUID: 355e910871a046b899a2033b198a77bd-20210730 X-UUID: 355e910871a046b899a2033b198a77bd-20210730 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2090878343; Fri, 30 Jul 2021 16:50:40 +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; Fri, 30 Jul 2021 16:50:39 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 30 Jul 2021 16:50:38 +0800 From: Chunfeng Yun To: Rob Herring , Mathias Nyman CC: Chunfeng Yun , Greg Kroah-Hartman , Matthias Brugger , , , , , , Eddie Hung Subject: [PATCH 05/11] usb: xhci-mtk: add support 'tpl-support' Date: Fri, 30 Jul 2021 16:49:56 +0800 Message-ID: <1627635002-24521-5-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1627635002-24521-1-git-send-email-chunfeng.yun@mediatek.com> References: <1627635002-24521-1-git-send-email-chunfeng.yun@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support property 'tpl-support' for targeted peripheral list (USB-IF Embedded Host Compliance Plan) Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index cb27569186a0..f6d161670c4e 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -18,6 +18,7 @@ #include #include #include +#include #include "xhci.h" #include "xhci-mtk.h" @@ -517,6 +518,9 @@ static int xhci_mtk_probe(struct platform_device *pdev) goto disable_device_wakeup; } + hcd->tpl_support = of_usb_host_tpl_support(node); + xhci->shared_hcd->tpl_support = hcd->tpl_support; + ret = usb_add_hcd(hcd, irq, IRQF_SHARED); if (ret) goto put_usb3_hcd; -- 2.18.0