Hi, On Mon, Nov 20, 2023 at 11:33 AM Hans de Goede <hdegoede@xxxxxxxxxx> wrote: > > Split i2c_hid_hwreset() into: > > i2c_hid_start_hwreset() which sends the PWR_ON and reset commands; and > i2c_hid_finish_hwreset() which actually waits for the reset to complete. > > This is a preparation patch for removing the need for > I2C_HID_QUIRK_NO_IRQ_AFTER_RESET by making i2c-hid behave > more like Windows. > > No functional changes intended. > > Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx> > --- > Changes in v2: > -Move the mutex_[un]lock(&ihid->reset_lock) calls from > i2c_hid_start_hwreset() / i2c_hid_finish_hwreset() to the callers > to make the locking more clear > --- > drivers/hid/i2c-hid/i2c-hid-core.c | 38 ++++++++++++++++++++++-------- > 1 file changed, 28 insertions(+), 10 deletions(-) Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>