19 Feb, 2010

5 commits


18 Feb, 2010

10 commits

  • Most laptops have keys that are intended to toggle all device state, not
    just wifi. These are currently generally mapped to KEY_WLAN. As a result,
    rfkill will only kill or enable wifi in response to the key press. This
    confuses users and can make it difficult for them to enable bluetooth
    and wwan devices.

    This patch adds a new keycode, KEY_RFKILL. It indicates that the system
    should toggle the state of all rfkillable devices.

    Signed-off-by: Matthew Garrett
    Acked-by: Marcel Holtmann
    Signed-off-by: Dmitry Torokhov

    Matthew Garrett
     
  • 633aae2 "Input: i8042 - switch to using dev_pm_ops" removed handling
    for PMSG_THAW, since we do not need to do anything during freeze and
    thus it was thougt that thaw is not needed as well. However, there is
    a period when interrupts are kept off, and if key happens to be pressed
    during that time KBC becomes jammed. To avoid the jam we simply need
    to poll KBC once during thaw.

    Signed-off-by: Alan Jenkins
    Signed-off-by: Dmitry Torokhov

    Alan Jenkins
     
  • …5108', 'pdc', 'hotplug-null-ref' and 'thinkpad' into release

    Len Brown
     
  • We broke "acpi=ht" in 2.6.32 by disabling MADT parsing
    for acpi=disabled. e5b8fc6ac158f65598f58dba2c0d52ba3b412f52
    This also broke systems which invoked acpi=ht via DMI blacklist.

    acpi=ht is a really ugly hack,
    but restore it for those that still use it.

    http://bugzilla.kernel.org/show_bug.cgi?id=14886

    Signed-off-by: Len Brown

    Len Brown
     
  • * 'for-airlied' of git://git.freedesktop.org/git/nouveau/linux-2.6:
    drm/nouveau: Force TV encoder DPMS reinit after resume.
    drm/nouveau: use mutex for vbios lock

    Dave Airlie
     
  • Previous code did associate fence to bo before the fence was emited
    and it also didn't lock protected access to ttm sync_obj member.
    Both of this flaw leads to possible race between different code
    path. This patch fix this by associating fence only once the fence
    is emitted and properly lock protect access to sync_obj member of
    ttm.

    Fix:
    https://bugs.freedesktop.org/show_bug.cgi?id=26438
    and likely similar others bugs
    Signed-off-by: Jerome Glisse
    Signed-off-by: Dave Airlie

    Jerome Glisse
     
  • There is 3 different distinct states for an indirect buffer (IB) :
    1- free with no fence
    2- free with a fence
    3- non free (fence doesn't matter)
    Previous code mixed case 2 & 3 in a single one leading to possible
    catastrophique failure. This patch rework the handling and properly
    separate each case. So when you get ib we set the ib as non free and
    fence status doesn't matter. Fence become active (ie has a meaning
    for the ib code) once the ib is scheduled or free. This patch also
    get rid of the alloc bitmap as it was overkill, we know go through
    IB pool list like in a ring buffer as the oldest IB is the first
    one the will be free.

    Fix :
    https://bugs.freedesktop.org/show_bug.cgi?id=26438
    and likely other bugs.

    V2 remove the scheduled list, it's useless now, fix free ib scanning

    Signed-off-by: Jerome Glisse
    Signed-off-by: Dave Airlie

    Jerome Glisse
     
  • cf. https://bugzilla.redhat.com/show_bug.cgi?id=533561

    Signed-off-by: Adam Jackson
    Signed-off-by: Dave Airlie

    Adam Jackson
     
  • When the vmwgfx module is loaded on top of vesafb, it would operate in
    stealth mode in parallel with vesafb, evicting VRAM on dropmaster.

    Change that to use the vesafb handover mechanism, like other drmfb drivers.

    Signed-off-by: Thomas Hellstrom
    Signed-off-by: Dave Airlie

    Thomas Hellstrom
     
  • For usec delays use udelay instead of scheduling, this should
    allow reclocking to happen faster. This also was the cause
    of reported 33s delays at bootup on certain systems.

    fixes: freedesktop.org bug 25506

    Cc: stable@kernel.org
    Signed-off-by: Dave Airlie

    Dave Airlie
     

17 Feb, 2010

25 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6:
    serial: 8250: add serial transmitter fully empty test

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
    USB: gadget: fix EEM gadget CRC usage
    USB: otg Kconfig: let USB_OTG_UTILS select USB_ULPI option
    USB: g_multi: fix CONFIG_USB_G_MULTI_RNDIS usage
    kfifo: Don't use integer as NULL pointer
    USB: FHCI: Fix build after kfifo rework
    kfifo: Make kfifo_initialized work after kfifo_free
    USB: serial: add usbid for dell wwan card to sierra.c
    USB: SIS USB2VGA DRIVER: support KAIREN's USB VGA adaptor USB20SVGA-MB-PLUS
    USB: ehci: phy low power mode bug fixing
    USB: s3c-hsotg: Export usb_gadget_register_driver()
    USB: r8a66597-udc: Prototype IS_ERR() and PTR_ERR()
    USB: ftdi_sio: add device IDs (several ELV, one Mindstorms NXT)
    USB: storage: Remove unneeded SC/PR from unusual_devs.h
    USB: ftdi_sio: new device id for papouch AD4USB
    USB: usbfs: properly clean up the as structure on error paths
    USB: usbfs: only copy the actual data received

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
    class: Free the class private data in class_release
    sysfs: sysfs_sd_setattr set iattrs unconditionally

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (22 commits)
    be2net: set proper value to version field in req hdr
    xfrm: Fix xfrm_state_clone leak
    ipcomp: Avoid duplicate calls to ipcomp_destroy
    ethtool: allow non-admin user to read GRO settings.
    ixgbe: fix WOL register setup for 82599
    ixgbe: Fix - Do not allow Rx FC on 82598 at 1G due to errata
    sfc: Fix SFE4002 initialisation
    mac80211: fix handling of null-rate control in rate_control_get_rate
    inet: Remove bogus IGMPv3 report handling
    iwlwifi: fix AMSDU Rx after paged Rx patch
    tcp: fix ICMP-RTO war
    via-velocity: Fix races on shared interrupts
    via-velocity: Take spinlock on set coalesce
    via-velocity: Remove unused IRQ status parameter from rx_srv and tx_srv
    rtl8187: Add new device ID
    iwmc3200wifi: Test of wrong pointer after kzalloc in iwm_mlme_update_bss_table()
    ath9k: Fix sequence numbers for PAE frames
    mac80211: fix deferred hardware scan requests
    iwlwifi: Fix to set correct ht configuration
    mac80211: Fix probe request filtering in IBSS mode
    ...

    Linus Torvalds
     
  • When controlling an industrial radio modem it can be necessary to
    manipulate the handshake lines in order to control the radio modem's
    transmitter, from userspace.

    The transmitter should not be turned off before all characters have been
    transmitted. serial8250_tx_empty() was reporting that all characters were
    transmitted before they actually were.

    ===

    Discovered in parallel with more testing and analysis by Kees Schoenmakers
    as follows:

    I ran into an NetMos 9835 serial pci board which behaves a little
    different than the standard. This type of expansion board is very common.

    "Standard" 8250 compatible devices clear the 'UART_LST_TEMT" bit together
    with the "UART_LSR_THRE" bit when writing data to the device.

    The NetMos device does it slightly different

    I believe that the TEMT bit is coupled to the shift register. The problem
    is that after writing data to the device and very quickly after that one
    does call serial8250_tx_empty, it returns the wrong information.

    My patch makes the test more robust (and solves the problem) and it does
    not affect the already correct devices.

    Alan:

    We may yet need to quirk this but now we know which chips we have a
    way to do that should we find this breaks some other 8250 clone with
    dodgy THRE.

    Signed-off-by: Dick Hollenbeck
    Signed-off-by: Alan Cox
    Cc: Kees Schoenmakers
    Signed-off-by: Andrew Morton
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Dick Hollenbeck
     
  • Fix a memory leak by freeing the memory allocated in __class_register
    for the class private data.

    Signed-off-by: Laurent Pinchart
    Acked-by: Artem Bityutskiy
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Laurent Pinchart
     
  • There is currently a bug in sysfs_sd_setattr inherited from
    sysfs_setattr in 2.6.32 where the first time we set the attributes
    on a sysfs file we allocate backing store but do not set the
    backing store attributes. Resulting in overly restrictive
    permissions on sysfs files.

    The fix is to simply modify the code so that it always executes
    when we update the sysfs attributes, as we did in 2.6.31 and earlier.

    Signed-off-by: Eric W. Biederman
    Tested-by: Jean Delvare
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Eric W. Biederman
     
  • eem_wrap() is sending a sentinel CRC, but it didn't indicate that to
    the host, it should zero bit 14 (bmCRC) in the EEM packet header,
    instead of setting it.

    Also remove a redundant crc calculation in eem_unwrap().

    Signed-off-by: Steve Longerbeam
    Acked-by: Brian Niebuhr
    Acked-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Brian Niebuhr
     
  • With CONFIG_USB_ULPI=y, CONFIG_USB
    Acked-by: Uwe Kleine-König
    Signed-off-by: Greg Kroah-Hartman

    Valentin Longchamp
     
  • g_multi used CONFIG_USB_ETH_RNDIS to check if RNDIS option was requested
    where it should check for CONFIG_USB_G_MULTI_RNDIS. As a result, RNDIS
    was never present in g_multi regardless of configuration.

    This fixes changes made in commit 396cda90d228d0851f3d64c7c85a1ecf6b8ae1e8.

    Signed-off-by: Michal Nazarewicz
    Cc: Marek Szyprowski
    Signed-off-by: Greg Kroah-Hartman

    Michal Nazarewicz
     
  • This patch fixes following sparse warnings:

    include/linux/kfifo.h:127:25: warning: Using plain integer as NULL pointer
    kernel/kfifo.c:83:21: warning: Using plain integer as NULL pointer

    Signed-off-by: Anton Vorontsov
    Acked-by: Stefani Seibold
    Signed-off-by: Greg Kroah-Hartman

    Anton Vorontsov
     
  • After kfifo rework FHCI fails to build:

    CC drivers/usb/host/fhci-tds.o
    drivers/usb/host/fhci-tds.c: In function 'fhci_ep0_free':
    drivers/usb/host/fhci-tds.c:108: error: used struct type value where scalar is required
    drivers/usb/host/fhci-tds.c:118: error: used struct type value where scalar is required
    drivers/usb/host/fhci-tds.c:128: error: used struct type value where scalar is required

    This is because kfifos are no longer pointers in the ep struct.
    So, instead of checking the pointers, we should now check if kfifo
    is initialized.

    Reported-by: Josh Boyer
    Signed-off-by: Anton Vorontsov
    Acked-by: Stefani Seibold
    Signed-off-by: Greg Kroah-Hartman

    Anton Vorontsov
     
  • After kfifo rework it's no longer possible to reliably know if kfifo is
    usable, since after kfifo_free(), kfifo_initialized() would still return
    true. The correct behaviour is needed for at least FHCI USB driver.

    This patch fixes the issue by resetting the kfifo to zero values (the
    same approach is used in kfifo_alloc() if allocation failed).

    Signed-off-by: Anton Vorontsov
    Acked-by: Stefani Seibold
    Signed-off-by: Greg Kroah-Hartman

    Anton Vorontsov
     
  • This patch adds support for Dell Computer Corp. Wireless 5720 VZW Mobile
    Broadband (EVDO Rev-A) Minicard GPS Port. I stole the name from lsusb,
    but my card does not have a GPS on it (at least not that I can make
    function). I'm sure the patch is whitespace damaged but the one line
    addition should be fairly straightforward nonetheless.

    Tested-by: Rick Farina
    Signed-off-by: Rick Farina
    Signed-off-by: Greg Kroah-Hartman

    Richard Farina
     
  • This patch adds the USB product ID of KAIREN's USB VGA Adaptor,
    USB20SVGA-MB-PLUS, to sisusbvga work with it.

    Signed-off-by: Tanaka Akira
    Signed-off-by: Greg Kroah-Hartman

    Tanaka Akira
     
  • 1. There are two msleep calls inside two spin lock sections, need to unlock
    and lock again after msleep.
    2. Save a extra status reg setting.

    Signed-off-by: Alek Du
    Signed-off-by: Greg Kroah-Hartman

    Alek Du
     
  • USB gadget controller drivers normally export their driver registration
    function, allowing modular builds of the individual gadget drivers so
    do so for s3c-hsotg, fixing builds.

    Signed-off-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Mark Brown
     
  • The build of r8a66597-udc was failing on ARM since IS_ERR() and
    PTR_ERR() weren't protyped. Presumably err.h is being pulled in by
    another header on other platforms.

    Signed-off-by: Mark Brown
    Acked-by: Yoshihiro Shimoda
    Signed-off-by: Greg Kroah-Hartman

    Mark Brown
     
  • - add FTDI device IDs for several ELV devices and NXTCam of Lego Mindstorms NXT
    - add hopefully helpful new_id comment
    - remove less helpful "Due to many user requests for multiple ELV devices we enable
    them by default." comment (we simply add _all_ known devices - an
    enduser shouldn't have to fiddle with obscure module parameters...).
    - add myself to DRIVER_AUTHOR

    The missing NXTCam ID has been found at
    http://www.unixboard.de/vb3/showthread.php?t=44155
    , ELV devices taken from ELV Windows .inf file.

    Signed-off-by: Andreas Mohr
    Signed-off-by: Greg Kroah-Hartman

    Andreas Mohr
     
  • This patch removes the subclass and protocol entries from a Microtech
    entry in unusual_devs.h. This was reported by .

    Greg, please apply.

    Signed-off-by: Phil Dibowitz
    Signed-off-by: Greg Kroah-Hartman

    Phil Dibowitz
     
  • added new device pid (PAPOUCH_AD4USB_PID) to ftdi_sio.h and ftdi_sio.c

    AD4USB measuring converter is a 4-input A/D converter which enables the
    user to measure to four current inputs ranging from 0(4) to 20 mA or
    voltage between 0 and 10 V. The measured values are then transferred to
    a superior system in digital form. The AD4USB communicates via USB.
    Powered is also via USB. datasheet in english is here:
    http://www.papouch.com/shop/scripts/pdf/ad4usb_en.pdf

    Signed-off-by: Radek Liboska

    Radek Liboska
     
  • I notice that the processcompl_compat() function seems to be leaking the
    'struct async *as' in the error paths.

    I think that the calling convention is fundamentally buggered. The
    caller is the one that did the "reap_as()" to get the as thing, the
    caller should be the one to free it too.

    Freeing it in the caller also means that it very clearly always gets
    freed, and avoids the need for any "free in the error case too".

    From: Linus Torvalds
    Cc: Alan Stern
    Cc: Marcus Meissner
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Linus Torvalds
     
  • We need to only copy the data received by the device to userspace, not
    the whole kernel buffer, which can contain "stale" data.

    Thanks to Marcus Meissner for pointing this out and testing the fix.

    Reported-by: Marcus Meissner
    Tested-by: Marcus Meissner
    Cc: Alan Stern
    Cc: Linus Torvalds
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Greg KH
     
  • Before sending a command to the ASIC, set version properly.
    This is necessary for the ARM firmware to send correct data to the driver.
    This also fixes a bug in certain skews of the ASIC where the statistics
    are misreported.

    Signed-off-by: Ajit Khaparde
    Signed-off-by: David S. Miller

    Ajit Khaparde
     
  • xfrm_state_clone calls kfree instead of xfrm_state_put to free
    a failed state. Depending on the state of the failed state, it
    can cause leaks to things like module references.

    All states should be freed by xfrm_state_put past the point of
    xfrm_init_state.

    Signed-off-by: Herbert Xu
    Signed-off-by: David S. Miller

    Herbert Xu