Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: dac: ad3552r-hs: fix message on wrong chip id

Set a better info message on wrong chip id, fixing the expected value as
read from the info struct.

Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Link: https://patch.msgid.link/20250114-wip-bl-ad3552r-axi-v0-iio-testing-carlos-v4-5-979402e33545@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Angelo Dureghello and committed by
Jonathan Cameron
96873eea 8ab67b37

+3 -2
+3 -2
drivers/iio/dac/ad3552r-hs.c
··· 326 326 327 327 id |= val << 8; 328 328 if (id != st->model_data->chip_id) 329 - dev_info(st->dev, "Chip ID error. Expected 0x%x, Read 0x%x\n", 330 - AD3552R_ID, id); 329 + dev_warn(st->dev, 330 + "chip ID mismatch, detected 0x%x but expected 0x%x\n", 331 + id, st->model_data->chip_id); 331 332 332 333 /* Clear reset error flag, see ad3552r manual, rev B table 38. */ 333 334 ret = st->data->bus_reg_write(st->back, AD3552R_REG_ADDR_ERR_STATUS,