1. 23 10月, 2008 1 次提交
  2. 22 8月, 2008 1 次提交
    • A
      PCI: shpchp: Rename duplicate slot name N as N-1, N-2, N-M... · d6a9e9b4
      Alex Chiang 提交于
      Commit ef0ff95f (shpchp: fix slot name)
      introduces the shpchp_slot_with_bus module parameter, which was intended
      to help work around broken firmware that assigns the same name to multiple
      slots.
      
      Commit b3bd307c (shpchp: add message about
      shpchp_slot_with_bus option) tells the user to use the above parameter
      in the event of a name collision.
      
      This approach is sub-optimal because it requires too much work from
      the user.
      
      Instead, let's rename the slot on behalf of the user. If firmware
      assigns the name N to multiple slots, then:
      
      	The first registered slot is assigned N
      	The second registered slot is assigned N-1
      	The third registered slot is assigned N-2
      	The Mth registered slot becomes N-M
      
      In the event we overflow the slot->name parameter, we report an
      error to the user.
      
      This is a temporary fix until the entire PCI core can be reworked
      such that individual drivers no longer have to manage their own
      slot names.
      Tested-by: NKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
      Acked-by: NKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
      Signed-off-by: NAlex Chiang <achiang@hp.com>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      d6a9e9b4
  3. 11 6月, 2008 3 次提交
    • A
      PCI: introduce pci_slot · f46753c5
      Alex Chiang 提交于
      Currently, /sys/bus/pci/slots/ only exposes hotplug attributes when a
      hotplug driver is loaded, but PCI slots have attributes such as address,
      speed, width, etc.  that are not related to hotplug at all.
      
      Introduce pci_slot as the primary data structure and kobject model.
      Hotplug attributes described in hotplug_slot become a secondary
      structure associated with the pci_slot.
      
      This patch only creates the infrastructure that allows the separation of
      PCI slot attributes and hotplug attributes.  In this patch, the PCI
      hotplug core remains the only user of this infrastructure, and thus,
      /sys/bus/pci/slots/ will still only become populated when a hotplug
      driver is loaded.
      
      A later patch in this series will add a second user of this new
      infrastructure and demonstrate splitting the task of exposing pci_slot
      attributes from hotplug_slot attributes.
      
        - Make pci_slot the primary sysfs entity. hotplug_slot becomes a
          subsidiary structure.
          o pci_create_slot() creates and registers a slot with the PCI core
          o pci_slot_add_hotplug() gives it hotplug capability
      
        - Change the prototype of pci_hp_register() to take the bus and
          slot number (on parent bus) as parameters.
      
        - Remove all the ->get_address methods since this functionality is
          now handled by pci_slot directly.
      
      [achiang@hp.com: rpaphp-correctly-pci_hp_register-for-empty-pci-slots]
      Tested-by: NBadari Pulavarty <pbadari@us.ibm.com>
      Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      [akpm@linux-foundation.org: build fix]
      [akpm@linux-foundation.org: make headers_check happy]
      [akpm@linux-foundation.org: nuther build fix]
      [akpm@linux-foundation.org: fix typo in #include]
      Signed-off-by: NAlex Chiang <achiang@hp.com>
      Signed-off-by: NMatthew Wilcox <matthew@wil.cx>
      Cc: Greg KH <greg@kroah.com>
      Cc: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
      Cc: Len Brown <lenb@kernel.org>
      Acked-by: NKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      f46753c5
    • K
      shpchp: check firmware before taking control · ac9c052d
      Kenji Kaneshige 提交于
      Fix the following problems of shpchp driver about getting hotplug
      control from firmware.
      
        - The shpchp driver must not control the hotplug controller if it
          fails to get control from the firmware. But current shpchp
          controls the hotplug controller regardless the result, because it
          doesn't check the return value of get_hp_hw_control_from_firmware().
      
        - Current shpchp driver doesn't support _OSC.
      
      The pciehp driver already have the code for evaluating _OSC and OSHP
      and shpchp and pciehp can share it. So this patch move that code from
      pciehp to acpi_pcihp.c.
      Signed-off-by: NKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      ac9c052d
    • A
      PCI: make {pciehp,shpchp}_slot_with_bus static · 552fe04a
      Adrian Bunk 提交于
      This patch makes the needlessly global {pciehp,shpchp}_slot_with_bus
      static.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      552fe04a
  4. 28 5月, 2008 1 次提交
  5. 26 4月, 2008 1 次提交
  6. 21 4月, 2008 1 次提交
  7. 03 5月, 2007 1 次提交
  8. 08 2月, 2007 1 次提交
  9. 21 12月, 2006 4 次提交
  10. 22 11月, 2006 1 次提交
  11. 27 9月, 2006 1 次提交
  12. 20 6月, 2006 1 次提交
  13. 24 3月, 2006 12 次提交
  14. 10 1月, 2006 2 次提交
  15. 29 10月, 2005 8 次提交
  16. 17 8月, 2005 1 次提交
新手
引导
客服 返回
顶部