serprog: clear NDELAY flag only once after opening the port
Change sp_openserport() to directly clear the O_NONBLOCK flag that is potentially set by opening the device with O_NDELAY instead of clearing ALL flags in serialport_config() unconditionally. Corresponding to flashrom svn r1905. Signed-off-by:Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by:
Urja Rannikko <urjaman@gmail.com>
Showing
Please register or sign in to comment