If its locked read only then that is fine. The read back will see the
old value not 0x05 bits set. In which case it'll leave it alone
pci_write_config_byte(dev, PCI_CLASS_PROG, r9|0x05);
pci_read_config_byte(dev, PCI_CLASS_PROG, &r9);
if((r9 & 0x05) == 0x05) /* Reprogrammable */
return 1;
/* Refused */
return 0;
I'm just trying to get this right so we can do a sensible quick fix for
2.4.19. Its relatively easy to add pci_assign_device(dev) functionality
and make the IDE drivers do the right thing when they kick the devices
out of legacy mode. Thats the longer term right answer.
-
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/