History

Merge tag 'fpga-for-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/mdf/linux-fpga into char-misc-next

Moritz writes: FPGA Manager changes for 5.4-rc1 Here is the first set of changes for the 5.4-rc1 merge window. They're all more or less cleanup patches: - Carlos' patch addresses a checkpatch warning - My first patch changes the return type of a function to align it with the fact that nothing checks the return value and it uncoditionally returned 0 anyways - My second patch somehow fell through the cracks before and cleans up the FPGA bridge bindings by consolidating them instead of repeating the same paragraph over and over again. All of these patches have been in the last few linux-next releases without issues. Signed-off-by: Moritz Fischer <mdf@kernel.org> * tag 'fpga-for-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/mdf/linux-fpga: dt-bindings: fpga: Consolidate bridge properties fpga: altera-pr-ip: Make alt_pr_unregister function void fpga: altera-cvp: Fix function definition argument

Greg Kroah-Hartman committed 7 years ago

Commit cec2cae2 parents f51cf9e 2949dc49 files · +25 −24Browse files

Unified · Split

9 files
  1. Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt +1 −4
  2. Documentation/devicetree/bindings/fpga/altera-freeze-bridge.txt +1 −4
  3. Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.txt +1 −4
  4. Documentation/devicetree/bindings/fpga/fpga-bridge.txt +13 −0
  5. Documentation/devicetree/bindings/fpga/xilinx-pr-decoupler.txt +2 −6
  6. drivers/fpga/altera-cvp.c +2 −1
  7. drivers/fpga/altera-pr-ip-core-plat.c +3 −1
  8. drivers/fpga/altera-pr-ip-core.c +1 −3
  9. include/linux/fpga/altera-pr-ip-core.h +1 −1
Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt+1−4
@@ -3,10 +3,7 @@ Altera FPGA To SDRAM Bridge Driver · 2 unmodified lines
33 Required properties:
44 - compatible : Should contain "altr,socfpga-fpga2sdram-bridge"
55
6−Optional properties:
7−- bridge-enable : 0 if driver should disable bridge at startup
8− 1 if driver should enable bridge at startup
9− Default is to leave bridge in current state.
6+See Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings.
107
118 Example:
129 fpga_bridge3: fpga-bridge@ffc25080 {
Documentation/devicetree/bindings/fpga/altera-freeze-bridge.txt+1−4
@@ -10,10 +10,7 @@ Required properties: · 9 unmodified lines
1010 - compatible : Should contain "altr,freeze-bridge-controller"
1111 - regs : base address and size for freeze bridge module
1212
13−Optional properties:
14−- bridge-enable : 0 if driver should disable bridge at startup
15− 1 if driver should enable bridge at startup
16− Default is to leave bridge in current state.
13+See Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings.
1714
1815 Example:
1916 freeze-controller@100000450 {
Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.txt+1−4
@@ -9,10 +9,7 @@ Required properties: · 8 unmodified lines
99 - resets : Phandle and reset specifier for this bridge's reset
1010 - clocks : Clocks used by this module.
1111
12−Optional properties:
13−- bridge-enable : 0 if driver should disable bridge at startup.
14− 1 if driver should enable bridge at startup.
15− Default is to leave bridge in its current state.
12+See Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings.
1613
1714 Example:
1815 fpga_bridge0: fpga-bridge@ff400000 {
Documentation/devicetree/bindings/fpga/fpga-bridge.txt+13−0
@@ -0,0 +1,13 @@
1+FPGA Bridge Device Tree Binding
2+
3+Optional properties:
4+- bridge-enable : 0 if driver should disable bridge at startup
5+ 1 if driver should enable bridge at startup
6+ Default is to leave bridge in current state.
7+
8+Example:
9+ fpga_bridge3: fpga-bridge@ffc25080 {
10+ compatible = "altr,socfpga-fpga2sdram-bridge";
11+ reg = <0xffc25080 0x4>;
12+ bridge-enable = <0>;
13+ };
Documentation/devicetree/bindings/fpga/xilinx-pr-decoupler.txt+2−6
@@ -18,12 +18,8 @@ Required properties: · 17 unmodified lines
1818 - clocks : input clock to IP
1919 - clock-names : should contain "aclk"
2020
21−Optional properties:
22−- bridge-enable : 0 if driver should disable bridge at startup
23− 1 if driver should enable bridge at startup
24− Default is to leave bridge in current state.
25−
26−See Documentation/devicetree/bindings/fpga/fpga-region.txt for generic bindings.
21+See Documentation/devicetree/bindings/fpga/fpga-region.txt and
22+Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings.
2723
2824 Example:
2925 fpga-bridge@100000450 {
drivers/fpga/altera-cvp.c+2−1
@@ -57,7 +57,8 @@ struct altera_cvp_conf { · 56 unmodified lines
5757 struct fpga_manager *mgr;
5858 struct pci_dev *pci_dev;
5959 void __iomem *map;
60− void (*write_data)(struct altera_cvp_conf *, u32);
60+ void (*write_data)(struct altera_cvp_conf *conf,
61+ u32 data);
6162 char mgr_name[64];
6263 u8 numclks;
6364 };
drivers/fpga/altera-pr-ip-core-plat.c+3−1
@@ -32,7 +32,9 @@ static int alt_pr_platform_remove(struct platform_device *pdev) · 31 unmodified lines
3232 {
3333 struct device *dev = &pdev->dev;
3434
35− return alt_pr_unregister(dev);
35+ alt_pr_unregister(dev);
36+
37+ return 0;
3638 }
3739
3840 static const struct of_device_id alt_pr_of_match[] = {
drivers/fpga/altera-pr-ip-core.c+1−3
@@ -201,15 +201,13 @@ int alt_pr_register(struct device *dev, void __iomem *reg_base) · 200 unmodified lines
201201 }
202202 EXPORT_SYMBOL_GPL(alt_pr_register);
203203
204−int alt_pr_unregister(struct device *dev)
204+void alt_pr_unregister(struct device *dev)
205205 {
206206 struct fpga_manager *mgr = dev_get_drvdata(dev);
207207
208208 dev_dbg(dev, "%s\n", __func__);
209209
210210 fpga_mgr_unregister(mgr);
211−
212− return 0;
213211 }
214212 EXPORT_SYMBOL_GPL(alt_pr_unregister);
215213
include/linux/fpga/altera-pr-ip-core.h+1−1
@@ -13,6 +13,6 @@ · 12 unmodified lines
1313 #include <linux/io.h>
1414
1515 int alt_pr_register(struct device *dev, void __iomem *reg_base);
16−int alt_pr_unregister(struct device *dev);
16+void alt_pr_unregister(struct device *dev);
1717
1818 #endif /* _ALT_PR_IP_CORE_H */