lkml.org 
[lkml]   [2005]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 24/24] Synaptics - fix setting packet size on passthrough port
    From: Sergey Vlasov <vsu@altlinux.ru>

    Input: synaptics - fix setting packet size on passthrough port.

    Synaptics driver used child->type to select either 3-byte or 4-byte
    packet size for the pass-through port; this gives wrong results for
    the newer protocols. Change the check to use child->pktsize instead.

    Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
    Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
    ---

    drivers/input/mouse/synaptics.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    Index: work/drivers/input/mouse/synaptics.c
    ===================================================================
    --- work.orig/drivers/input/mouse/synaptics.c
    +++ work/drivers/input/mouse/synaptics.c
    @@ -219,7 +219,7 @@ static void synaptics_pass_pt_packet(str
    serio_interrupt(ptport, packet[1], 0, NULL);
    serio_interrupt(ptport, packet[4], 0, NULL);
    serio_interrupt(ptport, packet[5], 0, NULL);
    - if (child->type >= PSMOUSE_GENPS)
    + if (child->pktsize == 4)
    serio_interrupt(ptport, packet[2], 0, NULL);
    } else
    serio_interrupt(ptport, packet[1], 0, NULL);
    @@ -233,7 +233,7 @@ static void synaptics_pt_activate(struct

    /* adjust the touchpad to child's choice of protocol */
    if (child) {
    - if (child->type >= PSMOUSE_GENPS)
    + if (child->pktsize == 4)
    priv->mode |= SYN_BIT_FOUR_BYTE_CLIENT;
    else
    priv->mode &= ~SYN_BIT_FOUR_BYTE_CLIENT;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-07-25 09:21    [W:2.560 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site