public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix driver for misc/atsha204a
@ 2024-02-19 16:32 Michał Barnaś
  2024-02-19 16:32 ` [PATCH 1/3] misc: atsha204a: remove broken for loop Michał Barnaś
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Michał Barnaś @ 2024-02-19 16:32 UTC (permalink / raw)
  To: u-boot; +Cc: Michał Barnaś, Tom Rini


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-03-08 17:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [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ś

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox