changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: devuart: make sure uart is enabled in uartkick()

changeset 7304: 077f4f4547a6
parent 7301: e24206b69d32
child 7305: 617312eef5e1
author: cinap_lenrek@felloff.net
date: Thu, 11 Jul 2019 07:45:34 +0200
files: sys/src/9/port/devuart.c
description: devuart: make sure uart is enabled in uartkick()
     1.1--- a/sys/src/9/port/devuart.c
     1.2+++ b/sys/src/9/port/devuart.c
     1.3@@ -644,7 +644,7 @@ uartkick(void *v)
     1.4 {
     1.5 	Uart *p = v;
     1.6 
     1.7-	if(p->blocked)
     1.8+	if(!p->enabled || p->blocked)
     1.9 		return;
    1.10 
    1.11 	ilock(&p->tlock);