Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2530456rda; Wed, 25 Oct 2023 05:40:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHU8fGX4GbtzJOuINJeY/SXqJK8j9mdLPpGI2YbtLeHqg8BJJ81gGEqL5/N3cbXxRHP41SU X-Received: by 2002:aca:2217:0:b0:3a6:f622:70f1 with SMTP id b23-20020aca2217000000b003a6f62270f1mr13160596oic.57.1698237612550; Wed, 25 Oct 2023 05:40:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698237612; cv=none; d=google.com; s=arc-20160816; b=ovTz/d0h4M63TCGKs05k6SNt7D5VhkUvMep7s/PLgvkQbFmGukw1fUTKHl2bixz6Cu NQVXGROlVVjmbXUyVfoId2Mg/W22Uhh5BoWIJOPWJw1C5x27zVtNm97E/nwhZez2x6Qq VxtCpAhZsRzXZrkSXzN7f3xE9QT/Tcasn4nKShqqAh3g9GHS11b2jB1FBTr0qsbeiyGO 8EBTkC2KmHcMekC+NSRVQVj3/nMJnIUt4rpwCUlbGNP1YeXRKhb3d6z13X3QZLYshkbi QSDvTh8dmCwQSDycNYUNXNQHSJPa2KUGiZRzwSrX3qxTNfp3nR1fUL3MSF79lcFv0NVm 9L6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tZExUxLHtnObSHhDbs8mp5qON1sJyCDfS5NBHlttkio=; fh=CyRcpfDgH3booIIjdNTiLAmtxqpQvFaBrgn+y8q4D+k=; b=bxa3WhhDYMKJiw0PkwvRyBDSQYyR+MTfd+2e6eves9YXmxphy5XQsCrSeQZrhwS/hV lRX1J9qHRTleB4g73blZpQ19ogo4pKqEV0kUKIRLDFM7mqrqEyayLe0ZkHj7H+mb1Ywy sj0760qV+OHcdHCnzNCrM9wYqReG+RufUOixMXD60oZ/6sJvN+wxiGhZ6+0YlvInsR6B 2PINMUHpD7GK8ZBdWBmXTXffk4i/Z5phtnqrUCk4ZdOECec6bUMtc49OLrrdb8CJLzvO ksDowdqCmaxNDng7E/5yvossdILz9vL+iMBrN4fCQ6ARvtUSIfVtCu9bmpD97L5FOKVm HOCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tqNrenIz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id g11-20020a25200b000000b00da02c072187si4518781ybg.666.2023.10.25.05.40.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 05:40:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tqNrenIz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9FE4C80BE2D1; Wed, 25 Oct 2023 05:40:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344086AbjJYMjw (ORCPT + 99 others); Wed, 25 Oct 2023 08:39:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344054AbjJYMjv (ORCPT ); Wed, 25 Oct 2023 08:39:51 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C11539C; Wed, 25 Oct 2023 05:39:49 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 611B9C433C7; Wed, 25 Oct 2023 12:39:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698237589; bh=izrauq5aGqPVsDf/t0BCTrBB/O9la1zB0gYc2jn+qiA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tqNrenIzHolLr1199ZbICpYPT1fmWKQEqqMcl7slVFxLQuTTJa91uF8NBve1BVg4f UavUx9TeF/lflT6Uk4F/O7rGGwM2+8bEhGFHok4GWU5ULI9TbGzIkmMXcxQn70Qegx JPPYBdpvKvaQKKBwRk+P8fpiRQAGHlMP4fgLJx2UCLf0tC/QQFUrbQFbJdBRPQnN8E APEuJCM/0RNhIJzBz1oWrGnCP42F2zrXl/f6AA6/rimZS5qxNqaiOq3zeQZvadEm/N 5n9bEBwYBeN7eGzp/l76c4a8qVtRdGx7601TQbt21+lBkSTsylNHxtNVDiRfb3N1VF jkbC433is4KWQ== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qvdBB-0006Ln-1I; Wed, 25 Oct 2023 14:40:09 +0200 Date: Wed, 25 Oct 2023 14:40:09 +0200 From: Johan Hovold To: Simon Ser Cc: Dmitry Baryshkov , 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: References: <20231010225229.77027-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 05:40:09 -0700 (PDT) On Wed, Oct 25, 2023 at 12:29:26PM +0000, Simon Ser wrote: > On Wednesday, October 25th, 2023 at 14:22, Johan Hovold wrote: > > > 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". > > 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. Yeah, I only skimmed the xrandr code and these strings appear to originate from some X library. So hopefully not that many places to update. Scripts and other tools may still be using these strings directly however (e.g. as did my custom script to enable external displays). Johan