Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp366113lqt; Thu, 6 Jun 2024 06:11:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDajsMobTo+vco91KVxziwco1PhWQiJsXb8k2Eb7gqe3d9n0hvC99ePBOzjmgSmjkv519wA2rDQV1QN/5r0U1BQO4SvSyj4HwPfxK2yw== X-Google-Smtp-Source: AGHT+IF5ytTFj1BRaDrVDIJc5pvCFQT/UDwbMqIpAdbJX+63L9vXWqnCbTclXEbrUQhkoqEJvFm0 X-Received: by 2002:a17:906:8472:b0:a63:3e99:6565 with SMTP id a640c23a62f3a-a699f66630fmr432025766b.23.1717679490544; Thu, 06 Jun 2024 06:11:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717679490; cv=pass; d=google.com; s=arc-20160816; b=fXh3XpeIE5Q32qq3rePbYteLaSiZRbuSaFeRa9ZsF3TNNZktFleM9nGMMyQADgJ0w/ iCovd3fP3MpQFUdIrH8eX6UPHxS9mc89ELkBaCtTZM4bRRUgePDMl7zm56K4v9EZAj1w h5lnSlTepwCsFbZyAC1GvAaELzQY6zToDgSSfr05z3tiYuMCTUUrUntkMo5vpJCU9c+D TyQc02qGBJD6jSOwasLB+3gx6EiCNZ9ghsEvz1GmrQan+VQ8/N8QCsgxf4w/hz7qCu6T jjnPncilcbcaIutFhfBX3d/W6goOiMCQXO/v6VddKF4PVXYp58aQ58NmiUGDkAY0B1is QUfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=suChROXiHSFSlTvSV9WVyxzVnPvHS4KUTzz3cCHs5HA=; fh=nwbdTjMmFuT1X18z5Mz6jj79DyLuXBU9ebAiTEf2/RM=; b=D5Yl7JqD5GlYgj6a0hl04wAmdOv3DLshxHuROPJKyhaLMpijVpz712In+NsA7LcN0q Oh2kRWSQKO6Y52BE4rE+DsADv5wPcowByhs5KSqllUPkU4VIqrE9Rukq3Io+ksNCtuQ7 eTfHx+kzsaeTkfbfVtzRJL3zJH7TZc/Ef//rwLorRMNg/+4lGuF+GJ7MKM8VLkew3T9P zezUrAF5JGgftKr1xyDRFy31oln9oFy/zD1971stRjZUKeGattvDOl4fl+zrhIoKo5Ik R7QvozxpYFeQP5z/rGAra9+GHqFlhEGc9QFVq3Imxynh7W9vnmB9fSCcfClTyQ5wpotl xKQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="O21b2Go/"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204324-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c805cc1f1si70851066b.223.2024.06.06.06.11.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 06:11:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204324-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=@linaro.org header.s=google header.b="O21b2Go/"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204324-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 E292A1F26973 for ; Thu, 6 Jun 2024 13:11:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AF3B195FC4; Thu, 6 Jun 2024 13:11:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="O21b2Go/" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDCD29450 for ; Thu, 6 Jun 2024 13:11:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717679480; cv=none; b=XQ0H+HbD0us3DxvEVbpuds4VlvPa0D+KvPiE81q/AYE77zgx6IfQQtZ9PbtBbEmZnvNIsqEgk1gSpf4E6JCKXLwyDATrSXAzvvYyD2N/DgKw+nukBHeNKuHasbcqIZRkE0pnhO9T0qwvh9Wg3Wtn0cU/q92CgNKASCUnRu6ZG3s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717679480; c=relaxed/simple; bh=1Y3+cIqmVZ/V7Z1/OIiPeC1puRSpffYg9rUl21hS9Kw=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=l7BXzAsncs+ymyvcEmAOhfj3liGvwy7+bJORllotvFxYg0FsVKsC6eC2NM6mQOzgf55gYldPF0gulTO8DqhoS8SswMo6aYvcXdfW5n6joRic61fb7XantFrQZVJnG/3ylXegY6kkRrS9XJM/6OR7TzlLe6n0DtTtkojfZyTBzhI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=O21b2Go/; arc=none smtp.client-ip=209.85.167.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-52b7c82e39eso1040468e87.1 for ; Thu, 06 Jun 2024 06:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717679477; x=1718284277; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=suChROXiHSFSlTvSV9WVyxzVnPvHS4KUTzz3cCHs5HA=; b=O21b2Go/hkErnx4Vw7Ugv17GUh02Yh3u3faOD+g5ZSxcbY4I+wwkM1pq3WzyPJ2XCQ 7wSesbG6QZKZrTZIrmCQm9Cqk/X99D3H2ZMx9TXfO6hBeMqnw564zAHmP8tiwzVAR544 WoGwZFs+zanbXaxFlDvBDbo0ZMh2xnpqL8NgtpgxvD1b5HezIrKq1LNgOkgW5Nfasv5R /fgJFnfySgk0/G1mm+kHZ/AZ6d/2esxopR1t8UxOgAaaVYWFFYI59Hh6cgq/x6n+bExe Wnina6jbzQDl0RL1aYJkSs+gJKEak+KS5Q/VpFBH+5z/E9s94wweTHzuXbue3lpF8i4Y mOng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717679477; x=1718284277; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=suChROXiHSFSlTvSV9WVyxzVnPvHS4KUTzz3cCHs5HA=; b=Q4NLoQy3NTNvv8ZIqFa7IHIQjfLKZ3meauO27LwyU5Bt3EI2z1EYJFJWq9iOoOaTmw foIHvBEHhKa9+xYv1f785swOwCcpgmtUHOKnR4/8dgZ5szjxO0lWp0YGszUX8nt1Hc60 dFPXTuM2DuQIq1Zj7kscqVJLWpHF4ApdNUcSlwcdgFgbnglKuOsMlnizzlwA0XpQ0fUz FOiYoU8hD1ydiHtfxuzPTJbirjB1A+Q19kgy+979euNstAAVj7ti0KJxCVfcIidq1ldR knXFZ0RXYMeH50BfndkXpcN6VvxvXKLdA1NKkwrugVPL6VyIKABrq1Cvg9TCO5Qnu0bC TjAQ== X-Forwarded-Encrypted: i=1; AJvYcCWh/EkDWQq9rtwtmAeu74wptoKh5r3b1yF769KQegR+fsA8yzIkY5DbUFGXubaEPlV7sZ//ZO9zJqEbH5FHXSf1SBktZzQo42z1ENS1 X-Gm-Message-State: AOJu0Ywd+ZYX+IU4EixFdmSqlp0X3KGhUqrQx0RNWcmQ2iYNUSUdEJ6O SmHtLe7qN2IWjn1APhWm7pp+8x/mIh+qGvIG1KQh4OZnxaxsbbqqRScaNvr2mUM4y/2eGEMMWiz p X-Received: by 2002:ac2:5227:0:b0:521:e967:4e77 with SMTP id 2adb3069b0e04-52bab4e8b99mr4017573e87.28.1717679476848; Thu, 06 Jun 2024 06:11:16 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35ef5e96d8csm1536316f8f.68.2024.06.06.06.11.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 06:11:16 -0700 (PDT) From: Neil Armstrong Subject: [PATCH v2 0/4] usb: typec-mux: broadcast typec state to next mux for ptn36502 & nb7vpq904m retimers Date: Thu, 06 Jun 2024 15:11:12 +0200 Message-Id: <20240606-topic-sm8x50-upstream-retimer-broadcast-mode-v2-0-c6f6eae479c3@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAHC1YWYC/53NQQ6CMBCF4auQrh3TFqHgynsYFqUMMIlQMq0EQ 7i7lSO4/N/ifbsIyIRB3LNdMK4UyM8p9CUTbrTzgEBdaqGlvslCG4h+IQdhqrZCwnsJkdFOwBh pQoaWve2cDREm3yGYstDSlJV1eS/S5cLY03Zyzyb1SCF6/pz6qn7rn9CqQIKp0dUqr5Rt7eNFs 2V/9TyI5jiOL/usShvpAAAA To: Heikki Krogerus , Greg Kroah-Hartman Cc: Bjorn Andersson , Luca Weiss , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1506; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=1Y3+cIqmVZ/V7Z1/OIiPeC1puRSpffYg9rUl21hS9Kw=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmYbVxP7ZktoBbvV62tuIEDtfPx2Le9HEvPDe1vCD7 usIoVt2JAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZmG1cQAKCRB33NvayMhJ0fGJEA CDRTh6JdMBS5tKmKbSwhCclfJ4eQ+Ytfp7n3omwtFG88/v1cWf44pfDXEfH/L+cLy8Nt6SSLXbjAsX OsUjRERFK1kmkBOZwFNZdFG4+BmFVQfooljyeVAfgogypSfEAEYRrT0MFansQnpuW+uchoHOypFwbE LbW1rFpwiH02gaA4NDTKMA3bZTA5lWWt1Ydu5sk3pqZkIFRD/I1Xo7Uq88gNaGHo+IxgNkslAyxtMX 2n1ZsN2TlI5OawWj+lK/aYWrSIOAeOUpNPHx7wA5zjsmtJFVZu9ZKp6hb5mvKE3MKEs6vkEmlWHyGf IK1oxu8hrXi1ibDWNYSABU1A+5R3ZVa+65m3cBzTKuQZy1FoBoZNLIMb7m2GPsY+frXKnw+ohtNhSY xOXjhUWiUD8dMsT+/wyXMQx2UrgGcipVqF31hpxV9n0dGQ2f4O+om1y8ip2mzgDGiE7mW0rZQ312QI Gy6v6pLdjhb+KmBNZ/lzBd7FrI0ThvQDgE/bqRJ2GHCYQYSZigRfSvmgBf0H96uA6dGCmBnA/DcjEO COuXIAujLZ/OoN/q+S6MOWCGbm3x44GN/LdRayWt9+6mN/9M3hyTQPVndOmFr9DyaFsrWWsmTwMkJR 1oJlHh50i24b+9a5mtJUWDvV8f0VRKBATUk3vDMqHztT6uJzWhMRIi5nvT3Q== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE In the Type-C graph, a retimer is usually in between the USB-C connector and the USB3/DP combo PHY, and this PHY also requires the USB-C mode events to properly set-up the SuperSpeed Lanes functions to setup USB3-only, USB3 + DP Altmode or DP Altmode only on the 4 lanes. Update the nb7vpq904m & ptn36502 retimers to get an optional type-c mux on the next endpoint, and broadcast the received mode to it. This makes it possible to support 4-lanes DP altmode on Qualcomm platforms. Signed-off-by: Neil Armstrong --- Changes in v2: - Split out the typec_switch_put() fixes in separates fixes patches - Link to v1: https://lore.kernel.org/r/20240527-topic-sm8x50-upstream-retimer-broadcast-mode-v1-0-79ec91381aba@linaro.org --- Neil Armstrong (4): usb: typec-mux: ptn36502: unregister typec switch on probe error and remove usb: typec-mux: nb7vpq904m: unregister typec switch on probe error and remove usb: typec-mux: ptn36502: broadcast typec state to next mux usb: typec-mux: nb7vpq904m: broadcast typec state to next mux drivers/usb/typec/mux/nb7vpq904m.c | 29 +++++++++++++++++++++++++++-- drivers/usb/typec/mux/ptn36502.c | 33 ++++++++++++++++++++++++++++++--- 2 files changed, 57 insertions(+), 5 deletions(-) --- base-commit: ee78a17615ad0cfdbbc27182b1047cd36c9d4d5f change-id: 20240527-topic-sm8x50-upstream-retimer-broadcast-mode-76520768ac3f Best regards, -- Neil Armstrong