All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bjorn Helgaas <bhelgaas@google.com>
To: Alex Williamson <alex.williamson@redhat.com>
Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PCI: Export pci_probe_reset_function()
Date: Thu, 9 Apr 2015 14:58:46 -0500	[thread overview]
Message-ID: <20150409195846.GL30967@google.com> (raw)
In-Reply-To: <20150409155100.6891.72838.stgit@gimli.home>

On Thu, Apr 09, 2015 at 09:51:43AM -0600, Alex Williamson wrote:
> The equivalent bus and slot versions of this are already exported and
> vfio-pci would like a function-probe available so we can expose
> function-level reset capabilities to the user without necessarily
> using it to perform a reset before enabling the device for the user.
> 
> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

Applied to pci/virtualization for v4.1, thanks!

> ---
>  drivers/pci/pci.c   |    1 +
>  include/linux/pci.h |    1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> index 81f06e8..9f3e691 100644
> --- a/drivers/pci/pci.c
> +++ b/drivers/pci/pci.c
> @@ -3524,6 +3524,7 @@ int pci_probe_reset_function(struct pci_dev *dev)
>  {
>  	return pci_dev_reset(dev, 1);
>  }
> +EXPORT_SYMBOL_GPL(pci_probe_reset_function);
>  
>  /**
>   * pci_reset_function - quiesce and reset a PCI device function
> diff --git a/include/linux/pci.h b/include/linux/pci.h
> index 211e9da..233d1ae 100644
> --- a/include/linux/pci.h
> +++ b/include/linux/pci.h
> @@ -986,6 +986,7 @@ int pcie_get_minimum_link(struct pci_dev *dev, enum pci_bus_speed *speed,
>  			  enum pcie_link_width *width);
>  int __pci_reset_function(struct pci_dev *dev);
>  int __pci_reset_function_locked(struct pci_dev *dev);
> +int pci_probe_reset_function(struct pci_dev *dev);
>  int pci_reset_function(struct pci_dev *dev);
>  int pci_try_reset_function(struct pci_dev *dev);
>  int pci_probe_reset_slot(struct pci_slot *slot);
> 

  reply	other threads:[~2015-04-09 19:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09 15:51 [PATCH] PCI: Export pci_probe_reset_function() Alex Williamson
2015-04-09 19:58 ` Bjorn Helgaas [this message]
2015-04-09 20:00   ` Bjorn Helgaas
2015-04-09 20:11     ` Alex Williamson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150409195846.GL30967@google.com \
    --to=bhelgaas@google.com \
    --cc=alex.williamson@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.