Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2372158lqp; Sun, 24 Mar 2024 16:20:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXHpW4YrbQ1kjsMKrOZfdEpd/6QUxNNt7vaFsikiqNkcFUaagAghqoHNNLa7brBmb+NM6w3hLlp7Q6nrRcFK1krHE5KB16akunNab8IA== X-Google-Smtp-Source: AGHT+IGWV7jxZHwDfUh5kJ/XmOq20vRtsSKF38nB+zWdRKn1BUxueEcARArtma7Z+u2Xrx/5FAqm X-Received: by 2002:a05:6512:443:b0:513:d976:496a with SMTP id y3-20020a056512044300b00513d976496amr3621032lfk.50.1711322448524; Sun, 24 Mar 2024 16:20:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711322448; cv=pass; d=google.com; s=arc-20160816; b=vV2Qt1nMuXbeoLvKUNEC1lxXcqX1svNJc+QJMSrqjkbP0i1ZGan9IjRZ/MET4c0Jw0 qfAOY7sq6/C8Uxo8faM52V32rQ6ygBM2hLHO1B2zLkX4R0FPCHIF+DLy6w9tuf70ePcO JdbO0ucdMth95S2+S8Tdgv1bju14ADKLa0bSPKf2mLVtkbv70pzXtY8JFsui8RD0AJUI BxPw0hDebG5FNIPbps3n/c5x0eWoAprnBEfTCOlxzqDtqaSWubrjgcIndNhAXFRrO5zx W/7EZ0rrjVZT4UsoaRx2dlAHmna9PvZplEAqxMkczzLR4YpTFPRjQyMYPhirWOpyyAod waJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=g/ge0MqTm950h65xg6kLXe2vSb+zIg0oRPbDadi1b4M=; fh=+QnMQUSdfvjRrOHvc3vJZhGjBlhLoPcGpyvxvAsO59A=; b=GTs3s37r0AzSW6Eb2PmEa0t4+rYhu9191og5/oSTHzK73Y3U1iBu2P66JkY+kcF6dN KNEG6dvyImo8E6zoZ7F7APJdavPyqa23X99lQHBHMuOyvbdxEFT46OE3Ymty1nyPRgdQ U9WoVXZf/OFcpvhy+l+ty57Mrk+TgEEi4T2QUKbChSpumfN8ZNmCcyvcGOJ5uDWIe9H2 4bd/KxGQfphjswuhH1zTtvEbh2pmZHqpUCXGmK8e+z3d6ZHsk0oTe0TLY4iV+dfsVXbl 0UIJaiMxcznkbViDmd5/zNItCUw4tLqScnCk0v51Dy1WVx8DI8PBB75LMSoAacmxFoXq fdnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cBmPdzbo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h8-20020a17090634c800b00a46c7a4b564si1975899ejb.331.2024.03.24.16.20.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 16:20:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cBmPdzbo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113095-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 277611F21057 for ; Sun, 24 Mar 2024 23:20:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F9E815444F; Sun, 24 Mar 2024 22:38:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cBmPdzbo" 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 91F61154433; Sun, 24 Mar 2024 22:38:23 +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=1711319903; cv=none; b=TmNx7Rd+ebGcFF6TGpF25GUGeOhl5L4W8CMRETuupbRROWgBq9qC53Ki4cL3KEU974WtXjxXTaSPqFDh2OUEjrY4lS+i6MALBR6WLQSgrqZ5idjXVsR+//O+vJWOwDJ7cCMH0JHDTzbb3i80XVLKyp/dH+KdGCSKkjN+JCMP3hY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319903; c=relaxed/simple; bh=H+N6wK2nOlHM64kSMXDBu3o5Ttw2i8hWbdQcvOy8Jpc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Cs2K43lysA8gFGLW4nHScGnEb+8mKfmgl4xp+qVyb+YLfe/ue1Noi4VD6FzLAbeMb3WIxK3SMf/NtEXurIqN9UY2OICXybiLMaajjOMlD5GVeIZYjXbOWTxg5h1DEv0T2WROEbsX1roe6N60T+ZLjKU4Xggi0BVhmKdk334ePQs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cBmPdzbo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AE28C43390; Sun, 24 Mar 2024 22:38:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319903; bh=H+N6wK2nOlHM64kSMXDBu3o5Ttw2i8hWbdQcvOy8Jpc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cBmPdzbofkxQcicuzwMsJmShkncnLLZyf8l4HMfM5IA5cC7j0l0KMK0fzn7tsHBq3 nipjJYWtOhZ1vRgAYT4YUwzBU3pzJk2fDqc2XiofQjn0L8qIjNXMg2f03sKczV4Owc dQHERKEY482zJET6Px9sScPoXXpjLt3gCwZ8Cy2K0+2z0n6JivnEkN+uHYf0QSQeOa OkWs7MbF3DWaihpYR/tYxAZlg/IdINaboukkmlel3YpDMxTzicaAAXn9EJqdU7IB4l ctd8crqYv53KRbdAINdAtFWdTvUxHjHHOtEeU+PvgfxzdMIVtvg33AkO8DqsAQSJ3Y QdVcb0yOm66bw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Andrejs Cainikovs , Francesco Dolcini , Roger Quadros , Vignesh Raghavendra , Sasha Levin Subject: [PATCH 6.8 208/715] arm64: dts: ti: k3-am62-main: disable usb lpm Date: Sun, 24 Mar 2024 18:26:27 -0400 Message-ID: <20240324223455.1342824-209-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Andrejs Cainikovs [ Upstream commit 9c99b337a8755a09df7735d4324ae26a6eca6261 ] AM62 USB works with some devices, while failing to operate with others. [ 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 Reviewed-by: Francesco Dolcini Reviewed-by: Roger Quadros Link: https://lore.kernel.org/r/20240209130213.38908-1-andrejs.cainikovs@gmail.com Signed-off-by: Vignesh Raghavendra Signed-off-by: Sasha Levin --- 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 464b7565d085d..c49fbce5cb707 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; }; }; -- 2.43.0