Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp480344rdb; Thu, 22 Feb 2024 09:24:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWfZiR4nf58cNsF91aYeNivGvbqultjFvF+/W1R7CVM8+K0aSEwmdfI2RJHV87VsPxmgn10cePAU/oFWc2P9uXs4HmzC4NEmGGwYvQh0g== X-Google-Smtp-Source: AGHT+IFRpdYwS+tJ8ifcFpXDsjzi17BY3kcsDk5pFm0t34gKukdCM/Qwo6enHFpsP3kNF9icvA+E X-Received: by 2002:a17:90b:2e49:b0:299:d927:aa31 with SMTP id sm9-20020a17090b2e4900b00299d927aa31mr8191891pjb.16.1708622670936; Thu, 22 Feb 2024 09:24:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708622670; cv=pass; d=google.com; s=arc-20160816; b=AgOpCTfR7Owa5ebGCGbc6inCvFqgrQkhjtVgvp0IK10aIzLJp54qu9N7StT08UZPzr gy7ho+zlHyzxR0m0Jq6on2tII1sZ7+KNmqteUeR1cjk+tFNfUMZnylG8JpE9nGMFBTmo gUa6BgAdUPbr6hZ4Zsah+TpbgWEc0tOhvXJCmbaJO+9ryNvEwHcU0qFb3Nc7Fwax4HVe BoYtoZgYVWmK4Kf7kGiDfy4++i1Cx+1BAgWd3eOajj8HiRMRz1NIkYnxDHucKVRZNBvu DR2jeyw96g+EtGOgwarIT8/LQ7f7QvyYVglItEU0rOt1+QJnP0TMDhQ/xr72mZ+ZWPnY QxKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2YjIr5aUgTsjvLi9xKmkXNDQcBTORFOndacLAudYXZw=; fh=XhOM21Iglrh6hJWl5IdleRKbmG+d030FBvAXRnbv4oQ=; b=r+KvlYKcJHzPDYtdlsrlH91bcv8/TYIhIEuHF5yp7pkYG3so7y2T24o1PSrwjtAf7F Zt0AZa8clGpr6+qiWcj7aWHi4T8ns4ZJbGKwc2MoZXKzQj1K67ocsKanpukjhpFy00qt R0h8wz9SQB6+kUj3vK1VNcLnNioKeHfL87yJ6ReBJnoOE/RzaZpTm9OUJBLXZQ65ID3l rsgtYk24eL+Ewyree/F+kVGtKqmZ0+qjEgoD5N1BsIt18kkhxLqcU11z5E2LdHduB6cK cQIy6T4kNLS35JaCgF3TYhZ/D1WUpQ1VU2fpl5jQxVEXYHOu0sgEFZIBBQxfPO/IjJCF NSTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=ezEI1lab; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-76971-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76971-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id pv14-20020a17090b3c8e00b0029a5678e1e0si1199002pjb.6.2024.02.22.09.24.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 09:24:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76971-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=ezEI1lab; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-76971-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76971-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C9C9F2845E3 for ; Thu, 22 Feb 2024 17:23:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45DE0155A56; Thu, 22 Feb 2024 17:23:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b="ezEI1lab" Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61BB81474B6; Thu, 22 Feb 2024 17:23:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708622613; cv=none; b=s8Y847pYBOW/BlcEK1mduOs3LMmoPzg4nG9NtQajsAFXrga2XgP9yJAwBTzKY8dYDgtCAWQh6WmuWicPtD5poK4KLUVvS7ZShKDI3MHT3yUxTTe1y/kVeocxm6tefkzT8iFIUAAPlrlJq2yZVQCd0wdp5TbycUu8QCGIfR11WyA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708622613; c=relaxed/simple; bh=G4iGZXz5pANw6P6dixF3j3pUndbXm1HnCQBrGRH5/6c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XXlHMySniOq0uzeVqB1BXU20amLB4lJFEvNeEQ5x9a4NzoSriSTass+SThhMf7U+mFgCv6tYMnMFUZKWMP0OR2LCjDrZGAGkjLM9sdGFNHHhGwdRf0adtf4UwTqh2hZL9e+HhtjyuqCzEPy8xsgG7ZWm20amvaC24dfeFA3Irps= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz; spf=pass smtp.mailfrom=ucw.cz; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b=ezEI1lab; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ucw.cz Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 013ED1C0080; Thu, 22 Feb 2024 18:23:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1708622607; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2YjIr5aUgTsjvLi9xKmkXNDQcBTORFOndacLAudYXZw=; b=ezEI1labo1josuTpKvSGarOXtuMPuKQbWe9fuLiN+78ANCflfREpDesPvqpd0WhQeMiDGq gpAH0ncJG9L8QPdHbrX8ZG4ZI19nY1nxkQgAx1w6ICGbWBtKEr8/x5leIGYnCAxSWAUYnT S0DLIRatlkRt4yd4T3ag6Mt+d9LDUso= Date: Thu, 22 Feb 2024 18:23:27 +0100 From: Pavel Machek To: Hans de Goede Cc: Werner Sembach , Lee Jones , jikos@kernel.org, linux-kernel@vger.kernel.org, Jelle van der Waa , Miguel Ojeda , "dri-devel@lists.freedesktop.org" , linux-input@vger.kernel.org, ojeda@kernel.org, linux-leds@vger.kernel.org Subject: Re: Future handling of complex RGB devices on Linux v2 Message-ID: References: <730bead8-6e1d-4d21-90d2-4ee73155887a@tuxedocomputers.com> <952409e1-2f0e-4d7a-a7a9-3b78f2eafec7@redhat.com> <9851a06d-956e-4b57-be63-e10ff1fce8b4@tuxedocomputers.com> <1bc6d6f0-a13d-4148-80cb-9c13dec7ed32@redhat.com> <477d30ee-247e-47e6-bc74-515fd87fdc13@redhat.com> <247b5dcd-fda8-45a7-9896-eabc46568281@tuxedocomputers.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8HNHTJiCVl5tEqHo" Content-Disposition: inline In-Reply-To: --8HNHTJiCVl5tEqHo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > Yeah, so ... this is not a interface. This is a backdoor to pass > > arbitrary data. That's not going to fly. >=20 > Pavel, Note the data will be interpreted by a kernel driver and > not passed directly to the hw. Yes, still not flying :-). > With that said I tend to agree that this seems to be a bit too > generic. Exactly. > Given that these devices are all different in various ways > and that we only want this for devices which cannot be accessed > from userspace directly (so a limit set of devices) I really > think that just doing custom ioctls per vendor is best. I don't think that's good idea in the long term. Kernel should provide hardware abstraction, so that userspace does not need to know about hardware. Obviously there are exceptions, but this should not be one of those. BR, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --8HNHTJiCVl5tEqHo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZdeDDwAKCRAw5/Bqldv6 8qiyAJwLN/fdcmrJOkkG2EAbYAv8zFZEFgCfZXqQdlbGlNFyskYJxo9aqek7NBI= =F8Cz -----END PGP SIGNATURE----- --8HNHTJiCVl5tEqHo--