Jia-Ju Bai 298c854520 rtc: r7301: Fix a possible sleep-in-atomic bug in rtc7301_set_time
The driver may sleep under a spinlock.
The function call path is:
rtc7301_set_time (acquire the spinlock)
  usleep_range --> may sleep

To fix it, usleep_range is replaced with udelay.

This bug is found by my static analysis tool(DSAC) and checked by my code review.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
2018-01-12 00:20:34 +01:00
..
2017-12-18 23:05:10 +01:00
2017-12-18 23:05:10 +01:00
2017-07-07 13:14:14 +02:00
2017-10-13 00:10:12 +02:00
2017-03-09 01:29:17 +01:00
2016-05-20 12:33:51 +02:00
2017-10-13 00:10:06 +02:00
2017-10-13 00:10:17 +02:00
2016-05-20 12:33:51 +02:00
2017-09-01 01:10:11 +02:00
2016-05-20 12:33:51 +02:00
2017-09-01 01:10:11 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2015-09-05 13:19:06 +02:00
2016-05-20 12:33:51 +02:00
2017-10-13 00:10:10 +02:00
2017-09-01 01:10:11 +02:00
2017-01-11 17:23:04 +01:00
2017-08-22 12:05:21 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2017-09-05 09:55:02 +02:00
2017-07-07 13:14:19 +02:00
2017-07-31 00:17:44 +02:00
2017-08-24 11:03:35 +02:00
2017-04-22 18:01:15 +02:00
2016-05-20 12:33:51 +02:00
2017-11-29 22:20:56 +01:00
2017-08-24 11:03:36 +02:00
2016-05-20 12:33:51 +02:00