<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/video/backlight/backlight.c, branch linux-2.6.33.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.33.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.33.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2011-03-21T19:44:07Z</updated>
<entry>
<title>backlight: grab ops_lock before testing bd-&gt;ops</title>
<updated>2011-03-21T19:44:07Z</updated>
<author>
<name>Uwe Kleine-König</name>
</author>
<published>2010-11-24T20:57:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c1cd3ddd72f5ccd5f40e9e176a9cd69b8fd9506'/>
<id>urn:sha1:5c1cd3ddd72f5ccd5f40e9e176a9cd69b8fd9506</id>
<content type='text'>
commit d1d73578e053b981c3611e5a211534290d24a5eb upstream.

According to the comment describing ops_lock in the definition of struct
backlight_device and when comparing with other functions in backlight.c
the mutex must be hold when checking ops to be non-NULL.

Fixes a problem added by c835ee7f4154992e6 ("backlight: Add suspend/resume
support to the backlight core") in Jan 2009.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Acked-by: Richard Purdie &lt;rpurdie@linux.intel.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>backlight: Constify struct backlight_ops</title>
<updated>2009-12-16T11:33:46Z</updated>
<author>
<name>Emese Revfy</name>
</author>
<published>2009-12-13T23:58:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9905a43b2d563e6f89e4c63c4278ada03f2ebb14'/>
<id>urn:sha1:9905a43b2d563e6f89e4c63c4278ada03f2ebb14</id>
<content type='text'>
Signed-off-by: Emese Revfy &lt;re.emese@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;rpurdie@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>backlight: extend event support to also support poll()</title>
<updated>2009-09-26T15:48:06Z</updated>
<author>
<name>Henrique de Moraes Holschuh</name>
</author>
<published>2009-09-20T17:44:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=89dfc28ccbff6521a4df9dc3699a94bbde11a6ed'/>
<id>urn:sha1:89dfc28ccbff6521a4df9dc3699a94bbde11a6ed</id>
<content type='text'>
Extend the backlight event support to also allow the use of
poll()/select() on actual_brightness.

We already have the entire event hookup anyway, adding a single
function call in one line to get functionality like that is a really
good deal.

Signed-off-by: Henrique de Moraes Holschuh &lt;hmh@hmh.eng.br&gt;
Signed-off-by: Richard Purdie &lt;rpurdie@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>backlight: Allow drivers to update the core, and generate events on changes</title>
<updated>2009-09-21T20:03:58Z</updated>
<author>
<name>Matthew Garrett</name>
</author>
<published>2009-07-14T16:06:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=325253a6b2de4bdfa9ef0e28b5df8a4a4fe2b677'/>
<id>urn:sha1:325253a6b2de4bdfa9ef0e28b5df8a4a4fe2b677</id>
<content type='text'>
Certain hardware will send us events when the backlight brightness
changes. Add a function to update the value in the core, and
additionally send a uevent so that userspace can pop up appropriate
UI. The uevents are flagged depending on whether the update originated
in the kernel or from userspace, making it easier to only display UI
at the appropriate time.

Signed-off-by: Matthew Garrett &lt;mjg@redhat.com&gt;
Signed-off-by: Richard Purdie &lt;rpurdie@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>fbdev: fix info-&gt;lock deadlock in fbcon_event_notify()</title>
<updated>2009-04-13T22:04:28Z</updated>
<author>
<name>Andrea Righi</name>
</author>
<published>2009-04-13T21:39:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=513adb58685615b0b1d47a3f0d40f5352beff189'/>
<id>urn:sha1:513adb58685615b0b1d47a3f0d40f5352beff189</id>
<content type='text'>
fb_notifier_call_chain() is called with info-&gt;lock held, i.e.  in
do_fb_ioctl() =&gt; FBIOPUT_VSCREENINFO =&gt; fb_set_var() and the some
notifier callbacks, like fbcon_event_notify(), try to re-acquire
info-&gt;lock again.

Remove the lock/unlock_fb_info() in all the framebuffer notifier
callbacks' and be sure to always call fb_notifier_call_chain() with
info-&gt;lock held.

Reported-by: Pavel Roskin &lt;proski@gnu.org&gt;
Reported-by: Eric Miao &lt;eric.y.miao@gmail.com&gt;
Signed-off-by: Andrea Righi &lt;righi.andrea@gmail.com&gt;
Cc: Stefan Richter &lt;stefanr@s5r6.in-berlin.de&gt;
Cc: Krzysztof Helt &lt;krzysztof.h1@poczta.fm&gt;
Cc: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Cc: "Rafael J. Wysocki" &lt;rjw@sisk.pl&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>fbmem: fix fb_info-&gt;lock and mm-&gt;mmap_sem circular locking dependency</title>
<updated>2009-04-01T15:59:29Z</updated>
<author>
<name>Andrea Righi</name>
</author>
<published>2009-03-31T22:25:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=66c1ca019078220dc1bf968f2bb18421100ef147'/>
<id>urn:sha1:66c1ca019078220dc1bf968f2bb18421100ef147</id>
<content type='text'>
Fix a circular locking dependency in the frame buffer console driver
pushing down the mutex fb_info-&gt;lock.

Circular locking dependecies occur calling the blocking
fb_notifier_call_chain() with fb_info-&gt;lock held.  Notifier callbacks can
try to acquire mm-&gt;mmap_sem, while fb_mmap() acquires the locks in the
reverse order mm-&gt;mmap_sem =&gt; fb_info-&gt;lock.

Tested-by: Andrey Borzenkov &lt;arvidjaar@mail.ru&gt;
Signed-off-by: Andrea Righi &lt;righi.andrea@gmail.com&gt;
Cc: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Cc: Krzysztof Helt &lt;krzysztof.h1@poczta.fm&gt;
Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>backlight: Add suspend/resume support to the backlight core</title>
<updated>2009-01-08T15:37:43Z</updated>
<author>
<name>Richard Purdie</name>
</author>
<published>2009-01-06T21:00:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c835ee7f4154992e6cf0674d7ee136f5d36247a4'/>
<id>urn:sha1:c835ee7f4154992e6cf0674d7ee136f5d36247a4</id>
<content type='text'>
Add suspend/resume support to the backlight core and enable use of it
by appropriate drivers.

Signed-off-by: Richard Purdie &lt;rpurdie@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>bd-&gt;props.brightness doesn't reflect the actual backlight level.</title>
<updated>2009-01-08T14:11:30Z</updated>
<author>
<name>Zhang Rui</name>
</author>
<published>2009-01-08T14:11:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9be1df98bca44dbe3769cd22f4ab8122b76c5313'/>
<id>urn:sha1:9be1df98bca44dbe3769cd22f4ab8122b76c5313</id>
<content type='text'>
Always invoke backlight_update_status when users want to change
the backlight.

For setups where brightness change is an expensive operation,
this could be done in the driver rather than the core.

http://bugzilla.kernel.org/show_bug.cgi?id=12249

Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Signed-off-by: Richard Purdie &lt;rpurdie@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>backlight: Catch invalid input in sysfs attributes</title>
<updated>2009-01-08T12:37:28Z</updated>
<author>
<name>Pavel Machek</name>
</author>
<published>2008-12-03T08:43:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9a2c61a921a8aeabacaccad0d2fdf75e1c1475fb'/>
<id>urn:sha1:9a2c61a921a8aeabacaccad0d2fdf75e1c1475fb</id>
<content type='text'>
Check input properly in backlight, echo &gt; brightness should not turn off
the backlight.

[akpm@linux-foundation.org: coding-style fixes]
[akpm@linux-foundation.org: fix printk warning]
Signed-off-by: Pavel Machek &lt;pavel@suse.cz&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Richard Purdie &lt;rpurdie@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>video: struct device - replace bus_id with dev_name(), dev_set_name()</title>
<updated>2009-01-06T18:44:35Z</updated>
<author>
<name>Kay Sievers</name>
</author>
<published>2009-01-06T18:44:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=64dba9a9a33ec9ba00b0a504562d9f692ae89884'/>
<id>urn:sha1:64dba9a9a33ec9ba00b0a504562d9f692ae89884</id>
<content type='text'>
Signed-off-by: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
</feed>
