1. 10 12月, 2009 20 次提交
  2. 25 11月, 2009 3 次提交
  3. 03 11月, 2009 2 次提交
  4. 13 10月, 2009 2 次提交
  5. 10 10月, 2009 1 次提交
  6. 29 9月, 2009 2 次提交
  7. 28 9月, 2009 4 次提交
    • A
      sony-laptop: Don't unregister the SPIC driver if it wasn't registered · 5e6f9725
      Alan Jenkins 提交于
      This fixes a warning when the module is unloaded on machines without SPIC.
      
      ------------[ cut here ]------------
      WARNING: at drivers/base/driver.c:261 driver_unregister+0x6e/0x80()
      Hardware name: OEM
      Unexpected driver unregister!
      Modules linked in: sony_laptop(-) rfkill af_packet i915
       drm i2c_algo_bit cfbcopyarea i2c_core cfbimgblt cfbfillrect binfmt_misc
       ipv6 kvm_intel kvm acpi_cpufreq cpufreq_userspace cpufreq_powersave
       cpufreq_stats acpi_pad ac video output battery pci_slot sbs sbshc
       container iptable_filter ip_tables x_tables ext2 fuse
       snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss
       snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi_event
       snd_seq snd_timer snd_seq_device snd fan sg serio_raw sr_mod cdrom
       soundcore button thermal processor thermal_sys floppy snd_page_alloc
       pcspkr intel_agp evdev [last unloaded: asus_atk0110]
      Pid: 8136, comm: modprobe Not tainted 2.6.31-rc8debug #50
      Call Trace:
      [<ffffffff8121ec7e>] ? driver_unregister+0x6e/0x80
      [<ffffffff81047577>] warn_slowpath_common+0x87/0xb0
      [<ffffffff81047624>] warn_slowpath_fmt+0x64/0x70
      [<ffffffff8119a360>] ? kobject_release+0x0/0x1f0
      [<ffffffff8119a267>] ? kobject_put+0x27/0x60
      [<ffffffff8121d346>] ? bus_put+0x16/0x20
      [<ffffffff8121d406>] ? bus_remove_driver+0xb6/0xf0
      [<ffffffff8121ec7e>] driver_unregister+0x6e/0x80
      [<ffffffff811cab50>] acpi_bus_unregister_driver+0x10/0x12
      [<ffffffffa035e86c>] sony_laptop_exit+0x2c/0x2e [sony_laptop]
      [<ffffffff8107ddc6>] sys_delete_module+0x176/0x230
      [<ffffffff8107186d>] ? trace_hardirqs_on_caller+0x14d/0x1a0
      [<ffffffff81350a04>] ? trace_hardirqs_on_thunk+0x3a/0x3f
      [<ffffffff8100bdab>] system_call_fastpath+0x16/0x1b
      ---[ end trace f638b6a59b19703e ]---
      Signed-off-by: NAlan Jenkins <alan-jenkins@tuffmail.co.uk>
      Signed-off-by: NMattia Dongili <malattia@linux.it>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      5e6f9725
    • M
      sony-laptop: remove _INI call at init time · 922553f2
      Mattia Dongili 提交于
      This is unnecessary as OSPM is supposed to call the method already when
      the device is discovered.
      Signed-off-by: NMattia Dongili <malattia@linux.it>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      922553f2
    • M
      sony-laptop: SPIC unset IRQF_SHARED, set IRQF_DISABLED · d1e0de92
      Mattia Dongili 提交于
      The SPIC irq is not really shareable, the IO port cannot be cleared and
      always returns some data so there is no real way to understand if the irq
      is for us or not. Moreover the _PRS acpi method says the irq is not
      shareable.
      In addition to this, in some cases, an additional write to the IO port has
      to be performed in order to properly decode the event received from the
      device. This generates another interrupt which may overlap with the
      previous one. In the future this is going to be important for properly
      decoding events.
      Signed-off-by: NMattia Dongili <malattia@linux.it>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      d1e0de92
    • M
      sony-laptop: remove device_ctrl and the SPIC mini drivers · 31df7144
      Mattia Dongili 提交于
      Having separate drivers for SPIC showed to be useless, only type3 has a
      slightly different behaviour than the others and there seem to be no real
      conflict between them.
      Signed-off-by: NMattia Dongili <malattia@linux.it>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      31df7144
  8. 27 9月, 2009 1 次提交
  9. 22 9月, 2009 1 次提交
  10. 21 9月, 2009 4 次提交
    • H
      thinkpad-acpi: name event constants · 67bcae6e
      Henrique de Moraes Holschuh 提交于
      Reduce the number of magic numbers in the driver... note that they
      were all explained and documented already.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      67bcae6e
    • H
      thinkpad-acpi: add internal hotkey event API · 8b468c0c
      Henrique de Moraes Holschuh 提交于
      Add an internal API to the driver, to allow subdrivers to request and
      receive HKEY 0x1000 events.  This API will be used by the backlight
      (brightness up/down) and upcoming ALSA mixer (volume up/down/mute)
      subdrivers.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      8b468c0c
    • H
      thinkpad-acpi: hotkey event driver update · 0d922e3b
      Henrique de Moraes Holschuh 提交于
      Update the HKEY event driver to:
      
      1. Handle better the second-gen firmware, which has no HKEY mask
         support but does report FN+F3, FN+F4 and FN+F12 without the need
         for NVRAM polling.
      
         a) always make the mask-related attributes available in sysfs;
         b) use DMI quirks to detect the second-gen firmware;
         c) properly report that FN+F3, FN+F4 and FN+F12 are enabled,
            and available even on mask-less second-gen firmware;
      
      2. Decouple the issuing of hotkey events towards userspace from
         their reception from the firmware.  ALSA mixer and brightness
         event reporting support will need this feature.
      
      3. Clean up the mess in the hotkey driver a great deal.  It is
         still very convoluted, and wants a full refactoring into a
         proper event API interface, but that is not going to happen
         today.
      
      4. Fully reset firmware interface on resume (restore hotkey
         mask and status).
      
      5. Stop losing polled events for no good reason when changing the
         mask and poll frequencies.  We will still lose them when the
         hotkey_source_mask is changed, as well as any that happened
         between driver suspend and driver resume.
      
      The hotkey subdriver now has the notion of user-space-visible hotkey
      event mask, as well as of the set of "hotkey" events the driver needs
      (because brightness/volume change reports are not just keypress
      reports in most ThinkPad models).
      
      With this rewrite, the ABI level is bumped to 0x020500 should
      userspace need to know it is dealing with the updated hotkey
      subdriver.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      0d922e3b
    • H
      thinkpad-acpi: drop HKEY event 0x5010 · 176dd985
      Henrique de Moraes Holschuh 提交于
      HKEY event 0x5010 is useless to us: old ThinkPads don't issue it.  Newer
      ThinkPads won't issue it anymore.  And all ThinkPads issue 0x1010 and
      0x1011 events.
      
      Just silently drop it instead of sending it to userspace.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      176dd985