opnsense-src/sys/dev/uart
Warner Losh 76bfa33f25 uart: Go back to returning '0' when we've probed the device.
Two reasons for this: we know it's a uart after we call probe and it
returns successfully. Second, uart passes data between probe and attach
with softc. As it is now, we call probe twice, once in the bidding
process and once after bidding id done. However, the probe process for
uart isn't completely idempotent (we change state of the uart
sometimes). The second call can result in odd behavior (though so far
only in buggy version of other code I've not committed). The bigger
problem is the softc: newbus creates it, we populate it, then frees it
when we don't return 0 to claim the device. It then calls us again, we
repopulate it, and this time it doesn't free it before calling attach.
Returning 0 avoids both of these issues. The justification for doing it
in the commit that changed it was 'while I'm here', so there doesn't
seem to be a use case for it.

Sponsored by:		Netflix
Reviewed by:		andrew
Differential Revision:	https://reviews.freebsd.org/D47095
2024-10-15 04:59:29 -06:00
..
uart.h uart: Add a signal to compute rclk from baudrate 2024-10-14 16:03:58 -06:00
uart_bus.h dev/uart: name uart_class_set DATA_SET macro UART_CLASS() 2024-02-22 22:43:22 +00:00
uart_bus_acpi.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
uart_bus_fdt.c uart: Honour clock-frequency in FDT for UART_FDT_CLASS if present 2024-05-15 16:53:33 +01:00
uart_bus_isa.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
uart_bus_pci.c Add support for Intel Atom S1200 UART 2024-04-19 16:52:51 -06:00
uart_bus_puc.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
uart_bus_scc.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
uart_core.c uart: Go back to returning '0' when we've probed the device. 2024-10-15 04:59:29 -06:00
uart_cpu.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
uart_cpu_acpi.c uart: Add a signal to compute rclk from baudrate 2024-10-14 16:03:58 -06:00
uart_cpu_acpi.h uart: Add uart_cpu_acpi_setup to setup the uart 2024-03-18 16:20:52 +00:00
uart_cpu_arm64.c uart: Add uart_cpu_acpi_setup to setup the uart 2024-03-18 16:20:52 +00:00
uart_cpu_fdt.c uart: Small style tweak 2024-10-11 15:27:46 -06:00
uart_cpu_fdt.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
uart_cpu_powerpc.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
uart_cpu_x86.c uart: Add uart_cpu_acpi_setup to setup the uart 2024-03-18 16:20:52 +00:00
uart_dbg.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
uart_dev_imx.c clk: Move clock code in dev/clk 2024-01-10 19:20:26 +01:00
uart_dev_imx.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
uart_dev_lowrisc.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
uart_dev_lowrisc.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
uart_dev_msm.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
uart_dev_msm.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
uart_dev_mu.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
uart_dev_mvebu.c sys: Simplify enabling EARLY_PRINTF uarts 2024-02-13 11:48:52 +00:00
uart_dev_ns8250.c uart/ns8250: Add support for computing rclk 2024-10-14 16:03:59 -06:00
uart_dev_ns8250.h uart(4): Honor hardware state of NS8250-class for tsw_busy 2024-01-14 08:03:59 +01:00
uart_dev_pl011.c uart/pl011: Add support for computing rclk 2024-10-15 04:58:49 -06:00
uart_dev_quicc.c uart: Use device_set_descf() 2024-06-02 19:38:41 -04:00
uart_dev_snps.c uart_snps: Register a device xref for UARTs 2024-04-12 17:04:23 +00:00
uart_dev_ti8250.c uart(4): Honor hardware state of NS8250-class for tsw_busy 2024-01-14 08:03:59 +01:00
uart_dev_z8530.c uart: Use device_set_descf() 2024-06-02 19:38:41 -04:00
uart_if.m uart(4): Honor hardware state of NS8250-class for tsw_busy 2024-01-14 08:03:59 +01:00
uart_ppstypes.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
uart_subr.c uart: uart_getenv: check for NULL class last, not first 2024-10-14 16:03:59 -06:00
uart_tty.c uart(4): Honor hardware state of NS8250-class for tsw_busy 2024-01-14 08:03:59 +01:00