86fb540033
uart_bus_attach() during its test that 20 iterations weren't sufficient for clearing all pending interrupts, assuming this means that hardware is broken and doesn't deassert interrupts. However, under pressure, 20 iterations also can be insufficient for clearing all pending interrupts, leading to a panic as intr_event_handle() tries to schedule an interrupt handler not registered. Solve this by introducing a flag that is set in test mode and otherwise restores pre-r253161 behavior of uart_intr(). The approach of additionally registering uart_intr() as handler as suggested in PR 194979 is not taken as that in turn would abuse special pccard and pccbb handling code of intr_event_handle(). [1] - Const'ify uart_driver_name. - Fix some minor style bugs. PR: 194979 [1] Reviewed by: marcel (earlier version) MFC after: 3 days |
||
---|---|---|
.. | ||
uart_bus_acpi.c | ||
uart_bus_ebus.c | ||
uart_bus_fdt.c | ||
uart_bus_isa.c | ||
uart_bus_pccard.c | ||
uart_bus_pci.c | ||
uart_bus_puc.c | ||
uart_bus_scc.c | ||
uart_bus.h | ||
uart_core.c | ||
uart_cpu_fdt.c | ||
uart_cpu_fdt.h | ||
uart_cpu_pc98.c | ||
uart_cpu_powerpc.c | ||
uart_cpu_sparc64.c | ||
uart_cpu_x86.c | ||
uart_cpu.h | ||
uart_dbg.c | ||
uart_dev_imx.c | ||
uart_dev_imx.h | ||
uart_dev_lpc.c | ||
uart_dev_msm.c | ||
uart_dev_msm.h | ||
uart_dev_ns8250.c | ||
uart_dev_ns8250.h | ||
uart_dev_pl011.c | ||
uart_dev_quicc.c | ||
uart_dev_sab82532.c | ||
uart_dev_ti8250.c | ||
uart_dev_z8530.c | ||
uart_if.m | ||
uart_kbd_sun_tables.h | ||
uart_kbd_sun.c | ||
uart_kbd_sun.h | ||
uart_subr.c | ||
uart_tty.c | ||
uart.h |