Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1313829pxb; Wed, 2 Feb 2022 01:56:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwM+wJ5jDewkMvM2DZhTAFcRdilYLlA9Lez9Aw2wszY+QpY4ej0Hjfj+bUtrI5/Vh2PSD7f X-Received: by 2002:a17:902:b195:: with SMTP id s21mr29581741plr.117.1643795804249; Wed, 02 Feb 2022 01:56:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643795804; cv=none; d=google.com; s=arc-20160816; b=LHsGp3LEieZPpDfHMqeMvzV4tQqwU4P0LEhp7UUtrFr28PH6h72Mk+D0in9UHNEPJs mvNJEg5opocscwdgI+7rTg3Le69k/2xTr/TmG8Jnt/bnLJI9Zp3sFll4IqOXgRPAsJ0Y MxKKfV9k9umtYDhHDhU0h2qFW87Onhnk8e/1oBTW4ET9A43lKzULL3QTTqQ728ovOwdk RFF15bAaxIF0qrzM8oAtF1Pt8mFgUqKq2wTmQBKIA6k4YGYJG4zJjrhPrHPAsG9SpxgT AOrVsZ8Q6v4nXlCNfasUtBjp3V0EHCZgD4sCFHj8vFwTx8TpFQTZT/Uz05vOncpK4e62 YWIg== 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:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=HSc0TyLrN1Wvj1rxHVmacBdO1opBBuzEEVi910cNl0c=; b=s4miMQoM6Fu/05FZTM1tmHzVu0NmwXK7SIn24MrTjeYiULDSaDZ3Xw0RQ/2JfqaAas AeMDHbfl6m1JR5dQ/KNoA+7r/rpMcrjb+DXmEofblIZNW2dJ7182qOncVfducXsJNaM1 F2rZ+tm6NPCl/FmIaWM7AnqbRFtUR1EYqoesO+UsTad4kjcyKOjN5wf0iyaNbbpAzdby Z2Ol6XLW6ArMgzyzJWKFqUVwaKN1UMNZ0yjkMfEZkIQgpDzxuljbzGHAf7LQOG/uTTiH FThJVLE3J+L/qyFyneA/NDN+Zql/sIkecSBO3H1dJc13P+j79dKEBEy85E4da6r683IL P4sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tronnes.org header.s=ds202112 header.b=Qdi0QzQy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=tronnes.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g5si19665875pgc.136.2022.02.02.01.56.32; Wed, 02 Feb 2022 01:56:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@tronnes.org header.s=ds202112 header.b=Qdi0QzQy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=tronnes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238326AbiBANUQ (ORCPT + 99 others); Tue, 1 Feb 2022 08:20:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231549AbiBANUP (ORCPT ); Tue, 1 Feb 2022 08:20:15 -0500 Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 354FEC061714; Tue, 1 Feb 2022 05:20:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tronnes.org ; s=ds202112; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HSc0TyLrN1Wvj1rxHVmacBdO1opBBuzEEVi910cNl0c=; b=Qdi0QzQywpTYVIggQulpTS3p7v GXlQs1bB+hZmyCaVmSsqKP7jxjh1Qv6P0KOyM/TWZ3Z6QtIonylvPmQam4E5G68UjawvjIn3UTYjk 1ZbeH2Fe3vrIHKtKOlAf5WdebFVYuNqO54OBq7h7GAYibWUBXV/XLERqPOytKRl29N8T/7oCewIwI YaWfWfXF1cI34QIWRjw9gfDnUU08q/rR+G/zz2MnKO6sS2vcBZ8qohfnlgqylGghHg945NW7OQ57W G1fuYZmBG6x3waAACYq+HFp2xhsQkW7sU4k2CrLbCt4Om4es9oAAw7Nwb8z/raCyWOeMFtdoqLRxq 2ls/xu8Q==; Received: from [2a01:799:95e:a400:5d05:6ef3:cded:ad3] (port=54256) by smtp.domeneshop.no with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEt4v-0005ID-2B; Tue, 01 Feb 2022 14:20:13 +0100 Message-ID: Date: Tue, 1 Feb 2022 14:20:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 1/4] drm: Add I2C connector type To: Javier Martinez Canillas , Sam Ravnborg Cc: linux-fbdev@vger.kernel.org, David Airlie , Daniel Vetter , Emil Velikov , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Geert Uytterhoeven , Maxime Ripard , Thomas Zimmermann , Andy Shevchenko References: <20220131201225.2324984-1-javierm@redhat.com> <20220131201225.2324984-2-javierm@redhat.com> <4d9a56a7-da25-b411-61cc-372c6fa9011d@tronnes.org> <4322f58b-dbeb-b90f-2770-d6881f8005b4@redhat.com> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= In-Reply-To: <4322f58b-dbeb-b90f-2770-d6881f8005b4@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den 01.02.2022 14.06, skrev Javier Martinez Canillas: > Hello Noralf, > > On 2/1/22 13:58, Noralf Trønnes wrote: >> >> >> Den 31.01.2022 21.52, skrev Sam Ravnborg: >>> On Mon, Jan 31, 2022 at 09:12:21PM +0100, Javier Martinez Canillas wrote: >>>> There isn't a connector type for display controllers accesed through I2C, >>>> most drivers use DRM_MODE_CONNECTOR_Unknown or DRM_MODE_CONNECTOR_VIRTUAL. >>>> >>>> Add an I2C connector type to match the actual connector. >>>> >>>> As Noralf Trønnes mentions in commit fc06bf1d76d6 ("drm: Add SPI connector >>>> type"), user-space should be able to cope with a connector type that does >>>> not yet understand. >>>> >> >> It turned out that I wasn't entirely correct here, mpv didn't cope with >> unknown types. In the PR to add support Emil Velikov wondered if libdrm >> should handle these connector names: >> https://github.com/mpv-player/mpv/pull/8989#issuecomment-879187711 >> > > I see, thanks for the information. What should we do then, just use the type > DRM_MODE_CONNECTOR_Unknown then ? > Not really, I just wanted to point out that it could be that not all userspace will handle an unknown connector type (I just checked the DE's at the time). I haven't seen any issues after adding the SPI type so it can't be that many apps that has problems. Adding to that a tiny monochrome display is limited in which applications it will encounter I guess :) It was after adding the USB type that I discovered that mpv didn't work. Noralf.