eliminate excessive journal errors
When the USB gadget is shut down, the application needs to avoid writes
to it in order to avoid lots of errors in the kernel log. Close the file
handle and re-open it when timings are detected again. Also, prevent
logging the failed timings query more than once.
Change-Id: Ic126828fe26ef44ebb0a5cb65cc47b23bb84f7f3
Signed-off-by: Eddie James <eajames@linux.ibm.com>
diff --git a/ikvm_input.hpp b/ikvm_input.hpp
index 394591c..99170ba 100644
--- a/ikvm_input.hpp
+++ b/ikvm_input.hpp
@@ -48,6 +48,8 @@
*/
static void pointerEvent(int buttonMask, int x, int y, rfbClientPtr cl);
+ /* @brief Re-opens USB device in case the endpoint shutdown */
+ void restart();
/* @brief Sends a wakeup data packet to the USB input device */
void sendWakeupPacket();
/* @brief Sends an HID report to the USB input device */