From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8F8321E0BA; Mon, 10 Mar 2025 11:19:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741605542; cv=none; b=Up3Wgjeci1SbLGxZyljMQWtIkNcv5WPTbYtk5TB6DWa7PYMHUziDkLOZyBOF+vM5q+CMadJYMFjWXVT2mNZ9p1ucaPW523k/FZeuL8DCE+WffbclCsStNPc3QKcr8mbQyz6l5lou3TOEi3Hkizx8SK7FFchqBcRRi1wKyaiIzMA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741605542; c=relaxed/simple; bh=UiTmurskdbza75TrfGQMDinmImYSMx3C6CTzTR774NA=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=VD0dwhZKBAFHbQcZ4gKWma7Jo6rm1KZLJfQ3ibk9FOGeulmqgpQiBVDA/dmUf4F2Tfn8eRI6yoJWp3hFVsi7L/a/ehLqZ/lGsv9ubjxZ7lJyxPDMxtak1UsFhcltSIP+4dgJDT5OAc7TfNdHFIzyLWHy21hywqEcUHXKIV8gAXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pL009KiP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="pL009KiP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0618FC4CEEE; Mon, 10 Mar 2025 11:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741605542; bh=UiTmurskdbza75TrfGQMDinmImYSMx3C6CTzTR774NA=; h=Subject:To:Cc:From:Date:From; b=pL009KiPuzGNhWXi5YTUnNngE595WWLv8yeFfCVtdwsN4HqgSnMhoCgjl3cBK3KiR Y8XOLhKLBO4IBrLtra1aVAsfFGmcSsC6swLlFzf7aiv9qpW/0CKCOEun6KEl9Ul3q8 fG26xxGyfsCn+cMebyBVCwc0ifskdQk0MQF0sgL8= Subject: Patch "iio: dac: ad3552r: clear reset status flag" has been added to the 6.1-stable tree To: Jonathan.Cameron@huawei.com,Stable@vger.kernel.org,adureghello@baylibre.com,gregkh@linuxfoundation.org Cc: From: Date: Mon, 10 Mar 2025 11:58:52 +0100 Message-ID: <2025031052-axis-condiment-384b@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit X-stable: commit X-Patchwork-Hint: ignore This is a note to let you know that I've just added the patch titled iio: dac: ad3552r: clear reset status flag to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: iio-dac-ad3552r-clear-reset-status-flag.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From e17b9f20da7d2bc1f48878ab2230523b2512d965 Mon Sep 17 00:00:00 2001 From: Angelo Dureghello Date: Sat, 25 Jan 2025 17:24:32 +0100 Subject: iio: dac: ad3552r: clear reset status flag From: Angelo Dureghello 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 Link: https://patch.msgid.link/20250125-wip-bl-ad3552r-clear-reset-v2-1-aa3a27f3ff8c@baylibre.com Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/dac/ad3552r.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/iio/dac/ad3552r.c +++ b/drivers/iio/dac/ad3552r.c @@ -703,6 +703,12 @@ static int ad3552r_reset(struct ad3552r_ return ret; } + /* Clear reset error flag, see ad3552r manual, rev B table 38. */ + ret = ad3552r_write_reg(dac, AD3552R_REG_ADDR_ERR_STATUS, + AD3552R_MASK_RESET_STATUS); + if (ret) + return ret; + return ad3552r_update_reg_field(dac, addr_mask_map[AD3552R_ADDR_ASCENSION][0], addr_mask_map[AD3552R_ADDR_ASCENSION][1], Patches currently in stable-queue which might be from adureghello@baylibre.com are queue-6.1/iio-dac-ad3552r-clear-reset-status-flag.patch