From: Moritz Fischer <moritz.fischer@ettus.com>
To: atull <atull@opensource.altera.com>
Cc: Rob Herring <robh+dt@kernel.org>,
Pantelis Antoniou <pantelis.antoniou@konsulko.com>,
Josh Cartwright <joshc@ni.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Michal Simek <monstr@monstr.eu>,
Michal Simek <michal.simek@xilinx.com>,
Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
Jonathan Corbet <corbet@lwn.net>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
Alan Tull <delicious.quinoa@gmail.com>,
Dinh Nguyen <dinguyen@opensource.altera.com>
Subject: Re: [PATCH v16 0/6] Device Tree support for FPGA programming
Date: Mon, 15 Feb 2016 09:40:04 -0800 [thread overview]
Message-ID: <CAAtXAHc4VkmBp5UuLs31BgyV--++0k5VANZf4ico0uRQO-BWxQ@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1602111614530.26384@linuxheads99>
Hi Alan,
On Thu, Feb 11, 2016 at 2:17 PM, atull <atull@opensource.altera.com> wrote:
>> > > I looked into it further and now I've got a solution for this issue
>> > > that I can post soon. I can stop using the DT overlay configfs
>> > > interface and add a sysfs file for applying an overlay to an FPGA
>> > > region. The FPGA region implementation will see the overlay before it
>> > > becomes part of the live tree. Then it can do the FPGA programming
>> > > and see that succeed before the child nodes become part of the live
>> > > tree. If FPGA programming fails, the overlay will be rejected before
>> > > it becomes part of the live tree. By the time 'firmware-name' and the
>> > > child nodes show up in the live tree, they will be post-configuration
>> > > information.
I agree this would be a very nice interface, but Rob is right, having
two different
interfaces to load device-trees is probably bad in general.
>> Yes. If any handler returns error, the overlay doesn't go into the
>> main tree. Handler type to be registed could be:
>>
>> int pre_add_handler(struct device_node *overlay,
>> struct device_node *target)
>
> And a third parameter of some flags to indicate whether the
> overlay is being added or removed.
Looks good to me.
>> That gives us the overlay after it's been unflattened and phandles
>> resolved and the node that it was targeted to. I was going to
>> need find_target_node() to be exported, but this avoids that.
>>
>> Registration could by compatible string, of match, or path. Path
>> would be too rigid in my case, I'd want to register for compatible
>> "fpga-region"
Looks good to me. I think we're getting pretty close :)
Moritz
prev parent reply other threads:[~2016-02-15 17:40 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-05 21:29 [PATCH v16 0/6] Device Tree support for FPGA programming atull
2016-02-05 21:29 ` [PATCH v16 1/6] fpga: add bindings document for fpga region atull
2016-02-05 22:44 ` Josh Cartwright
2016-02-07 1:16 ` atull
2016-02-22 2:54 ` Rob Herring
2016-02-05 21:29 ` [PATCH v16 2/6] add sysfs document for fpga bridge class atull
2016-02-05 21:30 ` [PATCH v16 3/6] ARM: socfpga: add bindings document for fpga bridge drivers atull
2016-02-05 21:30 ` [PATCH v16 4/6] fpga: add fpga bridge framework atull
2016-02-05 21:30 ` [PATCH v16 5/6] fpga: fpga-region: device tree control for FPGA atull
2016-02-05 21:30 ` [PATCH v16 6/6] ARM: socfpga: fpga bridge driver support atull
2016-06-10 2:18 ` Trent Piepho
2016-06-13 19:35 ` atull
2016-06-14 21:00 ` Trent Piepho
2016-07-28 10:28 ` Andrea Galbusera
2016-07-28 15:21 ` atull
2016-07-28 20:26 ` Trent Piepho
2016-08-01 14:07 ` atull
2016-02-11 20:49 ` [PATCH v16 0/6] Device Tree support for FPGA programming atull
2016-02-11 21:22 ` Rob Herring
2016-02-11 22:08 ` atull
2016-02-11 22:17 ` atull
2016-02-15 17:40 ` Moritz Fischer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAtXAHc4VkmBp5UuLs31BgyV--++0k5VANZf4ico0uRQO-BWxQ@mail.gmail.com \
--to=moritz.fischer@ettus.com \
--cc=atull@opensource.altera.com \
--cc=corbet@lwn.net \
--cc=delicious.quinoa@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dinguyen@opensource.altera.com \
--cc=galak@codeaurora.org \
--cc=gregkh@linuxfoundation.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=joshc@ni.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=michal.simek@xilinx.com \
--cc=monstr@monstr.eu \
--cc=pantelis.antoniou@konsulko.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).