- 24 10月, 2011 5 次提交
-
-
由 Jason Stubbs 提交于
This patch just adds the DMI info for the samsung laptop driver to work with the NC210/NC110. It needs the brightness quirk patch for proper support. Signed-off-by: NJason Stubbs <jasonbstubbs@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de> Signed-off-by: NMatthew Garrett <mjg@redhat.com>
-
由 Jason Stubbs 提交于
On some Samsung laptops the brightness regulation works slightly different. All SABI commands except for set_brightness work as expected. The behaviour of set_brightness is as follows: - Setting a new brightness will only step one level toward the new brightness level. For example, setting a level of 5 when the current level is 2 will result in a brightness level of 3. - A spurious KEY_BRIGHTNESS_UP or KEY_BRIGHTNESS_DOWN event is also generated along with the change in brightness. - Neither of the above two issues occur when changing from/to brightness level 0. This patch adds detection and a non-intrusive workaround for the above issues. Signed-off-by: NJason Stubbs <jasonbstubbs@gmail.com> Tested-by: NDavid Herrmann <dh.herrmann@googlemail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de> Signed-off-by: NMatthew Garrett <mjg@redhat.com>
-
由 David Herrmann 提交于
samsung_init() should not return success if not all devices are initialized. Otherwise, samsung_exit() will dereference sdev NULL pointers and others. Signed-off-by: NDavid Herrmann <dh.herrmann@googlemail.com> Cc: stable <stable@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de> Signed-off-by: NMatthew Garrett <mjg@redhat.com>
-
由 Jason Stubbs 提交于
The min_brightness value of the sabi_config is incorrectly used in brightness calculations. For the config where min_brightness = 1 and max_brightness = 8, the user visible range should be 0 to 7 with hardware being set in the range of 1 to 8. What is actually happening is that the user visible range is 0 to 8 with hardware being set in the range of -1 to 7. This patch fixes the above issue as well as a miscalculation that would occur in the case of min_brightness > 1. Signed-off-by: NJason Stubbs <jasonbstubbs@gmail.com> Cc: stable <stable@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de> Signed-off-by: NMatthew Garrett <mjg@redhat.com>
-
由 Smelov Andrey 提交于
patch works for me, but I need to add "acpi_backlight=vendor" to kernel params Signed-off-by: NSmelov Andrey <xor29a@bk.ru> Cc: stable <stable@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de> Signed-off-by: NMatthew Garrett <mjg@redhat.com>
-
- 06 8月, 2011 2 次提交
-
-
由 Thomas Courbon 提交于
Some samsung latop of the N150/N2{10,20,30} serie are badly detected by the samsung-laptop platform driver, see bug # 36082. It appears that N230 identifies itself as N150/N210/N220/N230 whereas the other identify themselves as N150/N210/220. This patch attemtp fix #36082 allowing correct identification for all the said netbook model. Reported-by: NDaniel Eklöf <daniel@ekloef.se> Signed-off-by: NThomas Courbon <thcourbon@gmail.com> Signed-off-by: NMatthew Garrett <mjg@redhat.com>
-
由 J Witteveen 提交于
The N510 benefits from this code as well. Below is a patch to include support. Signed-off-by: NJouke Witteveen <j.witteveen@gmail.com> Signed-off-by: NMatthew Garrett <mjg@redhat.com>
-
- 12 4月, 2011 3 次提交
-
-
由 Michal Marek 提交于
Cherry-picked from drivers/staging/samsung-laptop/samsung-laptop.c Signed-off-by: NMichal Marek <mmarek@suse.cz> Signed-off-by: NMatthew Garrett <mjg@redhat.com>
-
由 Alberto Mardegan 提交于
Here's a trivial patch which adds support to the backlight device found in Samsung R410 Plus laptops. Signed-off-by: NAlberto Mardegan <mardy@users.sourceforge.net> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de> [mmarek: cherry-picked from staging commit d542f180] Signed-off-by: NMichal Marek <mmarek@suse.cz> Signed-off-by: NMatthew Garrett <mjg@redhat.com>
-
由 Greg Kroah-Hartman 提交于
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de> [mmarek: cherry-picked from staging commit 0789b003] Signed-off-by: NMichal Marek <mmarek@suse.cz> Signed-off-by: NMatthew Garrett <mjg@redhat.com>
-
- 28 3月, 2011 2 次提交
-
-
由 Axel Lin 提交于
dmi_check_system() walks the table running matching functions until someone returns non zero or we hit the end. This patch makes dmi_check_cb to return 1 so dmi_check_system() return immediately when a match is found. Signed-off-by: NAxel Lin <axel.lin@gmail.com> Signed-off-by: NMatthew Garrett <mjg@redhat.com>
-
由 Greg Kroah-Hartman 提交于
This adds the samsung-laptop driver to the kernel. It now supports all known Samsung laptops that use the SABI interface. Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de> Signed-off-by: NMatthew Garrett <mjg@redhat.com>
-
- 23 3月, 2011 1 次提交
-
-
由 Matthew Garrett 提交于
There may be multiple ways of controlling the backlight on a given machine. Allow drivers to expose the type of interface they are providing, making it possible for userspace to make appropriate policy decisions. Signed-off-by: NMatthew Garrett <mjg@redhat.com> Cc: Richard Purdie <rpurdie@rpsys.net> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: David Airlie <airlied@linux.ie> Cc: Alex Deucher <alexdeucher@gmail.com> Cc: Ben Skeggs <bskeggs@redhat.com> Cc: Zhang Rui <rui.zhang@intel.com> Cc: Len Brown <lenb@kernel.org> Cc: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
- 12 3月, 2011 1 次提交
-
-
由 Greg Kroah-Hartman 提交于
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
- 08 3月, 2011 1 次提交
-
-
由 Alberto Mardegan 提交于
Here's a trivial patch which adds support to the backlight device found in Samsung R410 Plus laptops. Signed-off-by: NAlberto Mardegan <mardy@users.sourceforge.net> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
- 27 2月, 2011 3 次提交
-
-
由 Nils Faerber 提交于
The patch is against the 2.6.37 drivers/staging/samsung-laptop driver and implements some extra enhancements. It fixes an issue that the brightness would not change the level at once as well as and some other oddities. It was resolved by reallocated the SABI memory reagion using the "nocache" option. The patch also introduces a new set of supported netbook models, especially the NC10plus which was used for testing this patch. This new set of models also offer 9 instead of just 8 brightness levels so it also introduces an additional parameter for the models struct so that models can define their own brightness range. Signed-off-by: NNils Faerber <nils.faerber@kernelconcepts.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Riccardo Magliocchetti 提交于
Signed-off-by: NRiccardo Magliocchetti <riccardo.magliocchetti@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Joe Perches 提交于
Change sabi_config to const. Reduces data, increases text ~200 bytes. $ size drivers/platform/x86/samsung-laptop.o* text data bss dec hex filename 6933 5084 1560 13577 3509 drivers/platform/x86/samsung-laptop.o.new 6765 5252 1560 13577 3509 drivers/platform/x86/samsung-laptop.o.old Signed-off-by: NJoe Perches <joe@perches.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
- 26 2月, 2011 6 次提交
-
-
由 Greg Kroah-Hartman 提交于
Fixed up the printk stuff to use pr_XXX where applicable, and reversed the logic when testing for commands to complete properly. Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Greg Kroah-Hartman 提交于
When doing the conversion to the "support more than one model" the header address of the N128 was incorrectly copied. This fixes the driver to work properly now on this laptop model. Cc: Ingmar Steen <iksteen@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Roman Grebennikov 提交于
Add Samsung NP-X120/X170 laptop DMI signature to samsung-laptop DMI table. Signed-off-by: NRoman Grebennikov <grebennikov.roman@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Greg Kroah-Hartman 提交于
Reported-by: NPiotr Mitas <yabolus@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Greg Kroah-Hartman 提交于
Reported-by: NEvgeny Bobkin <stwooe@mail.tu-berlin.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Richard Schütz 提交于
Add DMI data for Samsung N145P/N250P/N260P Signed-off-by: NRichard Schütz <r.schtz@t-online.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
- 10 2月, 2011 10 次提交
-
-
由 Greg Kroah-Hartman 提交于
Taken from the fork of the driver at: http://code.google.com/p/easy-slow-down-manager/ which should no longer be needed now that the in-kernel driver now supports these laptops. Cc: Kobelkov Sergey <sergeyko81@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Greg Kroah-Hartman 提交于
Support for the Samsung NP-Q45 from Jérémie Huchet added Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Greg Kroah-Hartman 提交于
Info was provided by Soeren Sonnenburg <bugreports@nn7.de> Cc: Soeren Sonnenburg <bugreports@nn7.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Greg Kroah-Hartman 提交于
No camelcase in the Linux kernel please. Cc: Ingmar Steen <iksteen@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Greg Kroah-Hartman 提交于
Cc: Ingmar Steen <iksteen@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Greg Kroah-Hartman 提交于
This makes the coding style checker a lot happier. Cc: Ingmar Steen <iksteen@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Greg Kroah-Hartman 提交于
These were introduced with the patch, "staging: samsung-laptop: Extend samsung-laptop platform driver to support another flavor of its platform BIOS." Cc: Ingmar Steen <iksteen@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Greg Kroah-Hartman 提交于
These were introduced with the patch, "staging: samsung-laptop: Extend samsung-laptop platform driver to support another flavor of its platform BIOS." Cc: Ingmar Steen <iksteen@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Ingmar Steen 提交于
Signed-off-by: NIngmar Steen <iksteen@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Ingmar Steen 提交于
staging: samsung-laptop: Extend samsung-laptop platform driver to support another flavor of its platform BIOS. There are currently two implementations of the Samsung BIOS that controls the rfkill switch, backlight brightness / power and performance level. The samsung-laptop driver implements the BIOS flavor with the SECLINUX signature, this patch implements talking to the other BIOS with 'SwSmi@' signature. Both expose very similar functionality and way of accessing the commands. The differences are mostly offsets, command identifiers and some values. This patch introduces a sabi_config structure that contains information on identifying and accessing specific SABI flavors. Signed-off-by: NIngmar Steen <iksteen@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
- 19 11月, 2010 1 次提交
-
-
由 Greg Kroah-Hartman 提交于
They should be writable by root, not readable. Doh, stupid me with the wrong flags. Reported-by: NJonathan Cameron <jic23@cam.ac.uk> Cc: stable <stable@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
- 17 11月, 2010 1 次提交
-
-
由 Greg Kroah-Hartman 提交于
They should not be writable by any user Reported-by: NLinus Torvalds <torvalds@linux-foundation.org> Cc: stable <stable@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
- 16 11月, 2010 1 次提交
-
-
由 Lionel Debroux 提交于
backlight_device_register has been expecting a const "ops" argument, and using it as such, since 9905a43b. Let's make the remaining backlight_ops instances const. Inspired by hunks of the grsecurity patch, updated for newer kernels. Signed-off-by: NLionel Debroux <lionel_debroux@yahoo.fr> Acked-by: NIngo Molnar <mingo@elte.hu> Signed-off-by: NJiri Kosina <jkosina@suse.cz>
-
- 17 3月, 2010 1 次提交
-
-
由 Matthew Garrett 提交于
Values such as max_brightness should be set before backlights are registered, but the current API doesn't allow that. Add a parameter to backlight_device_register and update drivers to ensure that they set this correctly. Signed-off-by: NMatthew Garrett <mjg@redhat.com> Signed-off-by: NRichard Purdie <rpurdie@linux.intel.com>
-
- 04 3月, 2010 1 次提交
-
-
由 Chihau Chau 提交于
This fixes some lines over 80 characters coding style issues. Signed-off-by: NChihau Chau <chihau@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
- 12 12月, 2009 1 次提交
-
-
由 Greg Kroah-Hartman 提交于
Don't test for the kernel version, we know what version we are in, the latest. Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-