]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- According to https://bugzilla.kernel.org/show_bug.cgi?id=50711#c9,
authorLukasz Masko <lmasko@pld-linux.org>
Thu, 18 Apr 2013 13:04:21 +0000 (15:04 +0200)
committerLukasz Masko <lmasko@pld-linux.org>
Thu, 18 Apr 2013 13:04:21 +0000 (15:04 +0200)
  REGULATOR_DUMMY should be set to 'y' only for development purposes.
  It cannot be set to 'm', so the only option left is setting it to 'n'.
- The above change allows to remove 2 patches from kernel-small_fixes,
  which were added to make my SD card reader work - now it works without
  them.

kernel-multiarch.config
kernel-small_fixes.patch

index 6397ecb46fae2e35abe7372534640a4af1edadef..00b12dfcd017aa689cb472999a054c470b80d18c 100644 (file)
@@ -4660,7 +4660,7 @@ RAPIDIO_TSI500 all=y
 #-
 REGULATOR all=y
 REGULATOR_DEBUG all=n
-REGULATOR_DUMMY all=y
+REGULATOR_DUMMY all=n
 REGULATOR_FIXED_VOLTAGE all=m
 REGULATOR_VIRTUAL_CONSUMER all=m
 REGULATOR_USERSPACE_CONSUMER all=m
index 2bdeb949548921bc997e0194308bc7dd1cd61bd2..0c41f85e0fde2f974c2ffb37e142203896157c22 100644 (file)
@@ -666,39 +666,6 @@ index 205af8d..22436f7 100644
 1.7.6.5
 
 
-diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
-index 042c1ff..d07c240 100644
---- a/drivers/regulator/core.c
-+++ b/drivers/regulator/core.c
-@@ -1872,7 +1872,14 @@ int regulator_count_voltages(struct regulator *regulator)
- {
-       struct regulator_dev    *rdev = regulator->rdev;
-
--      return rdev->desc->n_voltages ? : -EINVAL;
-+      if (rdev->constraints->valid_ops_mask & REGULATOR_CHANGE_VOLTAGE) {
-+              if (rdev->desc->n_voltages)
-+                      return rdev->desc->n_voltages;
-+              else
-+                      return -EINVAL;
-+      } else {
-+              return 1;
-+      }
- }
- EXPORT_SYMBOL_GPL(regulator_count_voltages);
-
-diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
-index c7851c0..6f6534e 100644
---- a/drivers/mmc/host/sdhci.c
-+++ b/drivers/mmc/host/sdhci.c
-@@ -2923,7 +2923,7 @@ int sdhci_add_host(struct sdhci_host *host)
-               regulator_enable(host->vmmc);
-
- #ifdef CONFIG_REGULATOR
--      if (host->vmmc) {
-+      if (host->vmmc && regulator_count_voltages(host->vmmc) > 1) {
-               ret = regulator_is_supported_voltage(host->vmmc, 3300000,
-                       3300000);
-               if ((ret <= 0) || (!(caps[0] & SDHCI_CAN_VDD_330)))
 From 2d32b29a1c2830f7c42caa8258c714acd983961f Mon Sep 17 00:00:00 2001
 From: majianpeng <majianpeng@gmail.com>
 Date: Tue, 29 Jan 2013 13:16:06 +0800
This page took 2.538239 seconds and 4 git commands to generate.