Helper API to write register fields relies on successful readsReviewed-by: Hemant Kumar <hemantk@xxxxxxxxxxxxxx>
of the register/address prior to the write. Bail out if a failure
is seen when reading the register before the actual write is
performed.
Signed-off-by: Bhaumik Bhatt <bbhatt@xxxxxxxxxxxxxx>