reset-controller: ti: force the write operation when assert or deassert
Force the write operation in case the read already happens to return the correct value. Signed-off-by: Crystal Guo <crystal.guo@mediatek.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
parent
0d625a167b
commit
d06c4dec98
|
@ -89,7 +89,7 @@ static int ti_syscon_reset_assert(struct reset_controller_dev *rcdev,
|
||||||
mask = BIT(control->assert_bit);
|
mask = BIT(control->assert_bit);
|
||||||
value = (control->flags & ASSERT_SET) ? mask : 0x0;
|
value = (control->flags & ASSERT_SET) ? mask : 0x0;
|
||||||
|
|
||||||
return regmap_update_bits(data->regmap, control->assert_offset, mask, value);
|
return regmap_write_bits(data->regmap, control->assert_offset, mask, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -120,7 +120,7 @@ static int ti_syscon_reset_deassert(struct reset_controller_dev *rcdev,
|
||||||
mask = BIT(control->deassert_bit);
|
mask = BIT(control->deassert_bit);
|
||||||
value = (control->flags & DEASSERT_SET) ? mask : 0x0;
|
value = (control->flags & DEASSERT_SET) ? mask : 0x0;
|
||||||
|
|
||||||
return regmap_update_bits(data->regmap, control->deassert_offset, mask, value);
|
return regmap_write_bits(data->regmap, control->deassert_offset, mask, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue