Messages in this thread | | | From | David Lechner <> | Date | Mon, 25 Sep 2023 11:37:08 -0500 | Subject | Re: [PATCH v2 09/19] staging: iio: resolver: ad2s1210: use regmap for config registers |
| |
> > - if (ret & AD2S1210_MSB_IS_HIGH) { > I guess this was meant to be a sanity check on the chip responding. > > > - ret = -EIO; > > - goto error_ret; > > - } > > -
Yes, according to the data sheet, if this bit is set, it means there was a configuration parity error. This test has been moved to the ad2s1210_regmap_reg_read() function.
| |