From: Jonathan Cameron <jic23@kernel.org>
To: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH v2] iio: dac: mcp4725: add missing powerdown bits in store eeprom
Date: Sat, 16 Mar 2019 16:00:59 +0000 [thread overview]
Message-ID: <20190316160059.10e133e2@archlinux> (raw)
In-Reply-To: <15603225-C392-42AE-92A1-893BB7C322E3@gmail.com>
On Tue, 12 Mar 2019 08:32:22 -0400
Jean-Francois Dagenais <jeff.dagenais@gmail.com> wrote:
> > On Mar 11, 2019, at 07:42, Jean-Francois Dagenais <jeff.dagenais@gmail.com> wrote:
> >
> > When issuing the write DAC register and write eeprom command, the two
> > powerdown bits (PD0 and PD1) are assumed by the chip to be present in
> > the bytes sent. Leaving them at 0 implies "powerdown disabled" which is
> > a different state that the current one. By adding the current state of
> > the powerdown in the i2c write, the chip will correctly power-on exactly
> > like as it is at the moment of store_eeprom call.
> >
> > This is documented in MCP4725's datasheet, FIGURE 6-2: "Write Commands
> > for DAC Input Register and EEPROM" and MCP4726's datasheet, FIGURE 6-3:
> > "Write All Memory Command".
> >
> > Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
> > ---
>
> I forgot to add:
>
> Acked-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
>
> in v2
>
> v3 just for that?
Ah, I picked up v1 and fixed it anyway. So don't bother ;)
Jonathan
prev parent reply other threads:[~2019-03-16 16:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-11 11:42 [PATCH v2] iio: dac: mcp4725: add missing powerdown bits in store eeprom Jean-Francois Dagenais
2019-03-12 12:32 ` Jean-Francois Dagenais
2019-03-16 16:00 ` 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=20190316160059.10e133e2@archlinux \
--to=jic23@kernel.org \
--cc=jeff.dagenais@gmail.com \
--cc=linux-iio@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.