]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: dac: ad3552r: clear reset status flag
authorAngelo Dureghello <adureghello@baylibre.com>
Sat, 25 Jan 2025 16:24:32 +0000 (17:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:02:17 +0000 (13:02 +0100)
commitacd26074c8ec000346bda50e8eba2b5b9e819c97
tree233d7a179da947243084f1c3eed62249875329a7
parent3d4f335c268d0ceac29f40c75693a9dac2f6f608
iio: dac: ad3552r: clear reset status flag

commit e17b9f20da7d2bc1f48878ab2230523b2512d965 upstream.

Clear reset status flag, to keep error status register clean after reset
(ad3552r manual, rev B table 38).

Reset error flag was left to 1, so debugging registers, the "Error
Status Register" was dirty (0x01). It is important to clear this bit, so
if there is any reset event over normal working mode, it is possible to
detect it.

Fixes: 8f2b54824b28 ("drivers:iio:dac: Add AD3552R driver support")
Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Link: https://patch.msgid.link/20250125-wip-bl-ad3552r-clear-reset-v2-1-aa3a27f3ff8c@baylibre.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/dac/ad3552r.c