pl011: early_panic if baud rate not set in hardware
authorIan Campbell <ian.campbell@citrix.com>
Thu, 22 Aug 2013 16:01:59 +0000 (17:01 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 27 Aug 2013 13:35:44 +0000 (14:35 +0100)
commit2050ad703c65ed997f1328af702054d1960fb168
treeecd146974f5ded6a323422dc9e1536586be4e107
parentceb93c72d2046bffecd57fcbebd04aa0801414a2
pl011: early_panic if baud rate not set in hardware

Now that the driver defaults to BAUD_AUTO this can happen if the early uart !=
console or if early printk isn't in use.

The following division by zero causes a trap but that uses regular printk and
not early_printk, so it is never seen.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/drivers/char/pl011.c