From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932690AbdBVQoX (ORCPT ); Wed, 22 Feb 2017 11:44:23 -0500 Received: from quartz.orcorp.ca ([184.70.90.242]:40380 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754428AbdBVQoP (ORCPT ); Wed, 22 Feb 2017 11:44:15 -0500 Date: Wed, 22 Feb 2017 09:44:00 -0700 From: Jason Gunthorpe To: Moritz Fischer Cc: "Nadathur, Sundar" , Alan Tull , Yves Vandervennet , "matthew.gerlach@linux.intel.com" , linux-kernel , "linux-fpga@vger.kernel.org" , Marek Va??ut Subject: Re: [RFC 7/8] fpga-region: add sysfs interface Message-ID: <20170222164400.GA18745@obsidianresearch.com> References: <1CC272501B5BC543A05DB90AA509DED50B005A@fmsmsx122.amr.corp.intel.com> <20170222051201.GB29755@obsidianresearch.com> <1CC272501B5BC543A05DB90AA509DED50B010C@fmsmsx122.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.156 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 21, 2017 at 10:05:42PM -0800, Moritz Fischer wrote: > That being said older drivers / fpga-mgr will not deal with newer features. > TLV / KV or whatever doesn't change this fact, or am I missing something? Often a scheme will have an OPTIONAL and REQUIRED flag for each value. If a REQUIRED value is present but the parser does not support it then the parse fails. For instance, we could mark Encrypted as required, and a zynq driver that does not support the Encrypted tag would not load the bitfile rather than try to load it wrongly. This can be forced into any of the approaches with various levels of hackery. Jason