mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
drivers/rtc/rtc-ab8500.c: remove fix for AB8500 ED version
AB8500 ED (Early Drop) is no longer supported by the kernel. Signed-off-by: Bengt Jonsson <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Cc: Alessandro Zummo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
dc43d4a26b
commit
064407f1c0
1 changed files with 11 additions and 16 deletions
|
|
@ -89,22 +89,17 @@ static int ab8500_rtc_read_time(struct device *dev, struct rtc_time *tm)
|
|||
if (retval < 0)
|
||||
return retval;
|
||||
|
||||
/* Early AB8500 chips will not clear the rtc read request bit */
|
||||
if (abx500_get_chip_id(dev) == 0) {
|
||||
usleep_range(1000, 1000);
|
||||
} else {
|
||||
/* Wait for some cycles after enabling the rtc read in ab8500 */
|
||||
while (time_before(jiffies, timeout)) {
|
||||
retval = abx500_get_register_interruptible(dev,
|
||||
AB8500_RTC, AB8500_RTC_READ_REQ_REG, &value);
|
||||
if (retval < 0)
|
||||
return retval;
|
||||
/* Wait for some cycles after enabling the rtc read in ab8500 */
|
||||
while (time_before(jiffies, timeout)) {
|
||||
retval = abx500_get_register_interruptible(dev,
|
||||
AB8500_RTC, AB8500_RTC_READ_REQ_REG, &value);
|
||||
if (retval < 0)
|
||||
return retval;
|
||||
|
||||
if (!(value & RTC_READ_REQUEST))
|
||||
break;
|
||||
if (!(value & RTC_READ_REQUEST))
|
||||
break;
|
||||
|
||||
usleep_range(1000, 5000);
|
||||
}
|
||||
usleep_range(1000, 5000);
|
||||
}
|
||||
|
||||
/* Read the Watchtime registers */
|
||||
|
|
|
|||
Loading…
Reference in a new issue