[PATCH v2 0/2] iio: adc: ltc2309: Add LTC2305 read delay and optimize chip_info

Carlos Jones Jr posted 2 patches 1 day, 22 hours ago
drivers/iio/adc/ltc2309.c | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
[PATCH v2 0/2] iio: adc: ltc2309: Add LTC2305 read delay and optimize chip_info
Posted by Carlos Jones Jr 1 day, 22 hours ago
This series adds missing read delay support for the LTC2305 and optimizes
the chip_info structure for better memory safety and efficiency.

The LTC2305 requires a 1.6μs delay between I2C channel selection and
data read operations - a timing requirement identified by the hardware
designer that wasn't captured in the initial LTC2305 support
(commit 8625d418d24b ("iio: adc: ltc2309: add support for ltc2305")).

Additionally, the chip_info structure is enhanced with __counted_by_ptr()
annotation for improved bounds checking and reorganized to minimize
padding.

Changes in v2:
- Split into two logical patches as suggested by Andy Shevchenko:
  * Patch 1: Read delay functionality
  * Patch 2: Structure optimization
- No code changes from v1, only reorganization

Link to v1:
https://lore.kernel.org/linux-iio/20260327034159.15545-1-carlosjr.jones@analog.com/

Carlos Jones Jr (2):
  iio: adc: ltc2309: add read delay for ltc2305
  iio: adc: ltc2309: Optimize chip_info structure layout

 drivers/iio/adc/ltc2309.c | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

-- 
2.43.0

Re: [PATCH v2 0/2] iio: adc: ltc2309: Add LTC2305 read delay and optimize chip_info
Posted by Nuno Sá 1 day, 13 hours ago
On Tue, Mar 31, 2026 at 09:24:55AM +0800, Carlos Jones Jr wrote:
> This series adds missing read delay support for the LTC2305 and optimizes
> the chip_info structure for better memory safety and efficiency.
> 
> The LTC2305 requires a 1.6μs delay between I2C channel selection and
> data read operations - a timing requirement identified by the hardware
> designer that wasn't captured in the initial LTC2305 support
> (commit 8625d418d24b ("iio: adc: ltc2309: add support for ltc2305")).
> 
> Additionally, the chip_info structure is enhanced with __counted_by_ptr()
> annotation for improved bounds checking and reorganized to minimize
> padding.
> 
> Changes in v2:
> - Split into two logical patches as suggested by Andy Shevchenko:
>   * Patch 1: Read delay functionality
>   * Patch 2: Structure optimization
> - No code changes from v1, only reorganization
> 
> Link to v1:
> https://lore.kernel.org/linux-iio/20260327034159.15545-1-carlosjr.jones@analog.com/
> 
> Carlos Jones Jr (2):
>   iio: adc: ltc2309: add read delay for ltc2305
>   iio: adc: ltc2309: Optimize chip_info structure layout
> 
>  drivers/iio/adc/ltc2309.c | 16 +++++++++++++---
>  1 file changed, 13 insertions(+), 3 deletions(-)
> 
> -- 
> 2.43.0
> 

Reviewed-by: Nuno Sá <nuno.sa@analog.com>

Re: [PATCH v2 0/2] iio: adc: ltc2309: Add LTC2305 read delay and optimize chip_info
Posted by Andy Shevchenko 1 day, 16 hours ago
On Tue, Mar 31, 2026 at 4:25 AM Carlos Jones Jr
<carlosjr.jones@analog.com> wrote:
>
> This series adds missing read delay support for the LTC2305 and optimizes
> the chip_info structure for better memory safety and efficiency.
>
> The LTC2305 requires a 1.6μs delay between I2C channel selection and
> data read operations - a timing requirement identified by the hardware
> designer that wasn't captured in the initial LTC2305 support
> (commit 8625d418d24b ("iio: adc: ltc2309: add support for ltc2305")).
>
> Additionally, the chip_info structure is enhanced with __counted_by_ptr()
> annotation for improved bounds checking and reorganized to minimize
> padding.

Now LGTM,
Reviewed-by: Andy Shevchenko <andy@kernel.org>

-- 
With Best Regards,
Andy Shevchenko