shithub: riscv

Download patch

ref: 7111de631c6a76eeedfe0f41df7b9705582de1a5
parent: 54f9b36720ee3201dfd5a2524cdbf836edf5914f
author: cinap_lenrek <[email protected]>
date: Thu Jul 11 03:45:34 EDT 2019

devuart: make sure uart is enabled in uartkick()

--- a/sys/src/9/port/devuart.c
+++ b/sys/src/9/port/devuart.c
@@ -644,7 +644,7 @@
 {
 	Uart *p = v;
 
-	if(p->blocked)
+	if(!p->enabled || p->blocked)
 		return;
 
 	ilock(&p->tlock);