Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 943413c5 authored by Wim Van Sebroeck's avatar Wim Van Sebroeck
Browse files

watchdog: w83697ug_wdt: Fix set bit 0 to activate GPIO2



outb_p(c || 0x01, WDT_EFDR); -> || should be |

Reported-By: default avatarToralf Förster <toralf.foerster@gmx.de>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 6899a8e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ static int w83697ug_select_wd_register(void)
	outb_p(0x08, WDT_EFDR); /* select logical device 8 (GPIO2) */
	outb_p(0x30, WDT_EFER); /* select CR30 */
	c = inb_p(WDT_EFDR);
	outb_p(c || 0x01, WDT_EFDR); /* set bit 0 to activate GPIO2 */
	outb_p(c | 0x01, WDT_EFDR); /* set bit 0 to activate GPIO2 */

	return 0;
}