From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Fri, 8 Jun 2018 13:59:33 -0800 Subject: [U-Boot] [PATCH] cmd: fpga: Remove fit image support passed without fpga device In-Reply-To: <8645ddd562d6778c45e5f9928e71c71ebab70762.1528202842.git.michal.simek@xilinx.com> References: <8645ddd562d6778c45e5f9928e71c71ebab70762.1528202842.git.michal.simek@xilinx.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de +Tom Hi, On 5 June 2018 at 04:47, Michal Simek wrote: > The patch applied in 2010 > "cmd_fpga: cleanup help and check parameters" > (sha1: a790b5b2326be9d7c9ad9e3d9b51a8bfabc62d07" > was adding this checking > > + if (dev == FPGA_INVALID_DEVICE) { > + puts("FPGA device not specified\n"); > + op = FPGA_NONE; > + } > > which simply broke one command flow which was > setenv fpga > fpga loadmk // legacy image > fpga loadmk : //fit image > > Also this sequence for FIT image is completely broken > setenv fpga > setenv fpgadata : > fpga loadmk > (Note: For legacy images this is working fine). > > even from code I don't think this has ever worked properly > for fit image (dev = FPGA_INVALID_DEVICE should be rejected > by fpga core). Fit image support was in 2008 added by: > "[new uImage] Add new uImage fromat support to fpga command" > (sha1: c28c4d193dbfb20b2dd3a5447640fd6de7fd0720) > > Just a summary of these facts that none found this for pretty long time > it shouldn't be a problem to remove this flow (without fpga dev) > completely to simplify the code. > > Signed-off-by: Michal Simek > --- > > I am rewriting cmd/fpga.c file to use u-boot subcommand and I found > that these flow are not working. > --- > cmd/fpga.c | 25 ------------------------- > 1 file changed, 25 deletions(-) Seems like we could use a sandbox test here. Regards, Simon