summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSven Peter <sven@kernel.org>2026-08-21 15:50:27 +0200
committerVinod Koul <vkoul@kernel.org>2026-10-03 17:14:23 +0200
commita2fd3d1f4db720ac1deb477ce4811c5e4e60e5f8 (patch)
treeb9d58233ccda030b7dbbfa39264f7cfcaf289da7 /scripts
parentf1d07d242b4c25a259276cc2b136f49c68ee71ab (diff)
phy: apple: atc: Support DUMMY PIPEHANDLER state in configure_pipehandler
For both Thunderbolt and DisplayPort atcphy_configure_pipehandler is reached with a request to switch to the DUMMY state (i.e. usb2 only). With the current code this breaks USB2 when all four SS lanes are used for DisplayPort AltMode because the -EINVAL is passed all the way back to the phy_set_mode() call which results in tearing down xhci and dwc3 again. Let's actually handle that case correctly and also drop the default from the switch such that we get a compiler warning if another pipehandler state is ever added and forgotten here. Reported-by: Paul Cristian <p4ulcristian@gmail.com> Closes: https://github.com/AsahiLinux/linux/pull/515 Fixes: 8e98ca1e74db ("phy: apple: Add Apple Type-C PHY") Cc: stable@vger.kernel.org Signed-off-by: Sven Peter <sven@kernel.org> Reviewed-by: Janne Grunau <j@jannau.net> Link: https://patch.msgid.link/20260821-b4-atcphy-usb4-v1-1-45c0b741e0c0@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions