• Rafael J. Wysocki's avatar
    input: i8042: Avoid resetting controller on system suspend/resume · 1c5dd134
    Rafael J. Wysocki authored
    If the upcoming system suspend is not going to be handled by the
    platform firmware, like in the suspend-to-idle case, it is not
    necessary to reset the controller in i8042_pm_suspend(), so avoid
    doing that.
    
    Moreover, if the system resume currently in progress has not been
    started by the platform firmware, like in the suspend-to-idle case,
    i8042_controller_resume() need not be called by i8042_pm_resume(),
    so avoid doing that too in that case.
    
    Additionally, try to catch the event that woke up the system by
    calling the interrupt handler early during system resume if it has
    not been started by the platform firmware.
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Acked-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
    1c5dd134
i8042.c 36.1 KB