1. 06 10月, 2009 1 次提交
  2. 18 9月, 2009 1 次提交
    • D
      Input: libps2 - additional locking for i8042 ports · 181d683d
      Dmitry Torokhov 提交于
      The serio ports on i8042 are not completely isolated; while we provide
      enough locking to ensure proper serialization when accessing control
      and data registers AUX and KBD ports can still have an effect on each
      other on PS/2 protocol level. The most prominent effect is that
      issuing a command for the device connected to one port may cause
      abort of the command currently executing by the device connected to
      another port.
      
      Since i8042 nor serio subsystem are not aware of the details of the
      PS/2 protocol (length of the commands and their replies and so on) the
      locking should be done on libps2 level by adding special handling when
      we see that we are dealing with serio port on i8042.
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      181d683d
  3. 11 9月, 2009 4 次提交
    • D
      Input: i8042 - use platform_driver_probe · f8113416
      Dmitry Torokhov 提交于
      i8042 is not hot-pluggable and we create the device when we register
      the driver, so let's save some memory by using platform_device_probe
      and using __init instead of __devinit.
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      f8113416
    • D
      386b3849
    • D
      Input: i8042 - try disabling and re-enabling AUX port at close · 5ddbc77c
      Dmitry Torokhov 提交于
      Ever since we switched from having a polling timer to registering IRQ
      handlers for both keyboard and AUX ports at the driver registration
      time, on certain boxes probing for a mouse results in keyboard
      stopping working. The only real difference between old and new way is
      that before we disabled ports after unsuccessful probe whereas now we
      leave them as is. Try to emulate the old behavior by disabling and
      immediately re-enabling AUX and KBD ports when corresponding serio
      port is being closed.
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      5ddbc77c
    • D
      Input: i8042 - bypass AUX IRQ delivery test on laptops · 1c7827ae
      Dmitry Torokhov 提交于
      It seems that many laptops do not fully implement AUX LOOP command in
      their keyboard controllers, causing issues with touchpad detection.
      We know however that almost every laptop/portable uses a PS/2 pointing
      device and, even if user disables it in favor of an external mouse,
      the system will not use IRQ 12 for anything else. Therefore we may
      bypass AUX IRQ delivery test when running on a laptop and assume that
      it is routed properly.
      
      Just to be safe we require the box to have good PNP data in order to
      bypass the test.
      
      [Jin Dongming <jin.dongming@np.css.fujitsu.com>: fix crash caused
       by missing terminator in the DMI table]
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      1c7827ae
  4. 26 8月, 2009 1 次提交
  5. 20 8月, 2009 1 次提交
  6. 05 8月, 2009 1 次提交
  7. 02 8月, 2009 1 次提交
  8. 27 7月, 2009 2 次提交
  9. 08 7月, 2009 2 次提交
  10. 29 6月, 2009 1 次提交
  11. 11 6月, 2009 1 次提交
    • L
      [ARM] 5544/1: Trust PrimeCell resource sizes · dc890c2d
      Linus Walleij 提交于
      I found the PrimeCell/AMBA Bus drivers distrusting the resource
      passed in as part of the struct amba_device abstraction. This
      patch removes all hard coded resource sizes found in the PrimeCell
      drivers and move the responsibility of this definition back to
      the platform/board device definition, which already exist and
      appear to be correct for all in-tree users of these drivers.
      We do this using the resource_size() inline function which was
      also replicated in the only driver using the resource size, so
      that has been changed too. The KMI_SIZE was left in kmi.h in case
      someone likes it. Test-compiled against Versatile and Integrator
      defconfigs, seems to work but I don't posess these boards and
      cannot test them.
      Signed-off-by: NLinus Walleij <linus.walleij@stericsson.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      dc890c2d
  12. 29 5月, 2009 1 次提交
  13. 21 5月, 2009 2 次提交
  14. 10 5月, 2009 1 次提交
  15. 22 4月, 2009 1 次提交
  16. 18 4月, 2009 2 次提交
  17. 12 4月, 2009 2 次提交
  18. 08 4月, 2009 1 次提交
  19. 25 3月, 2009 1 次提交
  20. 16 3月, 2009 1 次提交
    • J
      Rationalize fasync return values · 60aa4924
      Jonathan Corbet 提交于
      Most fasync implementations do something like:
      
           return fasync_helper(...);
      
      But fasync_helper() will return a positive value at times - a feature used
      in at least one place.  Thus, a number of other drivers do:
      
           err = fasync_helper(...);
           if (err < 0)
                   return err;
           return 0;
      
      In the interests of consistency and more concise code, it makes sense to
      map positive return values onto zero where ->fasync() is called.
      
      Cc: Al Viro <viro@ZenIV.linux.org.uk>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      60aa4924
  21. 02 2月, 2009 1 次提交
  22. 30 1月, 2009 1 次提交
  23. 06 1月, 2009 1 次提交
  24. 30 12月, 2008 1 次提交
  25. 20 12月, 2008 1 次提交
  26. 27 11月, 2008 1 次提交
  27. 25 11月, 2008 1 次提交
  28. 20 11月, 2008 1 次提交
  29. 12 11月, 2008 1 次提交
  30. 02 11月, 2008 1 次提交
    • A
      saner FASYNC handling on file close · 233e70f4
      Al Viro 提交于
      As it is, all instances of ->release() for files that have ->fasync()
      need to remember to evict file from fasync lists; forgetting that
      creates a hole and we actually have a bunch that *does* forget.
      
      So let's keep our lives simple - let __fput() check FASYNC in
      file->f_flags and call ->fasync() there if it's been set.  And lose that
      crap in ->release() instances - leaving it there is still valid, but we
      don't have to bother anymore.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      233e70f4
  31. 30 10月, 2008 1 次提交
  32. 28 10月, 2008 1 次提交