#! /bin/sh
-# Copyright (C) 2008-2021 Alexandre Oliva <lxoliva@fsfla.org>
+# Copyright (C) 2008-2022 Alexandre Oliva <lxoliva@fsfla.org>
# Copyright (C) 2008 Jeff Moe
# Copyright (C) 2009 Rubén Rodríguez <ruben@gnu.org>
#
announce MICROCODE_AMD - "AMD microcode patch loading support"
reject_firmware arch/x86/kernel/cpu/microcode/amd.c
clean_blob arch/x86/kernel/cpu/microcode/amd.c
+if grep -q -i zenbleed.*microcode arch/x86/kernel/cpu/amd.c; then
+ clean_blob arch/x86/kernel/cpu/amd.c
+fi
clean_kconfig arch/x86/Kconfig MICROCODE_AMD
clean_mk CONFIG_MICROCODE_AMD arch/x86/kernel/cpu/microcode/Makefile
-EINVAL)
}' drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 'report missing Free firmware'
clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
-clean_sed '
+if grep -q loaded_fw_major drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c; then
+ clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+else
+ clean_sed '
/^int bnx2x_compare_fw_ver/,/^}$/{
/^ u32 my_fw = /i\
/*(DEBLOBBED)*/
u32 my_fw = ~loaded_fw;
}
}' drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 'fail already-loaded test'
+fi
clean_blob drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
clean_sed '
/static void bnx2x_init_wr_wb/{
announce MICROSEMI_PHY - "Microsemi PHYs"
reject_firmware drivers/net/phy/mscc/mscc_main.c
+if grep -q MODULE_FIRMWARE drivers/net/phy/mscc/mscc_main.c; then
+ clean_blob drivers/net/phy/mscc/mscc_main.c
+fi
clean_blob drivers/net/phy/mscc/mscc.h
clean_kconfig drivers/net/phy/Kconfig MICROSEMI_PHY
clean_mk CONFIG_MICROSEMI_PHY drivers/net/phy/mscc/Makefile
# host
-announce USB_XHCI_PCI_RENESAS - "Support for additional Renesas xHCI controller with firwmare"
+announce USB_XHCI_PCI_RENESAS - "Support for additional Renesas xHCI controller with firmware"
if grep -q 'firmware_request_nowarn' drivers/usb/host/xhci-pci-renesas.c; then
reject_firmware_nowarn drivers/usb/host/xhci-pci-renesas.c
else
clean_kconfig drivers/remoteproc/Kconfig WKUP_M3_RPROC
clean_mk CONFIG_WKUP_M3_RPROC drivers/remoteproc/Makefile
-announce QCOM_Q6V5_ADSP - "Qualcomm Technology Inc ADSP Peripherial Image Loader"
+announce QCOM_Q6V5_ADSP - "Qualcomm Technology Inc ADSP Peripheral Image Loader"
clean_blob drivers/remoteproc/qcom_q6v5_adsp.c
clean_kconfig drivers/remoteproc/Kconfig QCOM_Q6V5_ADSP
clean_mk CONFIG_QCOM_Q6V5_ADSP drivers/remoteproc/Makefile
clean_kconfig drivers/remoteproc/Kconfig QCOM_Q6V5_MSS
clean_mk CONFIG_QCOM_Q6V5_MSS drivers/remoteproc/Makefile
-announce QCOM_Q6V5_PAS - "Qualcomm Hexagon V5 Peripherial Authentication Service support"
+announce QCOM_Q6V5_PAS - "Qualcomm Hexagon V5 Peripheral Authentication Service support"
clean_blob drivers/remoteproc/qcom_q6v5_pas.c
clean_kconfig drivers/remoteproc/Kconfig QCOM_Q6V5_PAS
clean_mk CONFIG_QCOM_Q6V5_PAS drivers/remoteproc/Makefile
clean_kconfig drivers/remoteproc/Kconfig QCOM_Q6V5_WCSS
clean_mk CONFIG_QCOM_Q6V5_WCSS drivers/remoteproc/Makefile
-announce QCOM_WCNSS_PIL - "Qualcomm WCNSS Peripherial Image Loader"
+announce QCOM_WCNSS_PIL - "Qualcomm WCNSS Peripheral Image Loader"
clean_blob drivers/remoteproc/qcom_wcnss.c
clean_kconfig drivers/remoteproc/Kconfig QCOM_WCNSS_PIL
clean_mk CONFIG_QCOM_WCNSS_PIL drivers/remoteproc/Makefile
# fill in the required fw_image field of mhi_controller. Let me know
# if you find any uses in which the firmware is Free Software.
announce MHI_BUS - "Modem Host Interface (MHI) bus"
-reject_firmware drivers/bus/mhi/core/boot.c
-clean_kconfig drivers/bus/mhi/Kconfig MHI_BUS
-clean_mk CONFIG_MHI_BUS drivers/bus/mhi/core/Makefile
+if test -f drivers/bus/mhi/host/boot.c; then
+ reject_firmware drivers/bus/mhi/host/boot.c
+ clean_kconfig drivers/bus/mhi/host/Kconfig MHI_BUS
+ clean_mk CONFIG_MHI_BUS drivers/bus/mhi/host/Makefile
+else
+ reject_firmware drivers/bus/mhi/core/boot.c
+ clean_kconfig drivers/bus/mhi/Kconfig MHI_BUS
+ clean_mk CONFIG_MHI_BUS drivers/bus/mhi/core/Makefile
+fi
+
+if test -f drivers/bus/mhi/host/pci_generic.c; then
+ announce MHI_BUS_PCI_GENERIC - "MHI PCI controller driver"
+ clean_blob drivers/bus/mhi/host/pci_generic.c
+ clean_kconfig drivers/bus/mhi/host/Kconfig MHI_BUS_PCI_GENERIC
+ clean_mk CONFIG_MHI_BUS_PCI_GENERIC drivers/bus/mhi/host/Makefile
+fi
# Greybus