Hi Laurent, > > Read out and check the ID registers, so we can bail out if I2C > > communication does not work or if the device is unknown. > > What's the advantage of that, what are you trying to guard against ? That a random chip at address 0x2c will be used. > > Tested on a > > Renesas GrayHawk board (R-Car V4M) by using a wrong I2C address and by > > not enabling RuntimePM for the device. > > What do you mean by not enabling runtime PM for the device ? I left out pm_runtime_get() before regmap_read_bulk(). Happy hacking, Wolfram
Attachment:
signature.asc
Description: PGP signature