1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: architecture/mips64/package/.../6000-rtc.patch
5 # Copyright (C) 2019 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 The upstream driver did not power down my Sgi Octane anymore,
18 so let's loop on rtc write like the original ip30 code from
21 - Rene Rebe <rene@exactcode.de>
23 --- linux-4.18.5/drivers/rtc/rtc-ds1685.c.vanilla 2019-10-20 16:45:44.799396423 +0000
24 +++ linux-4.18.5/drivers/rtc/rtc-ds1685.c 2019-10-20 19:16:44.747245705 +0000
25 @@ -2212,12 +2212,12 @@
27 /* Set PAB to 1 in Control 4A to power the system down. */
28 dev_warn(&pdev->dev, "Powerdown.\n");
30 - rtc->write(rtc, RTC_EXT_CTRL_4A,
31 - (ctrl4a | RTC_CTRL_4A_PAB));
33 - /* Spin ... we do not switch back to bank0. */
36 + /* Spin ... we do not switch back to bank0. */
37 + rtc->write(rtc, RTC_EXT_CTRL_4A,
38 + (ctrl4a | RTC_CTRL_4A_PAB));