From: Reinhard Pfau Date: Thu, 02 Jun 2016 16:05:17 +0200 Subject: [U-Boot] =?utf-8?q?=5BPATCH=5D_gdsys=3A_Drop_print=5Ffpga=5Fstate?= =?utf-8?q?_function?= In-Reply-To: <1452726743-4473-1-git-send-email-trini@konsulko.com> References: <1452726743-4473-1-git-send-email-trini@konsulko.com> Message-ID: <0af8e0fba4ccdb16385ee05887f4dee5@gdsys.cc> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Tom, I think, Dirk had missed this message. Sorry for a late reply. Inlining the func is basically OK. But could you please make a little change at the inlined code (see below)? Beside this: Acked-by: Reinhard Pfau Greetings, Reinhard. On 2016-01-14 00:12, Tom Rini wrote: [...] > diff --git a/board/gdsys/405ep/dlvision-10g.c > b/board/gdsys/405ep/dlvision-10g.c > index 54c7eb3..def4f9c 100644 > --- a/board/gdsys/405ep/dlvision-10g.c > +++ b/board/gdsys/405ep/dlvision-10g.c > @@ -109,7 +109,10 @@ static void print_fpga_info(unsigned dev) > && !((hardware_version == HWVER_101) > && (fpga_state == FPGA_STATE_DONE_FAILED))) { > puts("not available\n"); > - print_fpga_state(dev); > + if (gd->arch.fpga_state[dev] & FPGA_STATE_DONE_FAILED) > + puts(" Waiting for FPGA-DONE timed out.\n"); > + if (gd->arch.fpga_state[dev] & FPGA_STATE_REFLECTION_FAILED) > + puts(" FPGA reflection test failed.\n"); At this point the FPGA state is already available in the local var "fpga_state". So please replace "gd->arch.fpga_state[dev]" with just "fpga_state". > return; > } > [...]