26 Jan, 2013

1 commit

  • Iterate through devices in a slot by using the upstream bridge's
    "bus->devices" list instead of assuming they are functions 0-7. It's
    possible there are several slots on the same pci_bus, so restrict it to
    only devices matching this slot's device number.

    ARI (which allows functions 0-255) is a PCIe-only feature, and this is
    a PCI hotplug driver, so we shouldn't find anything other than functions
    0-7, but it's better to iterate the same way as other hotplug drivers.

    [bhelgaas: changelog, check PCI_SLOT, fix cpci_unconfigure_slot()]
    Signed-off-by: Yijing Wang
    Signed-off-by: Bjorn Helgaas

    Yijing Wang
     

14 Jun, 2012

3 commits


28 Feb, 2012

1 commit


23 Oct, 2008

1 commit

  • We no longer need to manage our version of hotplug_slot->name
    since the PCI and hotplug core manage it on our behalf.

    Now, we simply advise the PCI core of the name that we would
    like, and let the core take care of the rest.

    Cc: kristen.c.accardi@intel.com
    Cc: scottm@somanetworks.com
    Acked-by: Kenji Kaneshige
    Signed-off-by: Alex Chiang
    Signed-off-by: Jesse Barnes

    Alex Chiang
     

21 Apr, 2008

1 commit


05 Mar, 2008

1 commit

  • Fix following warning:
    WARNING: vmlinux.o(.text+0x47bdb1): Section mismatch in reference from the function pci_scan_child_bus() to the function .devinit.text:pcibios_fixup_bus()

    We had plenty of functions that could be annotated __devinit but due to
    the former restriction that exported symbols could not be annotated
    they were not so. So annotate these function and fix the references
    from the pci/hotplug/* code to silence the resuting warnings.

    Signed-off-by: Sam Ravnborg
    Signed-off-by: Greg Kroah-Hartman

    Sam Ravnborg
     

12 Jul, 2007

1 commit


19 Oct, 2006

1 commit


27 Aug, 2006

1 commit

  • Here is a patch against the CPCI hotplug core to fix up PCI resource
    assignment such that things will actually work when a hot inserted
    device is enabled. I mentioned this patch to you way back in April at
    ELC, but am only now out from under things enough to clean it up and
    submit it. I've basically cribbed the corresponding code from
    shpchp_pci.c, so there are no big surprises. If it's still possible, I
    wouldn't mind this going into 2.6.18, but it wouldn't be the end of the
    world if it went into 2.6.19.

    Signed-off-by: Scott Murray
    Signed-off-by: Greg Kroah-Hartman

    Scott Murray
     

01 Jul, 2006

1 commit


09 Jun, 2005

1 commit


01 Jun, 2005

1 commit

  • Here is my third attempt at a patch to further update the CompactPCI
    hotplug driver infrastructure to address the pci_enable_device issue
    discussed on the list as well as a few other issues I discovered during
    some more testing. This version addresses a few more issues pointed out
    by Prarit Bhargava. Changes include:
    - cpci_enable_device and its recursive calling of pci_enable_device on
    new devices removed.
    - Use list_rwsem to avoid slot status change races between disable_slot
    and check_slots.
    - Fixed oopsing in cpci_hp_unregister_bus caused by calling list_del on
    a slot after calling pci_hp_deregister.
    - Removed kfree calls in cleanup_slots since release_slot will have
    done it already.
    - Reworked init_slots a bit to fix latch and adapter file updating on
    subsequent calls to cpci_hp_start.
    - Improved sanity checking in cpci_hp_register_controller.
    - Now shut things down correctly in cpci_hotplug_exit.
    - Switch to pci_get_slot instead of deprecated pci_find_slot.
    - A bunch of CodingStyle fixes.

    Signed-off-by: Scott Murray
    Signed-off-by: Greg Kroah-Hartman

    Scott Murray
     

18 May, 2005

1 commit

  • [PATCH] CPCI: update

    I have finally done some work to update the CompactPCI hotplug driver to
    fix some of the outstanding issues in 2.6:
    - Added adapter and latch status ops so that those files will get created
    by the current PCI hotplug core. This used to not be required, but
    seems to be now after some of the sysfs rework in the core.
    - Replaced slot list spinlock with a r/w semaphore to avoid any potential
    issues with sleeping. This quiets all of the runtime warnings.
    - Reworked interrupt driven hot extraction handling to remove need for a
    polling operator for ENUM# status. There are a lot of boards that only
    have an interrupt driven by ENUM#, so this lowers the bar to entry.
    - Replaced pci_visit_dev usage with better use of the PCI core functions.
    The new code is functionally equivalent to the previous code, but the
    use of pci_enable_device on insert needs to be investigated further, as
    I need to do some more testing to see if it is still necessary.

    Signed-off-by: Scott Murray
    Signed-off-by: Greg Kroah-Hartman

    Scott Murray
     

17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds