From bb42d6d224f4a6836a545bf0b9671dbceea3e999 Mon Sep 17 00:00:00 2001 From: lean Date: Sun, 6 Mar 2022 23:22:42 +0800 Subject: [PATCH] kernel:fix module_supported_device macro for kernel 5.15 --- ...03-add-module_supported_device-macro.patch | 26 +++++++++++++++++++ ...-initial-signal-voltage-on-power-off.patch | 17 ++++++++---- 2 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 target/linux/generic/backport-5.15/003-add-module_supported_device-macro.patch diff --git a/target/linux/generic/backport-5.15/003-add-module_supported_device-macro.patch b/target/linux/generic/backport-5.15/003-add-module_supported_device-macro.patch new file mode 100644 index 000000000..de119af0b --- /dev/null +++ b/target/linux/generic/backport-5.15/003-add-module_supported_device-macro.patch @@ -0,0 +1,26 @@ +From 3ccdf969a87be79df3daa9fe2d42f68f90ab7774 Mon Sep 17 00:00:00 2001 +From: W_Y_CPP <383152993@qq.com> +Date: Mon, 17 Jan 2022 21:34:38 +0900 +Subject: [PATCH] add MODULE_SUPPORTED_DEVICE macro + +--- + include/linux/module.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/include/linux/module.h b/include/linux/module.h +index c9f1200b2..a4190c861 100644 +--- a/include/linux/module.h ++++ b/include/linux/module.h +@@ -32,6 +32,9 @@ + #include + #include + ++/* Not Yet Implemented */ ++#define MODULE_SUPPORTED_DEVICE(name) ++ + #define MODULE_NAME_LEN MAX_PARAM_PREFIX_LEN + + struct modversion_info { +-- +2.17.1 + diff --git a/target/linux/rockchip/patches-5.10/107-mmc-core-set-initial-signal-voltage-on-power-off.patch b/target/linux/rockchip/patches-5.10/107-mmc-core-set-initial-signal-voltage-on-power-off.patch index ef3011585..a2ec66078 100644 --- a/target/linux/rockchip/patches-5.10/107-mmc-core-set-initial-signal-voltage-on-power-off.patch +++ b/target/linux/rockchip/patches-5.10/107-mmc-core-set-initial-signal-voltage-on-power-off.patch @@ -24,12 +24,19 @@ Signed-off-by: Jonas Karlman --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c -@@ -1354,6 +1354,8 @@ void mmc_power_off(struct mmc_host *host - - mmc_pwrseq_power_off(host); +@@ -1684,6 +1684,14 @@ void mmc_power_off(struct mmc_host *host) + if (host->ios.power_mode == MMC_POWER_OFF) + return; + mmc_set_initial_signal_voltage(host); + - host->ios.clock = 0; - host->ios.vdd = 0; ++ /* ++ * This delay should be sufficient to allow the power supply ++ * to reach the minimum voltage. ++ */ ++ mmc_delay(host->ios.power_delay_ms); ++ + mmc_pwrseq_power_off(host); + + host->ios.clock = 0;