Re: [PATCH] staging: gs_fpgaboot: revert removed board specific code
From: Dan Carpenter
Date: Fri Feb 04 2022 - 03:52:35 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. 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.
>
> Fixes: 06a3fab941da ("staging: gs_fpgaboot: remove checks for CONFIG_B4860G100")
> Signed-off-by: Tong Zhang <ztong0001@xxxxxxxxx>
The Fixes tag is not really accurate. The code has never worked. It
should be:
Fixes: e7185c6958ee ("staging: fpgaboot: Xilinx FPGA firmware download driver")
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