UPSTREAM: rmi4update: Optimize writing firmware blocks

Most HID devices allow appending the reflash command to the end of the firmware
block. This avoids sending a second report with the just the command. Also, after
the block is written HID devices send an attention report. Only read the F34 control
registers if waiting for that attention report times out.

Signed-off-by: Benson Leung <bleung@google.com>

Bug: 24809436

(cherry picked from commit 76743e425429076626df483691ce7abe563abd81)

Change-Id: I0a3276d77605843cbb6ddec221320a6048d7b925
2 files changed