From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org, Juergen Beisert <jbe@pengutronix.de>
Subject: Re: [PATCH 2/4] Firmware: provide a handler to program Altera FPGAs
Date: Wed, 13 Nov 2013 14:36:33 +0100 [thread overview]
Message-ID: <20131113133633.GC7965@ns203013.ovh.net> (raw)
In-Reply-To: <20131113102300.GR24559@pengutronix.de>
On 11:23 Wed 13 Nov , Sascha Hauer wrote:
> On Tue, Nov 12, 2013 at 05:03:59PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > > + if (ret != 0) {
> > > + dev_err(dev, "FPGA does not acknowledge the programming initiation\n");
> > > + if (gpio_get_value(this->nstat_gpio))
> > > + dev_err(dev, "STATUS is still high!\n");
> > > + if (gpio_get_value(this->confd_gpio))
> > > + dev_err(dev, "CONFIG DONE is still high!\n");
> > > + return ret;
> > > + }
> > > +
> > > + /* arm the FPGA to await its new firmware */
> > > + gpio_set_value(this->nconfig_gpio, 1);
> > no one check the return of gpio_set but we need to
> >
> > on a i2c-gpio it might fail
>
> I don't think that's necessary here. If setting gpios fails the firmware
> programming will fail later anyway.
except when you debug and want to known why and where it fail
Best Regards,
J.
>
> Sascha
>
> --
> Pengutronix e.K. | |
> Industrial Linux Solutions | http://www.pengutronix.de/ |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2013-11-13 13:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-12 14:31 Sascha Hauer
2013-11-12 14:31 ` [PATCH 1/4] Add a Firmware programming framework Sascha Hauer
2013-11-12 14:31 ` [PATCH 2/4] Firmware: provide a handler to program Altera FPGAs Sascha Hauer
2013-11-12 14:46 ` Jürgen Beisert
2013-11-12 16:03 ` Jean-Christophe PLAGNIOL-VILLARD
2013-11-13 10:23 ` Sascha Hauer
2013-11-13 13:36 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2013-11-12 14:31 ` [PATCH 3/4] DT: Add binding for Altera FPGAs in passive-serial mode Sascha Hauer
2013-11-12 14:51 ` Jürgen Beisert
2013-11-12 16:21 ` Kumar Gala
2013-11-12 22:02 ` Sascha Hauer
2013-11-12 14:31 ` [PATCH 4/4] Firmware: socfpga: Add SoCFPGA FPGA program support Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131113133633.GC7965@ns203013.ovh.net \
--to=plagnioj@jcrosoft.com \
--cc=barebox@lists.infradead.org \
--cc=jbe@pengutronix.de \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox