]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: mobiveil: Add Header Type field check
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Thu, 13 Feb 2020 04:06:40 +0000 (12:06 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 21 Feb 2020 11:53:22 +0000 (11:53 +0000)
commit1ba0abb895b66d08a86cfe773584deea444a5c7a
tree4858a093a4a95eb0c7f91aa9c444b0a27e0ddc0c
parent3dcab74fe12de1ca9bf1fe9a8ea6d5c94d76243b
PCI: mobiveil: Add Header Type field check

Check the Header Type and exit from the host driver initialization if
it is not in host mode.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Andrew Murray <amurray@thegoodpenguin.co.uk>
drivers/pci/controller/mobiveil/pcie-mobiveil-host.c