Re: [PATCH] staging: gs_fpgaboot: revert removed board specific code

From: Greg Kroah-Hartman
Date: Fri Feb 04 2022 - 09:23:42 EST


On Thu, Feb 03, 2022 at 09:40:27PM -0800, Tong Zhang wrote:
> gs_fpgaboot is currently useless since the board specific code is
> removed in 06a3fab941da.

Nit, commits should be printed out like this:
06a3fab941da ("staging: gs_fpgaboot: remove checks for CONFIG_B4860G100")

> 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.

>
> $ 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.
>
> Fixes: 06a3fab941da ("staging: gs_fpgaboot: remove checks for CONFIG_B4860G100")
> Signed-off-by: Tong Zhang <ztong0001@xxxxxxxxx>
> ---
> drivers/staging/gs_fpgaboot/Kconfig | 14 ++-
> drivers/staging/gs_fpgaboot/io.c | 173 ++++++++++++++++++++++++++++
> 2 files changed, 186 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/staging/gs_fpgaboot/Kconfig b/drivers/staging/gs_fpgaboot/Kconfig
> index 968a153c4ab6..0b4144450123 100644
> --- a/drivers/staging/gs_fpgaboot/Kconfig
> +++ b/drivers/staging/gs_fpgaboot/Kconfig
> @@ -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