public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Michał Barnaś" <barnas@google.com>
To: u-boot@lists.denx.de
Cc: "Michał Barnaś" <barnas@google.com>, "Tom Rini" <trini@konsulko.com>
Subject: [PATCH 2/3] misc: atsha204a: fix sleep function
Date: Mon, 19 Feb 2024 16:32:03 +0000	[thread overview]
Message-ID: <20240219163213.855667-3-barnas@google.com> (raw)
In-Reply-To: <20240219163213.855667-1-barnas@google.com>

Fix the sleep function to issue the sleep command instead of idle one.

Signed-off-by: Michał Barnaś <barnas@google.com>
---

 drivers/misc/atsha204a-i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c
index ab83bbc3e9..29daefb2a5 100644
--- a/drivers/misc/atsha204a-i2c.c
+++ b/drivers/misc/atsha204a-i2c.c
@@ -139,7 +139,7 @@ int atsha204a_idle(struct udevice *dev)
 int atsha204a_sleep(struct udevice *dev)
 {
 	int res;
-	u8 req = ATSHA204A_FUNC_IDLE;
+	u8 req = ATSHA204A_FUNC_SLEEP;
 
 	res = atsha204a_send(dev, &req, 1);
 	if (res)
-- 
2.44.0.rc0.258.g7320e95886-goog


  parent reply	other threads:[~2024-02-19 16:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-19 16:32 [PATCH 0/3] Fix driver for misc/atsha204a Michał Barnaś
2024-02-19 16:32 ` [PATCH 1/3] misc: atsha204a: remove broken for loop Michał Barnaś
2024-02-19 16:32 ` Michał Barnaś [this message]
2024-02-19 16:32 ` [PATCH 3/3] misc: atsha204a: fix wakeup function Michał Barnaś
2024-03-05 13:17 ` [PATCH 0/3] Fix driver for misc/atsha204a Tom Rini
2024-03-08 17:13   ` Michał Barnaś

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=20240219163213.855667-3-barnas@google.com \
    --to=barnas@google.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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