kernel:fix module_supported_device macro for kernel 5.15

This commit is contained in:
lean 2022-03-06 23:22:42 +08:00
parent e7d9312102
commit bb42d6d224
2 changed files with 38 additions and 5 deletions

View File

@ -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 <linux/percpu.h>
#include <asm/module.h>
+/* Not Yet Implemented */
+#define MODULE_SUPPORTED_DEVICE(name)
+
#define MODULE_NAME_LEN MAX_PARAM_PREFIX_LEN
struct modversion_info {
--
2.17.1

View File

@ -24,12 +24,19 @@ Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
--- a/drivers/mmc/core/core.c --- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c
@@ -1354,6 +1354,8 @@ void mmc_power_off(struct mmc_host *host @@ -1684,6 +1684,14 @@ void mmc_power_off(struct mmc_host *host)
if (host->ios.power_mode == MMC_POWER_OFF)
mmc_pwrseq_power_off(host); return;
+ mmc_set_initial_signal_voltage(host); + 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;