Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934076AbdCXSLZ (ORCPT ); Fri, 24 Mar 2017 14:11:25 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:36142 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755561AbdCXSK7 (ORCPT ); Fri, 24 Mar 2017 14:10:59 -0400 MIME-Version: 1.0 In-Reply-To: <20170313215333.3008-1-atull@kernel.org> References: <20170313215333.3008-1-atull@kernel.org> From: Alan Tull Date: Fri, 24 Mar 2017 13:09:22 -0500 Message-ID: Subject: Re: [PATCH 0/5] fpga: enhancements to support non-dt code To: Moritz Fischer Cc: Alan Tull , linux-kernel , linux-fpga@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2241 Lines: 53 On Mon, Mar 13, 2017 at 4:53 PM, Alan Tull wrote: > Set of patches that supports writing code that uses > FPGA regions without Device Tree overlays. OK here's where I try to clarify my intention for this code. And beg for reviews :) This patchset is intended as a stepping stone towards supporting PCIe FPGAs by allowing fpga regions to be created and used in without device tree overlays. Without it, I can see a lot of code coming down the line where people have to reinvent things that aren't called fpga-regions but ultimately are doing the same thing. The idea is that if someone has some whizzbang scheme, that somehow knows "Oh I have a FPGA here and some bridges and I want to program it without getting a kernel oops", then that code can use fpga_region_register() to create an fpga region device and tell it what fpga manager to use and give it a method for getting bridges. There is an example of usage in of_fpga_region_probe(). Then fpga_region_program_fpga() is available for programming the fpga, including handling enabling/disabling the bridges. Alan > > Main differences from the RFC: > * dropping the sysfs interface > * dropping support for more than one DT overlay on a region > > Alan Tull (5): > fpga-mgr: pass parameters for loading fpga in image info > fpga-bridge: support getting bridge from device > doc: fpga-mgr: separate getting/locking FPGA manager > fpga-mgr: separate getting/locking FPGA manager > fpga-region: separate out common code from dt specific code > > Documentation/fpga/fpga-mgr.txt | 19 +- > drivers/fpga/Kconfig | 12 +- > drivers/fpga/Makefile | 1 + > drivers/fpga/fpga-bridge.c | 107 +++++++-- > drivers/fpga/fpga-mgr.c | 56 ++++- > drivers/fpga/fpga-region.c | 473 +++++++-------------------------------- > drivers/fpga/fpga-region.h | 50 +++++ > drivers/fpga/of-fpga-region.c | 453 +++++++++++++++++++++++++++++++++++++ > include/linux/fpga/fpga-bridge.h | 7 +- > include/linux/fpga/fpga-mgr.h | 17 ++ > 10 files changed, 766 insertions(+), 429 deletions(-) > create mode 100644 drivers/fpga/fpga-region.h > create mode 100644 drivers/fpga/of-fpga-region.c > > -- > 2.7.4 >