On Wed, Apr 15, 2020 at 12:24:12AM +0000, Rudolf Streif wrote: > Resubmit. Thank you. Better re-send with "git send-email" as new message. As reply in an existing thread it gets lost easily. > ________________________________ > From: Virtualization <virtualization-bounces@xxxxxxxxxxxxxxxxxxxxxxxxxx> on behalf of Rudolf Streif <rstreif@xxxxxxxxxxxxxx> > Sent: Thursday, January 2, 2020 11:12 AM > To: kraxel@xxxxxxxxxx > Cc: virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx > Subject: [PATCH] virtio_input: Initialize multi-touch slots on ABS_MT_SLOT > > > For multi-touch devices the frontend needs to initialize the correct > number of slots for touch tracking. Hardware drivers do this by > calling input_mt_init_slots() on initialization. For virtio_input > the function must be called when the backend sends ABS_MT_SLOT. > > Signed-off-by: Rudolf J Streif <rstreif@xxxxxxxxxxxxxx> > --- > drivers/virtio/virtio_input.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/virtio/virtio_input.c b/drivers/virtio/virtio_input.c > index 5ae529671b3d..582ba808b955 100644 > --- a/drivers/virtio/virtio_input.c > +++ b/drivers/virtio/virtio_input.c > @@ -3,6 +3,7 @@ > #include <linux/virtio.h> > #include <linux/virtio_config.h> > #include <linux/input.h> > +#include <linux/input/mt.h> > > #include <uapi/linux/virtio_ids.h> > #include <uapi/linux/virtio_input.h> > @@ -164,6 +165,9 @@ static void virtinput_cfg_abs(struct virtio_input *vi, int abs) > virtio_cread(vi->vdev, struct virtio_input_config, u.abs.flat, &fl); > input_set_abs_params(vi->idev, abs, mi, ma, fu, fl); > input_abs_set_res(vi->idev, abs, re); > + > + if (abs == ABS_MT_SLOT) > + input_mt_init_slots(vi->idev, ma + 1, INPUT_MT_DIRECT | INPUT_MT_DROP_UNUSED); Reviewed-by: Gerd Hoffmann <kraxel@xxxxxxxxxx> mst, can you pick it up? thanks, Gerd _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization