mhi: pci_generic: Add PCI error handlers
authorLoic Poulain <loic.poulain@linaro.org>
Mon, 4 Jan 2021 16:14:55 +0000 (17:14 +0100)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 4 Jan 2021 16:20:25 +0000 (21:50 +0530)
commitb012ee6bfe2ac99bdf7d70b7776187f416c1cab8
tree0ce65fbb8cac60a992e4545db40b619426a5f4dc
parent7389337f0a78ea099c47f0af08f64f20c52ab4ba
mhi: pci_generic: Add PCI error handlers

In AER capable root complex, errors are reported to the host which
can then act accordingly and perform PCI recovering procedure.

This patch enables error reporting and implements error_detected,
slot_reset and resume callbacks.

Reviewed-by Hemant Kumar <hemantk@codeaurora.org>

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/pci_generic.c