summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorAntoniu Miclaus <antoniu.miclaus@analog.com>2025-10-07 14:15:20 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-12-12 20:40:23 +0300
commit84885743a0768383a78f390eb9474e5fcadb7df1 (patch)
tree8c0d1afe47f16cac14686ec6dd557216da422b2b /scripts/gdb/linux/utils.py
parent4f5d9eaab57fd86217bbf4b50d9b78ea259d5886 (diff)
downloadlinux-84885743a0768383a78f390eb9474e5fcadb7df1.tar.xz
iio: adc: ad4080: fix chip identification
commit b66cddc8be7278fd14650ff9182f3794397f8b31 upstream. Fix AD4080 chip identification by using the correct 16-bit product ID (0x0050) instead of GENMASK(2, 0). Update the chip reading logic to use regmap_bulk_read to read both PRODUCT_ID_L and PRODUCT_ID_H registers and combine them into a 16-bit value. The original implementation was incorrectly reading only 3 bits, which would not correctly identify the AD4080 chip. Fixes: 6b31ba1811b6 ("iio: adc: ad4080: add driver support") Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions