Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2538830rda; Wed, 25 Oct 2023 05:55:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGgj9XZ0Tzl8RZTOQwCzryWBJM0U5Sh0EEscN733MTWw3eXjZXCTIOws2vXJpmNxNut5XDa X-Received: by 2002:a25:b90:0:b0:d9a:3d12:1a8c with SMTP id 138-20020a250b90000000b00d9a3d121a8cmr14975445ybl.57.1698238553448; Wed, 25 Oct 2023 05:55:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698238553; cv=none; d=google.com; s=arc-20160816; b=qW61N2sTPFuM6v6QEvwPHddyN6mKHigvKRTnls48+wvH9ZavGCX3Gmek+ZO9E1VCS2 bmgEBjH4+xCz6HDd0qr2dPouyep6uWKtq44JPzmcPSe4ahYiVKHTy3Gjh9gLS8X0u8Dt OdtYXku96hg44mQbvBNQX0dX8qIyCupQb8mBSVzA+pjEek8Db6eknHi2FNHy3d9+CPJv RGmkRg7+oXcrhxNZAccJxgXjuO84KsSwJ6yaWCLebdoaMMRKUapgykzlXsceTus8Q2ol kJbF+/KBEHrO0W6iJltCFUJSjtx1nt6idqxbnx/2PHqn19CyYH3d27zrXO/WYUUpNNBj 1W7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :date:dkim-signature; bh=6lMF1JifW5huSVXWVFOd0HhrR0SzxrcAOage3NSxPW4=; fh=eBoQY+dI6ghX9apLTLwc299woS3ynVPQEeYJS2UoU3g=; b=uFmR1mwk0TOJZxtUjdBGXOF2KLi6UF4npfTKQgehraNfwi5tHsFrWhx659tFwkTVuv NGA8FO21QzG55x9kX8glXhNNZKZKpz9CgszDLhUftzE5URhN90Kil/0KZJY0yb1kjXw1 lLXqRraHFUsbpD+EaO7LC0HEIQEuFGXkIvF8qdvIadYY47z5OtF6VmysYm/SleB90TbY EZJjSEztf5edYCqpR+uonRIssiwIylb/BknQkHlrnFWmjAWgGzA+b+Am7FF/kSVRn/ei yRktUFwW3ZE2SvVn0SnBGUOUlxdtNEpgNVI6NIKCvM90YqRH/jhyFiKCjzJdpksHaWgM pC2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail2 header.b=UfETWEAZ; 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=emersion.fr Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id v131-20020a25c589000000b00da0567df820si3291192ybe.659.2023.10.25.05.55.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 05:55:53 -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=@emersion.fr header.s=protonmail2 header.b=UfETWEAZ; 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=emersion.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 80658807C576; Wed, 25 Oct 2023 05:55:23 -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 S234929AbjJYMzN (ORCPT + 99 others); Wed, 25 Oct 2023 08:55:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234938AbjJYMzL (ORCPT ); Wed, 25 Oct 2023 08:55:11 -0400 Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FE46AC; Wed, 25 Oct 2023 05:55:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail2; t=1698238507; x=1698497707; bh=6lMF1JifW5huSVXWVFOd0HhrR0SzxrcAOage3NSxPW4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=UfETWEAZXEqJ4NovRWp4g+BBGNogT8gEA8DtuV9/dEn6wU8I+JggfcnlWb1AgUC27 kETCGEIyFXKjSvFEjOz9hj8k7YL9vut8PlQUmOS/RvGI/FyoyfcvKkwlwcunYrQVPO eKLFhndpUvabDu0ZvE3rMISjptWkhBOX6yCNHXa62j7ic7SZOsy8Wjfg7ywuBk3NRE 9foDObui7X5onbh1XygKlzNqpUUnqXfzZ2aS28L0U+2mYrIX8UhB34LMOC8Dp71dYR 7/D5zqnO7b0I0msfWBIeB7N6ViMB35MF0969HegLSU0URVGoz5bpLQNQjGU0I7DSuK FiSVV8cRZdtQw== Date: Wed, 25 Oct 2023 12:54:44 +0000 To: Dmitry Baryshkov From: Simon Ser Cc: Johan Hovold , Bjorn Andersson , Andy Gross , Konrad Dybcio , linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] soc: qcom: pmic_glink: fix connector type to be DisplayPort Message-ID: In-Reply-To: <65f841ba-5b70-4cbe-98e0-3d53e5b7944c@linaro.org> References: <20231010225229.77027-1-dmitry.baryshkov@linaro.org> <65f841ba-5b70-4cbe-98e0-3d53e5b7944c@linaro.org> Feedback-ID: 1358184:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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:55:23 -0700 (PDT) On Wednesday, October 25th, 2023 at 14:45, Dmitry Baryshkov wrote: > On 25/10/2023 15:29, Simon Ser wrote: >=20 > > On Wednesday, October 25th, 2023 at 14:22, Johan Hovold johan@kernel.or= g wrote: > >=20 > > > I was just going to post a patch fixing this after finally investigat= ing > > > 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". > >=20 > > Note, ideally userspace should use drmModeGetConnectorTypeName() from > > libdrm to figure out the proper name for a connector type. That way we > > only need to update a single spot when adding a new connector type, > > instead of patching a whole bunch of programs. >=20 > X11 does its own thing. It further "renames" DP MST connectors. So on my > laptop I end up with DP-1-1 in xrandr, but DP-3 in kernel. Right. But that function only takes in a connector type enum as input, and returns a string for the type only. It doesn't include the suffix with the number. IOW: xserver could use drmModeGetConnectorTypeName() and then append "-2" or "-1-1" or whatever. But with the current appetite for xserver development this is probably not going to happen (and doesn't matter very much).