]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 18:48:24 +0000 (11:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 18:48:24 +0000 (11:48 -0700)
added patches:
drm-radeon-add-primary-dac-adj-quirk-for-r200-board.patch
hwmon-sht15-check-return-value-of-regulator_enable.patch

queue-3.0/drm-radeon-add-primary-dac-adj-quirk-for-r200-board.patch [new file with mode: 0644]
queue-3.0/hwmon-sht15-check-return-value-of-regulator_enable.patch [new file with mode: 0644]
queue-3.0/series

diff --git a/queue-3.0/drm-radeon-add-primary-dac-adj-quirk-for-r200-board.patch b/queue-3.0/drm-radeon-add-primary-dac-adj-quirk-for-r200-board.patch
new file mode 100644 (file)
index 0000000..226bcfb
--- /dev/null
@@ -0,0 +1,37 @@
+From e8fc41377f5037ff7a661ea06adc05f1daec1548 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Wed, 27 Feb 2013 12:01:58 -0500
+Subject: drm/radeon: add primary dac adj quirk for R200 board
+
+From: Alex Deucher <alexander.deucher@amd.com>
+
+commit e8fc41377f5037ff7a661ea06adc05f1daec1548 upstream.
+
+vbios values are wrong leading to colors that are
+too bright.  Use the default values instead.
+
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/gpu/drm/radeon/radeon_combios.c |    9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+--- a/drivers/gpu/drm/radeon/radeon_combios.c
++++ b/drivers/gpu/drm/radeon/radeon_combios.c
+@@ -958,6 +958,15 @@ struct radeon_encoder_primary_dac *radeo
+                       found = 1;
+       }
++      /* quirks */
++      /* Radeon 9100 (R200) */
++      if ((dev->pdev->device == 0x514D) &&
++          (dev->pdev->subsystem_vendor == 0x174B) &&
++          (dev->pdev->subsystem_device == 0x7149)) {
++              /* vbios value is bad, use the default */
++              found = 0;
++      }
++
+       if (!found) /* fallback to defaults */
+               radeon_legacy_get_primary_dac_info_from_table(rdev, p_dac);
diff --git a/queue-3.0/hwmon-sht15-check-return-value-of-regulator_enable.patch b/queue-3.0/hwmon-sht15-check-return-value-of-regulator_enable.patch
new file mode 100644 (file)
index 0000000..c92901c
--- /dev/null
@@ -0,0 +1,36 @@
+From 3e78080f81481aa8340374d5a37ae033c1cf4272 Mon Sep 17 00:00:00 2001
+From: Mark Brown <broonie@opensource.wolfsonmicro.com>
+Date: Sat, 2 Mar 2013 15:33:30 +0800
+Subject: hwmon: (sht15) Check return value of regulator_enable()
+
+From: Mark Brown <broonie@opensource.wolfsonmicro.com>
+
+commit 3e78080f81481aa8340374d5a37ae033c1cf4272 upstream.
+
+Not having power is a pretty serious error so check that we are able to
+enable the supply and error out if we can't.
+
+Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
+Signed-off-by: Guenter Roeck <linux@roeck-us.net>
+
+---
+ drivers/hwmon/sht15.c |    8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+--- a/drivers/hwmon/sht15.c
++++ b/drivers/hwmon/sht15.c
+@@ -926,7 +926,13 @@ static int __devinit sht15_probe(struct
+               if (voltage)
+                       data->supply_uV = voltage;
+-              regulator_enable(data->reg);
++              ret = regulator_enable(data->reg);
++              if (ret != 0) {
++                      dev_err(&pdev->dev,
++                              "failed to enable regulator: %d\n", ret);
++                      return ret;
++              }
++
+               /*
+                * Setup a notifier block to update this if another device
+                * causes the voltage to change
index ceafac7dccec54b9fc9502ac671043313375431d..6c7a46409224534cbd7be8eb88392048e71a7e4b 100644 (file)
@@ -8,3 +8,5 @@ sunrpc-don-t-start-the-retransmission-timer-when-out-of-socket-space.patch
 hw_random-make-buffer-usable-in-scatterlist.patch
 ath9k-fix-rssi-dummy-marker-value.patch
 md-raid0-fix-error-return-from-create_stripe_zones.patch
+hwmon-sht15-check-return-value-of-regulator_enable.patch
+drm-radeon-add-primary-dac-adj-quirk-for-r200-board.patch