03 May, 2009

14 commits


02 May, 2009

2 commits

  • Some arches don't supply their own clocksource. This is mainly the
    case in architectures that get their inter-tick times by reading the
    counter on their interval timer. Since these timers wrap every tick,
    they're not really useful as clocksources. Wrapping them to act like
    one is possible but not very efficient. So we provide a callout these
    arches can implement for use with the jiffies clocksource to provide
    finer then tick granular time.

    [ Impact: ease the migration to generic time keeping ]

    Signed-off-by: John Stultz
    Signed-off-by: Andrew Morton
    Signed-off-by: Thomas Gleixner

    john stultz
     
  • Setup clocksource mult_orig in clocksource_enable().

    Clocksource drivers can save power by using keeping the
    device clock disabled while the clocksource is unused.

    In practice this means that the enable() and disable()
    callbacks perform clk_enable() and clk_disable().

    The enable() callback may also use clk_get_rate() to get
    the clock rate from the clock framework. This information
    can then be used to calculate the shift and mult variables.

    Currently the mult_orig variable is setup from mult at
    registration time only. This is conflicting with the above
    case since the clock is disabled and the mult variable is
    not yet calculated at the time of registration.

    Moving the mult_orig setup code to clocksource_enable()
    allows us to both handle the common case with no enable()
    callback and the mult-changed-after-enable() case.

    [ Impact: allow dynamic clock source usage ]

    Signed-off-by: Magnus Damm
    LKML-Reference:
    Signed-off-by: Thomas Gleixner

    Magnus Damm
     

30 Apr, 2009

17 commits

  • Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ecryptfs/ecryptfs-2.6:
    eCryptfs: Fix min function comparison warning
    ecryptfs: fix printk format warning

    Linus Torvalds
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6:
    V4L/DVB (11652): au0828: fix kernel oops regression on USB disconnect.
    V4L/DVB (11626): cx23885: Two fixes for DViCO FusionHDTV DVB-T Dual Express
    V4L/DVB (11612): mx3_camera: Fix compilation with CONFIG_PM
    V4L/DVB (11570): patch: s2255drv: fix race condition on set mode
    V4L/DVB (11568): cx18: Fix the handling of i2c bus registration error
    V4L/DVB (11561a): move media after i2c
    V4L/DVB (11516): drivers/media/video/saa5246a.c: fix use-after-free
    V4L/DVB (11515): drivers/media/video/saa5249.c: fix use-after-free and leak
    V4L/DVB (11494a): cx231xx Kconfig fixes
    V4L/DVB (11494): cx18: Send correct input routing value to external audio multiplexers

    Linus Torvalds
     
  • This patch removes the old CMT driver (CONFIG_SH_CMT/timer-cmt.c)

    As replacement, select the sh_cmt driver with CONFIG_SH_TIMER_CMT
    and configure timer channel using platform data.

    If multiple CMT channels are enabled using platform data, use the
    earlytimer parameter on the kernel command line to select channel.
    For instance, use "earlytimer=sh_cmt.0" to select the first channel.

    To verify which timer is being used, look at printouts or the timer
    irq count in /proc/interrupts.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • This patch adds 16-bit cmt platform data for the following cpus:
    - sh7619 (2 channels)
    - sh7203/sh7263 (2 channels)
    - sh7206 (2 channels)

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • This patch contains various fixes for 16-bit cmt hardware.
    With this applied periodic clockevents work fine on sh7203.

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • All 32-bit SuperH processors currently go through __ioremap_mode()
    and check for IO_TRAPPED and directly mapped segments. With this
    patch we simplify the MMU less case with a pass through version of
    __ioremap_mode() which just returns the physical address.

    The effects of this is change are:
    - fix non-MMU ioremap() of high address hardware blocks (sh7203 CMT)
    - make sure IO_TRAPPED is not selected

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • A regression was introduced in hg changeset 33810c734a0d, which resulted in
    a kernel panic whenever the device was disconnected from USB. The call to
    4l2_device_register() was overwriting the pointer for usb_set_intfdata(), so
    when au0828_usb_disconnect() was called, the usb_get_intfdata() returned a
    pointer to the v4l2_device instead of the au0828_dev structure.

    Signed-off-by: Devin Heitmueller
    Signed-off-by: Mauro Carvalho Chehab

    Devin Heitmueller
     
  • Two fixes for DViCO FusionHDTV DVB-T Dual Express:

    * Reset correct tuner when reinitializing xc3028.
    * Disable the I2C gate control to avoid locking up the I2C bus.

    Tested-by: John Knops
    Reviewed-by: Steven Toth
    Signed-off-by: Christopher Pascoe
    Signed-off-by: Devin Heitmueller
    Signed-off-by: Mauro Carvalho Chehab

    Christopher Pascoe
     
  • Signed-off-by: Sascha Hauer
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Sascha Hauer
     
  • set_modeready flag must be set before command sent to USB in
    s2255_write_config.

    Signed-off-by: Dean Anderson
    Signed-off-by: Mauro Carvalho Chehab

    Dean Anderson
     
  • * Return actual error values as returned by the i2c subsystem, rather
    than 0 or 1.
    * If the registration of the second bus fails, unregister the first one
    before exiting, otherwise we are leaking resources.

    Signed-off-by: Jean Delvare
    Acked-by: Andy Walls
    Signed-off-by: Mauro Carvalho Chehab

    Jean Delvare
     
  • Currently drivers/media drivers are linked very early - directly after
    base, block, misc, and mfd and before ata, scsi, ide, input, firewire,
    usb, and i2c. This breaks static build of video4linux drivers, that use
    generic CPU i2c adapter drivers and the v4l2-subdev subsystem, because
    during video4linux probing the v4l2-subdev core requires a struct
    i2c_adapter context, which cannot be satisfied before the i2c subsystem is
    initialised. Moving drivers/media after drivers/i2c fixes this problem.

    The best way to trigger action is by submitting a patch:-) So, let's see
    what comes out of it - on the one hand I don't see any reason why media
    has to be linked this early, and nobody was able to give me one yesterday
    as this problem has been discussed on linux-media, OTOH, maybe indeed it
    would be better to move i2c the whole way up above media, but that'd be
    much bigger of a change, I think.
    --
    To unsubscribe from this list: send the line "unsubscribe linux-media" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html

    Signed-off-by: Guennadi Liakhovetski
    Acked-by: Jean Delvare
    Signed-off-by: Mauro Carvalho Chehab

    Guennadi Liakhovetski
     
  • I lowered the kfree(t) down a couple lines and removed the superflous
    "t->vdev = NULL;"

    Signed-off-by: Dan Carpenter
    Signed-off-by: Andrew Morton
    Signed-off-by: Mauro Carvalho Chehab

    Dan Carpenter
     
  • I moved the kfree() down a couple lines. t->vdev is going to be in freed
    memory so there is no point setting it to NULL. I added a kfree(t) on a

    Signed-off-by: Mauro Carvalho Chehab

    Dan Carpenter
     
  • selecting ALSA module breaks if !SND. Just remove select.

    While here, let's fix the whitespacing at the Kconfig.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • A late v4l2_subdev framework change accidentally sent the audio input
    routing value to the external multiplexer, instead of the muxer input routing
    value to the external multiplexer. This change corrects that error.

    Signed-off-by: Andy Walls
    Signed-off-by: Mauro Carvalho Chehab

    Andy Walls
     

29 Apr, 2009

7 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (24 commits)
    e100: do not go D3 in shutdown unless system is powering off
    netfilter: revised locking for x_tables
    Bluetooth: Fix connection establishment with low security requirement
    Bluetooth: Add different pairing timeout for Legacy Pairing
    Bluetooth: Ensure that HCI sysfs add/del is preempt safe
    net: Avoid extra wakeups of threads blocked in wait_for_packet()
    net: Fix typo in net_device_ops description.
    ipv4: Limit size of route cache hash table
    Add reference to CAPI 2.0 standard
    Documentation/isdn/INTERFACE.CAPI
    update Documentation/isdn/00-INDEX
    ixgbe: Fix WoL functionality for 82599 KX4 devices
    veth: prevent oops caused by netdev destructor
    xfrm: wrong hash value for temporary SA
    forcedeth: tx timeout fix
    net: Fix LL_MAX_HEADER for CONFIG_TR_MODULE
    mlx4_en: Handle page allocation failure during receive
    mlx4_en: Fix cleanup flow on cq activation
    vlan: update vlan carrier state for admin up/down
    netfilter: xt_recent: fix stack overread in compat code
    ...

    Linus Torvalds
     
  • After experimenting with kexec with the last merges after 2.6.29, I've
    had some problems when probing e100. It would not read the eeprom. After
    some bisects, I realized this has been like that since forever (at least
    2.6.18). The problem is that shutdown is doing the same thing that
    suspend does and puts the device in D3 state. I couldn't find a way to
    get the device back to a sane state in the probe function. So, based on
    some similar patches from Rafael J. Wysocki for e1000, e1000e, and ixgbe,
    I wrote this one for e100.

    Signed-off-by: Thadeu Lima de Souza Cascardo
    Acked-by: "Rafael J. Wysocki"
    Signed-off-by: Jeff Kirsher
    Signed-off-by: David S. Miller

    Thadeu Lima de Souza Cascardo
     
  • David S. Miller
     
  • The x_tables are organized with a table structure and a per-cpu copies
    of the counters and rules. On older kernels there was a reader/writer
    lock per table which was a performance bottleneck. In 2.6.30-rc, this
    was converted to use RCU and the counters/rules which solved the performance
    problems for do_table but made replacing rules much slower because of
    the necessary RCU grace period.

    This version uses a per-cpu set of spinlocks and counters to allow to
    table processing to proceed without the cache thrashing of a global
    reader lock and keeps the same performance for table updates.

    Signed-off-by: Stephen Hemminger
    Acked-by: Linus Torvalds
    Signed-off-by: David S. Miller

    Stephen Hemminger
     
  • * 'drm-intel-next' of git://git.kernel.org/pub/scm/linux/kernel/git/anholt/drm-intel:
    drm/i915: fix up error path leak in i915_cmdbuffer
    drm/i915: fix unpaired i915 device mutex on entervt failure.
    drm/i915: add support for G41 chipset
    drm/i915: Enable ASLE if present
    drm/i915: Unregister ACPI video driver when exiting
    drm/i915: Register ACPI video even when not modesetting
    drm/i915: fix transition to I915_TILING_NONE
    drm/i915: Don't let an oops get triggered from irq_emit without dma init.
    drm/i915: allow tiled front buffers on 965+

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband: (21 commits)
    RDMA/nes: Update iw_nes version
    RDMA/nes: Fix error path in nes_accept()
    RDMA/nes: Fix hang issues for large cluster dynamic connections
    RDMA/nes: Increase rexmit timeout interval
    RDMA/nes: Check for sequence number wrap-around
    RDMA/nes: Do not set apbvt entry for loopback
    RDMA/nes: Fix unused variable compile warning when INFINIBAND_NES_DEBUG=n
    RDMA/nes: Fix fw_ver in /sys
    RDMA/nes: Set trace length to 1 inch for SFP_D
    RDMA/nes: Enable repause timer for port 1
    RDMA/nes: Correct CDR loop filter setting for port 1
    RDMA/nes: Modify thermo mitigation to flip SerDes1 ref clk to internal
    RDMA/nes: Fix resource issues in nes_create_cq() and nes_destroy_cq()
    RDMA/nes: Remove root_256()'s unused pbl_count_256 parameter
    mlx4_core: Fix memory leak in mlx4_enable_msi_x()
    IB/mthca: Fix timeout for INIT_HCA and a few other commands
    RDMA/cxgb3: Don't zero QP attrs when moving to IDLE
    RDMA/nes: Fix bugs in nes_reg_phys_mr()
    RDMA/nes: Fix compiler warning at nes_verbs.c:1955
    IPoIB: Disable NAPI while CQ is being drained
    ...

    Linus Torvalds
     
  • Fix this:

    arch/m68k/kernel/sun3-head.S: Assembler messages:
    arch/m68k/kernel/sun3-head.S:32: Error: Unknown operator -- statement `__head' ignored

    Introduced by commit 6f335cab0431d5df4995bcd4fd952d4c746d5a86 ("m68k:
    convert to use __HEAD and HEAD_TEXT macros."), which started using
    __HEAD without adding the appropriate include.

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven