Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1621069

Re: [PATCH v2 2/2] xen,input: repair xen-kbdfront resolution setting via xenstore

From Juergen Gross <jgross@suse.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 2/2] xen,input: repair xen-kbdfront resolution setting via xenstore
Date 2017-04-11 11:20 +0200
Message-ID <tv07V-50R-43@gated-at.bofh.it> (permalink)
References <tuZOy-4F4-9@gated-at.bofh.it> <tuZOz-4F4-31@gated-at.bofh.it> <tuZYe-4Xn-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 11/04/17 11:00, Oleksandr Andrushchenko wrote:
> Hi, Juergen,
> 
> could you please make one more patch in the series:
> 
> the code that you fix in this patch is ok, but most
> 
> of the functionality of the xenkbd_set_connected
> 
> is still useless: feature-abs-pointer/request-abs-pointer
> 
> negotiation has only meaning at probe time, when we are
> 
> configuring input device:
> 
>     if (abs) {
>         __set_bit(EV_ABS, ptr->evbit);
>         input_set_abs_params(ptr, ABS_X, 0, XENFB_WIDTH, 0, 0);
>         input_set_abs_params(ptr, ABS_Y, 0, XENFB_HEIGHT, 0, 0);
>     } else {
>         input_set_capability(ptr, EV_REL, REL_X);
>         input_set_capability(ptr, EV_REL, REL_Y);
>     }
> Once the input device is configured and registered (probe done)
> 
> we do not touch/re-configure that input device anymore,
> 
> regardless of the setting negotiation at xenkbd_set_connected
> 
> time. Thus, this code is not needed and can be cleaned out.
> 
> What your patch actually fixes is the fact that
> 
> "xenbus_switch_state(dev, XenbusStateConnected);" was not called,
> 
> so this is the only line needed.

This makes sense.

I'll modify patch2 according to your suggestion instead of adding
another patch removing most of the stuff added by patch 2.


Juergen

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] xen,input: xen-kbdfront pointing device resolution support Juergen Gross <jgross@suse.com> - 2017-04-11 11:00 +0200
  [PATCH v2 2/2] xen,input: repair xen-kbdfront resolution setting via xenstore Juergen Gross <jgross@suse.com> - 2017-04-11 11:00 +0200
    Re: [PATCH v2 2/2] xen,input: repair xen-kbdfront resolution setting  via xenstore Oleksandr Andrushchenko <andr2000@gmail.com> - 2017-04-11 11:10 +0200
      Re: [PATCH v2 2/2] xen,input: repair xen-kbdfront resolution setting  via xenstore Juergen Gross <jgross@suse.com> - 2017-04-11 11:20 +0200

csiph-web