Commit bb464d7b authored by Mani Sadhasivam's avatar Mani Sadhasivam
Browse files

PCI: endpoint: Add linkdown notifier support



Add support to notify the EPF device about the linkdown event from the
EPC device.

Usage:
======

EPC
---

```
static irqreturn_t pcie_ep_irq(int irq, void *data)
{
...
	case PCIE_EP_INT_LINK_DOWN:
		pci_epc_linkdown(epc);
		break;
...
}
```

EPF
---

```
static int pci_epf_notifier(struct notifier_block *nb, unsigned long val,
			    void *data)
{
...
	case LINK_DOWN:
		/* Handle link down event */
		break;
...
}
```

Signed-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
parent 7f061999
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment