01 Oct, 2006

5 commits

  • Right now ->flags is a bit of a mess: some are request types, and
    others are just modifiers. Clean this up by splitting it into
    ->cmd_type and ->cmd_flags. This allows introduction of generic
    Linux block message types, useful for sending generic Linux commands
    to block devices.

    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • Delay the call to adapter->client_register() until after we are
    certain that the client registration is a success. At this point the
    client is fully initialized and we no longer hold the adapter->clist
    mutex, so this should prevent the deadlocks if the client_register()
    callback needs to take that mutex too, as is the case for the bttv
    driver.

    This fixes bug #7234.

    Signed-off-by: Jean Delvare
    Signed-off-by: Linus Torvalds

    Jean Delvare
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (180 commits)
    V4L/DVB (4641): Trivial: use lowercase letters in hex subsystem ids
    V4L/DVB (4639): Cx88: add autodetection for alternate revision of Leadtek PVR
    V4L/DVB (4638): Basic DVB-T and analog TV support for the HVR1300.
    V4L/DVB (4637): Add a default method for VIDIOC_G_PARM
    V4L/DVB (4635): Extend bttv and saa7134 to check for both AGP and PCI PCI failure case
    V4L/DVB (4634): Zr36120: implement pcipci checks
    V4L/DVB (4632): Zoran: Implement pcipci failure check
    V4L/DVB (4631): Av7110: remove V4L2_CAP_VBI_CAPTURE flag
    V4L/DVB (4630): Av7110: FW_LOADER depemdency fixed
    V4L/DVB (4629): Saa7134: add card support for Proteus Pro 2309
    V4L/DVB (4628): Fix VIDIOC_ENUMSTD ioctl in videodev.c
    V4L/DVB (4627): Vivi crashes with mplayer
    V4L/DVB (4626): On saa7111/7113, LUMA_CTRL need a different value
    V4L/DVB (4624): Tvaudio: Replaced kernel_thread() with kthread_run()
    V4L/DVB (4622): Copy-paste bug in videodev.c
    V4L/DVB (4620): Fix AGC configuration for MOD3000P-based boards
    V4L/DVB (4619): Fixes some I2C dependencies on V4L devices
    V4L/DVB (4617): Problem with dibusb-mb.c USB IDs
    V4L/DVB (4616): [PATCH] Nebula DigiTV USB RC support
    V4L/DVB (4614): Export symbol saa7134_tvaudio_setmute from saa7134 for saa7134-alsa
    ...

    Linus Torvalds
     
  • …eee1394/linux1394-2.6

    * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6: (48 commits)
    ieee1394: raw1394: arm functions slept in atomic context
    ieee1394: sbp2: enable auto spin-up for all SBP-2 devices
    MAINTAINERS: updates to IEEE 1394 subsystem maintainership
    ieee1394: ohci1394: check for errors in suspend or resume
    set power state of firewire host during suspend
    ieee1394: ohci1394: more obvious endianess handling
    ieee1394: ohci1394: fix endianess bug in debug message
    ieee1394: sbp2: don't prefer MODE SENSE 10
    ieee1394: nodemgr: grab class.subsys.rwsem in nodemgr_resume_ne
    ieee1394: nodemgr: fix rwsem recursion
    ieee1394: sbp2: more help in Kconfig
    ieee1394: sbp2: prevent rare deadlock in shutdown
    ieee1394: sbp2: update includes
    ieee1394: sbp2: better handling of transport errors
    ieee1394: sbp2: recheck node generation in sbp2_update
    ieee1394: sbp2: safer agent reset in error handlers
    ieee1394: sbp2: handle "sbp2util_node_write_no_wait failed"
    CONFIG_PM=n slim: drivers/ieee1394/ohci1394.c
    ieee1394: safer definition of empty macros
    video1394: add poll file operation support
    ...

    Linus Torvalds
     
  • * 'intelfb-patches' of master.kernel.org:/pub/scm/linux/kernel/git/airlied/intelfb-2.6:
    intelfbhw.c: intelfbhw_get_p1p2 defined but not used
    intelfb: fix mtrr_reg signedness
    intelfb: update doc and Kconfig (supported devices)
    intelfb: add preliminary i2c support
    intelfb: add preliminary i2c support
    intelfb: add preliminary i2c support
    intelfb: add preliminary i2c support
    intelfb: add preliminary i2c support
    intelfb: add preliminary i2c support
    intelfb: add preliminary i2c support
    intelfb: add preliminary i2c support
    intelfb: add vsync interrupt support
    intelfb: add vsync interrupt support
    intelfb: add vsync interrupt support
    intelfb: add vsync interrupt support
    intelfb: add vsync interrupt support

    Linus Torvalds
     

30 Sep, 2006

35 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
    [ATM]: [lec] use refcnt to protect lec_arp_entries outside lock
    [ATM]: [lec] add reference counting to lec_arp entries
    [ATM]: [lec] use work queue instead of timer for lec arp expiry
    [ATM]: [lec] old_close is no longer used
    [ATM]: [lec] convert lec_arp_table to hlist
    [ATM]: [lec] header indent, comment and whitespace cleanup
    [ATM]: [lec] indent, comment and whitespace cleanup [continued]
    [ATM]: [lec] indent, comment and whitespace cleanup
    [SCTP]: Do not timestamp every SCTP packet.
    [SCTP]: Use correct mask when disabling PMTUD.
    [SCTP]: Include sk_buff overhead while updating the peer's receive window.
    [SCTP]: Enable Nagle algorithm by default.
    [BNX2]: Disable MSI on 5706 if AMD 8132 bridge is present.
    [NetLabel]: audit fixups due to delayed feedback

    Linus Torvalds
     
  • MSI is defined to be 32-bit write. The 5706 does 64-bit MSI writes
    with byte enables disabled on the unused 32-bit word. This is legal
    but causes problems on the AMD 8132 which will eventually stop
    responding after a while.

    Without this patch, the MSI test done by the driver during open will
    pass, but MSI will eventually stop working after a few MSIs are
    written by the device.

    AMD believes this incompatibility is unique to the 5706, and
    prefers to locally disable MSI rather than globally disabling it
    using pci_msi_quirk.

    Update version to 1.4.45.

    Signed-off-by: Michael Chan
    Signed-off-by: David S. Miller

    Michael Chan
     
  • Signed-off-by: David S. Miller

    David S. Miller
     
  • * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband: (33 commits)
    IB/ipath: Fix lockdep error upon "ifconfig ibN down"
    IB/ipath: Fix races with ib_resize_cq()
    IB/ipath: Support new PCIE device, QLE7142
    IB/ipath: Set CPU affinity early
    IB/ipath: Fix EEPROM read when driver is compiled with -Os
    IB/ipath: Fix and recover TXE piobuf and PBC parity errors
    IB/ipath: Change HT CRC message to indicate how to resolve problem
    IB/ipath: Clean up module exit code
    IB/ipath: Call mtrr_del with correct arguments
    IB/ipath: Flush RWQEs if access error or invalid error seen
    IB/ipath: Improved support for PowerPC
    IB/ipath: Drop unnecessary "(void *)" casts
    IB/ipath: Support multiple simultaneous devices of different types
    IB/ipath: Fix mismatch in shifts and masks for printing debug info
    IB/ipath: Fix compiler warnings and errors on non-x86_64 systems
    IB/ipath: Print more informative parity error messages
    IB/ipath: Ensure that PD of MR matches PD of QP checking the Rkey
    IB/ipath: RC and UC should validate SLID and DLID
    IB/ipath: Only allow complete writes to flash
    IB/ipath: Count SRQs properly
    ...

    Linus Torvalds
     
  • Fix undefined reference in i2c_sibyte_exit().

    drivers/built-in.o: In function `i2c_sibyte_exit':
    i2c-sibyte.c:(.exit.text+0x368): undefined reference to `i2c_del_bus'
    i2c-sibyte.c:(.exit.text+0x368): relocation truncated to fit: R_MIPS_26 against `i2c_del_bus'
    i2c-sibyte.c:(.exit.text+0x38c): undefined reference to `i2c_del_bus'
    i2c-sibyte.c:(.exit.text+0x38c): relocation truncated to fit: R_MIPS_26 against `i2c_del_bus'

    Signed-off-by: Yoichi Yuasa
    Signed-off-by: Jean Delvare
    Signed-off-by: Linus Torvalds

    Yoichi Yuasa
     
  • If you send a priority character (as is done for flow control) then the tty
    driver can either have its own method for "jumping the queue" or the characrer
    can be queued normally. In the latter case we call the write method but
    without the atomic_write_lock taken elsewhere.

    Make this consistent. Note that the send_xchar method if implemented remains
    outside of the lock as it can jump ahead of a current write so must not be
    locked out by it.

    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • …is case on some platforms

    Signed-off-by: Alan Cox <alan@redhat.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>

    Alan Cox
     
  • The driver has no business doing this work itself any more and hasn't for some
    years. When the new speed stuff goes in this will break entirely so fix it up
    ready.

    Also remove a #if 0 around a comment....

    Signed-off-by: Alan Cox
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • If the chip detected "oscillator stop" condition, show an warning message.
    And initialize it with the Epoch time instead of leaving it with unknown
    date/time.

    Signed-off-by: Atsushi Nemoto
    Acked-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • For len equal to 4, we never call sppp_lcp_conf_parse_options(),
    therefore rmagic does not get initialized.

    Signed-off-by: Eric Sesterhenn
    Acked-by: Paul Fulghum
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Sesterhenn
     
  • This patch limits the messages when ldisc open faulures happen. It happens
    under memory pressure.

    Signed-off-by: Akinobu Mita
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     
  • This change corrects the logic on the preprocessor conditionals that
    include support for ISA port i/o (/dev/ioports) into the mem character
    driver.

    This fixes the following error when building for powerpc platforms with
    CONFIG_PCI=n.

    drivers/built-in.o: undefined reference to `pci_io_base'

    Signed-off-by: Geoff Levand
    Acked-by: Linas Vepstas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geoff Levand
     
  • Forward port of the patch by Solar and ported by Julio.

    Compiles, boots, and passes my looptorturetest.sh.

    Signed-off-by: Serge E. Hallyn
    Cc: Julio Auto
    Cc: Solar Designer
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Serge E. Hallyn
     
  • Fix simple typo in RTC_HCTOSYS option.

    Signed-off-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Machek
     
  • Introduce the disable_irq_nosync_lockdep_irqsave() and
    enable_irq_lockdep_irqrestore() APIs. These are needed for NE2000; basically
    NE2000 calls disable_irq and enable_irq as locking against the IRQ handler,
    but both in cases where interrupts are on and off. This means that lockdep
    needs to track the old state of the virtual irq flags on disable_irq, and
    restore these at enable_irq time.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Ingo Molnar
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     
  • Signed-off-by: Alexey Dobriyan
    Acked-by: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • If your driver implements "break on" and "break off" this ensures you won't
    get multiple overlapping requests or requests in parallel. If your driver
    has its own break handling then its still your problem as the driver
    author.

    Break is also now serialized against writes from user space properly but no
    new guarantees are made driver level about writes from the line discipline
    itself (eg flow control or echo)

    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • [akpm@osdl.org: build fix]
    [akpm@osdl.org: warning fix]
    Signed-off-by: Alan Cox
    Acked-by: David S. Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Currently this module just returns 1 if anything on module init fails. Store
    the error code of the different function calls and return their error on
    problems.

    Signed-off-by: Rolf Eike Beer
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    [ Fixed to not unregister twice on error ]
    Signed-off-by: Linus Torvalds

    Rolf Eike Beer
     
  • [akpm@osdl.org: fix]
    Cc: Alan Cox
    Cc: Arjan van de Ven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     
  • Now we lock the set ioctl its trivial to lock the get one so the data
    copied is consistent. At the moment we have the BKL here but this removes
    the need for it and is a step in the right direction

    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Memory leaks can happen in the vc_resize() function in drivers/char/vt.c
    because of the vc->vc_screenbuf variable overriding in vc_allocate(). The
    kmemleak reported trace is as follows:








    This patch no longer allocates a screen buffer in vc_allocate() if it was
    already allocated by vc_resize().

    Signed-off-by: Catalin Marinas
    Acked-by: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Catalin Marinas
     
  • Fix the Kconfig entry for console on AMBA PL011 to match the code.

    Signed-off-by: Peter Korsgaard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Korsgaard
     
  • This can now be removed, since there is now a drivers/rtc/rtc-s3c.c driver.

    Signed-off-by: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • Remove some code which is unneeded if CONFIG_PM=n.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • Support SB600 SATA legacy IDE (DMA enable).

    Signed-off-by: Anatoli Antonovitch
    Cc: Jeff Garzik
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anatoli Antonovitch
     
  • This is an updated version of Eric Biederman's is_init() patch.
    (http://lkml.org/lkml/2006/2/6/280). It applies cleanly to 2.6.18-rc3 and
    replaces a few more instances of ->pid == 1 with is_init().

    Further, is_init() checks pid and thus removes dependency on Eric's other
    patches for now.

    Eric's original description:

    There are a lot of places in the kernel where we test for init
    because we give it special properties. Most significantly init
    must not die. This results in code all over the kernel test
    ->pid == 1.

    Introduce is_init to capture this case.

    With multiple pid spaces for all of the cases affected we are
    looking for only the first process on the system, not some other
    process that has pid == 1.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: Sukadev Bhattiprolu
    Cc: Dave Hansen
    Cc: Serge Hallyn
    Cc: Cedric Le Goater
    Cc:
    Acked-by: Paul Mackerras
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sukadev Bhattiprolu
     
  • The current kernel serializes console resizes but does not serialize the
    resize against the tty structure updates. This means that while two
    parallel resizes cannot mess up the console you can get incorrect results
    reported.

    Secondly while doing this I added vc_lock_resize() to lock and resize the
    console. This leaves all knowledge of the console_sem in the vt/console
    driver and kicks it out of the tty layer, which is good

    Thirdly while doing this I decided I couldn't stand "disallocate" any
    longer so I switched it to "deallocate".

    Signed-off-by: Alan Cox
    Cc: Paul Fulghum
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Fix utf-8 mode so alternate charset modes always work according to control
    sequences interpreted in do_con_trol function preserving backward US-ASCII
    and VT100 semigraphics compatibility.

    Malformed utf-8 sequences are represented as sequences of replacement
    glyphs,original codes or '?' as a last resort.

    unicode-xterm, gnome-terminal, kconsole and other terminal emulators in
    utf-8 mode respect acsc, enacs, rmacs sequences. Also I found that some
    important system programs (from Debian distro) uses acsc in utf-8 mode -
    dselect, aptitude, w3m for example.

    Signed-off-by: Adam Tlalka
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adam Tlalka
     
  • ucb1x00-ts: handle errors from input_register_device()

    Signed-off-by: Dmitry Torokhov
    Cc: Russell King
    Cc: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dmitry Torokhov
     
  • Just comment and next "while" look _very_ wrong. Place { correctly to hint
    unsuspecting ones that it's the end of the loop actually.

    Signed-off-by: Alexey Dobriyan
    Cc: Dave Jones
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • As suggested by Muli Ben-Yehuda this function is moved to generic code as
    may be useful for all archs.

    [akpm@osdl.org: fix]
    Signed-off-by: Rolf Eike Beer
    Cc: Muli Ben-Yehuda
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rolf Eike Beer
     
  • Jon Smirl noted a couple of tty driver functions now are quite misleadingly
    named with the death of devfs. A quick grep found another case in the lp
    driver.

    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox