From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: New sysfs interface for privacy screens Date: Wed, 23 Oct 2019 10:39:28 +0200 Message-ID: <20191023083928.GR11828@phenom.ffwll.local> References: <87h84rbile.fsf@intel.com> <20191002102428.zaid63hp6wpd7w34@holly.lan> <8736gbbf2b.fsf@intel.com> <87h84q9pcj.fsf@intel.com> <87sgo3dasg.fsf@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <87sgo3dasg.fsf@intel.com> Sender: linux-kernel-owner@vger.kernel.org To: Jani Nikula Cc: Mat King , Sean Paul , Daniel Thompson , Linux Kernel Mailing List , dri-devel , rafael@kernel.org, Greg KH , Ross Zwisler , Jingoo Han , Rajat Jain , Lee Jones , Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , David Airlie , Daniel Vetter , Alexander Schremmer , Andy Shevchenko List-Id: dri-devel@lists.freedesktop.org On Tue, Oct 08, 2019 at 09:13:51AM +0300, Jani Nikula wrote: > On Mon, 07 Oct 2019, Mat King wrote: > > That makes sense; just to confirm can a property be added or removed > > after the connector is registered? > > You need to create the property before registering the drm device. You > can attach/detach the property later, but I should think you know by the > time you're registering the connector whether it supports the privacy > screen or not. I don't think you can add/remove a property after the object you're adding/removing the prop from has gone public (either with drm_dev_register or drm_connector_register for hotplugged connectors). I guess another gap we should cover with some WARN_ON? -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch