lkml.org 
[lkml]   [2001]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] PCI probing status cleanup
Tim Hockin wrote:
> /* some broken boards return 0 or ~0 if a slot is empty: */
> - if (l == 0xffffffff || l == 0x00000000 || l == 0x0000ffff || l == 0xffff0000)
> + if (l == 0xffffffff || l == 0x00000000
> + || l == 0x0000ffff || l == 0xffff0000) {
> + /*
> + * host/pci and pci/pci bridges will set Received Master Abort
> + * (bit 13) on failed configuration access (happens when
> + * searching for devices). To be safe, clear the status
> + * register.
> + */
> + unsigned short st;
> + pci_read_config_word(temp, PCI_STATUS, &st);
> + pci_write_config_word(temp, PCI_STATUS, st);
> return NULL;
> + }

ok, though I wonder if we shouldn't just clear status for all PCI
devices on boot for paranoia's sake.

--
Jeff Garzik | A recent study has shown that too much soup
Building 1024 | can cause malaise in laboratory mice.
MandrakeSoft |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.087 / U:2.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site