diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-04-27 15:11:18 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-04-27 15:12:22 +0200 |
commit | 7ea9deb34fc56120754b29560944364e24aba62a (patch) | |
tree | 6bb19d94b6b463d4fe5646c642952abd62256861 /linux | |
parent | 70ddda0f41b3b13a5a3b5179447712f7af8fb574 (diff) | |
download | gnumach-7ea9deb34fc56120754b29560944364e24aba62a.tar.gz gnumach-7ea9deb34fc56120754b29560944364e24aba62a.tar.bz2 gnumach-7ea9deb34fc56120754b29560944364e24aba62a.zip |
ahci: Ignore multifunction bit in PCI header type
* linux/dev/drivers/block/ahci.c (ahci_probe_dev): Clear bit 7 of
hdrtype.
Diffstat (limited to 'linux')
-rw-r--r-- | linux/dev/drivers/block/ahci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/dev/drivers/block/ahci.c b/linux/dev/drivers/block/ahci.c index b60f1a19..3cb003c0 100644 --- a/linux/dev/drivers/block/ahci.c +++ b/linux/dev/drivers/block/ahci.c @@ -829,6 +829,8 @@ static void ahci_probe_dev(unsigned char bus, unsigned char device) printk("ahci: %02x:%02x.%x: Can not read configuration", bus, dev, fun); return; } + /* Ignore multifunction bit */ + hdrtype &= ~0x80; if (hdrtype != 0) { printk("ahci: %02x:%02x.%x: Unknown hdrtype %d\n", bus, dev, fun, hdrtype); |