1. 02 12月, 2008 1 次提交
  2. 17 10月, 2008 2 次提交
  3. 25 7月, 2008 2 次提交
  4. 23 5月, 2008 1 次提交
  5. 28 4月, 2008 3 次提交
  6. 27 11月, 2007 1 次提交
  7. 17 10月, 2007 2 次提交
  8. 13 9月, 2007 2 次提交
  9. 18 7月, 2007 1 次提交
  10. 12 7月, 2007 2 次提交
    • Z
      sysfs: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes · 91a69029
      Zhang Rui 提交于
      Well, first of all, I don't want to change so many files either.
      
      What I do:
      Adding a new parameter "struct bin_attribute *" in the
      .read/.write methods for the sysfs binary attributes.
      
      In fact, only the four lines change in fs/sysfs/bin.c and
      include/linux/sysfs.h do the real work.
      But I have to update all the files that use binary attributes
      to make them compatible with the new .read and .write methods.
      I'm not sure if I missed any. :(
      
      Why I do this:
      For a sysfs attribute, we can get a pointer pointing to the
      struct attribute in the .show/.store method,
      while we can't do this for the binary attributes.
      I don't know why this is different, but this does make it not
      so handy to use the binary attributes as the regular ones.
      So I think this patch is reasonable. :)
      
      Who benefits from it:
      The patch that exposes ACPI tables in sysfs
      requires such an improvement.
      All the table binary attributes share the same .read method.
      Parameter "struct bin_attribute *" is used to get
      the table signature and instance number which are used to
      distinguish different ACPI table binary attributes.
      
      Without this parameter, we need to offer different .read methods
      for different ACPI table binary attributes.
      This is impossible as there are various ACPI tables on different
      platforms, and we don't know what they are until they are loaded.
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      91a69029
    • T
      sysfs: kill unnecessary attribute->owner · 7b595756
      Tejun Heo 提交于
      sysfs is now completely out of driver/module lifetime game.  After
      deletion, a sysfs node doesn't access anything outside sysfs proper,
      so there's no reason to hold onto the attribute owners.  Note that
      often the wrong modules were accounted for as owners leading to
      accessing removed modules.
      
      This patch kills now unnecessary attribute->owner.  Note that with
      this change, userland holding a sysfs node does not prevent the
      backing module from being unloaded.
      
      For more info regarding lifetime rule cleanup, please read the
      following message.
      
        http://article.gmane.org/gmane.linux.kernel/510293
      
      (tweaked by Greg to not delete the field just yet, to make it easier to
      merge things properly.)
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7b595756
  11. 09 5月, 2007 1 次提交
  12. 02 5月, 2007 1 次提交
  13. 26 4月, 2007 2 次提交
  14. 13 4月, 2007 1 次提交
  15. 05 3月, 2007 1 次提交
  16. 03 3月, 2007 1 次提交
    • D
      [RADEON]: Fix blanking return value. · 7ab87670
      David S. Miller 提交于
      If you'll recall, over a year ago, I pointed out that the current
      Radeon driver erroneously returns -EINVAL for valid blanking codes,
      here is a link to that thread:
      
      	http://lkml.org/lkml/2006/1/28/6
      
      No other driver does this, and it confuses the X server into thinking
      that the device does not support blanking properly.
      
      I looked again and there is simply no reason for the Radeon driver to
      return -EINVAL for FB_BLANK_NORMAL.  It claims it wants to do this in
      order to convince fbcon to blank in software, right here:
      
      			if (fb_blank(info, blank))
      				fbcon_generic_blank(vc, info, blank);
      
      to software blank the screen.  But it only causes that to happen
      in the FB_BLANK_NORMAL case.
      
      That makes no sense because the Radeon code does this:
      
      		val |= CRTC_DISPLAY_DIS;
      
      in the FB_BLANK_NORMAL case so should be blanking the hardware, and
      there is therefore no reason to SW blank by returning -EINVAL.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      Acked-by: NAntonino Daplas <adaplas@gmail.com>
      7ab87670
  17. 20 2月, 2007 1 次提交
    • R
      backlight: Rework backlight/fb interaction simplifying, lots · 37ce69a5
      Richard Purdie 提交于
      fb_info->bl_mutex is badly thought out and the backlight class doesn't
      need it if the framebuffer/backlight register/unregister order is
      consistent, particularly after the backlight locking fixes.
      
      Fix the drivers to use the order:
      
      backlight_device_register()
      register_framebuffer()
      unregister_framebuffer()
      backlight_device_unregister()
      
      and turn bl_mutex into a lock for the bl_curve data only.
      Signed-off-by: NRichard Purdie <rpurdie@rpsys.net>
      37ce69a5
  18. 01 8月, 2006 1 次提交
    • V
      [PATCH] radeonfb sleep fixes · 994aad25
      Volker Braun 提交于
      Many IBM Thinkpad T4* models and some R* and X* with radeon video cards draw
      too much power when suspended to RAM, reducing drastically the battery
      lifetime.  The solution is to enable suspend-to-D2 on these machines.  They
      are whitelisted through their subsystem vendor/device ID.  This fixes
      http://bugzilla.kernel.org/show_bug.cgi?id=3022
      
      The patch introduces a framework to alter the pm_mode and reinit_func fields
      of the radeonfb_info structure based on a whitelist.  This should facilitate
      future hardware-dependent workarounds.  The workaround for the Samsung P35
      that is already in the radeonfb code has been rewritten using this framework.
      
      The behavior can be overridden with module options:
      
      i)  video=radeonfb:force_sleep=1
          enable suspend-to-D2 also on non-whitelisted machines (useful for
          testing new notebook models),
      
      ii) video=radeonfb:ignore_devlist=1
          Disable checking the whitelist and do not apply any workarounds.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      994aad25
  19. 31 7月, 2006 1 次提交
  20. 11 7月, 2006 1 次提交
  21. 01 7月, 2006 1 次提交
  22. 27 6月, 2006 1 次提交
  23. 26 6月, 2006 1 次提交
  24. 20 4月, 2006 1 次提交
    • R
      [PATCH] radeonfb section mismatches · 246846fc
      Randy Dunlap 提交于
      Marking radeon_pci_register() as __devinit clears up all section
      mismatch warnings that are caused by radeon_pci_register() calling
      various __devinit function.  Is there some reason not to do this?
      
      WARNING: drivers/video/aty/radeonfb.o - Section mismatch: reference to .init.text: from .text.radeonfb_pci_register after 'radeonfb_pci_register' (at offset 0x628)
      WARNING: drivers/video/aty/radeonfb.o - Section mismatch: reference to .init.text: from .text.radeonfb_pci_register after 'radeonfb_pci_register' (at offset 0x6b5)
      WARNING: drivers/video/aty/radeonfb.o - Section mismatch: reference to .init.text: from .text.radeonfb_pci_register after 'radeonfb_pci_register' (at offset 0x6bd)
      WARNING: drivers/video/aty/radeonfb.o - Section mismatch: reference to .init.text:radeon_probe_screens from .text.radeonfb_pci_register after 'radeonfb_pci_register' (at offset 0x7d6)
      WARNING: drivers/video/aty/radeonfb.o - Section mismatch: reference to .init.text:radeon_check_modes from .text.radeonfb_pci_register after 'radeonfb_pci_register' (at offset 0x7e5)
      Signed-off-by: NRandy Dunlap <rdunlap@xenotime.net>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      246846fc
  25. 28 3月, 2006 1 次提交
    • A
      [PATCH] framebuffer: cmap-setting return values · db77ec27
      Alan Curry 提交于
      A set of 3 small bugfixes, all of which are related to bogus return values
      of fb colormap-setting functions.
      
      First, fb_alloc_cmap returns -1 if memory allocation fails. This is a hard
      condition to reproduce since you'd have to be really low on memory, but from
      studying the contexts in which it is called, I think this function should be
      returning a negative errno, and the -1 will be seen as an EPERM. Switching it
      to -ENOMEM makes sense.
      
      Second, the store_cmap function which is called for writes to
      /sys/class/graphics/fb0/color_map returns 0 for success, but it should be
      returning the count of bytes written since its return value ends up in
      userspace as the result of the write() syscall.
      
      Third, radeonfb returns 1 instead of a negative errno when FBIOPUTCMAP is
      called with an oversized colormap.  This is seen in userspace as a return
      value of 1 from the ioctl() syscall with errno left unchanged.  A more
      useful return value would be -EINVAL.
      Signed-off-by: NAlan Curry <pacman@TheWorld.com>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      db77ec27
  26. 15 1月, 2006 1 次提交
  27. 03 1月, 2006 1 次提交
  28. 07 11月, 2005 3 次提交
  29. 30 9月, 2005 1 次提交
  30. 10 9月, 2005 1 次提交