mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
fiq debugger: ttyS2 and fiq debugger don't use the same uart2
Someone may enable uart2 and fiq debugger, which is illegal.
&uart2 {
status = "okay";
};
&fiq_debugger {
status = "okay";
};
Change-Id: Ibecd3c3ca69de1216103d7c373a4d282cf93cb30
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
This commit is contained in:
@@ -710,6 +710,11 @@ static int __init rk_fiqdbg_probe(struct platform_device *pdev)
|
||||
if (!ok)
|
||||
return -EINVAL;
|
||||
|
||||
if (of_device_is_available(np)) {
|
||||
pr_err("uart%d is enabled, please disable it\n", serial_id);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* parse serial hw irq */
|
||||
if (!of_irq_parse_one(np, 0, &oirq))
|
||||
serial_hwirq = oirq.args[1] + 32;
|
||||
|
||||
Reference in New Issue
Block a user