Skip to content

Commit de8f3e9

Browse files
RaduSabau1buha
authored andcommitted
drivers: imu: adis : Fix reset delay
Fix delay for the RESET pin, so that the value from the initialization parameter is used instead of the device descriptor, since at that specific initialization, the device descriptor's information is not correct yet and that may result in incorrect behavior such as a longer than expected/needed delay. Signed-off-by: Radu Sabau <radu.sabau@analog.com>
1 parent 53ec0e8 commit de8f3e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/imu/adis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ int adis_init(struct adis_dev **adis, const struct adis_init_param *ip)
116116
NO_OS_GPIO_LOW);
117117
if (ret)
118118
goto error;
119-
no_os_mdelay(dev->info->timeouts->reset_ms);
119+
no_os_mdelay(ip->info->timeouts->reset_ms);
120120
}
121121

122122
dev->info = ip->info;

0 commit comments

Comments
 (0)