Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp475577lqb; Wed, 29 May 2024 00:57:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWGG6mwjh7HZ3LE8DYueg2YbQmeXzSuoCIR3YAkxW8b0VuvHy/iLQ0N8EINwrWIH2NQRd7Oiz0lGger0jd+4DFM/MUezR0BXfVoJK5JqQ== X-Google-Smtp-Source: AGHT+IF1+WPkRZ++HDXVWSb8nCpC+BYffU7LBKzfEvdJqT8NR+KpqnaMNQfBtbpF675GCv4TCUZt X-Received: by 2002:a05:6358:3a07:b0:199:2b63:9f42 with SMTP id e5c5f4694b2df-1992b63a073mr136427455d.10.1716969453616; Wed, 29 May 2024 00:57:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716969453; cv=pass; d=google.com; s=arc-20160816; b=ZQ2jeWQQlCaAldJXBF8KVsjHRDeSmbQb7tOmSNXu880M28Km4B9L3Y3Ug5AZrVNGG0 n2Fzd8h99uqNlrXa9xLOBG02mcEFm0DubZcf8yUrrBiAqq6f79zYWNdOYDoHXRjK9G4c Q26kCBXqae3hFkYw41vPrASNhGmnEsYnabuo9IOKGNOc2zMTSAbMUyqWR5h63wVBJIlo hJGwNfiOvH5GLFnZNMpaO97uQCJ9GcOeWgRX5itpFpjY+E5G/i3+XTnDVsClUWrXmbR/ 1T0H//afPJm+ISDWSPK7sdEntnosmV471TmsZVN16uHbNPrlYrac4lqS396kCIatqCFV hmMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=lQtYelb2zwqgADzWbfATSB8Y/SNXDqCycD8uNCYpBZ4=; fh=rvCK/trlOO3cLyv8C/TgVs6akdJxlKfOh4nTb/LxwcU=; b=PQAdfjDo+hHJj39zC7aXDb2ux/xKsSfJJThs7NyqoJskKSYnSZxasRvSymOXBbcKf2 00ed4ehB5h2UXXvHgE5/KpnF1zwgzvpb8Bd0yi8A0vGvdxUWCQBL84CiycrL/O/+Mfn3 re0Wu/xS35+nldcXsfsOUhyYvT/rZmL6LwHs25N0NNovyJJ+swb5LFw8RLhUKxI1OwCA jfHe/lIepzlvnN4gwmM9JIVcxx6fulLoBr2SeTjyc4ohbwXVdUvEpWrgfSkRjGEq2eBo giyZkJvn3aT99H3gx6DcXnfabZBppylueHEzTCHXrsfA/wIiGM5MRfHI8HUoVPaNZz8Z 0Rog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i8F4w2fM; 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-193637-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193637-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-68d2228a5bdsi8154047a12.480.2024.05.29.00.57.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 00:57:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193637-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i8F4w2fM; 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-193637-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193637-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 98BA0B21384 for ; Wed, 29 May 2024 07:56:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 838E3168C05; Wed, 29 May 2024 07:56:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="i8F4w2fM" Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 08D6A1D68F for ; Wed, 29 May 2024 07:55:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716969360; cv=none; b=HR8Tc6RKuK3SueDWkGUv7yAH5myHWHDU3cWnmCRakvOe/cjD+boXEiXfh9dwc6ejMYadyuuXtuNuAFhe9mWNHzxKDILW+IcmcIcjlzMgO/of066GuTMZPq1bwdpxS25+XpnlwX+XDRD55nqTgolzZHFMgG/x3oHIsRbHR4OnM1Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716969360; c=relaxed/simple; bh=1Zgln9Iz7US5XfYMlFGp36q+IyAZn0xeKBkErmoNBl0=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=aMi9TYsIwwJRZNGgSR82ZAro0derQx/qXxfX0q1ws5x0yz9/nhylqLiP8oLxpspRpEC77VwZUZ/f1Q5kG9aOlY9LXrX4CWBlD7zxVh888M4KKIPKtCt4P07dTKbPUQGh3Ta3MS2qu5RLVlFKskLivR9FXtYzNAGwe1lmmCsCAcs= 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=i8F4w2fM; arc=none smtp.client-ip=209.85.221.51 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-wr1-f51.google.com with SMTP id ffacd0b85a97d-3550134ef25so1684886f8f.1 for ; Wed, 29 May 2024 00:55:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716969357; x=1717574157; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=lQtYelb2zwqgADzWbfATSB8Y/SNXDqCycD8uNCYpBZ4=; b=i8F4w2fMQEXHUGNH+dCH9CMdncUAGYlOXY4nGTSrqLJLZJ0h/MmouUSuoiL0NzdtCh FWyNKMSgfJtczZKyhoceSKa5bH4Karb3U+jXO/3xu4IdZdoTwn523snaFWz08KBhAO36 XF717fxQLVHFWM3UVODc1fFk+9wOdb+MS5LyVZKjrGMhZ5pLzgTzVJIpO/rzD4NJOgfc rA5ODhiNCMigRGHezR5t1RmOxf0sQtr664AM1fsbzp3EYfAfLudgPVFPZWUsYKDxviTl B03d8rGWXBjSkCki0FIQwhbL7SPgU4pllLdfe74ZsKU6iNUmchQs8J2sPqsWcM/vsD7q +tlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716969357; x=1717574157; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=lQtYelb2zwqgADzWbfATSB8Y/SNXDqCycD8uNCYpBZ4=; b=D2imNU+beR4y7ezU9z/ri8I6jhegR9xAFTu1KPhiLDGVqWxdmwxJNvYFw/Ce8TdlS2 nSjiyvNg431KPildy9//5tD7oeFNO2/b2N4naZdGTjkVG0uKrqkWuMx3/LnILkoi/Sha I6oWghErBRI1A8BuAPJeztGmCcF5esXPlwkDUYnxUhtCUwe77c2/hcLYmCgSX1Z/mZDx sFOblx3XssZbUk7J2UMIK54svWNPXug7Jq1J5ItCi41Yx65CBT4XEMOU9BL1pH+Hzn7X lsRmIOV/hJz6agmsgPxXWJWo+oDYOAMVmGurmuheJKqcX9X/5jP3vyORW9KGyN9r8bp1 a/2g== X-Forwarded-Encrypted: i=1; AJvYcCXQLKy/5hrnp2XO2nRoJ+sQCSzgKBL3F+Pvi2Dmubcu6yYPvWjlm9i/15itsHW24vrVinWBhjlOrmAmU6u0kKXwIu2meVPUbwJOCC++ X-Gm-Message-State: AOJu0YymGxdTYUsD+RN92G4bs2MWyBr71fHaz6FqddqLJimI4GJrzop8 S22EIZuQN9aDm3cLPIgjvCtOKU5EnbBhdbAavsfOqEFse+0WKh4tsG6jWyYzzhE= X-Received: by 2002:adf:e70b:0:b0:355:39d:f82 with SMTP id ffacd0b85a97d-3552fde184emr10910982f8f.53.1716969357068; Wed, 29 May 2024 00:55:57 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:8894:9a1b:5e81:c70? ([2a01:e0a:982:cbb0:8894:9a1b:5e81:c70]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-357ad6c2fabsm10413366f8f.83.2024.05.29.00.55.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 May 2024 00:55:56 -0700 (PDT) Message-ID: Date: Wed, 29 May 2024 09:55:55 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v2 0/7] arm64: qcom: allow up to 4 lanes for the Type-C DisplayPort Altmode To: Bjorn Andersson Cc: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240527-topic-sm8x50-upstream-phy-combo-typec-mux-v2-0-a03e68d7b8fc@linaro.org> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBAAoJEBaat7Gkz/iuyhMIANiD94qDtUTJRfEW6GwXmtK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reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 28/05/2024 15:48, Bjorn Andersson wrote: > On Mon, May 27, 2024 at 10:42:32AM GMT, Neil Armstrong wrote: >> Register a typec mux in order to change the PHY mode on the Type-C >> mux events depending on the mode and the svid when in Altmode setup. >> >> The DisplayPort phy should be left enabled if is still powered on >> by the DRM DisplayPort controller, so bail out until the DisplayPort >> PHY is not powered off. >> >> The Type-C Mode/SVID only changes on plug/unplug, and USB SAFE states >> will be set in between of USB-Only, Combo and DisplayPort Only so >> this will leave enough time to the DRM DisplayPort controller to >> turn of the DisplayPort PHY. >> >> The patchset also includes bindings changes and DT changes. >> >> This has been successfully tested on an SM8550 board, but the >> Thinkpad X13s deserved testing between non-PD USB, non-PD DisplayPort, >> PD USB Hubs and PD Altmode Dongles to make sure the switch works >> as expected. >> >> The DisplayPort 4 lanes setup can be check with: >> $ cat /sys/kernel/debug/dri/ae01000.display-controller/DP-1/dp_debug >> name = msm_dp >> drm_dp_link >> rate = 540000 >> num_lanes = 4 > > Has the issue with the USB controller dying on us been resolved? No, this would require some changes in dwc3 & ucsi to support the USB_ROLE_NONE I haven't looked into this yet. Neil > > Regards, > Bjorn