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

From: Pavel Machek
Date: Fri Jul 24 2015 - 04:18:39 EST


Hi!

> +What: /sys/class/fpga_manager/<fpga>/state
> +Date: July 2015
> +KernelVersion: 4.2
> +Contact: Alan Tull <atull@xxxxxxxxxxxxxxxxxxxxx>
> +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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/