lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 23 Jul 2017 12:54:40 +0300
From:   Andy Shevchenko <andy.shevchenko@...il.com>
To:     Lyude <lyude@...hat.com>
Cc:     linux-input <linux-input@...r.kernel.org>,
        Andrew Duggan <aduggan@...aptics.com>, stable@...r.kernel.org,
        Jiri Kosina <jikos@...nel.org>,
        Benjamin Tissoires <benjamin.tissoires@...hat.com>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] HID: rmi: Make sure the HID device is opened on resume

On Sun, Jul 23, 2017 at 4:15 AM, Lyude <lyude@...hat.com> wrote:

> So, call hid_hw_open() in rmi_post_resume() so we make sure that the
> device is alive before we try talking to it.
>
> This fixes RMI device suspend/resume over HID.

> -       int ret;
> +       int ret = 0;

What's the point?

>
>         if (!(data->device_flags & RMI_DEVICE))
>                 return 0;
>
> -       ret = rmi_reset_attn_mode(hdev);
> +       /* Make sure the HID device is ready to receive events */
> +       ret = hid_hw_open(hdev);
>         if (ret)
>                 return ret;

-- 
With Best Regards,
Andy Shevchenko

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ