Commit d06c4dec authored by Crystal Guo's avatar Crystal Guo Committed by Philipp Zabel
Browse files

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: default avatarCrystal Guo <crystal.guo@mediatek.com>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent 0d625a16
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ static int ti_syscon_reset_assert(struct reset_controller_dev *rcdev,
	mask = BIT(control->assert_bit);
	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);
	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);
}

/**