1. 24 8月, 2007 1 次提交
    • Z
      ACPI: don't duplicate input events on netlink · 962ce8ca
      Zhang Rui 提交于
      The previous events patch added a netlink event for every
      user of the legacy /proc/acpi/event interface.
      
      However, some users of /proc/acpi/event are really input events,
      and they already report their events via the input layer.
      
      Introduce a new interface, acpi_bus_generate_netlink_event(),
      which is explicitly called by devices that want to repoprt
      events via netlink.  This allows the input-like events
      to opt-out of generating netlink events.  In summary:
      
      events that are sent via netlink:
      	ac/battery/sbs
      	thermal
      	processor
      	thinkpad_acpi dock/bay
      
      events that are sent via input layer:
      	button
      	video hotkey
      	thinkpad_acpi hotkey
      	asus_acpi/asus-laptop hotkey
      	sonypi/sonylaptop
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      962ce8ca
  2. 04 8月, 2007 1 次提交
    • H
      ACPI: thinkpad-acpi: fix the module init failure path · ac36393d
      Henrique de Moraes Holschuh 提交于
      Thomas Renninger reports that if one tries to load thinkpad-acpi in a
      non-thinkpad, one gets:
      
      Call Trace:
       [<ffffffff802fa57d>] kref_get+0x2f/0x36
       [<ffffffff802f97f7>] kobject_get+0x12/0x17
       [<ffffffff8036dfd7>] get_driver+0x14/0x1a
       [<ffffffff8036dfee>] driver_remove_file+0x11/0x32
       [<ffffffff8823b9be>] :thinkpad_acpi:thinkpad_acpi_module_exit+0xa8/0xfc
       [<ffffffff8824b8a0>] :thinkpad_acpi:thinkpad_acpi_module_init+0x74a/0x776
       [<ffffffff8024f968>] __link_module+0x0/0x25
       [<ffffffff80252269>] sys_init_module+0x162c/0x178f
       [<ffffffff8020bc2e>] system_call+0x7e/0x83
      
      So, track if the platform driver and its driver attributes were registered,
      and only deallocate them in that case.
      
      This patch is based on Thomas Renninger's patch for the issue.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Acked-by: NThomas Renninger <trenn@suse.de>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      ac36393d
  3. 24 7月, 2007 1 次提交
  4. 22 7月, 2007 21 次提交
  5. 01 6月, 2007 1 次提交
    • H
      ACPI: thinkpad-acpi: do not use named sysfs groups · cc4c24e1
      Henrique de Moraes Holschuh 提交于
      The initial version of the thinkpad-acpi sysfs interface (not yet released
      in any stable mainline kernel) made liberal use of named sysfs groups, in
      order to get the attributes more organized.
      
      This proved to be a really bad design decision.  Maybe if attribute groups
      were as flexible as a real directory, and if binary attributes were not
      second-class citizens, the idea of subdirs and named groups would not have
      been so bad.
      
      This patch makes all the thinkpad-acpi sysfs groups anonymous (thus
      removing the subdirs), adds the former group names as a prefix (so that
      hotkey/enable becomes hotkey_enable for example), and updates the
      documentation.
      
      These changes will make the thinkpad-acpi sysfs ABI a lot easier to
      maintain.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      cc4c24e1
  6. 29 4月, 2007 8 次提交
  7. 25 4月, 2007 7 次提交