staging: gs_fpgaboot: revert removed board specific code
PATCH 1/1 staging: gs_fpgaboot: revert removed board specific code
gs_fpgaboot is currently useless since the board specific code is removed in 06a3fab941da. Loading the driver will always fail since xl_init_io() always returns -1. This driver is broken since 2014 and I doubt anyone is actually using it, we could either remove it or revert to the previous working version.
$ modprobe gs_fpga GPIO INIT FAIL!!
This patch reverts previously removed code and adds a Kconfig to make this board selectable for PPC_85xx processors.
--- drivers/staging/gs_fpgaboot/Kconfig | 14 ++- drivers/staging/gs_fpgaboot/io.c | 173 ++++++++++++++++++++++++++++ 2 files changed, 186 insertions(+), 1 deletion(-)
drivers/staging/gs_fpgaboot/Kconfig +13 -1
@@ -5,4 +5,16 @@ config GS_FPGABOOT tristate "Xilinx FPGA firmware download module" help - Xilinx FPGA firmware download module + Xilinx FPGA firmware download module. + +choice + prompt "Support Board" + depends on GS_FPGABOOT + +config GS_FPGABOOT_BOARD_B4860G100 + bool "B4860G100" + depends on PPC_85xx + help + Select this to support B4860G100 board + +endchoice
drivers/staging/gs_fpgaboot/io.c +173 -0
192 lines not on this page · raw message
Signature · 1 line
2.25.1
Quoted 6 lines · Tong Zhang
gs_fpgabootis currently useless since the board specific code is removed in06a3fab941da. Loading the driver will always fail sincexl_init_io()always returns -1. This driver is broken since 2014 and I doubt anyone is actually using it, we could either remove it or revert to the previous working version.
Quoted 8 lines
$ modprobe gs_fpga GPIO INIT FAIL!!This patch reverts previously removed code and adds a
Kconfigto make this board selectable forPPC_85xxprocessors.Fixes 06a3fab941da ("staging: gs_fpgaboot: remove checks for CONFIG_B4860G100")Signed-off-by Tong Zhang <[email protected]>
The Fixes tag is not really accurate. The code has never worked. It should be:
I assume you don't really have this hardware and you're just modprobing drivers to as part of testing? If you have this hardware then we can preserve it. Otherwise we should just delete the whole driver. It's been 8 years and no one has noticed that it doesn't probe.
regards,
dan carpenter
Greg Kroah-Hartman
maintainerQuoted 2 lines · Tong Zhang
gs_fpgabootis currently useless since the board specific code is removed in06a3fab941da.
Nit, commits should be printed out like this:06a3fab941da ("staging: gs_fpgaboot: remove checks for CONFIG_B4860G100")
Quoted 4 lines
Loading the driver will always fail since
xl_init_io()always returns -1. This driver is broken since 2014 and I doubt anyone is actually using it, we could either remove it or revert to the previous working version.
Let's just remove it obviously no one is using it.
Or do you want to use it for your hardware? if so, let's fix it for that platform.
Quoted 19 lines
$ modprobe gs_fpga GPIO INIT FAIL!!This patch reverts previously removed code and adds a
Kconfigto make this board selectable forPPC_85xxprocessors.Fixes 06a3fab941da ("staging: gs_fpgaboot: remove checks for CONFIG_B4860G100")Signed-off-by Tong Zhang <[email protected]>--- drivers/staging/gs_fpgaboot/Kconfig | 14 ++- drivers/staging/gs_fpgaboot/io.c | 173 ++++++++++++++++++++++++++++ 2 files changed, 186 insertions(+), 1 deletion(-)drivers/staging/gs_fpgaboot/Kconfig +0
-0
drivers/staging/gs_fpgaboot/Kconfig line 12
Quoted 9 lines
drivers/staging/gs_fpgaboot/Kconfig +5
-1@@ -5,4 +5,16 @@ config GS_FPGABOOT tristate "Xilinx FPGA firmware download module" help - Xilinx FPGA firmware download module + Xilinx FPGA firmware download module. + +choice + prompt "Support Board" + depends on GS_FPGABOOT
That's an odd config option, what will that show? Shouldn't the prompt have something to do with the board name?
Anyway, no new config options please, either lets remove it or fix it for your hardware.
thanks,
greg k-h
Quoted 9 lines · Greg Kroah-Hartman
Quoted 4 lines · Tong Zhang
Loading the driver will always fail since
xl_init_io()always returns -1. This driver is broken since 2014 and I doubt anyone is actually using it, we could either remove it or revert to the previous working version.Let's just remove it obviously no one is using it.
I am on the same page with you folks. We should remove it. I sent out the patch to see if
anyone in the list is still interested in keeping it just in case. I will send another patch to
remove it from the staging folder.
Thanks!
- Tong
PATCH 1/1 staging: drop fpgaboot driver
In reply to Greg Kroah-HartmanThe gs_fpgaboot driver is totally broken since 2014 and no one even noticed the driver is not probing. Given the quality of the driver and its current state it makes sense to drop it.
--- drivers/staging/Kconfig | 2 - drivers/staging/Makefile | 1 - drivers/staging/gs_fpgaboot/Kconfig | 8 - drivers/staging/gs_fpgaboot/Makefile | 3 - drivers/staging/gs_fpgaboot/README | 70 ---- drivers/staging/gs_fpgaboot/TODO | 7 - drivers/staging/gs_fpgaboot/gs_fpgaboot.c | 394 ---------------------- drivers/staging/gs_fpgaboot/gs_fpgaboot.h | 41 --- drivers/staging/gs_fpgaboot/io.c | 105 ------ drivers/staging/gs_fpgaboot/io.h | 73 ---- 10 files changed, 704 deletions(-) delete mode 100644 drivers/staging/gs_fpgaboot/Kconfig delete mode 100644 drivers/staging/gs_fpgaboot/Makefile delete mode 100644 drivers/staging/gs_fpgaboot/README delete mode 100644 drivers/staging/gs_fpgaboot/TODO delete mode 100644 drivers/staging/gs_fpgaboot/gs_fpgaboot.c delete mode 100644 drivers/staging/gs_fpgaboot/gs_fpgaboot.h delete mode 100644 drivers/staging/gs_fpgaboot/io.c delete mode 100644 drivers/staging/gs_fpgaboot/io.h
drivers/staging/Kconfig +0 -2
@@ -66,8 +66,6 @@ source "drivers/staging/gdm724x/Kconfig" source "drivers/staging/fwserial/Kconfig" -source "drivers/staging/gs_fpgaboot/Kconfig" - source "drivers/staging/unisys/Kconfig" source "drivers/staging/clocking-wizard/Kconfig"
drivers/staging/Makefile +0 -1
@@ -23,7 +23,6 @@ obj-$(CONFIG_ANDROID) += android/ obj-$(CONFIG_STAGING_BOARD) += board/ obj-$(CONFIG_LTE_GDM724X) += gdm724x/ obj-$(CONFIG_FIREWIRE_SERIAL) += fwserial/ -obj-$(CONFIG_GS_FPGABOOT) += gs_fpgaboot/ obj-$(CONFIG_UNISYSSPAR) += unisys/ obj-$(CONFIG_COMMON_CLK_XLNX_CLKWZRD) += clocking-wizard/ obj-$(CONFIG_FB_TFT) += fbtft/
drivers/staging/gs_fpgaboot/Kconfig deleted +0 -8
@@ -1,8 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# -# "xilinx FPGA firmware download, fpgaboot" -# -config GS_FPGABOOT - tristate "Xilinx FPGA firmware download module" - help - Xilinx FPGA firmware download module
drivers/staging/gs_fpgaboot/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -gs_fpga-y += gs_fpgaboot.o io.o -obj-$(CONFIG_GS_FPGABOOT) += gs_fpga.o
drivers/staging/gs_fpgaboot/README deleted +0 -70
70 lines not on this page · raw message
drivers/staging/gs_fpgaboot/TODO deleted +0 -7
@@ -1,7 +0,0 @@ -TODO: - - get bus width input instead of hardcoded bus width - - get it reviewed - -Please send any patches for this driver to Insop Song<[email protected]> -and Greg Kroah-Hartman <[email protected]>. -And please CC to "Staging subsystem" mail list <[email protected]> too.
drivers/staging/gs_fpgaboot/gs_fpgaboot.c deleted +0 -394
394 lines not on this page · raw message
drivers/staging/gs_fpgaboot/gs_fpgaboot.h deleted +0 -41
41 lines not on this page · raw message
drivers/staging/gs_fpgaboot/io.c deleted +0 -105
105 lines not on this page · raw message
drivers/staging/gs_fpgaboot/io.h deleted +0 -73
73 lines not on this page · raw message
Signature · 1 line
2.25.1
Greg Kroah-Hartman
maintainerRe: [PATCH] staging: drop fpgaboot driver
Quoted 5 lines · Tong Zhang
The
gs_fpgabootdriver is totally broken since 2014 and no one even noticed the driver is not probing. Given the quality of the driver and its current state it makes sense to drop it.Signed-off-by Tong Zhang <[email protected]>
Thanks, now dropped!