1. 24 12月, 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. 22 7月, 2009 1 次提交
  4. 19 6月, 2009 1 次提交
  5. 11 6月, 2009 1 次提交
    • A
      rfkill: remove set_global_sw_state · b3fa1329
      Alan Jenkins 提交于
      rfkill_set_global_sw_state() (previously rfkill_set_default()) will no
      longer be exported by the rewritten rfkill core.
      
      Instead, platform drivers which can provide persistent soft-rfkill state
      across power-down/reboot should indicate their initial state by calling
      rfkill_set_sw_state() before registration.  Otherwise, they will be
      initialized to a default value during registration by a set_block call.
      
      We remove existing calls to rfkill_set_sw_state() which happen before
      registration, since these had no effect in the old model.  If these
      drivers do have persistent state, the calls can be put back (subject
      to testing :-).  This affects hp-wmi and acer-wmi.
      
      Drivers with persistent state will affect the global state only if
      rfkill-input is enabled.  This is required, otherwise booting with
      wireless soft-blocked and pressing the wireless-toggle key once would
      have no apparent effect.  This special case will be removed in future
      along with rfkill-input, in favour of a more flexible userspace daemon
      (see Documentation/feature-removal-schedule.txt).
      
      Now rfkill_global_states[n].def is only used to preserve global states
      over EPO, it is renamed to ".sav".
      Signed-off-by: NAlan Jenkins <alan-jenkins@tuffmail.co.uk>
      Acked-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      b3fa1329
  6. 04 6月, 2009 1 次提交
    • J
      rfkill: rewrite · 19d337df
      Johannes Berg 提交于
      This patch completely rewrites the rfkill core to address
      the following deficiencies:
      
       * all rfkill drivers need to implement polling where necessary
         rather than having one central implementation
      
       * updating the rfkill state cannot be done from arbitrary
         contexts, forcing drivers to use schedule_work and requiring
         lots of code
      
       * rfkill drivers need to keep track of soft/hard blocked
         internally -- the core should do this
      
       * the rfkill API has many unexpected quirks, for example being
         asymmetric wrt. alloc/free and register/unregister
      
       * rfkill can call back into a driver from within a function the
         driver called -- this is prone to deadlocks and generally
         should be avoided
      
       * rfkill-input pointlessly is a separate module
      
       * drivers need to #ifdef rfkill functions (unless they want to
         depend on or select RFKILL) -- rfkill should provide inlines
         that do nothing if it isn't compiled in
      
       * the rfkill structure is not opaque -- drivers need to initialise
         it correctly (lots of sanity checking code required) -- instead
         force drivers to pass the right variables to rfkill_alloc()
      
       * the documentation is hard to read because it always assumes the
         reader is completely clueless and contains way TOO MANY CAPS
      
       * the rfkill code needlessly uses a lot of locks and atomic
         operations in locked sections
      
       * fix LED trigger to actually change the LED when the radio state
         changes -- this wasn't done before
      Tested-by: NAlan Jenkins <alan-jenkins@tuffmail.co.uk>
      Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> [thinkpad]
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      19d337df
  7. 23 4月, 2009 1 次提交
  8. 05 4月, 2009 3 次提交
  9. 16 3月, 2009 1 次提交
  10. 13 3月, 2009 1 次提交
  11. 19 12月, 2008 1 次提交
    • L
      create drivers/platform/x86/ from drivers/misc/ · 41b16dce
      Len Brown 提交于
      Move x86 platform specific drivers from drivers/misc/
      to a new home under drivers/platform/x86/.
      
      The community has been maintaining x86 vendor-specific
      platform specific drivers under /drivers/misc/ for a few years.
      The oldest ones started life under drivers/acpi.
      They moved out of drivers/acpi/ because they don't actually
      implement the ACPI specification, but either simply
      use ACPI, or implement vendor-specific ACPI extensions.
      
      In the future we anticipate...
      drivers/misc/ will go away.
      other architectures will create drivers/platform/<arch>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      41b16dce
  12. 08 11月, 2008 1 次提交
  13. 23 10月, 2008 1 次提交
  14. 11 10月, 2008 1 次提交
  15. 09 10月, 2008 2 次提交
  16. 04 9月, 2008 1 次提交
  17. 03 9月, 2008 1 次提交
  18. 24 8月, 2008 1 次提交
  19. 15 8月, 2008 1 次提交
    • C
      acer-wmi: Fix wireless and bluetooth on early AMW0 v2 laptops · 5c742b45
      Carlos Corbacho 提交于
      In the old acer_acpi, I discovered that on some of the newer AMW0 laptops
      that supported the WMID methods, they don't work properly for setting the
      wireless and bluetooth values.
      
      So for the AMW0 V2 laptops, we want to use both the 'old' AMW0 and the
      'new' WMID methods for setting wireless & bluetooth to guarantee we always
      enable it.
      
      This was fixed in acer_acpi some time ago, but I forgot to port the patch
      over to acer-wmi when it was merged.
      
      (Without this patch, early AMW0 V2 laptops such as the Aspire 5040 won't
      work with acer-wmi, where-as they did with the old acer_acpi).
      
      AK: fix compilation
      Signed-off-by: NCarlos Corbacho <carlos@strangeworlds.co.uk>
      CC: stable@kernel.org
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      5c742b45
  20. 17 7月, 2008 6 次提交
  21. 13 3月, 2008 2 次提交
  22. 12 3月, 2008 2 次提交
  23. 21 2月, 2008 1 次提交
    • S
      acer-wmi: fix section mismatch warnings · 7560e385
      Sam Ravnborg 提交于
      Fix following warnings:
      WARNING: vmlinux.o(.text+0x672615): Section mismatch in reference from the function acer_platform_remove() to the function .exit.text:acer_backlight_exit()
      WARNING: vmlinux.o(.devinit.text+0x1e859): Section mismatch in reference from the function acer_platform_probe() to the function .init.text:acer_led_init()
      WARNING: vmlinux.o(.devinit.text+0x1e878): Section mismatch in reference from the function acer_platform_probe() to the function .init.text:acer_backlight_init()
      
      Remove __exit annotation from acer_backlight_exit(). We cannot reference
      a __exit annotated function from non __exit functions.
      
      acer_led_init() and acer_backlight_init() where both annotated __init but
      used from a __devinit function. This would result in an oops should
      gcc drop their inlining and the module are hot plugged.
      
      Fix by annotating acer_led_init() and acer_backlight_init() __devinit.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      7560e385
  24. 16 2月, 2008 1 次提交
  25. 09 2月, 2008 1 次提交
  26. 06 2月, 2008 1 次提交
    • C
      acer-wmi: Add driver for newer Acer laptops · 745a5d21
      Carlos Corbacho 提交于
      This is a driver for newer Acer (and Wistron) laptops. It adds wireless
      radio and bluetooth control, and on some laptops, exposes the mail LED and
      LCD backlight.
      
      v1:
      
      * Initial release
      
      v2:
      
      * Replace left over ACPI references with WMI
      * Add GUID based autoloading (depends on future work to WMI)
      * Add DMI based autoloading (backup solution until WMI sysfs/ class
        work is available)
      * Checkpatch fixes
      
      v3:
      
      * Add new EC quirks for Aspire 3100 & 5100, and Extensa 5220
      
      v4:
      
      * Simplified internal handling of WMID and AMW0 devices
      * Add autodetection for bluetooth and maximum brightness on AMW0 V2 and
        WMID laptops.
      
      v5:
      
      * Add EC quirk for Medion MD 98000
      * Add autodetection for AMW0, and mail LED on AMW0 and AMW0 V2.
      * Improve error handling
      * Fix AMW0 V2 bluetooth and wireless, by using both WMID and AMW0 methods
        to ensure that the correct value is always set.
      
      v6:
      
      * Fix 'use before initialisation' bug with quirks.
      
      v7
      
      * Fix bug on AMW0 where acer-wmi would exit if a mail LED was not
        detected.
      * Add Acer Aspire 9110 mail LED support
      * Fix section mismatch warnings
      Signed-off-by: NCarlos Corbacho <carlos@strangeworlds.co.uk>
      CC: Matthew Garrett <mjg59@srcf.ucam.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      745a5d21