soc/intel/icelake: Use devfn_disable() function for XDCI
commit1369544b3f6c571886f602824c5f005eb60e9a16
authorSubrata Banik <subrata.banik@intel.com>
Mon, 21 Jun 2021 13:52:53 +0000 (21 19:22 +0530)
committerSubrata Banik <subrata.banik@intel.com>
Wed, 23 Jun 2021 08:25:56 +0000 (23 08:25 +0000)
treea2a3c94e11aca24ed3462fdec869825e8071c31e
parent7bfee2d70f45caf3fe6e769d7cd6ae6f305d9df5
soc/intel/icelake: Use devfn_disable() function for XDCI

Use devfn_disable() for disabling a PCI device rather than
using `dev->enabled = 0`.

Also, use is_devfn_enabled() to get the device current state prior
updating the FSP-S UPD for XDCI.

TEST=FSP-S disabled XDCI when `xdci_can_enable` returns 0 and XDCI
is disabled at PCI enumeration `PCI: 00:14.1: enabled 0`.

Change-Id: I568cd39792eba1bbace4901e96d708d80f73c60a
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55724
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/soc/intel/icelake/fsp_params.c