Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp833158lqt; Thu, 6 Jun 2024 22:52:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWB1ELxJ+HizgpMu8t9qnoMrwyOmFMVwdimcPKFHpXKfuTPjefeaQ2Nzgyk5aMSZph4S0uozWyVV1x1yqag4gDJlw0QGBN8jJlIjF51og== X-Google-Smtp-Source: AGHT+IFhugfeN01AZNEuVer0e3r4uszj+rbfcHEOZ53SLGlCglC8Lw59hn7oLMZ1akV3F2NxUnUa X-Received: by 2002:a05:6871:580b:b0:23c:ffe8:a80c with SMTP id 586e51a60fabf-25464f17b9fmr1664353fac.52.1717739537757; Thu, 06 Jun 2024 22:52:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717739537; cv=pass; d=google.com; s=arc-20160816; b=zZ7/IRVdvy7naGj98OP4hNmSmvKg6s01NmbYD1N4atfBy5zDlp/UERizzfDaw+Qsxv znHKDmlgzUx/f0yEO+RjfJ0y1jrnWPtvZLqSDX+YvAv1g0a7gbxfbLOXh2M3YSxPTjLf dvlzPZWFb53cMl9m9VzgR7JexZ8lV8htxMPquAZEEOpUr2Jjk5GYfBpYL7VICvAUCl5p /qMFyJ8M8P4H3+hjXKrpo1zrZ+m5h2yefSoIOK6mmhb5r38ZjaOEoE27gUBo8mxgrI6W wBdOslxdvPKpXFSBTUwnvkOnqbFEoB1DTdxwMdDgtOWDSYsW0NCpa9kWQqTHBSssIbEx tWVw== 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=6ds3YrxKC2YqkmVCc8zc0vIF7O+RXU9qkRaH97//E3s=; fh=6dvYcaHbCYJwExjOx4mOmuWTJKd7+Tk03AlbX/PwAEE=; b=W4HmOWdbBTHclXjMAn5IsJuwsT1czECAFQ/DtYSgWWiSX3rj17lnja5l6lPozGdGgS m1HVPWJKudA5d1PlalfCKwc1gBhMMaDHXnViq3TV0FZr0grB7P5OyOknTIxAY7iwgp+U vzt4T18KI7QX5eQh/Fd2pfYYqdNJv0FvxMhw1c+AfY3Ob0ruQ+xbJQGhBvK+OGmWQBDN F3JcbSLWbvBBIYveAnJFWlUDw8DFSh2NvQ5tVECzPkPw/YevEdrqVdb9voAT/IkR06tt +RUEHw2e0hXv6xEyQ2z8n+F96ZCS9tbLsB1d+2tfQy5FvdxdsusKWOY5P7GRmtaWCRbN t7/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="o0giEob/"; 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-205428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205428-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd390561si1169041b3a.10.2024.06.06.22.52.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 22:52:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="o0giEob/"; 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-205428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205428-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AB6E6286719 for ; Fri, 7 Jun 2024 05:52:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FF5414F124; Fri, 7 Jun 2024 05:52:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="o0giEob/" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 B571713F44C for ; Fri, 7 Jun 2024 05:52:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717739526; cv=none; b=N/dZJ0nOJeXVtNjoE+uV7Qa2VOfORg945Azl6l3uVMKiKLRz+Yg2G8Ti0aLDyjDULVweSdsi337KphUXK2lV+nrXlL1PMMCGy6CuzvB/kuy8O1PPT6KLB6Uqan61r11UX1/2w5iXEzFPWNMttcDFEhhxGecP3iw1ivyOEDC1wig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717739526; c=relaxed/simple; bh=yjfBB9hcHm1GdPkoCIVncn5BsoZSKuknr1ecPwNeNdY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Dyz7Qvf6e3hRoM3eOha3bB5XHE6/8h4/4hMWz4uB2KTpAnMcECUUyRtG3NrQAFwCq7vV8D10CR2y8PoxRcdO4NRUAbQbgLF0DvHm14NgsJbqU/H1K2/smNT1DPSZSbzlHLLkp9cOjjOjSI71LFi5Bzb3+su5cQrLn+GrDPih76w= 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=o0giEob/; arc=none smtp.client-ip=209.85.167.42 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-f42.google.com with SMTP id 2adb3069b0e04-52b976b5d22so2445847e87.1 for ; Thu, 06 Jun 2024 22:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717739522; x=1718344322; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=6ds3YrxKC2YqkmVCc8zc0vIF7O+RXU9qkRaH97//E3s=; b=o0giEob/jwm2Ovs+mK2tseP7QHjHt8I/QABq3bIFoGSkiMxSBqAz+AIzlLS7ayEfGi D0eBmBNW32NCVkVa2MQdO+c7y3iW7Azzk5B8ULLZguwNX+PlpcFbNSzFE4mpsX2KNhs9 0eCG6v6I5SIrUJi0/0E2U7RWeKZ2ENhBtVmSnrx6RdOytDSTsYYHSAEqyP7jas9vpaOo 1Mf97+/M3orkRoSOEArcTDFCPjY1uT6462jH5VlDa5JCCQ+EJ2qP5DcRdotf1LPlGeZM u/qR+jb+wxLVNOr8NXVHCzI52Qcv5+y+RtPpOTbCzfVt8g/iiRBHbuPA8BF3SzuCbN/W o8ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717739522; x=1718344322; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6ds3YrxKC2YqkmVCc8zc0vIF7O+RXU9qkRaH97//E3s=; b=XFL5TFdnW+u2HnV5Ft7GJ+HPZUGkiuQX0pVNInelf77NtpO8xkENeCC3T3b3j6pI4H 1VOJRKxb1NUbWE4uwKb8F0XbivRGXXN6AQ6Hw7KO3yf6evDu9XkcUyqK273//KRA2N+F Zykwm+YGl9z5SxmlYWfkM5dyx7lnzQ8Q53zUZ1ID2n0mCz8UC3a+sRH+APQsaOA+I6YX wHC7FYWH34H8VZNLKHWS+DSyCnvAgRR0DDTyA3u5/6OM8wobt+TqCSQ/qutLRKGXliVU b3YkCD37vBV+4dFdTQGU+xTieEkwBSFG3rGWrg5ksKp0Gqpz7ttI+cDyyJM5ncCkT1S+ VdRg== X-Forwarded-Encrypted: i=1; AJvYcCVqbIfQjd9ur5SbJPWXweulLYK99eieD3OGNc7+Hvyahedd9DsZMR0oyY5Fpg0D3fPmFVSwtPhKDEKMzZzYAYFOGEMR9pRYdSd8GhIz X-Gm-Message-State: AOJu0YwdCZ5p3dyT4FcAOd7ukv5q3I8rBuFwuSEgQQoIkIXe98G6RUi7 7IejXzHwMI/R8jdUm/Nzwmm6HrajJepyj67I8buDblyG0LkDYRigSGUWNAccBmI= X-Received: by 2002:a19:6b14:0:b0:52b:b30e:a775 with SMTP id 2adb3069b0e04-52bb9f7704cmr941576e87.24.1717739521937; Thu, 06 Jun 2024 22:52:01 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52bb41e1acasm414342e87.27.2024.06.06.22.52.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 22:52:01 -0700 (PDT) Date: Fri, 7 Jun 2024 08:51:59 +0300 From: Dmitry Baryshkov To: Neil Armstrong Cc: Heikki Krogerus , Greg Kroah-Hartman , Bjorn Andersson , Luca Weiss , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/4] usb: typec-mux: ptn36502: broadcast typec state to next mux Message-ID: References: <20240606-topic-sm8x50-upstream-retimer-broadcast-mode-v2-0-c6f6eae479c3@linaro.org> <20240606-topic-sm8x50-upstream-retimer-broadcast-mode-v2-3-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=us-ascii Content-Disposition: inline In-Reply-To: <20240606-topic-sm8x50-upstream-retimer-broadcast-mode-v2-3-c6f6eae479c3@linaro.org> On Thu, Jun 06, 2024 at 03:11:15PM +0200, Neil Armstrong wrote: > In the Type-C graph, the ptn36502 retimer is 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 ptn36502 retimer to get an optional type-c mux on the next > endpoint, and broadcast the received mode to it. > > Tested-by: Luca Weiss > Signed-off-by: Neil Armstrong > > --- > > Reported Tested by Luca in [1] > > [1] https://lore.kernel.org/all/D1HOCBW6RG72.1B2RKGKW2Q5VC@fairphone.com/ > --- > drivers/usb/typec/mux/ptn36502.c | 24 ++++++++++++++++++++++-- > 1 file changed, 22 insertions(+), 2 deletions(-) > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry