Re: [PATCH 02/10] input: iqs5xx: Preserve bootloader errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 18, 2021 at 02:43:38PM -0600, Jeff LaBundy wrote:
> After user space writes the fw_file attribute to push new firmware
> to the device, the driver calls iqs5xx_dev_init() to re-initialize
> the device with the updated firmware or recover the device in case
> the update failed.
> 
> In the case of the latter, however, iqs5xx_fw_file_write() returns
> zero (success) so long as iqs5xx_dev_init() does not fail, and any
> error encountered during the update process is lost. Solve this by
> saving the error before calling iqs5xx_dev_init().
> 
> Signed-off-by: Jeff LaBundy <jeff@xxxxxxxxxxx>

Applied, thank you.

-- 
Dmitry



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux