diff --git a/debian/changelog b/debian/changelog index e2b2de889..ea3fb09dd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +linux (4.1.3-2) UNRELEASED; urgency=medium + + [ Ian Campbell ] + * [armhf] Enable cpufreq on some sunxi platforms (Closes: #793185) + - Enable autoloading of the cpufreq-dt driver. + - Enable autoloading of AXP20x regulator driver. + + -- Ian Campbell Tue, 04 Aug 2015 19:31:45 +0100 + linux (4.1.3-1) unstable; urgency=medium * New upstream stable update: diff --git a/debian/patches/features/all/cpufreq-dt-allow-driver-to-boot-automatically.patch b/debian/patches/features/all/cpufreq-dt-allow-driver-to-boot-automatically.patch new file mode 100644 index 000000000..a78162483 --- /dev/null +++ b/debian/patches/features/all/cpufreq-dt-allow-driver-to-boot-automatically.patch @@ -0,0 +1,32 @@ +From 07949bf9c63c9a80027fe8452d5fe8b9ba9b3c23 Mon Sep 17 00:00:00 2001 +From: Felipe Balbi +Date: Fri, 8 May 2015 14:57:30 -0500 +Subject: [PATCH] cpufreq: dt: allow driver to boot automatically +Origin: http://git.kernel.org/linus/07949bf9c63c9a80027fe8452d5fe8b9ba9b3c23 + +by adding the missing MODULE_ALIAS(), cpufreq-dt +can be autoloaded by udev/systemd. + +Signed-off-by: Felipe Balbi +Acked-by: Nishanth Menon +Acked-by: Viresh Kumar +Signed-off-by: Rafael J. Wysocki +--- + drivers/cpufreq/cpufreq-dt.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c +index bab67db..528a82bf 100644 +--- a/drivers/cpufreq/cpufreq-dt.c ++++ b/drivers/cpufreq/cpufreq-dt.c +@@ -416,6 +416,7 @@ static struct platform_driver dt_cpufreq_platdrv = { + }; + module_platform_driver(dt_cpufreq_platdrv); + ++MODULE_ALIAS("platform:cpufreq-dt"); + MODULE_AUTHOR("Viresh Kumar "); + MODULE_AUTHOR("Shawn Guo "); + MODULE_DESCRIPTION("Generic cpufreq driver"); +-- +2.1.4 + diff --git a/debian/patches/features/all/regulator-axp20x-Add-module-alias.patch b/debian/patches/features/all/regulator-axp20x-Add-module-alias.patch new file mode 100644 index 000000000..21f67c4ff --- /dev/null +++ b/debian/patches/features/all/regulator-axp20x-Add-module-alias.patch @@ -0,0 +1,30 @@ +From d4ea7d86457a8d0ea40ce77bdeda1fc966cc35ec Mon Sep 17 00:00:00 2001 +From: Ian Campbell +Date: Sat, 1 Aug 2015 18:13:25 +0100 +Subject: [PATCH] regulator: axp20x: Add module alias +Origin: https://git.kernel.org/broonie/regulator/c/d4ea7d86457a8d0ea40ce77bdeda1fc966cc35ec + +This allows the module to be autoloaded. + +Together with 07949bf9c63c ("cpufreq: dt: allow driver to boot +automatically") this is sufficient to allow a modular kernel (such +as Debian's) to enable cpufreq on a Cubietruck. + +Signed-off-by: Ian Campbell +Signed-off-by: Mark Brown +--- + drivers/regulator/axp20x-regulator.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c +index 6468291..01bf347 100644 +--- a/drivers/regulator/axp20x-regulator.c ++++ b/drivers/regulator/axp20x-regulator.c +@@ -405,3 +405,4 @@ module_platform_driver(axp20x_regulator_driver); + MODULE_LICENSE("GPL v2"); + MODULE_AUTHOR("Carlo Caione "); + MODULE_DESCRIPTION("Regulator Driver for AXP20X PMIC"); ++MODULE_ALIAS("platform:axp20x-regulator"); +-- +2.1.4 + diff --git a/debian/patches/series b/debian/patches/series index c5e94517f..a7a3c9dc3 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -78,6 +78,8 @@ bugfix/all/kernel-doc-set-man-page-date.patch # Miscellaneous features features/all/efi-autoload-efi-pstore.patch +features/all/cpufreq-dt-allow-driver-to-boot-automatically.patch +features/all/regulator-axp20x-Add-module-alias.patch bugfix/x86/kvm-x86-fix-kvm_apic_has_events-to-check-for-null-po.patch bugfix/x86/0003-x86-asm-entry-64-Remove-pointless-jump-to-irq_return.patch