Received: by 2002:a17:90a:8504:0:0:0:0 with SMTP id l4csp419608pjn; Wed, 23 Oct 2019 01:41:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+Vfl1hIiXSf5GHV8ONvuHIM+D5XpI/ZVsXa3MOKZzqIQ+6FYTlTb7jynYHgcp8WpvsgjS X-Received: by 2002:aa7:cf83:: with SMTP id z3mr15403900edx.198.1571820066476; Wed, 23 Oct 2019 01:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571820066; cv=none; d=google.com; s=arc-20160816; b=huz1y5G9AZ7UrSqa5Wsvgu9kD7ALe5ZDZl7C24vx3t63eVPI/wDWEStf+2QCSRrdDE 4N3oz6e0hP3dq6d4Xn11byyqhwvF7749DtAi2SZMQv95KcuD3P460sBf0ave2u3Jy4Rt 6RlTQbNcXPytQrXggQGuq6JCqdTEwf17n3riVWNApOnIHJptWLc8SyoRq3ZXmMA8UbSs VCNsnLvvOFo9QkBVVRuLEibUQfs9LKlMhlSQ1SqsSaDM6lSuUJJBq1Ezgk+uuz7LaVBz PzeFl/RD5g0TftStjeC8wZAeL6HzqgqGTiusBpGrrSoXYvxYLHiGrp89IgcbVC6IEtl0 daxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=2Ht+Dq3YAPtcP/5kWk8fJeCAjPfIj2CPqz7fkwrNtNc=; b=WopCx2olIDjs+IPvK+kPipJzmU+BGRCCEFsxFas+p1jaPNrz44hkhEXWfvRKmU714F 5OFKF3cmnObvKHjqi69y++GeyIbc6O7rT8swv9EBVVuHZeIo0iV5QkYUBjsEPU9zFi97 PEchEXcDOMopfWTVY2bhOXA7NyLrA/+x6YSe/gRgxxawyZYBu1Eek5rmvuYXHhR5NxUl A9SsCufQ3hBD+jv5p2JOHSXVhhSfQykrQHK9zIgLIYEojF+mcyODMiorH2Iww3hiN0ox 9Km1TxY3wJBu61Z5Q3r5bP1IMJpgi+nRTIgxw+fK8IVFC2VP9h9AUHboRH7R6l7nFAK3 9zLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=fkuGCaMM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u18si12514973ejk.105.2019.10.23.01.40.42; Wed, 23 Oct 2019 01:41:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=fkuGCaMM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390388AbfJWIjf (ORCPT + 99 others); Wed, 23 Oct 2019 04:39:35 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36316 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732361AbfJWIje (ORCPT ); Wed, 23 Oct 2019 04:39:34 -0400 Received: by mail-wm1-f65.google.com with SMTP id c22so9640240wmd.1 for ; Wed, 23 Oct 2019 01:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=2Ht+Dq3YAPtcP/5kWk8fJeCAjPfIj2CPqz7fkwrNtNc=; b=fkuGCaMMMuULzBZ+Q+nhwpzDlsIUndph+HQQvswuirV6/v5SP4LPa3Q0x9aBxlsnwp 9Mp2VFnKxpjQ7hXEdOc8c/lSjEo0Vv3vXc0PEnkvUfXDpUdCAoCElgWGz8Y1NM8OT8Jf b05I+QoF+rbfakQZUTUFesf8MBnTIUtgh4NjE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=2Ht+Dq3YAPtcP/5kWk8fJeCAjPfIj2CPqz7fkwrNtNc=; b=BPGSCE6+5XarZ3saXxdbzbn0e4P6ua/DQbEdBisQlbsXIsnx3KQIlEaxWIfNFvPLO8 tQnYuQKypTNMG8FQhdeDbqv1dTRFlFYueRpGt4AoZot+1+ARLv1fkZgt0M/52u8Np36O /ojtAY4G7Cpada2NHusUtwETBLSFhpnX2QIA4SpPx6Dr/2ZQcx+x8yPjhvgZktFtfOAr ttKi3Q5WFcjz34Crajn6u3BT88Pyvp4h7J8JBKtfsgK29r8avu0SidMgDo3siAkfnhNe zBOf7jmpSVIvj5TjehwwkiK+70T4ZAeMIsic3v3RHkzNj10Q9j0NKssr+Nf/Fq6UoGZa hfUQ== X-Gm-Message-State: APjAAAUOcwYLD3CBKiNCmU5Nw1FG+MmGOSi/rGm3F5ABRU+WqvUt1ZeP rHFAF9OM8tx05a+0X5codp2hlw== X-Received: by 2002:a05:600c:143:: with SMTP id w3mr6256752wmm.132.1571819972247; Wed, 23 Oct 2019 01:39:32 -0700 (PDT) Received: from phenom.ffwll.local (212-51-149-96.fiber7.init7.net. [212.51.149.96]) by smtp.gmail.com with ESMTPSA id h3sm7133607wrt.88.2019.10.23.01.39.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 01:39:30 -0700 (PDT) Date: Wed, 23 Oct 2019 10:39:28 +0200 From: Daniel Vetter 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 Subject: Re: New sysfs interface for privacy screens Message-ID: <20191023083928.GR11828@phenom.ffwll.local> Mail-Followup-To: Jani Nikula , 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 , Alexander Schremmer , Andy Shevchenko 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 Content-Disposition: inline In-Reply-To: <87sgo3dasg.fsf@intel.com> X-Operating-System: Linux phenom 5.2.0-2-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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