1. 18 12月, 2015 7 次提交
  2. 27 8月, 2015 1 次提交
  3. 28 5月, 2015 1 次提交
    • L
      kernel/params: constify struct kernel_param_ops uses · 9c27847d
      Luis R. Rodriguez 提交于
      Most code already uses consts for the struct kernel_param_ops,
      sweep the kernel for the last offending stragglers. Other than
      include/linux/moduleparam.h and kernel/params.c all other changes
      were generated with the following Coccinelle SmPL patch. Merge
      conflicts between trees can be handled with Coccinelle.
      
      In the future git could get Coccinelle merge support to deal with
      patch --> fail --> grammar --> Coccinelle --> new patch conflicts
      automatically for us on patches where the grammar is available and
      the patch is of high confidence. Consider this a feature request.
      
      Test compiled on x86_64 against:
      
      	* allnoconfig
      	* allmodconfig
      	* allyesconfig
      
      @ const_found @
      identifier ops;
      @@
      
      const struct kernel_param_ops ops = {
      };
      
      @ const_not_found depends on !const_found @
      identifier ops;
      @@
      
      -struct kernel_param_ops ops = {
      +const struct kernel_param_ops ops = {
      };
      
      Generated-by: Coccinelle SmPL
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Junio C Hamano <gitster@pobox.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: cocci@systeme.lip6.fr
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NLuis R. Rodriguez <mcgrof@suse.com>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      9c27847d
  4. 27 5月, 2015 1 次提交
  5. 15 4月, 2015 1 次提交
    • T
      Input: add vmmouse driver · 8b8be51b
      Thomas Hellstrom 提交于
      VMMouse enables low-latency mouse-cursor-movements for VMWare and QEMU
      guests.  By removing the guest cursor and using the host as a guest cursor
      the cursor movement appears instant although in reality there is some lag.
      To be able to do this, the host's view of the cursor position must exactly
      match the guest's view and an absolute pointer device is needed. Enter the
      VMMouse. While the VMMouse driver has historically been an Xorg user-space
      driver, implementing it as a kernel imput driver enables rootless Xorg and
      new compositing display servers for VMware guests.
      Signed-off-by: NThomas Hellstrom <thellstrom@vmware.com>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      8b8be51b
  6. 08 3月, 2015 1 次提交
  7. 07 3月, 2015 1 次提交
  8. 16 2月, 2015 1 次提交
  9. 30 12月, 2014 1 次提交
  10. 29 10月, 2014 1 次提交
  11. 16 9月, 2014 1 次提交
  12. 13 9月, 2014 1 次提交
  13. 09 9月, 2014 1 次提交
  14. 17 1月, 2013 1 次提交
  15. 24 2月, 2012 1 次提交
  16. 13 1月, 2012 1 次提交
  17. 31 12月, 2011 1 次提交
  18. 10 11月, 2011 2 次提交
    • D
      Input: synaptics - add support for Relative mode · 7968a5dd
      Daniel Drake 提交于
      Currently, the synaptics driver puts the device into Absolute mode.
      As explained in the synaptics documentation section 3.2, in this mode,
      the device sends a continuous stream of packets at the maximum rate
      to the host when the user's fingers are near or on the pad or
      pressing buttons, and continues streaming for 1 second afterwards.
      These packets are even sent when there is no new information to report,
      even when they are duplicates of the previous packet.
      
      For embedded systems this is a bit much - it results in a huge
      and uninterrupted stream of interrupts at high rate.
      
      This patch adds support for Relative mode, which can be selected as
      a new psmouse protocol. In this mode, the device does not send duplicate
      packets and acts like a standard PS/2 mouse. However, synaptics-specific
      functionality is still available, such as the ability to set the packet
      rate, and rather than disabling gestures and taps at the hardware level
      unconditionally, a 'synaptics_disable_gesture' sysfs attribute has
      been added to allow control of this functionality.
      
      This solves a long standing OLPC issue: synaptics hardware enables
      tap to click by default (even in the default relative mode), but we
      have found this to be inappropriate for young children and first
      time computer users. Enabling the synaptics driver disables tap-to-click,
      but we have previously been unable to use this because it also enables
      Absolute mode, which is too "spammy" for our desires and actually
      overloads our EC with its continuous stream of packets. Now we can enable
      the synaptics driver, disabling tap to click while retaining the less
      noisy Relative mode.
      Signed-off-by: NDaniel Drake <dsd@laptop.org>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      7968a5dd
    • J
      Input: convert obsolete strict_strtox to kstrtox · 76496e7a
      JJ Ding 提交于
      With commit 67d0a075 we mark strict_strtox
      as obsolete. Convert all remaining such uses in drivers/input/.
      
      Also change long to appropriate types, and return error conditions
      from kstrtox separately, as Dmitry sugguests.
      Signed-off-by: NJJ Ding <dgdunix@gmail.com>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      76496e7a
  19. 11 10月, 2011 1 次提交
  20. 12 11月, 2010 1 次提交
    • D
      Input: hgpk - support GlideSensor and PenTablet modes · ca94ec43
      Daniel Drake 提交于
      Add a "hgpk_mode" sysfs attribute that allows selection between 3 options:
      Mouse (the existing option), GlideSensor and PenTablet.
      
      GlideSensor is an enhanced protocol for the regular touchpad mode that
      additionally reports pressure and uses absolute coordinates. We suspect
      that it may be more reliable than mouse mode in some environments.
      
      PenTablet mode puts the touchpad into resistive mode, you must then use
      a stylus as an input. We suspect this is the most reliable way to drive
      the touchpad.
      
      The GlideSensor and PenTablet devices expose themselves with the
      intention of being combined with the synaptics X11 input driver.
      
      Based on earlier work by Paul Fox.
      Signed-off-by: NDaniel Drake <dsd@laptop.org>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      ca94ec43
  21. 13 10月, 2010 1 次提交
  22. 11 8月, 2010 1 次提交
    • R
      param: use ops in struct kernel_param, rather than get and set fns directly · 9bbb9e5a
      Rusty Russell 提交于
      This is more kernel-ish, saves some space, and also allows us to
      expand the ops without breaking all the callers who are happy for the
      new members to be NULL.
      
      The few places which defined their own param types are changed to the
      new scheme (more which crept in recently fixed in following patches).
      
      Since we're touching them anyway, we change get() and set() to take a
      const struct kernel_param (which they really are).  This causes some
      harmless warnings until we fix them (in following patches).
      
      To reduce churn, module_param_call creates the ops struct so the callers
      don't have to change (and casts the functions to reduce warnings).
      The modern version which takes an ops struct is called module_param_cb.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      Reviewed-by: NTakashi Iwai <tiwai@suse.de>
      Tested-by: NPhil Carmody <ext-phil.2.carmody@nokia.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Ville Syrjala <syrjala@sci.fi>
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: Alessandro Rubini <rubini@ipvvis.unipv.it>
      Cc: Michal Januszewski <spock@gentoo.org>
      Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
      Cc: "J. Bruce Fields" <bfields@fieldses.org>
      Cc: Neil Brown <neilb@suse.de>
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-input@vger.kernel.org
      Cc: linux-fbdev-devel@lists.sourceforge.net
      Cc: linux-nfs@vger.kernel.org
      Cc: netdev@vger.kernel.org
      9bbb9e5a
  23. 20 5月, 2010 1 次提交
  24. 13 5月, 2010 1 次提交
    • D
      Input: psmouse - reset all types of mice before reconnecting · ef110b24
      Dmitry Torokhov 提交于
      Synaptics hardware requires resetting device after suspend to ram
      in order for the device to be operational. The reset lives in
      synaptics-specific reconnect handler, but it is not being invoked
      if synaptics support is disabled and the device is handled as a
      standard PS/2 device (bare or IntelliMouse protocol).
      
      Let's add reset into generic reconnect handler as well.
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      ef110b24
  25. 19 4月, 2010 1 次提交
  26. 08 2月, 2010 1 次提交
  27. 13 1月, 2010 1 次提交
  28. 07 1月, 2010 1 次提交
    • D
      Input: psmouse - fix Synaptics detection when protocol is disabled · e4e6efd2
      Daniel Drake 提交于
      For configurations where Synaptics hardware is present but the Synaptics
      extensions support is not compiled in, the mouse is reprobed and a new
      device is allocated on every suspend/resume.
      
      During probe, psmouse_switch_protocol() calls psmouse_extensions() with
      set_properties=1. This calls the dummy synaptics_init() which returns an
      error code, instructing us not to use the synaptics extensions.
      
      During resume, psmouse_reconnect() calls psmouse_extensions() with
      set_properties=0, in which case call to synaptics_init() is bypassed and
      PSMOUSE_SYNAPTICS is returned. Since the result is different from previous
      attempt psmouse_reconnect() fails and full re-probe happens.
      
      Fix this by tweaking the set_properties=0 codepath in psmouse_extensions()
      to be more careful about offering PSMOUSE_SYNAPTICS extensions.
      Signed-off-by: NDaniel Drake <dsd@laptop.org>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      e4e6efd2
  29. 06 1月, 2010 1 次提交
    • E
      Input: serio - fix potential deadlock when unbinding drivers · 59b01513
      Eric W. Biederman 提交于
      sysfs_remove_group() waits for sysfs attributes to be removed, therefore
      we do not need to worry about driver-specific attributes being accessed
      after driver has been detached from the device. In fact, attempts to take
      serio->drv_mutex in attribute methods may lead to the following deadlock:
      
                                                sysfs_read_file()
                                                  fill_read_buffer()
                                                    sysfs_get_active_two()
                                                      psmouse_attr_show_helper()
                                                        serio_pin_driver()
      serio_disconnect_driver()
        mutex_lock(&serio->drv_mutex);
                                      <-------->        mutex_lock(&serio_drv_mutex);
          psmouse_disconnect()
            sysfs_remove_group(... psmouse_attr_group);
              ....
              sysfs_deactivate();
                wait_for_completion();
      
      Fix this by removing calls to serio_[un]pin_driver() and functions themselves
      and using driver-private mutexes to serialize access to attribute's set()
      methods that may change device state.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      59b01513
  30. 25 12月, 2009 1 次提交
  31. 04 12月, 2009 1 次提交
  32. 20 11月, 2009 1 次提交
  33. 17 11月, 2009 1 次提交