Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp3036359rdb; Tue, 13 Feb 2024 05:14:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU1GvpK2QdCF8RPQ+z2mSHFQexV3t+AcZP848fb2kikQFbcULg9VX3ulq1eNVRN/nUcmTVohpPquXyczZqamiOcS/vaqAXhIvDeCoYtMg== X-Google-Smtp-Source: AGHT+IF/FTCCfP8o67+9lz5IyQAemibZ+ErfTkZ7glk7jJ82fjCPtGAQuEW++2fs3MTlzRYsEIXI X-Received: by 2002:a05:6870:9111:b0:21a:1a36:836d with SMTP id o17-20020a056870911100b0021a1a36836dmr12607720oae.16.1707830042052; Tue, 13 Feb 2024 05:14:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707830042; cv=pass; d=google.com; s=arc-20160816; b=N9+2g77+6pWtpZR8AErMV7G3ePM9rNavFcOoOW6vGdGOQ7+8hXzTqpl721QbGoc/wR glzOK3n0gTd2FXHsqCC1QhNt2HExRaRFPAfR1Xmj3zDqq/BXjZJstxMW6D3q7H6hesVf 9MLWz3F/owvJaGZDdXseItJRY+VnRVX7X1AnT4p5riV5550F8/RCNNJFjfdoZNu1mHwb dRkx3GQ95KoN2OD9SbxVlNCHX/jBarzBe0yMZxSrW1S6HmW32O1hDo5kNBce20aoIdgB dRbN/MGc9T9EVI4SpustGUV+3xhYe4UTqNCy8AS0sYk0SaRHPwh4mTO9lAiGaYGGsKAq xqbg== ARC-Message-Signature: i=2; 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=W0F/REN7pYEYXY5PEzpqF0gHcPEDIKVTTIZfamEM7kI=; fh=Q46akdGJN7W6UBbBH991R6tvhm+ixUm/iSIfEbw2tQo=; b=fDHfaBGBKkJGMB+o1CYOsHOv3AIPrqUoLIDx1MF5QEAMLrVOwFefM+h2tuoBub35lf qz6qQ6asnTI/MPlq2TXC6njfkOI1YD4YH9TCD2XDEPv92/jP5HbHiehSTmoKjNej2xL6 ZP7x0/RJ4gfo6W1QP16ipw9QgGehGYCNsUsoaVUhcn+GQUaHZPFeT+JN1HbLo6dKX1vs pbtVlXjeMfTKB+d1mKxUO+vtVH/58UL/TrWQLoLT9cSeHMQ7C6cUN6CVwXgP7+3MFze8 vVSEb9aELH5m3xTr01GFuKSyEwjiPB7Vs9G1EyAmUwBJU2rj9mjaMxssw1IsQarFlhna arXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ak3yK6jg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-63568-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63568-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; AJvYcCXwm4hSU9UzX3a3o9sFBRNprPXokQrTr8FfXl/TH+nTvkB3PV90n+u/GglL8W9TYw4Pq0SRJYy0TEdIrsOZJ8Ln+vKNQ92wXAG0z43AYQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d21-20020a637355000000b005cdfb651211si1932523pgn.441.2024.02.13.05.14.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 05:14:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63568-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=@kernel.org header.s=k20201202 header.b=Ak3yK6jg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-63568-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63568-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 82360281FB3 for ; Tue, 13 Feb 2024 13:14:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 024AF55C0B; Tue, 13 Feb 2024 13:13:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ak3yK6jg" 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 29BA955C03; Tue, 13 Feb 2024 13:13:46 +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=1707830026; cv=none; b=ty2bBEj7p3n5qwIG4NRCde6HGV/EvLmeEouJWPbw1w0GjnfXLrdeLPpr8UIVHKr4dZLvBhRrZFqS+i49/VDzS7ZIuX/KoEHNFPTXq3VvH5hphAdz/l3xeKWB9CJpwLrCgqJEx0XahCRch4ex+9UV9ZGy/a93UN8gITClV4XWkeA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707830026; c=relaxed/simple; bh=z+9VSgqO5bthw9m2XPCSK750+TzphWPWfMm9vhOdbVg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=U5UB/tXUfX76X19Vn5CkEVyStd6ydHm4pgaNMDxwK9dAD41rxcP/fge7sohiGSFL0N7aKbvulSdveGieK/9n3O72o7+N7vTkr9ClijnjrceAXsSyN1pAYDBleuBXa19YBNBUkMHhly/nQ0Qs8nXntd2q35HcUj/xuQKd9wRRvDc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ak3yK6jg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06392C433F1; Tue, 13 Feb 2024 13:13:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707830025; bh=z+9VSgqO5bthw9m2XPCSK750+TzphWPWfMm9vhOdbVg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ak3yK6jg5ez+EnZN1BYr8fbMDwG+r1nhj8JYieuyIXy0OtGNubN2/EutkqCv7+6dz /OacWbN+f3qKkzQ2lkZ4ZPoy/WoZ+JwGHY8qEjwUJ+WrX0Q5Zi1ouackNHWAv47/O8 TcOhPc6ATO+nq+aZfAplPZrsNvDCYgsq6jY8x/WmCOo38ymKjNguIqnh+9I2lzpLlu qILRKspMGdEZuHbhWVhzLSCaCR/vb8A/5Kmi34uIpsROXXWSjTwGuS59X1UyaagixO +llSf+vRCCzvnb9Tw4JgQluuT+y7shRrsh8wd3dK6dO65U7OmaUucJRiNRJEUnuT4c o3DNJirvEYsLQ== Date: Tue, 13 Feb 2024 13:13:41 +0000 From: Mark Brown To: Badhri Jagan Sridharan Cc: Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman , =?iso-8859-1?Q?G=E1bor?= Stefanik , rdbabiera@google.com, amitsd@google.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: typec: tpcm: Fix issues with power being removed during reset Message-ID: <3a09ea3b-3a42-4fce-85f8-f8408a4a2206@sirena.org.uk> References: <20240212-usb-fix-renegade-v1-1-22c43c88d635@kernel.org> 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-sha512; protocol="application/pgp-signature"; boundary="wNzrdL2IZ5232/Er" Content-Disposition: inline In-Reply-To: X-Cookie: Does not include installation. --wNzrdL2IZ5232/Er Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 13, 2024 at 02:09:16AM -0800, Badhri Jagan Sridharan wrote: > Hi Mark, Please don't top post, reply in line with needed context. This allows readers to readily follow the flow of conversation and understand what you are talking about and also helps ensure that everything in the discussion is being addressed. > While HI-Zing CC pins disrupts power for batteryless devices, not > Hi-Zing CC pins would prevent clean error recovery for self powered > devices which is why "usb: typec: tcpm: fix cc role at port reset" was re= verted. > Please note that the breakage in error recovery behavior is a > regression as well. > Hi-Zing CC pins would make the port partner recognize it as disconnect > and will result in bringup the connection back cleanly. >=20 > How about leveraging "self-powered" device tree property and Hi-Zing > CC pins only when using "self-powered" ? > This should help devices which don't have batteries while NOT regressing > the error recovery behavior for the self powered devices. I don't super care so long as the boards I care about continue to function, I submitted this patch because the only response to my report about the rk3399-roc-pc having been broken in mainline was a confirmation that the failure was expected. As I noted in the commit log checking if there is an alternative power source does seem like a viable option here, I am not particularly familiar with this code. --wNzrdL2IZ5232/Er Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmXLawQACgkQJNaLcl1U h9DeBgf9HO4xYfg24xt/Jvbh1Le5gyPcZnCGlzA0xrtgv4g1unnklA5uQ/EfFen6 hbGufKQ5/sRQ3gCxUve350Vaq/ynTH5EM6gkTLCmiYNp2KFBejcFq88+Zb8ekOMy Tnzd4GVwHFVxQczjK8kKnjvXwiqnJBg08Dcq3i8dp3GrvxYir+Q79gRV6nHbzZvb Toa3WxY51eRZE+1iKGK31Zeb0lmwnqHZ9LY9jmUEpZO+gzoX/FGKdyoo31ZkiIlP NFkkQmYKc+iMN8trojxI6rguRMu8zvZpZbrm8Gx69+9rPmIEAunXbDVbV0pcj9uf cR4Zl/H4+6Gud2N5FIi2O3Z2oZwZeQ== =oW47 -----END PGP SIGNATURE----- --wNzrdL2IZ5232/Er--