diff options
author | Gavin Shan <[email protected]> | 2017-02-16 10:22:34 +1100 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2017-02-17 22:13:29 +1100 |
commit | 49f4b08e61547a5ccd2db551d994c4503efe5666 (patch) | |
tree | accdce0ba7fd9e780e8fe50d0549a1911ef517a3 /scripts/gdb/linux/lists.py | |
parent | 303529d6ef1293513c2c73c9ab86489eebb37d08 (diff) |
pci/hotplug/pnv-php: Disable MSI and PCI device properly
pnv_php_disable_irq() can be called in two paths: Bailing path in
pnv_php_enable_irq() or releasing slot. The MSI (or MSIx) interrupts
is disabled unconditionally in pnv_php_disable_irq(). It's wrong
because that might be enabled by drivers other than pnv-php.
This disables MSI (or MSIx) interrupts and the PCI device only if
it was enabled by pnv-php. In the error path of pnv_php_enable_irq(),
we rely on the newly added parameter @disable_device. In the path
of releasing slot, @pnv_php->irq is checked.
Cc: <[email protected]> # v4.9+
Fixes: 360aebd85a4c ("drivers/pci/hotplug: Support surprise hotplug in powernv driver")
Signed-off-by: Gavin Shan <[email protected]>
Reviewed-by: Andrew Donnellan <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions