Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp437068rdh; Wed, 14 Feb 2024 01:03:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU6otHpVJwV5DVQwzkb7HuDTLytksvhzsRS5gbs7HlXBJXLl7kuWURyDdRxci87RCXlQzv2FCC7TuYvlvBaxZ1dh4CK/K3eElkJYu/4Fw== X-Google-Smtp-Source: AGHT+IEjIkQ5isboeRfgPy9NnpxiyHiJ1Csd0BiXxUqQXZMAiD7iNxOp6Ueud/54AzwXBGYVWNRV X-Received: by 2002:a05:6a20:93a5:b0:19e:947c:20cc with SMTP id x37-20020a056a2093a500b0019e947c20ccmr2132601pzh.9.1707901424562; Wed, 14 Feb 2024 01:03:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707901424; cv=pass; d=google.com; s=arc-20160816; b=RYfU6tlZEP6so682nqBL7bjFlMGo4XQVZby0N4fEe5hD4B4tI+3rrS+v8VDuMzfyNc bnbvkArTsLMKMSANCwfjHHorgosazdf0q9Wg6FJjyRwgIso/lbcS8WrzTws0ZaBRRzI/ qUeFcryHtN/gI6eMKw/ygF5EDV9rBir2zS5HLWT/ib0sYvymTt985zx4sepTJKD2r8wM UqzG06HHDyYTZhlLEVAAeiahLQxo3fFr2fnodeyCvyLy1gs1bRyMQ1sgRYcVEhoXxtuC KdLwRACPi8ZX55BXIi4nlfvK7/uYcjXcHDgrGVZ57gng1KOvg4c3bg5ynIL+YSJNGTsy +jlQ== 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=H3r23hFB8Hu62aWLOB2ekBZdGWf/39jWGP2Qo+ffKWw=; fh=+4e/E2I0pXlZma4xm2rmaPgYOq6+ym5tCS4ZBzivaG0=; b=gzYQXdVy4BKa8EFyLnFiw3WyDmrQnnlaesVcdBZr9eIpc61d+3rgaEEIsiclB3M5eS MITd1LcAyen4XJwRhI5ePU6z0nz//j6dkYaduOn/QjTiNF7HotfrsCdrNYTz/EKg9hAH 3uo2iz/ek4TuMtgqrORqsWTUWyapQ3Edy3ebTOnMRWmIHTO3mrhVIB1DMVjrc034Ja+6 6dRHysx40lgf5arYjqYkQbWzB/01TurttLxMv/Gs6UN/JNNpv5prdvRpDsduqvzCjFN8 nI1Uuuc2pdN4jhvJcea+Hoy2Ybbqb6MAcYZ5QVpdF+es0chpzsLMhtHsNAtU0scyC3GJ 4T6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=X5rdKeXP; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-64907-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64907-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=2; AJvYcCXDtRP1VHdU7aP3s5WE4DSQz2vWioD+dDjrTdNLjGMCJ4I4hgcwsTRDz68VPJ+DKQsVKl4iCKqpiFH43Gq7AYEwlAKFB4nIaHET6aBt7w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v64-20020a638943000000b005dc82a64327si2722975pgd.27.2024.02.14.01.03.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 01:03:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64907-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=X5rdKeXP; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-64907-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64907-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 394EE2855D7 for ; Wed, 14 Feb 2024 09:03:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 096EFB645; Wed, 14 Feb 2024 09:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="X5rdKeXP" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 774626FB6; Wed, 14 Feb 2024 09:03:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707901418; cv=none; b=qxnl1pOodvfl91DBZmopDP5jZDn5OMvSYGYI3JkjvM0O5stImot1UgCYyyhNguvQfCyBt3P1THfdQdCRDu999qQIs6y93lAmO2epfcglwhdbzaBFC1X30l3o7D2Jb0eCOGsYmAb7lOKvflUB28YTy7aAfYQsmeyUKyvHRzxhtz8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707901418; c=relaxed/simple; bh=IkMSx2GMsosJsuqeMCf9O8BI8a8CA/8JrvnoKOrX2hY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nVRGTHRoV3ABdAazCmBlF96NKMtM2n42QpZ+TnthQGIC9ZKlGlrHGpF78T5Kw1tBPoA9bUbK8JwV4yhClRztrqCajc+GsLjBgVdoZ39oX/fi6dVg6MaRXsWeBsokyAr1Ofm1iSE/3X9PDRniZFvUE190oUQZzQr9TzJqoxCEG0U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=X5rdKeXP; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707901408; bh=IkMSx2GMsosJsuqeMCf9O8BI8a8CA/8JrvnoKOrX2hY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=X5rdKeXPeqAiyx6zTZSRHE9cio2suhjrDXXa3EKLg6fs5OJQQBTxzSS4xVRRG6kUi aSxL96RzvvF3u+Vyol2XGDkzF78R8k/EJrtlevDmoMA0zn+pOk1En1CTs25BEfz0c+ JoPYq+x/n5GY4mghF7Pyj1kjwntdmBGgwix/7PAQ8uyBJj/GP5D3+5thYaKdD0JheH NxNfsZoqCccbX3RoaTE3jEEs1AiSM7LFKEaBPHw/10X2oKX5eiWIdrx22jdLxBa+hK UcPmIx++Zet9sP1+n2z8xElSAp85RldV5zKM4z1f0h3jxj1mdvXQEJH02010efGkmL hEQhqPHsLEdPQ== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id A26113781FD9; Wed, 14 Feb 2024 09:03:27 +0000 (UTC) Message-ID: <6fea6cd3-031b-4d5a-8bba-f01f6afa12b3@collabora.com> Date: Wed, 14 Feb 2024 10:03:26 +0100 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 v2 2/2] arm64: dts: mediatek: mt8186: Add missing xhci clock to usb controllers Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Matthias Brugger Cc: Chen-Yu Tsai , Eugen Hristev , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Allen-KH Cheng , kernel@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20240213-mt8186-ssusb-domain-clk-fix-v2-0-1f981d35f3fd@collabora.com> <20240213-mt8186-ssusb-domain-clk-fix-v2-2-1f981d35f3fd@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20240213-mt8186-ssusb-domain-clk-fix-v2-2-1f981d35f3fd@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 13/02/24 16:02, NĂ­colas F. R. A. Prado ha scritto: > The mtu3 usb controllers don't list the xhci clock, though they require > it, and thus rely on the bootloader leaving it on in order to work. > > When booting with the upstream arm64 defconfig, the usb controllers will > defer probe until modules have loaded since they have an indirect > dependency on CONFIG_MTK_CMDQ, which is configured as a module. However > at the point where modules are loaded, unused clocks are also disabled, > causing the usb controllers to probe without the xhci clock enabled and > fail to probe: > > mtu3 11201000.usb: clks of sts1 are not stable! > mtu3 11201000.usb: device enable failed -110 > mtu3 11201000.usb: mtu3 hw init failed:-110 > mtu3 11201000.usb: failed to initialize gadget > mtu3: probe of 11201000.usb failed with error -110 > > (and same for the one at 11281000) > > Add the missing clock for the usb controllers so that they can > successfully probe without relying on the bootloader state. > > Fixes: f6c3e61c5486 ("arm64: dts: mediatek: mt8186: Add MTU3 nodes") > Signed-off-by: NĂ­colas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno