Re: [PATCH v9 4/7] staging: fpga manager: add sysfs interface document

Pavel Machek
2015-07-24T08:18:29Z

Hi!

> +What: /sys/class/fpga_manager/<fpga>/state
> +Date: July 2015
> +KernelVersion: 4.2
> +Contact: Alan Tull <atull@opensource.altera.com>
> +Description: Read fpga manager state as a string.

fpga->FPGA.

> + Valid states may vary by manufacturer; superset is:
> + * unknown = can't determine state
> + * power off = FPGA power is off
> + * power up = FPGA reports power is up
> + * reset = FPGA held in reset state
> + * firmware request = firmware class request in progress
> + * firmware request error = firmware request failed
> + * write init = FPGA being prepared for programming
> + * write init error = Error while preparing FPGA for
> + programming
> + * write = FPGA ready to receive image data
> + * write error = Error while programming
> + * write complete = Doing post programming steps
> + * write complete error = Error while doing post programming
> + * operating = FPGA is programmed and operating

This will need some more details. "firmware request" is hardly a
hardware state, does it belong here? Is power off or on while firmware
is being requested? How does the fpga get into power up phase?
Normally, you'd only power it on to do something more with it...?

Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html