summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@redhat.com>2011-08-22 17:15:34 -0400
committerJosh Boyer <jwboyer@redhat.com>2011-08-22 17:15:34 -0400
commitd20ff5e932dccbeac28c81b9b70a842b8fa60a9f (patch)
treec109e761d45fc7a60491001b5293c7e8356ee354
parent0b3ccf1fa57692b745503d53b8f7712250ecfb51 (diff)
downloadkernel-d20ff5e932dccbeac28c81b9b70a842b8fa60a9f.tar.gz
kernel-d20ff5e932dccbeac28c81b9b70a842b8fa60a9f.tar.xz
kernel-d20ff5e932dccbeac28c81b9b70a842b8fa60a9f.zip
3.1-rc3.
Add patch to fix duplicate backlight registration on i915
-rw-r--r--fix-intel-duplicate-backlight.patch44
-rw-r--r--fix-perf-build.patch35
-rw-r--r--kernel.spec12
-rw-r--r--sources3
4 files changed, 53 insertions, 41 deletions
diff --git a/fix-intel-duplicate-backlight.patch b/fix-intel-duplicate-backlight.patch
new file mode 100644
index 000000000..c33e92ec2
--- /dev/null
+++ b/fix-intel-duplicate-backlight.patch
@@ -0,0 +1,44 @@
+From: Kamal Mostafa <kamal@canonical.com>
+To: Linux Kernel <linux-kernel@vger.kernel.org>,
+ intel-gfx@lists.freedesktop.org
+Cc: Matthew Garrett <mjg@redhat.com>,
+ Keith Packard <keithp@keithp.com>,
+ Kamal Mostafa <kamal@canonical.com>
+Subject: [PATCH] i915: do not setup intel_backlight twice
+Date: Mon, 22 Aug 2011 12:39:10 -0700
+Message-Id: <1314041950-12433-1-git-send-email-kamal@canonical.com>
+X-Mailer: git-send-email 1.7.4.1
+In-Reply-To: <20110817141010.GA21479@redhat.com>
+References: <20110817141010.GA21479@redhat.com>
+Sender: linux-kernel-owner@vger.kernel.org
+Precedence: bulk
+List-ID: <linux-kernel.vger.kernel.org>
+X-Mailing-List: linux-kernel@vger.kernel.org
+
+The commit "Not all systems expose a firmware or platform mechanism for
+changing the backlight intensity on i915, so add native driver support"
+adds calls to intel_panel_setup_backlight() from intel_{lvds,dp}_init
+so do not call it again from intel_setup_outputs().
+
+BugLink: http://bugs.launchpad.net/bugs/831542
+
+Signed-off-by: Kamal Mostafa <kamal@canonical.com>
+---
+ drivers/gpu/drm/i915/intel_display.c | 2 --
+ 1 files changed, 0 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
+index ee1d701..5a1ae9f 100644
+--- a/drivers/gpu/drm/i915/intel_display.c
++++ b/drivers/gpu/drm/i915/intel_display.c
+@@ -7238,8 +7238,6 @@ static void intel_setup_outputs(struct drm_device *dev)
+ intel_encoder_clones(dev, encoder->clone_mask);
+ }
+
+- intel_panel_setup_backlight(dev);
+-
+ /* disable all the possible outputs/crtcs before entering KMS mode */
+ drm_helper_disable_unused_functions(dev);
+ }
+--
+1.7.4.1
diff --git a/fix-perf-build.patch b/fix-perf-build.patch
deleted file mode 100644
index c4e55ab58..000000000
--- a/fix-perf-build.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 602d6a279939ec30fc7f3ae9d10e3640854f77b2 Mon Sep 17 00:00:00 2001
-From: Josh Boyer <jwboyer@redhat.com>
-Date: Thu, 18 Aug 2011 07:24:25 -0400
-Subject: [PATCH] Fix perf build against newer glibc
-
-Upstream glibc commit 295e904 added a definition for __attribute_const__ to
-cdefs.h. This causes the following error when building perf:
-
-util/include/linux/compiler.h:8:0: error: "__attribute_const__" redefined [-Werror]
-/usr/include/sys/cdefs.h:226:0: note: this is the location of the previous definition
-
-Wrap __attribute_const__ in #ifndef as we do for __always_inline.
-
-Signed-off-by: Josh Boyer <jwboyer@redhat.com>
----
- tools/perf/util/include/linux/compiler.h | 2 ++
- 1 files changed, 2 insertions(+), 0 deletions(-)
-
-diff --git a/tools/perf/util/include/linux/compiler.h b/tools/perf/util/include/linux/compiler.h
-index 791f9dd..547628e 100644
---- a/tools/perf/util/include/linux/compiler.h
-+++ b/tools/perf/util/include/linux/compiler.h
-@@ -5,7 +5,9 @@
- #define __always_inline inline
- #endif
- #define __user
-+#ifndef __attribute_const__
- #define __attribute_const__
-+#endif
-
- #define __used __attribute__((__unused__))
-
---
-1.7.6
-
diff --git a/kernel.spec b/kernel.spec
index 8edae8dc0..4c3919731 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -82,9 +82,9 @@ Summary: The Linux kernel
# The next upstream release sublevel (base_sublevel+1)
%define upstream_sublevel %(echo $((%{base_sublevel} + 1)))
# The rc snapshot level
-%define rcrev 2
+%define rcrev 3
# The git snapshot level
-%define gitrev 9
+%define gitrev 0
# Set rpm version accordingly
%define rpmversion 3.%{upstream_sublevel}.0
%endif
@@ -717,8 +717,8 @@ Patch12024: epoll-fix-spurious-lockdep-warnings.patch
Patch12025: rcu-avoid-just-onlined-cpu-resched.patch
Patch12026: block-stray-block-put-after-teardown.patch
Patch12027: usb-add-quirk-for-logitech-webcams.patch
-Patch12028: fix-perf-build.patch
Patch12029: crypto-register-cryptd-first.patch
+Patch12030: fix-intel-duplicate-backlight.patch
# Runtime power management
@@ -1345,8 +1345,8 @@ ApplyPatch rcu-avoid-just-onlined-cpu-resched.patch
ApplyPatch block-stray-block-put-after-teardown.patch
ApplyPatch usb-add-quirk-for-logitech-webcams.patch
-ApplyPatch fix-perf-build.patch
ApplyPatch crypto-register-cryptd-first.patch
+ApplyPatch fix-intel-duplicate-backlight.patch
# Runtime PM
#ApplyPatch linux-2.6-usb-pci-autosuspend.patch
@@ -2073,6 +2073,10 @@ fi
# || ||
%changelog
* Mon Aug 22 2011 Josh Boyer <jwboyer@redhat.com>
+- Linux 3.1-rc3
+- Add patch to fix duplicate backlight registration (rhbz 732202)
+
+* Mon Aug 22 2011 Josh Boyer <jwboyer@redhat.com>
- Linux 3.1-rc2-git9
* Sat Aug 20 2011 Josh Boyer <jwboyer@redhat.com>
diff --git a/sources b/sources
index 9629561ba..c733b510b 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,2 @@
398e95866794def22b12dfbc15ce89c0 linux-3.0.tar.bz2
-f358c354ab6d3b0da1265b504f85ec50 patch-3.1-rc2.bz2
-92d84bbc4f841e9164d9796c493c37bd patch-3.1-rc2-git9.bz2
+b9a15f79846c4d01fa3019a3112a8d04 patch-3.1-rc3.bz2