From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932101AbdBVFMV (ORCPT ); Wed, 22 Feb 2017 00:12:21 -0500 Received: from quartz.orcorp.ca ([184.70.90.242]:38065 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932075AbdBVFMI (ORCPT ); Wed, 22 Feb 2017 00:12:08 -0500 Date: Tue, 21 Feb 2017 22:12:01 -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: <20170222051201.GB29755@obsidianresearch.com> References: <20170218023010.GA8244@live.com> <1CC272501B5BC543A05DB90AA509DED50AF5EC@fmsmsx122.amr.corp.intel.com> <20170218204509.GA32544@live.com> <1CC272501B5BC543A05DB90AA509DED50B005A@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.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 21, 2017 at 07:49:19PM -0800, Moritz Fischer wrote: > fdt does this out of the box, too. So far I've seen nothing fdt > couldn't do (or doesn't do let's rather say). tlv/fdt/http headers are all essentially exactly the same thing. Key/value pairs with various encoding schemes. I don't think we don't need a tree of data, so fdt is overkill. tlv is not substantially easier to parse correctly than the structured plain text headers.. It is just in binary so it can represent binary-ish things better. So far the only thing we know we need is a 'bool' for encrypted and a stringish guid thing for partial reconfiguration. The other stuff I've always used is pretty much all textual. Jason