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 0/3] Fix driver for misc/atsha204a
Date: Mon, 19 Feb 2024 16:32:01 +0000	[thread overview]
Message-ID: <20240219163213.855667-1-barnas@google.com> (raw)


Fix the driver to behave like the chip datasheet requires.
Improve wake up function to send low signal on SDA line for at least
60us as chip requires to wake up. Fix sleep function to move the chip
into sleep mode, not into idle mode. Remove unnecessary for loop,
which would never run for more than one iteration.



Michał Barnaś (3):
  misc: atsha204a: remove broken for loop
  misc: atsha204a: fix sleep function
  misc: atsha204a: fix wakeup function

 drivers/misc/atsha204a-i2c.c | 90 ++++++++++++++++++++++++------------
 1 file changed, 61 insertions(+), 29 deletions(-)

-- 
2.44.0.rc0.258.g7320e95886-goog


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

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-19 16:32 Michał Barnaś [this message]
2024-02-19 16:32 ` [PATCH 1/3] misc: atsha204a: remove broken for loop Michał Barnaś
2024-02-19 16:32 ` [PATCH 2/3] misc: atsha204a: fix sleep function Michał Barnaś
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-1-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