Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2535441rda; Wed, 25 Oct 2023 05:49:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIF/DVjYZPGA/vpJzF68urF7XFNfqfVjcQV08Oftncx9NU5KMRtx+fwA7gTyPMX6f8UXIz X-Received: by 2002:a25:10d6:0:b0:d9b:dfea:bc94 with SMTP id 205-20020a2510d6000000b00d9bdfeabc94mr12219042ybq.31.1698238152584; Wed, 25 Oct 2023 05:49:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698238152; cv=none; d=google.com; s=arc-20160816; b=Kv0vIgIZ3QCEhd2V06BzS/uvk5gDAIC8OYjKSAbVTM7X9i8JbbSAYPaupK5SrM86Qi SoZIHI0tQzkRzS2UM4a8eeyEoEtFup9SzFLfshnxDb0ddvhxLYVsxg9endoR+mv2QGk5 3E1h4wAN2DyPRSlkYNrPVNnTb087+FNab9dVB0bYLL6ivZkBSqomv+52M3G3bXpBwR9Z PZNdI8hzpKCKUOcZDpPAsdS4slVGcMqJQKyqKD+qpnS/f297CyF1YHidlKRxdjBPgK9I yWPaaRzflZk7PIQNgTgacRqD7bVwIlPvQk2k/xiodyOU32RJJrVWzLsZoISpdGz3KlfC TydQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=mhfK3Xbp7dGorRag1GQdAYkUAEC0Al9vXL9om2bY/oI=; fh=xwL5JyaMO83Tu53W6UOij+hD8nXHifGv2/FARyDIEM4=; b=s66tBupOezV3OFwD9m0XNka/0La1+qxZNSX9umiTELb2i0T52H4/B0DWwcnVvAlPMM gG+HuumU+sW/p4w5K6phf6c1EuOX7Ugjbwux0sWqgE8jkQPm/aGIZM7A6ZNBf1atAu4/ Vq828TAkPkHfRDUlHbWWNdR3kz0amTQlVvQ4qw/9I68YdeMV2p8LUOZjkS1k18kXmhS+ Ztif1g1WHfxcr1yGgh6/hQh0NTbcF0YzsdQzOZr3yOTUSjvDmdmpQHBchfh91oUh4WTF ySH8LGCMwpQMlG8oiGT6vpVS1MgCAiJZivThmPdOcn3vJTGyUU1iUewv9XxoV91GVcXt 05fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MZV3uxJL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id v2-20020a25ab82000000b00d9cb53e5194si10168009ybi.681.2023.10.25.05.49.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 05:49:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MZV3uxJL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B049F8022B1C; Wed, 25 Oct 2023 05:49:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343968AbjJYMtB (ORCPT + 99 others); Wed, 25 Oct 2023 08:49:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234921AbjJYMs7 (ORCPT ); Wed, 25 Oct 2023 08:48:59 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4971913D for ; Wed, 25 Oct 2023 05:48:56 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2c5039d4e88so86713441fa.3 for ; Wed, 25 Oct 2023 05:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698238134; x=1698842934; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=mhfK3Xbp7dGorRag1GQdAYkUAEC0Al9vXL9om2bY/oI=; b=MZV3uxJLrPBAE6Y5odc5Wz6n33WPTtx8ciBWL4crzscX4d+1/GEAc/q/yIYbyUND1W Xo2vwvH6KWhChQfOuC13kB8DaktvkBQr4jmnx/CPEkw0vcodH3lApyOOR5QZQxpkSm/V Y0WZnMiZnP0JkTwOxMMZnUmagKUZhy+B3nf0ML5gao8RkTvONhdGva2J8C9Wd1qtBOBG loOAxcsLUKoThKwn/AvhFC2U8TfUizLa713O4mW7i7JfPzaqfh5WW2tztW3bVRpZ6i64 aMGaDgTMv/EnynWYUBq6mcarSKVJrRmmggQOqfmA6NHeKBj6xCtE8e10x2EabiicgUWM t1TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698238134; x=1698842934; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mhfK3Xbp7dGorRag1GQdAYkUAEC0Al9vXL9om2bY/oI=; b=v2cY8tnAgxvuwyLcBPjy7MzS9D5e17XeEt8nnEZ4XrqVb1qEaWgRqBhbZPYedADxwp +uGBSNRTj6da6KuHEKKFMs2B3LKrqDF84ae8TQ/byIIj0OP2es6BXRCpB8Dp1xgxiB6Z Gy9gUXXO0MXUhToVizvNoTjnu1xpb/qaf7ULiMuHsSvYr6fQq6rNEYXF9X8R/jAVHufq YrftU2ng95OzGcR6TXWQkSNMqtu5PYxSfuOvF6Mwk7QAwr6HyFimjyRrJqsxtuqPQiqH UwwCbREZ6ejpX0JRcSSYkodD5cAhbBzIR3s74lGcK5ar5hZDyvmvYFY+Rv7kn7klJ+43 it4g== X-Gm-Message-State: AOJu0Yxg8L5Oza2Un1ni/L08/2/PSzE6qaE+x1gNz+9eWIdycmgUMazF Eq16Px2nAzZQV7osNnSl6sdTyw== X-Received: by 2002:a2e:86c7:0:b0:2c5:1602:53f6 with SMTP id n7-20020a2e86c7000000b002c5160253f6mr10457117ljj.34.1698238134501; Wed, 25 Oct 2023 05:48:54 -0700 (PDT) Received: from [192.168.53.189] ([188.162.65.61]) by smtp.gmail.com with ESMTPSA id f7-20020a2e9187000000b002c0167edd86sm2443551ljg.122.2023.10.25.05.48.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Oct 2023 05:48:53 -0700 (PDT) Message-ID: Date: Wed, 25 Oct 2023 15:48:51 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] soc: qcom: pmic_glink: fix connector type to be DisplayPort Content-Language: en-GB To: Johan Hovold , Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Simon Ser , linux-kernel@vger.kernel.org References: <20231010225229.77027-1-dmitry.baryshkov@linaro.org> From: Dmitry Baryshkov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 25 Oct 2023 05:49:09 -0700 (PDT) On 25/10/2023 15:23, Johan Hovold wrote: > On Wed, Oct 11, 2023 at 01:52:29AM +0300, Dmitry Baryshkov wrote: >> As it was pointed out by Simon Ser, the DRM_MODE_CONNECTOR_USB connector >> is reserved for the GUD devices. Other drivers (i915, amdgpu) use >> DRM_MODE_CONNECTOR_DisplayPort even if the DP stream is handled by the >> USB-C altmode. While we are still working on implementing the proper way >> to let userspace know that the DP is wrapped into USB-C, change >> connector type to be DRM_MODE_CONNECTOR_DisplayPort. >> >> Fixes: 080b4e24852b ("soc: qcom: pmic_glink: Introduce altmode support") >> Cc: Simon Ser >> Signed-off-by: Dmitry Baryshkov >> --- >> drivers/soc/qcom/pmic_glink_altmode.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/soc/qcom/pmic_glink_altmode.c b/drivers/soc/qcom/pmic_glink_altmode.c >> index 9569d999391d..6f8b2f7ae3cc 100644 >> --- a/drivers/soc/qcom/pmic_glink_altmode.c >> +++ b/drivers/soc/qcom/pmic_glink_altmode.c >> @@ -467,7 +467,7 @@ static int pmic_glink_altmode_probe(struct auxiliary_device *adev, >> alt_port->bridge.funcs = &pmic_glink_altmode_bridge_funcs; >> alt_port->bridge.of_node = to_of_node(fwnode); >> alt_port->bridge.ops = DRM_BRIDGE_OP_HPD; >> - alt_port->bridge.type = DRM_MODE_CONNECTOR_USB; >> + alt_port->bridge.type = DRM_MODE_CONNECTOR_DisplayPort; >> >> ret = devm_drm_bridge_add(dev, &alt_port->bridge); >> if (ret) { > > I was just going to post a patch fixing this after finally investigating > why the DisplayPort outputs on the X13s were annoyingly identified as > "Unknown20-1" and "Unknown20-2" instead of the expected "DP-1" and > "DP-2". Well, that depends on the userspace being updated to know about USB connectors or not. But you are right, we should probably mention that in the commit message. > > A lore search just before posting led me to this fix from two weeks ago. > > I think the commit message should have mentioned something about the how > this change affects user space. My patch also had a CC stable, but I > guess we can ping the stable team once it hits mainline: > > commit e5f55bf5ad4effdd59d4d06c839a0ac553a73c7d (HEAD -> work) > Author: Johan Hovold > Date: Wed Oct 25 11:54:09 2023 +0200 > > soc: qcom: pmic_glink_altmode: fix DP alt mode connector type > > The PMIC glink altmode bridge connector type should be "DisplayPort" > rather than "USB", which is intended for custom USB display protocols > (e.g. see 40e1a70b4aed ("drm: Add GUD USB Display driver")). > > This specifically makes the DisplayPort outputs on the Lenovo ThinkPad > X13s show up as "DP-1" and "DP-2" rather than "Unknown20-1" and > "Unknown20-2" with xrandr as expected (by users and tools): > > Screen 0: minimum 320 x 200, current 1920 x 1200, maximum 5120 x 4096 > eDP-1 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 286mm x 178mm > 1920x1200 60.03*+ > 1600x1200 60.00 > DP-1 disconnected (normal left inverted right x axis y axis) > DP-2 connected (normal left inverted right x axis y axis) > 1920x1200 59.95 + > ... > > Fixes: 080b4e24852b ("soc: qcom: pmic_glink: Introduce altmode support") > Cc: stable@vger.kernel.org # 6.3 > Signed-off-by: Johan Hovold > > Johan -- With best wishes Dmitry