Linux IIO development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: David Lechner <dlechner@baylibre.com>
Cc: Lukas <lukas.metz@gmx.net>,
	Siratul Islam <siratul.islam@linux.dev>,
	andy@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org,
	krzk+dt@kernel.org, linux-iio@vger.kernel.org,
	linux-kernel@vger.kernel.org, nuno.sa@analog.com,
	robh@kernel.org
Subject: Re: [PATCH 1/2] iio: dac: dac8163: Add driver for DAC8163
Date: Thu, 2 Jul 2026 01:32:03 +0100	[thread overview]
Message-ID: <20260702013203.46778542@jic23-huawei> (raw)
In-Reply-To: <c64ed5e8-90b2-4898-b218-b1e41382765d@baylibre.com>

On Wed, 24 Jun 2026 09:18:00 -0500
David Lechner <dlechner@baylibre.com> wrote:

> On 6/24/26 3:30 AM, Lukas wrote:
> > Thanks for the review. As i said this is my first time submitting a
> > patch. I have looked at already existing spi dac drivers for reference
> > but i seemed to have missed quite a lot. But the comments are greatly
> > appreciated.
> > 
> > On Wed, Jun 24, 2026 at 12:56:15AM +0600, Siratul Islam wrote:  
> >> A link to the datasheet here would be nice.  
> > 
> > I will try to add all the small suggestions i dont mention explicitly,
> > like style issues or using guard instead of manual lock/unlock to v2.
> >   
> >>> +
> >>> +	if (st->internal_ref) {
> >>> +		st->vref_uv = 2500000; /* 2.5V internal reference */  
> >> A note on where this value came from or why this was chosen, or a reference to datasheet would be better.  
> > 
> > I think i would add the suggestion from David Lechner to remove the
> > internal_ref property completly and add "the way of doing optional
> > voltage references". This includes using the macro
> > DAC8163_INTERNAL_REF_mV. Would this be acceptable?
> >   
> >> You have a CMD_SOFT_RST defined but not used. Should this be used to reset before doing any configuration?  
> > 
> > Yes this is a command which isnt used at this point. But maybe it makes
> > sense to reset the DAC first when probing.  
> 
> In general we tend to reset IIO devices during probe. DACs can be an exception
> though since they are output devices and resetting it could change the output.
> This device is quite simple anyway, so reset probably isn't needed.

If this one is write only (based on another comment - I haven't read the code
yet), then I think we might need to reset anyway so that we can bring state
in sync and allow readback of the current channel values.

> 
> > 
> > Best regards
> > Lukas  
> 


  reply	other threads:[~2026-07-02  0:32 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-23 16:07 [PATCH 0/2] Add driver for DAC8163: Lukas Metz
2026-06-23 16:07 ` [PATCH 1/2] iio: dac: dac8163: Add driver for DAC8163 Lukas Metz
2026-06-23 18:56   ` Siratul Islam
2026-06-24  8:30     ` Lukas
2026-06-24 14:18       ` David Lechner
2026-07-02  0:32         ` Jonathan Cameron [this message]
2026-07-02  1:38     ` Jonathan Cameron
2026-06-23 19:39   ` Andy Shevchenko
2026-06-24 14:47     ` Lukas
2026-06-24 15:27       ` David Lechner
2026-06-25  6:18       ` Andy Shevchenko
2026-06-23 19:50   ` David Lechner
2026-06-30 17:03   ` Uwe Kleine-König
2026-07-01  9:34     ` Andy Shevchenko
2026-06-23 16:07 ` [PATCH 2/2] dt-bindings: iio: dac: Add DAC8163 Lukas Metz
2026-06-23 19:17   ` David Lechner
2026-06-24  6:25     ` Lukas Metz
2026-06-24 14:14       ` David Lechner
2026-07-02  0:25         ` Jonathan Cameron
2026-06-23 19:54   ` David Lechner
2026-06-23 18:35 ` [PATCH 0/2] Add driver for DAC8163: Andy Shevchenko
2026-06-23 18:50   ` David Lechner
2026-06-23 19:40     ` Andy Shevchenko

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=20260702013203.46778542@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lukas.metz@gmx.net \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    --cc=siratul.islam@linux.dev \
    /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