lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VcUgwZWgaAX8XNrVLc8Rnn-xMAqFSKvh=+bQWNM50pyPA@mail.gmail.com>
Date: Mon, 28 Apr 2025 09:55:44 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Jonathan Santos <Jonathan.Santos@...log.com>
Cc: linux-iio@...r.kernel.org, devicetree@...r.kernel.org, 
	linux-kernel@...r.kernel.org, linux-gpio@...r.kernel.org, andy@...nel.org, 
	nuno.sa@...log.com, Michael.Hennerich@...log.com, marcelo.schmitt@...log.com, 
	jic23@...nel.org, robh@...nel.org, krzk+dt@...nel.org, conor+dt@...nel.org, 
	marcelo.schmitt1@...il.com, linus.walleij@...aro.org, brgl@...ev.pl, 
	lgirdwood@...il.com, broonie@...nel.org, jonath4nns@...il.com, 
	dlechner@...libre.com, David Lechner <dlechner@...lire.com>
Subject: Re: [PATCH v6 07/11] iio: adc: ad7768-1: add multiple scan types to
 support 16-bits mode

On Mon, Apr 28, 2025 at 3:13 AM Jonathan Santos
<Jonathan.Santos@...log.com> wrote:
>
> When the device is configured to decimation x8, only possible in the
> sinc5 filter, output data is reduced to 16-bits in order to support
> 1 MHz of sampling frequency due to clock limitation.
>
> Use multiple scan types feature to enable the driver to switch
> scan type in runtime, making possible to support both 24-bit and

at runtime
making it possible

> 16-bit resolution.

...

> +       ret = spi_read(st->spi, &st->data.scan.chan,
> +                      BITS_TO_BYTES(scan_type->realbits));
>         if (ret < 0)
>                 goto out;

Add a TODO to convert this to use a new helper from 163ddf1fea59.

-- 
With Best Regards,
Andy Shevchenko

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ