Borislav Petkov wrote: > On Mon, Jul 14, 2014 at 03:23:08PM -0500, Aravind Gopalakrishnan wrote: >> + if (boot_cpu_data.x86 == 0x15 && boot_cpu_data.x86_model == 0x60) { >> + pci_bus_write_config_dword(pdev->bus, PCI_DEVFN(0, 0), >> + NB_SMU_IND_ADDR, IND_ADDR_OFFSET); >> + pci_bus_read_config_dword(pdev->bus, PCI_DEVFN(0, 0), >> + NB_SMU_IND_DATA, ®val); How do you prevent races with any other code that accesses some indirect register? >> + >> + } else >> + pci_read_config_dword(pdev, REG_REPORTED_TEMPERATURE, ®val); Why the empty line? Also, use braces in both branches. Regards, Clemens -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html