Linux IIO development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Angelo Dureghello <adureghello@baylibre.com>
Cc: "Lars-Peter Clausen" <lars@metafoo.de>,
	"Michael Hennerich" <Michael.Hennerich@analog.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iio: dac: ad3552r: clear reset status flag
Date: Sat, 25 Jan 2025 12:35:40 +0000	[thread overview]
Message-ID: <20250125123540.5ed9f1ed@jic23-huawei> (raw)
In-Reply-To: <20250122-wip-bl-ad3552r-clear-reset-v1-1-04c1760ca622@baylibre.com>

On Wed, 22 Jan 2025 21:32:43 +0100
Angelo Dureghello <adureghello@baylibre.com> wrote:

> From: Angelo Dureghello <adureghello@baylibre.com>
> 
> 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.

Oddly short wrap. for commit descriptions wrap at 75 chars.

> 
> Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Sounds like a fix, so does it want a fixes tag / go in quick
of is this only visible in debug related activities?

Jonathan

> ---
>  drivers/iio/dac/ad3552r.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/iio/dac/ad3552r.c b/drivers/iio/dac/ad3552r.c
> index e7206af53af6..7944f5c1d264 100644
> --- a/drivers/iio/dac/ad3552r.c
> +++ b/drivers/iio/dac/ad3552r.c
> @@ -410,6 +410,12 @@ static int ad3552r_reset(struct ad3552r_desc *dac)
>  		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,
>  					AD3552R_REG_ADDR_INTERFACE_CONFIG_A,
>  					AD3552R_MASK_ADDR_ASCENSION,
> 
> ---
> base-commit: 07fa5fa97959422bbd663df056c9de0dec55e34f
> change-id: 20250122-wip-bl-ad3552r-clear-reset-330bdf2ff56e
> 
> Best regards,


      reply	other threads:[~2025-01-25 12:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-22 20:32 [PATCH] iio: dac: ad3552r: clear reset status flag Angelo Dureghello
2025-01-25 12:35 ` Jonathan Cameron [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250125123540.5ed9f1ed@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=Michael.Hennerich@analog.com \
    --cc=adureghello@baylibre.com \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox