pci: Fix expansion ROM programming for multi-function devices
authorBin Meng <bmeng.cn@gmail.com>
Wed, 7 Oct 2015 09:13:18 +0000 (02:13 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 8 Oct 2015 18:09:09 +0000 (20:09 +0200)
commit7445435fb32824e0cfd05beb7013be8f84e9ee09
tree04e98c75a8d4d3c7740241745c4ffdc84b697817
parent996ec1dcc58a34b53891acde0ec5df9141b5fcc2
pci: Fix expansion ROM programming for multi-function devices

PCI_HEADER_TYPE register (offset 0x0e) bit 7 is an indicator
for multi-function devices. We should mask it off before using
it as the header type.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci_auto.c