Re: [PATCH 9/24] advansys: More PCI cleanups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 27, 2007 at 10:41:38AM -0400, Jeff Garzik wrote:
> Matthew Wilcox wrote:
> >-	if (asc_dvc->bus_type == ASC_IS_PCI) {
> >-		PCIVendorID = AscReadPCIConfigWord(asc_dvc,
> >-						   
> >AscPCIConfigVendorIDRegister);
> > 
> >-		PCIDeviceID = AscReadPCIConfigWord(asc_dvc,
> >-						   
> >AscPCIConfigDeviceIDRegister);
> >-
> >-		PCIRevisionID = DvcReadPCIConfigByte(asc_dvc,
> >-						     
> >AscPCIConfigRevisionIDRegister);
> >-
> >-		if (PCIVendorID != PCI_VENDOR_ID_ASP) {
> >-			warn_code |= ASC_WARN_SET_PCI_CONFIG_SPACE;
> >-		}
> 
> 
> That last test/bit-set disappeared.  What does that code do, and why it 
> is safe to remove?

It reads PCI config space to see if the PCI Vendor ID is Advansys's.
Linux PCI drivers don't second-guess their subsystem like this.

-- 
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux