1. 10 10月, 2007 8 次提交
    • T
      V4L/DVB (6023): cx88: Clean up some ugly and inconsistent printk()s · 5772f813
      Trent Piepho 提交于
      Get rid of the "CORE" prefix from cx88 printks.  It was only used a few times,
      and it makes it look like they're coming from the kernel core or something.
      
      Fix the message, "TV tuner 60 at 0x1fe, Radio tuner -1 at 0x1fe", by adding a
      "cx88[0]" prefix to be consistent, and to keep people who grep their dmesg
      output for cx88 from missing it.  Get rid of the addresses, which are always
      wrong.  The addresses are always set to -1, but because it's an unsigned 8-bit
      value, the left shift converts it to the nonsense address 0x1fe.
      
      In the cx8802 driver, some cut and pasted code prefixed lines with "CORE
      cx88[0]:", which has been changed to "cx88[0]/2:" like the other printks from
      the cx8802 driver.
      
      Also fix some ugly printks in the cx8802 driver that used __FUNCTION__ for
      KERN_INFO and KERN_ERR messages.
      
      The changed printks in cx88-mpeg.c also needed lots of whitespace and
      80-column fixes.
      
      A bunch of misc changes in cx88-dvb.c and cx88-video.c to add message levels
      or a consistent "cx88[?]/2" or "cx88[?]/0" prefix.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      5772f813
    • T
      V4L/DVB (6022): cx88: Move card core creation from cx88-core.c to cx88-cards.c · bbc83597
      Trent Piepho 提交于
      A lot of code in cx88-cards.c was only used by cx88-core.c when the core state
      is first allocated and initialized.  Moving that task to cx88-cards makes the
      driver simpler and the files more self contained.
      
      - Module parameters tuner, radio, card, and latency move to cx88-cards.c
      - cx88_boards is made static
      - cx88_subids is made static and const
      - cx88_bcount is eliminated
      - cx88_idcount is eliminated
      - cx88_card_list() is made static
      - cx88_card_setup_pre_i2c() is made static
      - cx88_card_setup() is made static
      - cx88_pci_quirks() is moved from cx88-core to cx88-cards
        The function argument "char *name" is made const too
      - get_ressources() is moved from cx88-core to cx88-cards, and renamed to
        cx88_get_resources()
      - The code to allocate and initialize the core state struct and the chip is
        moved out of cx88-core.c:cx88_get_core() and into a new function in
        cx88-cards.c, cx88_core_create().  This makes both functions simpler.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      bbc83597
    • T
      V4L/DVB (6021): cx88: Copy board information into card state · 6a59d64c
      Trent Piepho 提交于
      The cx88 driver state stored the ID of the board type in core->board.  Every
      time the driver need to get some information about the board configuration, it
      uses the board number as an index into board configuration array.
      
      This patch changes it so that the board number is in core->boardnr, and
      core->board is a copy of the board configuration information.  This allows
      access to board information without the extra indirection.  e.g.
      cx88_boards[core->board].mpeg becomes core->board.mpeg.
      
      This has a number of advantages:
      - The code is simpler to write.
      
      - It compiles to be smaller and faster, without needing the extra array lookup
        to get at the board information.
      
      - The cx88_boards array no longer needs to be exported to all cx88 modules.
      
      - The boards array can be made const
      
      - It should be possible to avoid keeping the (large) cx88_boards array around
        after the module is loaded.
      
      - If module parameters or eeprom info override some board configuration
        setting, it's not necessary to modify the boards array, which would
        affect all boards of the same type.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      6a59d64c
    • T
      V4L/DVB (6020): cx88: Fix use of uninitialized variable · b09a79f5
      Trent Piepho 提交于
      An error message for PCI resource allocation failure used the board type
      before it was set.  Just get rid of the error message, as get_ressources()
      [sic] already prints one.  Format that error message better, and add the pci
      function and subsystem information to better associate the error with what
      caused it.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      b09a79f5
    • T
      V4L/DVB (6019): cx88: Make card database more memory efficient · c252b051
      Trent Piepho 提交于
      The vmux setting is only two bits, but was taking up a whole 32 
      in the input description struct.  By changing it to a two-bit 
      bitfield, it can fit in what was padding space before and drop 
      the input size by 4 bytes, from 28 to 24. This drops the board 
      description struct, which has 9 inputs, from 280 to 244 bytes.  
      Total driver size decreases by 2108 bytes.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      c252b051
    • T
      V4L/DVB (5977): cx8800: Add register debug functions to radio device too · a75d2048
      Trent Piepho 提交于
      Add the advanced debug functions to the radio videodev template.  One could
      already use them from the video and vbi devices.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      a75d2048
    • T
      V4L/DVB (5975): cx88: Wrong values used for HD-3000 radio mode · 19dc74b7
      Trent Piepho 提交于
      After some tedious work with a logic probe and a magnifying glass, I've
      determined that GPIO 7 is used to switch between the DTT7612's Sound 4.5 MHz
      IF output on pin 12 and the FM 10.7MHz If output on pin 11.  GPIO 2 is used to
      switch the card's analog sound output from from the analog input connector to
      the CX23883's audio DACs.
      
      So, in radio mode GPIO2 = 1 and GPIO7 = 0.
      
      Add some comments about how the HD-3000's GPIOs are connected.
      
      Delete the vmux setting for the radio, as vmux doesn't apply to radio mode.
      Also delete the lines setting unused gpio words to zero; it's not necessary as
      0 is the default value for uninitialized fields.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      19dc74b7
    • J
      V4L/DVB (5912): Clean up duplicate includes in drivers/media/ · 915366da
      Jesper Juhl 提交于
      This patch cleans up duplicate includes in
              drivers/media/
      Signed-off-by: NJesper Juhl <jesper.juhl@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      915366da
  2. 15 9月, 2007 1 次提交
  3. 21 7月, 2007 2 次提交
  4. 19 7月, 2007 17 次提交
  5. 18 7月, 2007 1 次提交
    • R
      Freezer: make kernel threads nonfreezable by default · 83144186
      Rafael J. Wysocki 提交于
      Currently, the freezer treats all tasks as freezable, except for the kernel
      threads that explicitly set the PF_NOFREEZE flag for themselves.  This
      approach is problematic, since it requires every kernel thread to either
      set PF_NOFREEZE explicitly, or call try_to_freeze(), even if it doesn't
      care for the freezing of tasks at all.
      
      It seems better to only require the kernel threads that want to or need to
      be frozen to use some freezer-related code and to remove any
      freezer-related code from the other (nonfreezable) kernel threads, which is
      done in this patch.
      
      The patch causes all kernel threads to be nonfreezable by default (ie.  to
      have PF_NOFREEZE set by default) and introduces the set_freezable()
      function that should be called by the freezable kernel threads in order to
      unset PF_NOFREEZE.  It also makes all of the currently freezable kernel
      threads call set_freezable(), so it shouldn't cause any (intentional)
      change of behaviour to appear.  Additionally, it updates documentation to
      describe the freezing of tasks more accurately.
      
      [akpm@linux-foundation.org: build fixes]
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NNigel Cunningham <nigel@nigel.suspend2.net>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Oleg Nesterov <oleg@tv-sign.ru>
      Cc: Gautham R Shenoy <ego@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      83144186
  6. 04 7月, 2007 1 次提交
  7. 09 5月, 2007 4 次提交
  8. 08 5月, 2007 1 次提交
    • A
      cx88-video build fix · c24228da
      Andrew Morton 提交于
      alpha:
      
      drivers/media/video/cx88/cx88-video.c: In function 'cx8800_initdev':
      drivers/media/video/cx88/cx88-video.c:1782: error: 'DMA_32BIT_MASK' undeclared (first use in this function)
      drivers/media/video/cx88/cx88-video.c:1782: error: (Each undeclared identifier is reported only once
      drivers/media/video/cx88/cx88-video.c:1782: error: for each function it appears in.)
      
      Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c24228da
  9. 03 5月, 2007 1 次提交
    • J
      PCI: Cleanup the includes of <linux/pci.h> · 6473d160
      Jean Delvare 提交于
      I noticed that many source files include <linux/pci.h> while they do
      not appear to need it. Here is an attempt to clean it all up.
      
      In order to find all possibly affected files, I searched for all
      files including <linux/pci.h> but without any other occurence of "pci"
      or "PCI". I removed the include statement from all of these, then I
      compiled an allmodconfig kernel on both i386 and x86_64 and fixed the
      false positives manually.
      
      My tests covered 66% of the affected files, so there could be false
      positives remaining. Untested files are:
      
      arch/alpha/kernel/err_common.c
      arch/alpha/kernel/err_ev6.c
      arch/alpha/kernel/err_ev7.c
      arch/ia64/sn/kernel/huberror.c
      arch/ia64/sn/kernel/xpnet.c
      arch/m68knommu/kernel/dma.c
      arch/mips/lib/iomap.c
      arch/powerpc/platforms/pseries/ras.c
      arch/ppc/8260_io/enet.c
      arch/ppc/8260_io/fcc_enet.c
      arch/ppc/8xx_io/enet.c
      arch/ppc/syslib/ppc4xx_sgdma.c
      arch/sh64/mach-cayman/iomap.c
      arch/xtensa/kernel/xtensa_ksyms.c
      arch/xtensa/platform-iss/setup.c
      drivers/i2c/busses/i2c-at91.c
      drivers/i2c/busses/i2c-mpc.c
      drivers/media/video/saa711x.c
      drivers/misc/hdpuftrs/hdpu_cpustate.c
      drivers/misc/hdpuftrs/hdpu_nexus.c
      drivers/net/au1000_eth.c
      drivers/net/fec_8xx/fec_main.c
      drivers/net/fec_8xx/fec_mii.c
      drivers/net/fs_enet/fs_enet-main.c
      drivers/net/fs_enet/mac-fcc.c
      drivers/net/fs_enet/mac-fec.c
      drivers/net/fs_enet/mac-scc.c
      drivers/net/fs_enet/mii-bitbang.c
      drivers/net/fs_enet/mii-fec.c
      drivers/net/ibm_emac/ibm_emac_core.c
      drivers/net/lasi_82596.c
      drivers/parisc/hppb.c
      drivers/sbus/sbus.c
      drivers/video/g364fb.c
      drivers/video/platinumfb.c
      drivers/video/stifb.c
      drivers/video/valkyriefb.c
      include/asm-arm/arch-ixp4xx/dma.h
      sound/oss/au1550_ac97.c
      
      I would welcome test reports for these files. I am fine with removing
      the untested files from the patch if the general opinion is that these
      changes aren't safe. The tested part would still be nice to have.
      
      Note that this patch depends on another header fixup patch I submitted
      to LKML yesterday:
        [PATCH] scatterlist.h needs types.h
        http://lkml.org/lkml/2007/3/01/141Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Badari Pulavarty <pbadari@us.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      6473d160
  10. 28 4月, 2007 4 次提交