1. 07 11月, 2008 1 次提交
    • K
      ACPI: struct device - replace bus_id with dev_name(), dev_set_name() · 0794469d
      Kay Sievers 提交于
      This patch is part of a larger patch series which will remove
      the "char bus_id[20]" name string from struct device. The device
      name is managed in the kobject anyway, and without any size
      limitation, and just needlessly copied into "struct device".
      
      To set and read the device name dev_name(dev) and dev_set_name(dev)
      must be used. If your code uses static kobjects, which it shouldn't
      do, "const char *init_name" can be used to statically provide the
      name the registered device should have. At registration time, the
      init_name field is cleared, to enforce the use of dev_name(dev) to
      access the device name at a later time.
      
      We need to get rid of all occurrences of bus_id in the entire tree
      to be able to enable the new interface. Please apply this patch,
      and possibly convert any remaining remaining occurrences of bus_id.
      
      We want to submit a patch to -next, which will remove bus_id from
      "struct device", to find the remaining pieces to convert, and finally
      switch over to the new api, which will remove the 20 bytes array
      and does no longer have a size limitation.
      Acked-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-Off-By: NKay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      0794469d
  2. 23 10月, 2008 5 次提交
  3. 11 10月, 2008 3 次提交
  4. 07 10月, 2008 1 次提交
  5. 22 7月, 2008 1 次提交
  6. 17 7月, 2008 2 次提交
  7. 08 7月, 2008 1 次提交
  8. 29 4月, 2008 1 次提交
  9. 23 4月, 2008 1 次提交
  10. 10 4月, 2008 1 次提交
  11. 26 3月, 2008 1 次提交
  12. 11 3月, 2008 1 次提交
  13. 21 2月, 2008 1 次提交
  14. 07 2月, 2008 1 次提交
  15. 03 2月, 2008 1 次提交
  16. 02 1月, 2008 1 次提交
  17. 08 12月, 2007 1 次提交
  18. 13 10月, 2007 1 次提交
    • K
      Driver core: change add_uevent_var to use a struct · 7eff2e7a
      Kay Sievers 提交于
      This changes the uevent buffer functions to use a struct instead of a
      long list of parameters. It does no longer require the caller to do the
      proper buffer termination and size accounting, which is currently wrong
      in some places. It fixes a known bug where parts of the uevent
      environment are overwritten because of wrong index calculations.
      
      Many thanks to Mathieu Desnoyers for finding bugs and improving the
      error handling.
      Signed-off-by: NKay Sievers <kay.sievers@vrfy.org>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      7eff2e7a
  19. 25 8月, 2007 1 次提交
  20. 24 7月, 2007 1 次提交
  21. 09 5月, 2007 1 次提交
  22. 26 4月, 2007 1 次提交
  23. 13 2月, 2007 2 次提交
  24. 03 2月, 2007 3 次提交
  25. 30 1月, 2007 2 次提交
  26. 06 1月, 2007 1 次提交
  27. 21 12月, 2006 3 次提交
    • R
      ACPI: fix Supermicro X7DB8+ Boot regression · 2786f6e3
      Rui Zhang 提交于
      http://bugzilla.kernel.org/show_bug.cgi?id=7695
      
      Originally we converted bind/unbind to use a new pci bridge driver.
      The driver will add/remove _PRT, so we can eventually remove
      .bind/.unbind methods.
      
      But we found that some of the _ADR-Based devices don't have _PRT,
      i.e. they are not managed by the new ACPI PCI bridge driver.
      So that .bind method is not called for some _ADR-Based devices,
      which leads to a failure.
      
      Now we make ACPI PCI Root Bridge Driver scan and binds all _ADR-Based devices
      once the driver is loaded, in the .add method of ACPI PCI Root Bridge driver.
      
      Extra code path for calling .bind/.unbind when _ADR-Based devices
      are hot added/removed is also added.
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      2786f6e3
    • Z
      ACPI: use PNPID:instance_no as bus_id of ACPI device · e49bd2dd
      Zhang Rui 提交于
      Previously we used the device name in the DSDT, but would
      crash upon encountering a duplicate. Also, exposing the
      DSDT device name to the user in a patch isn't a good idea,
      because it is arbitrary.
      
      After some discussion, we finally decided to use
      "PNPID:instance_no" as the bus_id of ACPI devices.
      
      Two attributes for each device are added at the same time,
      the full pathname in ACPI namespace and hardware_id if it has.
      
      NOTE:	acpi_bus_id_list is used to keep the information of PNPID
      	and instance number of the given PNPID. Loop the
      	acpi_bus_id_list to find the instance_no of the	same PNPID
      	when register a device. If failed, i.e. we don't have a
      	node with this PNPID, allocate one and link it to this list.
      
      NOTE:	Now I don't take the memory free work in charge.
      	If necessary, I can add a reference count in
      	struct acpi_device_bus_id, and check the reference and
      	when unregister a device, i.e. memory is freed when
      	the reference count of a given PNPID is 0.
      Signed-off-by: NLi Shaohua <shaohua.li@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      e49bd2dd
    • B
      ACPI: replace kmalloc+memset with kzalloc · 36bcbec7
      Burman Yan 提交于
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      36bcbec7