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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAAzPG9NRkdExq39ZRE8VjjrZoV_otJnAbUrAm__gRVkNT-z4Fg@mail.gmail.com>
Date:   Thu, 12 Oct 2023 17:33:23 -0500
From:   Jeffery Miller <jefferymiller@...gle.com>
To:     Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc:     linux-kernel@...r.kernel.org, linux-input@...r.kernel.org,
        Andrew Duggan <andrew@...gan.us>,
        Andrew Duggan <aduggan@...aptics.com>, loic.poulain@...aro.org,
        linux@...mhuis.info, benjamin.tissoires@...hat.com
Subject: Re: [PATCH v2] Input: psmouse - fix fast_reconnect function for PS/2 mode

On Wed, Oct 4, 2023 at 7:23 PM Jeffery Miller <jefferymiller@...gle.com> wrote:
>
>  drivers/input/mouse/elantech.c  | 1 +
>  drivers/input/mouse/synaptics.c | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c
> index 2118b2075f43..4e38229404b4 100644
> --- a/drivers/input/mouse/elantech.c
> +++ b/drivers/input/mouse/elantech.c
> @@ -2114,6 +2114,7 @@ static int elantech_setup_ps2(struct psmouse *psmouse,
>         psmouse->protocol_handler = elantech_process_byte;
>         psmouse->disconnect = elantech_disconnect;
>         psmouse->reconnect = elantech_reconnect;
> +       psmouse->fast_reconnect = NULL;
>         psmouse->pktsize = info->hw_version > 1 ? 6 : 4;
>
>         return 0;
> diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
> index ada299ec5bba..cefc74b3b34b 100644
> --- a/drivers/input/mouse/synaptics.c
> +++ b/drivers/input/mouse/synaptics.c
> @@ -1623,6 +1623,7 @@ static int synaptics_init_ps2(struct psmouse *psmouse,
>         psmouse->set_rate = synaptics_set_rate;
>         psmouse->disconnect = synaptics_disconnect;
>         psmouse->reconnect = synaptics_reconnect;
> +       psmouse->fast_reconnect = NULL;
>         psmouse->cleanup = synaptics_reset;
>         /* Synaptics can usually stay in sync without extra help */
>         psmouse->resync_time = 0;
> --
> 2.42.0.582.g8ccd20d70d-goog
>

This fast_reconnect function pointer being left over has been here since commit
8eb92e5c9133 ("Input: psmouse - add support for SMBus companions")

It is only recently noticed due to 92e24e0e57f7 ("Input: psmouse - add
delay when deactivating for SMBus mode") which is in the v6.6 rc
branches.

Shouldn't it be OK to merge regardless of a future refactor of
8eb92e5c9133 ("Input: psmouse - add support for SMBus companions")
as described in https://lore.kernel.org/all/ZR1yUFJ8a9Zt606N@penguin/?

This is a v2 from the previous submission at
https://lore.kernel.org/all/20231004005729.3943515-1-jefferymiller@google.com/

Thanks,
Jeff

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ