Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp47778rdb; Fri, 5 Jan 2024 02:11:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVQ3ZtLT+T37DdQ/ksbBMO7nexcUU4uuluEWDKiKahb63ICtdTWXAEehz9OVabLg88oZnu X-Received: by 2002:a17:906:3ad7:b0:a28:ff37:475a with SMTP id z23-20020a1709063ad700b00a28ff37475amr473937ejd.145.1704449500361; Fri, 05 Jan 2024 02:11:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704449500; cv=none; d=google.com; s=arc-20160816; b=sLCorNtkdMzrcQQ31byR4dwHmuaQTmGZTejnR/y0OnNkmzsdCvjyqcuvmbYi8unFzY Mz0zSoLbbisg6s/+gd9WPBqRK2eAacEIZZu2eX3ara3OtU+SL8bTcp95M93/vRH/X1N8 zElh4JBDh2QHr/GiSBsgS3Z+CkhF9nZoyxPUb2rAr9fbbFKKiN2yUYHgZIjJM+OI90AM qBXzBm/SZ7AUZvUEDkuE2AHbi3spBhsRPxw8TL5+E+LzpIjimKpmf5nTkXSbHXvLDN4y jaE4u7QQsES8+6mLnmtAd1GWUxQHinQE3IAIU2fWpwFiuFkY8Qs6qGFMZPTzJrHrDs1Q G1jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zgPbm5yoRPogHRwkmQDQezlAr5UfQ2gMpkkB4jBkXt8=; fh=7fRI0POspjBrKEOf63kORJpWI+NhAd07+se3Qu5eqGY=; b=vvrv7HFJrhjIXgvRrQnq0I7rTLFWOXprvbdqHXpeqOS1OPK71qsiZVZ4RxdxsqzT9x 07OKiiyWBoA/VaWYnyketXSXxZtIc9QY3yku5fQBq17NuEQnISTZfatF43/6hOAfo6J3 Q5uOn06OGijdZOpIRLbRSpraFrJ+d1A/Rl0/LC8YSfSd1rLl/LI4Wv5ce5tbEPEcNMPn z+Xyz7gkvweilI9Q4MO1ZSsZUHXQ35eQOTm/2BMYJDKQIcLsk+hgD9qZOybJEHlwWfHX uuQc+IYNunwAU1s3WJZ+G5YcwlT0v/4t0/bUQPhVm1g1LuYlbWh8lQl6EjqTg6QSIfGD Z/MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fu6+F5yl; spf=pass (google.com: domain of linux-kernel+bounces-17716-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17716-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k22-20020a17090646d600b00a26db3465fasi454809ejs.1028.2024.01.05.02.11.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 02:11:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17716-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=@ti.com header.s=ti-com-17Q1 header.b=fu6+F5yl; spf=pass (google.com: domain of linux-kernel+bounces-17716-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17716-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.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 am.mirrors.kernel.org (Postfix) with ESMTPS id EB7001F23AE6 for ; Fri, 5 Jan 2024 10:11:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29B0024B54; Fri, 5 Jan 2024 10:11:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="fu6+F5yl" X-Original-To: linux-kernel@vger.kernel.org Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 D594824B42; Fri, 5 Jan 2024 10:11:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 405AAvqw060097; Fri, 5 Jan 2024 04:10:57 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1704449457; bh=zgPbm5yoRPogHRwkmQDQezlAr5UfQ2gMpkkB4jBkXt8=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=fu6+F5yl3LlsNf94BxW6rpdWq3h8OZxWaOGkT/Ha4zKQaAm3bZ3/+U70Wkv3zGTfS 79LaTsLuQSloYwGX+3fPW1M3ZPUdbGaWG1mVxUgHWPnYsCw76r7QeKO/1ydLdzavqE ROHm0vizODl290/TOPvz3Cf9ij+v0vXf0j1QdhK8= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 405AAv1x015209 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 Jan 2024 04:10:57 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 5 Jan 2024 04:10:56 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 5 Jan 2024 04:10:56 -0600 Received: from localhost ([10.249.131.210]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 405AAtVY119550; Fri, 5 Jan 2024 04:10:56 -0600 Date: Fri, 5 Jan 2024 15:40:54 +0530 From: Jai Luthra To: Javier Carrasco , Abdel Alkuor CC: , Greg Kroah-Hartman , Heikki Krogerus , , , , , Subject: Re: [PATCH v2 0/4] usb: typec: tipd: add patch update support for tps6598x Message-ID: <4erwnvyyammnsdihwpvqcmm4v4fcyxozltocklsbnbfdhacoye@le7x2giuxrwv> References: <20231207-tps6598x_update-v2-0-f3cfcde6d890@wolfvision.net> <2nqiaxakx6setx4tzgddnbjadbh7miegz5p6wamsbbiyrfuq3x@un2uxajbswkg> <6e63a1f0-8ed6-41cf-b1bc-34b49099eedf@wolfvision.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cnaquinfjqktv7bx" Content-Disposition: inline In-Reply-To: <6e63a1f0-8ed6-41cf-b1bc-34b49099eedf@wolfvision.net> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 --cnaquinfjqktv7bx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Javier, Abdel, On Jan 05, 2024 at 10:49:22 +0100, Javier Carrasco wrote: > On 05.01.24 09:12, Jai Luthra wrote: > > I added some prints and can see that the probe fails once at=20 > > fwnode_usb_role_switch_get() because the other endpoint (of USB device)= =20 > > is not yet probed. It then re-probes later where it passes. > >=20 > > The GAID reset being done unconditionally in your series seems to cause= =20 > > the board to get stuck in the boot process when it hits the above error= =20 > > due to probe-order between USB subsystem and this IC. My guess would be= =20 > > SoC stops getting power because we reset the PD chip? > >=20 > > Anyway, I will send below change as a separate "Fixes:" patch for now,= =20 > > to keep how things as they were before your series. > >=20 >=20 > My biggest concern is that we are sending GAID for the tps25750 under > the same circumstances. Could we not have the same problem with that > device? We would be resetting the PD controller and the SoC would stop > getting power as well, right? Or is there anything device-specific that > would avoid that? >=20 Yes I would guess same problem can happen depending on probe order of=20 the remote-endpoint node, but I don't see any upstream platform using=20 ti,tps25750 compatible, so I have no way to confirm. Maybe Abdel can comment on how it works, as he added the GAID reset for=20 tps25750. > > If you have a better architecture in mind that can reset only when PTCH= =20 > > has been applied and not for other probe defers, feel free to send it o= n=20 > > top of it. > >=20 >=20 > I added the cold reset to have the same behavior upon probe failures for > both devices, given that they use the same command. But if that can > cause problems, let's leave the reset alone... >=20 > Best regards, > Javier Carrasco --=20 Thanks, Jai GPG Fingerprint: 4DE0 D818 E5D5 75E8 D45A AFC5 43DE 91F9 249A 7145 --cnaquinfjqktv7bx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEETeDYGOXVdejUWq/FQ96R+SSacUUFAmWX1a0ACgkQQ96R+SSa cUWwMw/+OLopIG3GmS4qRykSsenaaI9RZeBk3+FPDPbzycE+Wt+7YsZJBcUhoDFm Bkm9mLKpWi2HvVTyCv7l5R0un38kceErcPj5c8warAMXbAI5vvd8/M+YE60j1dr+ Gbm98I2O/hXDYrtGjhmJajmvchzlc3CUGTfA+CULx9h7zp0zP/ro57HgQwhO/3pA NjnoGA9TVh5spheY7Aw7hBO+GZAi/iXqEcQY1TNCvSiARN0OW1bMlqWZJOZYoLk7 CsGWPq1AkTxW2n1tUjm86pFVuV3l6rRN6E5IW7lQt/UkWoe8d33o0z5DFHwY7TK8 KtAfE3NHGn+Ancmp3wt3+Y2W0++mB1RtPfnn3QRRIvmlY6Et7EuvVErZPfA0NRj1 o3FiJNr1Uew6P9pAeer7RvuEBT0NKarZo11uPfAjHhUVEE9tEH/LGFWFt8qwMHiU Zl3bhrYhgobnxUJO/6fZQRZCO/P1Ia3B4KTHlo2xhsEBzyGpGUATJktKWXLlf9S5 3pfTBPOrquiYxZxSo3sQSWVOzGCzrE2FeaWg/o+E1nXTuvVvFCjpHnsNRQJsOO6h ydPgQvnn2uOLQJu391xkc90egQRzFvsLihI9rPp7bkQ6I2VPf3nl6yTTCtXaOUeg jlSN4urFqi8r4kxKRXSEI4XmSfsJK5pQUpcshaBzkJWXMWlRD0c= =T0Ts -----END PGP SIGNATURE----- --cnaquinfjqktv7bx--