Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2412198rdb; Mon, 12 Feb 2024 04:15:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWDNv1vvSAcsqnTgwpu48X+KfapJt/oXNnhXhGn6RO4MgqGHfg6Cx2eLHZ+4jVdM633IVbsJa/Oj57Gj/klKlNLyYp/hVuydSUvX4t0mw== X-Google-Smtp-Source: AGHT+IEmK6FKdd+v3DkXoSnuLnD5uIq0Ibrvb+F6U673L4Z0b4tD9CDMhUy2irWIm1i1kkHTXyt7 X-Received: by 2002:a17:906:554:b0:a3c:be90:a5fb with SMTP id k20-20020a170906055400b00a3cbe90a5fbmr1243063eja.31.1707740154547; Mon, 12 Feb 2024 04:15:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707740154; cv=pass; d=google.com; s=arc-20160816; b=LG0fCCNLoLC3uMIaMz/Ms1ed0BxTQZZ8goIWXk0zy5Byoo+k5frBB4b9AatNukZPoS FHioNqVug0wbiYeaFE82GcuUhsoWPO6+E9mY1AlOICTdJiPpDpggH4FT3UivE6LXkLi6 ahIg7ZYXr8u33hbMjuYdF+c8i0swUeLh7qsuKDF3iMxCQo+RmvUvtbWbbSerL/JYloNq CUqNGlUa8Y04RqYLA5365zb3jSdwJMrvPsFE/LVkMxNZNn384dC/w5Gzn/nS2IVhx7qZ dikxxkDc+m5b+2TCoxmwl6al6WrzKE2GcgpQoLuEm6PJT9sG9vVa/tsuO0U/94kKBOOW ivRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=rCrHvLnXR2cIlRcNrulGwf/AHP/uuIpTSsCXlfOSO/Q=; fh=mHn326DGlsVE5uZLqi0XvTND89iJzcYkcD5zltmiJDw=; b=ipVBffojlrntZ18czcuk/KeRcYDxvFBUzDKrYG3m9r3ojPotrOy9sgdWiL1eOE7yHH pqghqPOINMvAEikYdbkdYxsGgbkg3vlyBI+ZkDNKFd0BJLwhAqlNza3h5qBs+E1bNmC7 bGQ0aRkVxOXX8QM+N3EOFqmUoQWvvG8oYyPW0Vk55qIb1gUdwbg8rT9UJDgOEOZwxLDc GOI2m7CEWh6/+wDFGQ7OGMHHY3pjxIQlx1cH2e43+dy2qZ3gmF6NGDIoGN7Sf5r/K5EL WOSm7aRoWhSTgT4UzH9uT6plZg6meBDzFbdaw+9/A347D0Px0pGJgI1Cjo9kqrXcXry/ OmMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m9USiGBC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-61531-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUR0Tclw5l2neLcO/pPqu369iEwi1kajP4en7EnKhWPAiGPbunRKvxqXxIphmN9MvR+xekBl/Y77doPHnM1tImOrQZWRfFs8v9hKy4p+g== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a22-20020aa7d756000000b0056055f0d844si2644429eds.63.2024.02.12.04.15.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 04:15:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61531-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m9USiGBC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-61531-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4CE2B1F23328 for ; Mon, 12 Feb 2024 12:15:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EC8939FC4; Mon, 12 Feb 2024 12:14:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="m9USiGBC" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2849D3B783; Mon, 12 Feb 2024 12:14:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707740044; cv=none; b=shTuFlU/qyxgZj1eOBmAgiU6F4uYQcGjARw8p/7K8xzGMo2dfY0k2KRQNHvd/VCTvwWSQMcLGlD30VnFHH8NzExigCYUJ+gteYqbU5retLNe2egnIDYCSAzekTuciJAY0EFYtHP/8mP8Y3qeAd8MyrRPIq9/67VI1+2jrSIXcYY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707740044; c=relaxed/simple; bh=95Tz2nLS8qGhsUQIbqsSqYKNRqEfqdnfgnY+bZCrxs8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TsUdTv1mUXeqLYgeix15xRrU3d4J1DDMqn6O71iJNg14hWKWvZJ7I4n7noAq86WjeDAyvf22cak0ObEZzqTeelGFq3mKq0G7zbcZBufxAE/EQig7xM4CCten9FjNs976kL2uklky2pjQ5u4so7fFeUfJ82mR3ERfaOg/i8K/uGs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=m9USiGBC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07FE0C433C7; Mon, 12 Feb 2024 12:13:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707740043; bh=95Tz2nLS8qGhsUQIbqsSqYKNRqEfqdnfgnY+bZCrxs8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=m9USiGBCVZPxf3gJRTfe3AFevQ6PQp7alHf2Q8N/alAGW/eQ1EHbr8KPsk0D8uWCA a2sPmLvwQHuixvlZZG64saCMjqtDLlgZUJUJT+62TWJn73VOZ6xz7w52AXtAe0UxYW rdtLc0uYkGpWhdC5PV/PvOyP/HeIBppS4HaWgtvq7YakzsE901QBHXHnSVL0oPFX8g //DdhB3il4cedvMYlOPSvyy1oTcDgkZt1hUWnWKru6ZMGJ4buxaxg/MX2+7OWx6PQF mnS6Qh0zQhYqblpeNOxFjLORif8Hm+OOGOVYgvELt5YRZW13SEJGh8eH1pDZs9VX5u tqI4o+CWMYgNQ== Message-ID: <2629cd30-23aa-4f03-8452-ae13297fd6b6@kernel.org> Date: Mon, 12 Feb 2024 14:13:56 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] arm64: dts: ti: k3-am62-main: disable usb lpm Content-Language: en-US To: Andrejs Cainikovs , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Aswath Govindraju , Sjoerd Simons Cc: Andrejs Cainikovs , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, "Bin Liu [EP]" , "Gunasekaran, Ravi" References: <20240209130213.38908-1-andrejs.cainikovs@gmail.com> From: Roger Quadros In-Reply-To: <20240209130213.38908-1-andrejs.cainikovs@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Andrejs, On 09/02/2024 15:02, Andrejs Cainikovs wrote: > From: Andrejs Cainikovs > > AM62 USB works with some devices, while failing to operate with others. Could you please share which devices failed to work for you? > > [ 560.189822] xhci-hcd xhci-hcd.4.auto: xHCI Host Controller > [ 560.195631] xhci-hcd xhci-hcd.4.auto: new USB bus registered, assigned bus number 2 > [ 574.388509] xhci-hcd xhci-hcd.4.auto: can't setup: -110 > [ 574.393814] xhci-hcd xhci-hcd.4.auto: USB bus 2 deregistered > [ 574.399544] xhci-hcd: probe of xhci-hcd.4.auto failed with error -110 > > This seems to be related to LPM (Link Power Management), and disabling it > turns USB into reliable working state. > > As per AM62 reference manual: > >> 4.8.2.1 USB2SS Unsupported Features >> >> The following features are not supported on this family of devices: >> ... >> - USB 2.0 ECN: Link Power Management (LPM) >> ... > > Fixes: 2240f96cf3cd ("arm64: dts: ti: k3-am62-main: Add support for USB") > Signed-off-by: Andrejs Cainikovs > --- > arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi > index 464b7565d085..c49fbce5cb70 100644 > --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi > @@ -640,6 +640,8 @@ usb0: usb@31000000 { > interrupt-names = "host", "peripheral"; > maximum-speed = "high-speed"; > dr_mode = "otg"; > + snps,usb2-gadget-lpm-disable; > + snps,usb2-lpm-disable; > }; > }; > > @@ -663,6 +665,8 @@ usb1: usb@31100000 { > interrupt-names = "host", "peripheral"; > maximum-speed = "high-speed"; > dr_mode = "otg"; > + snps,usb2-gadget-lpm-disable; > + snps,usb2-lpm-disable; > }; > }; > Instead of this could you please check if this series fixes the issue for you? https://lore.kernel.org/all/20240205141221.56076-1-rogerq@kernel.org/ -- cheers, -roger