diff options
Diffstat (limited to 'pcitool')
-rw-r--r-- | pcitool/cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcitool/cli.c b/pcitool/cli.c index 8be4df6..caa55a9 100644 --- a/pcitool/cli.c +++ b/pcitool/cli.c @@ -1704,7 +1704,7 @@ int WriteRegister(pcilib_t *handle, const pcilib_model_description_t *model_info err = pcilib_write_register(handle, bank, reg, value); if (err) Error("Error writting register %s\n", reg); - if ((model_info->registers[regid].mode&PCILIB_REGISTER_RW) == PCILIB_REGISTER_RW) { + if ((model_info->registers[regid].mode&(PCILIB_REGISTER_RW|PCILIB_REGISTER_INCONSISTENT)) == PCILIB_REGISTER_RW) { const char *format = (val.format?val.format:"%u"); err = pcilib_read_register(handle, bank, reg, &verify); |