FreeBSD/src 642fc04sys/dev/usb/controller xlnx_dwc3.c dwc_otg_acpi.c

usb: Kill left-over cdefs.h includes

These includes were for __FBSD_RCSID() macro. They weren't formatted
like the rest of the tree so weren't trimmed automatically when that
script was run. Trim them now.

MFC After: 1 week
Sponsored by:           Netflix

(cherry picked from commit ca48e43ba9ee73a07cdbad8365117793b01273bb)
DeltaFile
+0-2sys/dev/usb/controller/xlnx_dwc3.c
+0-1sys/dev/usb/controller/dwc_otg_acpi.c
+0-1sys/dev/usb/controller/ehci_fsl.c
+0-1sys/dev/usb/controller/ehci_imx.c
+0-1sys/dev/usb/controller/ehci_msm.c
+0-1sys/dev/usb/controller/ehci_mv.c
+0-762 files not shown
+0-6968 files

FreeBSD/src ca48e43sys/dev/usb/controller xlnx_dwc3.c, sys/dev/usb/serial ucycom.c ufoma.c

usb: Kill left-over cdefs.h includes

These includes were for __FBSD_RCSID() macro. They weren't formatted
like the rest of the tree so weren't trimmed automatically when that
script was run. Trim them now.

MFC After: 1 week
Sponsored by:           Netflix
DeltaFile
+0-2sys/dev/usb/controller/xlnx_dwc3.c
+0-1sys/dev/usb/serial/ucycom.c
+0-1sys/dev/usb/serial/ufoma.c
+0-1sys/dev/usb/serial/uftdi.c
+0-1sys/dev/usb/serial/uipaq.c
+0-1sys/dev/usb/serial/ulpt.c
+0-762 files not shown
+0-6968 files

FreeBSD/src 3ddaf82sys/arm/nvidia tegra_ehci.c, sys/dev/etherswitch/e6000sw e6000sw.c

Use bus_generic_detach instead of device_delete_children in detach

While here, check for errors from bus_generic_detach and move it to
the start of detach if necessary.

Differential Revision:  https://reviews.freebsd.org/D47969
DeltaFile
+5-9sys/dev/usb/controller/ehci_fsl.c
+4-9sys/dev/usb/controller/musb_otg_allwinner.c
+5-5sys/arm/nvidia/tegra_ehci.c
+3-7sys/dev/usb/controller/ehci_msm.c
+5-3sys/dev/etherswitch/e6000sw/e6000sw.c
+6-1sys/dev/intel/spi.c
+28-3440 files not shown
+139-7646 files

FreeBSD/src 3bc8099sys/arm/arm exception.S, sys/dev/ioat ioat_test.h ioat_internal.h

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in current:
(cherry picked from commit 685dc743dc3b)
DeltaFile
+0-3sys/arm/arm/exception.S
+0-3sys/dev/pwm/pwm_backlight.c
+0-3sys/dev/ioat/ioat_test.h
+0-3sys/dev/ioat/ioat_internal.h
+0-3sys/dev/ioat/ioat_hw.h
+0-3sys/dev/ioat/ioat.h
+0-184,033 files not shown
+0-7,9144,039 files

FreeBSD/src 685dc74sys/dev/cfe cfe_env.c, sys/dev/cxgb/common cxgb_t3_hw.c

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
DeltaFile
+0-3sys/dev/ioat/ioat.h
+0-3sys/dev/extres/clk/clk_mux.c
+0-3sys/dev/extres/clk/clk_gate.c
+0-3sys/dev/extres/clk/clk_div.c
+0-3sys/dev/cxgb/common/cxgb_t3_hw.c
+0-3sys/dev/cfe/cfe_env.c
+0-183,795 files not shown
+0-7,4523,801 files

FreeBSD/src caa41f6bin/cp/tests cp_test.sh, bin/timeout timeout.1

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:         pfg
MFC After:              3 days
Sponsored by:           Netflix

(cherry picked from commit 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
DeltaFile
+2-2sys/xen/xenbus/xenbusb.h
+2-2sys/dev/qlxge/qls_isr.c
+1-1sys/dev/sound/pci/solo.c
+1-1bin/cp/tests/cp_test.sh
+1-1bin/timeout/timeout.1
+1-1include/bitstring.h
+8-85,432 files not shown
+5,440-5,4405,438 files

FreeBSD/src 4d846d2include stdalign.h stdbool.h, sys/dev/qlxge qls_isr.c

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:         pfg
MFC After:              3 days
Sponsored by:           Netflix
DeltaFile
+2-2sys/xen/xenbus/xenbusb.h
+2-2sys/dev/qlxge/qls_isr.c
+1-1include/stdalign.h
+1-1include/stdbool.h
+1-1include/stdnoreturn.h
+1-1include/strings.h
+8-85,571 files not shown
+5,579-5,5795,577 files

FreeBSD/src bc9372dsys/dev/usb usb_hub.c, sys/dev/usb/controller usb_controller.c ehci_imx.c

usb: Remove unused devclass arguments to DRIVER_MODULE.
DeltaFile
+9-11sys/dev/usb/controller/usb_controller.c
+3-9sys/dev/usb/misc/cp2112.c
+0-8sys/dev/usb/input/uhid.c
+2-6sys/dev/usb/controller/ehci_imx.c
+2-4sys/dev/usb/usb_hub.c
+1-4sys/dev/usb/controller/dwc_otg_hisi.c
+17-4283 files not shown
+103-28789 files

FreeBSD/src 518da7a (r362803)sys/conf files, sys/dev/usb/controller dwc_otg_acpi.c dwc_otg.c

Add dwc_otg_acpi

Create an acpi attachment for the DWC USB OTG device. This is present in
the Raspberry Pi 4 in the USB-C port normally used to power the board. Some
firmware presents the kernel with ACPI tables rather than FDT so we need
an ACPI attachment.

Submitted by:   Greg V <greg_unrelenting.technology>
Approved by:    hselasky (removal of All rights reserved)
Differential Revision:  https://reviews.freebsd.org/D25203
DeltaFile
+184-0sys/dev/usb/controller/dwc_otg_acpi.c
+29-0sys/dev/usb/controller/dwc_otg.c
+2-26sys/dev/usb/controller/dwc_otg_fdt.c
+0-21sys/mips/mediatek/mtk_dotg.c
+1-0sys/conf/files
+216-475 files