16 Oct, 2018

1 commit

  • Add devm_fpga_mgr_create() which is the managed
    version of fpga_mgr_create().

    Change current FPGA manager drivers to use
    devm_fpga_mgr_create()

    Signed-off-by: Alan Tull
    Suggested-by: Federico Vaga
    Acked-by: Moritz Fischer
    Signed-off-by: Greg Kroah-Hartman

    Alan Tull
     

26 May, 2018

2 commits

  • Replace GPLv2 boilerplate with SPDX in FPGA code that came from me or
    from Altera.

    Signed-off-by: Alan Tull
    Signed-off-by: Greg Kroah-Hartman

    Alan Tull
     
  • Change fpga_mgr_register to not set or use drvdata. This supports
    the case where a PCIe device has more than one manager.

    Add fpga_mgr_create/free functions. Change fpga_mgr_register and
    fpga_mgr_unregister functions to take the mgr struct as their only
    parameter.

    struct fpga_manager *fpga_mgr_create(struct device *dev,
    const char *name,
    const struct fpga_manager_ops *mops,
    void *priv);
    void fpga_mgr_free(struct fpga_manager *mgr);
    int fpga_mgr_register(struct fpga_manager *mgr);
    void fpga_mgr_unregister(struct fpga_manager *mgr);

    Update the drivers that call fpga_mgr_register with the new API.

    Signed-off-by: Alan Tull
    [Moritz: Fixup whitespace issue]
    Reported-by: Jiuyue Ma
    Signed-off-by: Moritz Fischer
    Signed-off-by: Greg Kroah-Hartman

    Alan Tull
     

11 Nov, 2016

1 commit

  • This patch adds a minor change in the FPGA Manager API
    to hold information that is specific to an FPGA image
    file. This change is expected to bring little, if any,
    pain. The socfpga and zynq drivers are fixed up in
    this patch.

    An FPGA image file will have particulars that affect how the
    image is programmed to the FPGA. One example is that
    current 'flags' currently has one bit which shows whether the
    FPGA image was built for full reconfiguration or partial
    reconfiguration. Another example is timeout values for
    enabling or disabling the bridges in the FPGA. As the
    complexity of the FPGA design increases, the bridges in the
    FPGA may take longer times to enable or disable.

    This patch adds a new 'struct fpga_image_info', moves the
    current 'u32 flags' to it. Two other image-specific u32's
    are added for the bridge enable/disable timeouts. The FPGA
    Manager API functions are changed, replacing the 'u32 flag'
    parameter with a pointer to struct fpga_image_info.
    Subsequent patches fix the existing low level FPGA manager
    drivers.

    Signed-off-by: Alan Tull
    Acked-by: Moritz Fischer
    Signed-off-by: Greg Kroah-Hartman

    Alan Tull
     

30 Oct, 2015

1 commit


08 Oct, 2015

1 commit