1. 14 9月, 2010 7 次提交
  2. 04 8月, 2010 3 次提交
  3. 25 5月, 2010 1 次提交
  4. 06 5月, 2010 1 次提交
  5. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  6. 08 3月, 2010 1 次提交
    • U
      platform-drivers: move probe to .devinit.text in drivers/video · c2e13037
      Uwe Kleine-König 提交于
      A pointer to a probe callback is passed to the core via
      platform_driver_register and so the function must not disappear when the
      .init sections are discarded.  Otherwise (if also having HOTPLUG=y)
      unbinding and binding a device to the driver via sysfs will result in an
      oops as does a device being registered late.
      
      An alternative to this patch is using platform_driver_probe instead of
      platform_driver_register plus removing the pointer to the probe function
      from the struct platform_driver.
      Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: Adrian Bunk <bunk@stusta.de>
      Cc: Alberto Mardegan <mardy@users.sourceforge.net>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Andriy Skulysh <askulysh@gmail.com>
      Cc: Antonino Daplas <adaplas@gmail.com>
      Cc: Anton Vorontsov <avorontsov@ru.mvista.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Cc: Chandramouli Narayanan <mouli@linux.intel.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Frans Pop <elendil@planet.nl>
      Cc: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Huang Ying <ying.huang@intel.com>
      Cc: Ian Molton <spyro@f2s.com>
      Cc: Joshua Kinard <kumba@gentoo.org>
      Cc: Kaj-Michael Lang <milang@tal.org>
      Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
      Cc: linux-fbdev-devel@lists.sourceforge.net
      Cc: Maciej W. Rozycki <macro@linux-mips.org>
      Cc: Magnus Damm <damm@igel.co.jp>
      Cc: Martin Michlmayr <tbm@cyrius.com>
      Cc: Matthias Kaehlcke <matthias@kaehlcke.net>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: Pavel Machek <pavel@suse.cz>
      Cc: Philipp Zabel <philipp.zabel@gmail.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Roel Kluin <roel.kluin@gmail.com>
      Cc: Roland Stigge <stigge@antcom.de>
      Cc: Russell King <rmk+kernel@arm.linux.org.uk>
      Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
      Cc: Vincent Sanders <vince@simtec.co.uk>
      Cc: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
      Acked-by: NRalf Baechle <ralf@linux-mips.org>
      Acked-by: NArnaud Patard <arnaud.patard@rtp-net.org>
      Acked-by: NJames Simmons <jsimmons@infradead.org>
      Acked-by: NPeter Jones <pjones@redhat.com>
      Acked-by: NJaya Kumar <jayakumar.lkml@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      c2e13037
  7. 16 2月, 2010 2 次提交
  8. 16 12月, 2009 1 次提交
  9. 09 12月, 2009 1 次提交
  10. 04 11月, 2009 1 次提交
    • P
      video: sh_mobile_lcdcfb: Don't attempt to map zero-length scatterlists. · 5c1a56b5
      Paul Mundt 提交于
      More aggressive DMA mapping debugging has uncovered a long-standing
      buglet in the way that the sh_mobile_lcdcfb driver implements its
      deferred I/O callback. When used as a console driver the acceleration
      routines are called by the kernel which subsequently cause the deferred
      I/O work to be scheduled, resulting in the deferred I/O callback being
      entered without any dirty pages on the pagelist (the normal case for
      userspace accesses). It's also possible to get in to this situation via
      explicit calling of fsync() when nothing has dirtied the region.
      
      Unfortunately it's not sufficient to skip over the callback when the
      pagelist is empty given the console driver use case, so instead the
      callback has to conditionalize the work for panel updates and DMA
      mapping depending on whether anything is resident on the pagelist or
      not.
      Reported-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      5c1a56b5
  11. 15 9月, 2009 2 次提交
  12. 23 8月, 2009 1 次提交
    • M
      video: Runtime PM for SuperH Mobile LCDC · 0246c471
      Magnus Damm 提交于
      This patch modifies the SuperH Mobile LCDC framebuffer driver
      to support Runtime PM. The driver is using the functions
      
       - pm_runtime_get_sync()
       - pm_runtime_put_sync()
      
      to inform the bus code if the hardware is idle or not. If the
      hardware is idle then the bus code may call the runtime dev_pm_ops
      callbacks to save and restore state. pm_runtime_resume() is used
      to allow the driver to access the hardware from probe().
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      0246c471
  13. 15 8月, 2009 1 次提交
  14. 07 8月, 2009 2 次提交
  15. 07 7月, 2009 2 次提交
  16. 02 7月, 2009 1 次提交
  17. 22 5月, 2009 1 次提交
  18. 25 3月, 2009 1 次提交
  19. 16 3月, 2009 1 次提交
    • M
      video: sh_mobile_lcdcfb suspend/resume support · 2feb075a
      Magnus Damm 提交于
      This patch adds suspend/resume support to the LCDC
      driver for SuperH Mobile - sh_mobile_lcdcfb.
      
      We simply stop hardware on suspend and start it again
      on resume. For RGB panels this is trivial, but for SYS
      panels in deferred io mode this becomes a bit more
      difficult - we need to wait for a frame end interrupt
      to make sure the clocks are balanced before stopping
      the actual hardware.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      2feb075a
  20. 10 3月, 2009 1 次提交
    • M
      video: deferred io cleanup fix for sh_mobile_lcdcfb · 467fc498
      Magnus Damm 提交于
      Fix deferred io cleanup patch in the sh_mobile_lcdcfb driver.
      
      If probe() fails early the sh_mobile_lcdc_stop() function will
      be called to clean up deferred io. This patch modifies the
      code to only call fb_deferred_io_cleanup() after deferred io
      has been initialized.
      
      With this patch applied we no longer hit BUG_ON() inside
      fb_deferred_io_cleanup(). Triggers on a Migo-R with the
      SYS QVGA panel board unmounted.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      467fc498
  21. 22 12月, 2008 3 次提交
    • M
      video: sh_mobile_lcdcfb deferred io support · 8564557a
      Magnus Damm 提交于
      This patch adds sh_mobile_lcdcfb deferred io support for SYS panels.
      
      The LCDC hardware block managed by the sh_mobile_lcdcfb driver supports
      RGB or SYS panel configurations. SYS panels come with an external display
      controller that is resposible for refreshing the actual LCD panel. RGB
      panels are controlled directly by the LCDC and they need to be refreshed
      by the LCDC hardware.
      
      In the case of SYS panels we can save some power by configuring the LCDC
      hardware block in one-shot mode. In this one-shot mode panel refresh is
      managed by software. This works well together with deferred io since it
      allows us to stop clocks for most of the time and only enable clocks when
      we actually want to trigger an update. When there is no fbdev activity
      the clocks are kept stopped which allows us to deep sleep.
      
      The refresh rate in deferred io mode is set using platform data. The same
      platform data can also be used to disable deferred io mode.
      
      As with other deferred io frame buffers user space code should use fsync()
      on the frame buffer device to trigger an update.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      8564557a
    • M
      sh_mobile_lcdc: use FB_SYS helpers instead of FB_CFB · 2540c111
      Magnus Damm 提交于
      Since the sh_mobile_lcdc hardware has the framebuffer(s) in system RAM,
      use FB_SYS instead of FB_CFB. Also hook in read and write helpers.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      2540c111
    • M
      sh: sh_mobile lcdc clock framework support · b51339ff
      Magnus Damm 提交于
      Add clock framework support to the lcdc driver and
      adjust the board specific code accordingly.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      b51339ff
  22. 20 10月, 2008 2 次提交
  23. 01 10月, 2008 1 次提交
  24. 11 8月, 2008 1 次提交
  25. 25 7月, 2008 1 次提交