mbox series

[v4,0/6] PCI: Add reset type parameter to PCI reset functions

Message ID 20180919163037.13497-1-okaya@kernel.org (mailing list archive)
Headers show
Series PCI: Add reset type parameter to PCI reset functions | expand

Message

Sinan Kaya Sept. 19, 2018, 4:30 p.m. UTC
We want more control over what kind of reset PCI core can apply. Have the
application explicitly requested allowed reset types.

differences from v3:
- set default return value to -EINVAL in __pci_reset_function_locked()

Sinan Kaya (6):
  PCI: Expose reset_type to users of __pci_reset_function_locked()
  PCI: Expose reset_type to users of pci_reset_function()
  PCI: Expose reset_type to users of pci_reset_function_locked()
  PCI: Expose reset type to users of pci_try_reset_function()
  PCI: Expose reset type to users of pci_probe_reset_function()
  PCI: Expose reset type to users of pci_reset_bus()

 drivers/hid/intel-ish-hid/ipc/ipc.c           |   2 +-
 drivers/misc/genwqe/card_base.c               |   2 +-
 .../net/ethernet/cavium/liquidio/lio_main.c   |   2 +-
 .../net/ethernet/qlogic/qlcnic/qlcnic_ctx.c   |   2 +-
 drivers/net/ethernet/sfc/mcdi.c               |   2 +-
 drivers/pci/pci-sysfs.c                       |   2 +-
 drivers/pci/pci.c                             | 134 ++++++++++++------
 drivers/pci/pci.h                             |   2 +-
 drivers/pci/probe.c                           |   2 +-
 drivers/vfio/pci/vfio_pci.c                   |  13 +-
 drivers/vfio/pci/vfio_pci_config.c            |   4 +-
 drivers/xen/xen-pciback/pci_stub.c            |   6 +-
 include/linux/pci.h                           |  21 ++-
 13 files changed, 128 insertions(+), 66 deletions(-)

Comments

Alex Williamson Sept. 19, 2018, 7:02 p.m. UTC | #1
On Wed, 19 Sep 2018 16:30:31 +0000
Sinan Kaya <okaya@kernel.org> wrote:

> We want more control over what kind of reset PCI core can apply. Have the
> application explicitly requested allowed reset types.
> 
> differences from v3:
> - set default return value to -EINVAL in __pci_reset_function_locked()
> 
> Sinan Kaya (6):
>   PCI: Expose reset_type to users of __pci_reset_function_locked()
>   PCI: Expose reset_type to users of pci_reset_function()
>   PCI: Expose reset_type to users of pci_reset_function_locked()
>   PCI: Expose reset type to users of pci_try_reset_function()
>   PCI: Expose reset type to users of pci_probe_reset_function()
>   PCI: Expose reset type to users of pci_reset_bus()
> 
>  drivers/hid/intel-ish-hid/ipc/ipc.c           |   2 +-
>  drivers/misc/genwqe/card_base.c               |   2 +-
>  .../net/ethernet/cavium/liquidio/lio_main.c   |   2 +-
>  .../net/ethernet/qlogic/qlcnic/qlcnic_ctx.c   |   2 +-
>  drivers/net/ethernet/sfc/mcdi.c               |   2 +-
>  drivers/pci/pci-sysfs.c                       |   2 +-
>  drivers/pci/pci.c                             | 134 ++++++++++++------
>  drivers/pci/pci.h                             |   2 +-
>  drivers/pci/probe.c                           |   2 +-
>  drivers/vfio/pci/vfio_pci.c                   |  13 +-
>  drivers/vfio/pci/vfio_pci_config.c            |   4 +-
>  drivers/xen/xen-pciback/pci_stub.c            |   6 +-
>  include/linux/pci.h                           |  21 ++-
>  13 files changed, 128 insertions(+), 66 deletions(-)
> 

Ack'd 4 & 6, for the remainder,

Reviewed-by: Alex Williamson <alex.williamson@redhat.com>