lkml.org 
[lkml]   [2008]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 1/13 v7] PCI: enhance pci_ari_enabled()
    Change parameter of pci_ari_enabled() from 'pci_dev' to 'pci_bus'.

    ARI forwarding on the bridge mostly concerns the subordinate devices
    rather than the bridge itself. So this change will make the function
    easier to use.

    Signed-off-by: Yu Zhao <yu.zhao@intel.com>

    ---
    drivers/pci/pci.h | 6 +++---
    1 files changed, 3 insertions(+), 3 deletions(-)

    diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
    index 9de87e9..1449884 100644
    --- a/drivers/pci/pci.h
    +++ b/drivers/pci/pci.h
    @@ -162,13 +162,13 @@ struct pci_slot_attribute {
    extern void pci_enable_ari(struct pci_dev *dev);
    /**
    * pci_ari_enabled - query ARI forwarding status
    - * @dev: the PCI device
    + * @bus: the PCI bus
    *
    * Returns 1 if ARI forwarding is enabled, or 0 if not enabled;
    */
    -static inline int pci_ari_enabled(struct pci_dev *dev)
    +static inline int pci_ari_enabled(struct pci_bus *bus)
    {
    - return dev->ari_enabled;
    + return bus->self && bus->self->ari_enabled;
    }

    #endif /* DRIVERS_PCI_H */
    --
    1.5.6.4


    \
     
     \ /
      Last update: 2008-11-21 20:37    [W:4.057 / U:0.332 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site