[PATCH openEuler-5.10 53/97] fpga: machxo2-spi: Return an error on failure