19 Apr, 2008

2 commits


26 Mar, 2008

2 commits

  • This fixes the builtin RTL8139 NIC on the Medion MD9580-F laptop. The
    BIOS reports the interrupt routing incorrectly. I recently added a
    quirk to work around this, and this patch fixes a typo in the quirk.

    We pad every ACPI pathname component to four characters, so ".ISA." will
    never match anything. We need ".ISA_." instead.

    Thank you Johann-Nikolaus Andreae
    for patiently testing this patch.

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

    Signed-off-by: Bjorn Helgaas
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • * 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
    i2c: Fix docbook problem
    ASoC/TLV320AIC3X: Stop I2C driver ID abuse
    i2c-omap: Fix unhandled fault
    i2c-bfin-twi: Disable BF54x support for now

    Linus Torvalds
     

25 Mar, 2008

26 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
    USB: Fix cut-and-paste error in rtl8150.c
    USB: ehci: stop vt6212 bus hogging
    USB: sierra: add another device id
    USB: sierra: dma fixes
    USB: add support for Motorola ROKR Z6 cellphone in mass storage mode
    USB: isd200: fix memory leak in isd200_get_inquiry_data
    USB: pl2303: another product ID
    USB: new quirk flag to avoid Set-Interface
    USB: fix gadgetfs class request delegation

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6:
    driver core: debug for bad dev_attr_show() return value.
    UIO: add pgprot_noncached() to UIO mmap code

    Linus Torvalds
     
  • Revert as it is reported to cause problems for people.

    commit 4348a2dc49f9baecd34a9b0904245488c6189398
    Author: Shaohua Li
    Date: Wed Oct 24 10:45:08 2007 +0800

    pcie: utilize pcie transaction pending bit

    PCIE has a mechanism to wait for Non-Posted request to complete. I think
    pci_disable_device is a good place to do this.

    Signed-off-by: Shaohua Li
    Signed-off-by: Greg Kroah-Hartman

    Due to the regression reported at
    http://bugzilla.kernel.org/show_bug.cgi?id=10065

    Cc: Shaohua Li
    Cc: Soeren Sonnenburg
    Cc: "Rafael J. Wysocki"
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Andrew Morton
     
  • lockdep goes off on the iova copy_reserved_iova() because it and a function
    it calls grabs locks in the from, and the to of the copy operation.

    The function grab locks of the same lock classes triggering the warning. The
    first lock grabbed is for the constant reserved areas that is never accessed
    after early boot. Technically you could do without grabbing the locks for the
    "from" structure its copying reserved areas from.

    But dropping the from locks to me looks wrong, even though it would be ok.

    The affected code only runs in early boot as its setting up the DMAR
    engines.

    This patch gives the reserved_ioval_list locks special lockdep classes.

    Signed-off-by: Mark Gross
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Mark Gross
     
  • Try to find the culprit who caused
    http://bugzilla.kernel.org/show_bug.cgi?id=10150

    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Andrew Morton
     
  • Mapping of physical memory in UIO needs pgprot_noncached() to ensure
    that IO memory is not cached. Without pgprot_noncached(), it (accidentally)
    works on x86 and arm, but fails on PPC.

    Signed-off-by: Jean-Samuel Chenard
    Signed-off-by: Hans J Koch
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Jean-Samuel Chenard
     
  • Signed-off-by: Robert P. J. Day
    Signed-off-by: Greg Kroah-Hartman

    Robert P. J. Day
     
  • The VIA VT6212 defaults to only waiting 1us between passes over EHCI's
    async ring, which hammers PCI badly ... and by preventing other devices
    from accessing the bus, causes problems like drops in IDE throughput,
    a problem that's been bugging users of those chips for several years.

    A (partial) datasheet for this chip eventually turned up, letting us
    see how to make it use a VIA-specific register to switch over to the
    the normal 10us value instead, as suggested by the EHCI specification
    Solution noted by Lev A. Melnikovsky.

    It's not clear whether this register exists on other VIA chips; we
    know that it's ineffective on the vt8235. So this patch only applies
    to chips that seem to be incarnations of the (discrete) vt6212.

    Signed-off-by: Rene Herman
    Tested-by: Lev A. Melnikovsky
    Tested-by: Alessandro Suardi
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Rene Herman
     
  • Add support for the MC8775 device to the sierra driver.

    Signed-off-by: Kevin Lloyd
    Signed-off-by: Greg Kroah-Hartman

    Kevin Lloyd
     
  • while I was adding autosuspend to that driver I noticed a few issues.
    You were having DMAed buffers as a part of a structure.
    This will fail on platforms that are not DMA-coherent (arm, sparc, ppc, ...)
    Please test this patch to fix it.

    Signed-off-by: Kevin Lloyd
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     
  • Motorola ROKR Z6 cellphone has bugs in its USB, so it is impossible to use
    it as mass storage. Patch describes new "unusual" USB device for it with
    FIX_INQUIRY and FIX_CAPACITY flags and new BULK_IGNORE_TAG flag.
    Last flag relaxes check for equality of bcs->Tag and us->tag in
    usb_stor_Bulk_transport routine.

    Signed-off-by: Constantin Baranov
    Signed-off-by: Matthew Dharm
    Signed-off-by: Daniel Drake
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Constantin Baranov
     
  • If the inquiry fails then the info structure on us->extra was not freed.

    Signed-off-by: Boaz Harrosh
    Acked-by: Alan Stern
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Boaz Harrosh
     
  • Device like this http://aldiga.com/english/A-100-USB-EDGE10.htm
    contains Prolific 2303 chip.
    Actually their site a bit outdated - I have AlDiga AL-11U
    GSM/GPRS/EDGE modem and it works with pl2303 module after adding
    corresponding product ID.

    By default modem uses baud rate 460800. GSM chipset - SIMCom SIM600,
    quad band 850/900/1800/1900 MHz

    Device info:

    T: Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 5 Spd=12 MxCh= 0
    D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
    P: Vendor=067b ProdID=0611 Rev= 0.00
    C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
    I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=pl2303
    E: Ad=81(I) Atr=03(Int.) MxPS= 10 Ivl=1ms
    E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
    E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms

    From: Max Arnold
    Signed-off-by: Greg Kroah-Hartman

    Max Arnold
     
  • This patch (as1057) fixes a problem with the X-Rite/Gretag-Macbeth
    Eye-One Pro display colorimeter; the device crashes when it receives a
    Set-Interface request. A new quirk (USB_QUIRK_NO_SET_INTF) is
    introduced and a quirks entry is created for this device.

    Signed-off-by: Alan Stern
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • gadgetfs (drivers/usb/gadget/inode.c) was not delegating all
    non-device requests to userspace. This patch makes the handling of
    all request cases consistent.

    Signed-off-by: Roy Hashimoto
    Acked-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Roy Hashimoto
     
  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    [libata] ahci: SB600 workaround is suspect... play it safe for now
    sata_promise: fix hardreset hotplug events, take 2
    libata: improve HPA error handling
    libata: assume no device is attached if both IDENTIFYs are aborted
    pata_it821x: use raw nbytes in check_atapi_dma
    libata: implement ata_qc_raw_nbytes()

    Linus Torvalds
     
  • At least one report claims that a878539ef994787c447a98c2e3ba0fe3dad984ec
    failed to solve lockups, whereas the old limit-to-32-bit trick worked.

    Restore the 32-bit limit, but also leave the 255-sector limit in place,
    because we know that's needed as well.

    Signed-off-by: Jeff Garzik

    Jeff Garzik
     
  • A Promise SATA controller will signal hotplug events when a hard
    reset (COMRESET) is done on a port. These events aren't masked by
    the driver, and the unexpected interrupts will cause a sequence
    of failed reset attempts util libata's EH finally gives up.

    This has not been a common problem so far, but the pending libata
    hardreset-by-default changes makes it a critical issue.

    The solution is to disable hotplug events before a reset, and to
    reenable them afterwards. (Promise's driver does this too.)

    This patch adds SATA-specific versions of ->freeze() and ->thaw()
    that also disable and enable hotplug events. PATA ports continue
    to use the old versions of ->freeze() and ->thaw().

    Accesses to the hotplug register must be serialised via host->lock.
    We rely on ap->lock == &ap->host->lock and that libata takes this
    lock before ->freeze() and ->thaw(). Document this requirement.
    The interrupt handler is adjusted so its hotplug register accesses
    are inside the region protected by host->lock.

    Tested on various chips (SATA300TX4, SATA300TX2plus, SATAII150TX4,
    FastTrack TX4000) with various combinations of SATA and PATA disks,
    with and without the pending hardreset-by-default changes.

    Signed-off-by: Mikael Pettersson
    Acked-by: Tejun Heo
    Signed-off-by: Jeff Garzik

    Mikael Pettersson
     
  • Update documentation for the hw_random support to be current:

    - Documentation/hw_random.txt has been updated to reflect the
    current code: it's a framework now, a "core" with a small
    sysfs interface, that hardware-specific drivers plug in to.
    Text specific to Intel hardware is now at the end.

    - Kconfig now references the Documentation/hw_random.txt file
    and better explains what this really does.

    Both chunks of documentation now higlight the fact that the kernel entropy
    pool is maintained by "rngd", and this driver has nothing directly to do with
    that important task.

    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • The block2mtd driver (drivers/mtd/devices/block2mtd.c) will kfree an on-stack
    pointer when handling an invalid argument line (e.g.
    block2mtd=/dev/loop0,xxx).

    The kfree was added some time ago when "name" was dynamically allocated.

    Signed-off-by: Ingo van Lil
    Acked-by: Joern Engel
    Cc: David Woodhouse
    Cc:
    Cc: Andrew Morton
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo van Lil
     
  • There's no point in retrying and eventually failing device detection
    when the device rejects READ_NATIVE_MAX[_EXT]. Disable HPA unlocking
    if READ_NATIVE_MAX[_EXT] is rejected as done when SET_MAX[_EXT] is
    rejected.

    This allows some old drives to work even if they aren't blacklisted.

    Signed-off-by: Tejun Heo
    Signed-off-by: Jeff Garzik

    Tejun Heo
     
  • This is to fix bugzilla #10254. QSI cdrom attached to pata_sis as
    secondary master appears as phantom device for the slave.
    Interestingly, instead of not setting DRQ after IDENTIFY which
    triggers NODEV_HINT, it aborts both IDENTIFY and IDENTIFY PACKET which
    makes EH retry.

    Modify EH such that it assumes no device is attached if both flavors
    of IDENTIFY are aborted by the device. There really isn't much point
    in retrying when the device actively aborts the commands.

    While at it, convert NODEV detection message to ata_dev_printk() to
    help debugging obscure detection problems.

    This problem was reported by Jan Bücken.

    Signed-off-by: Tejun Heo
    Cc: Jan Bücken
    Acked-by: Alan Cox
    Signed-off-by: Jeff Garzik

    Tejun Heo
     
  • pata_it821x needs to look at raw request size in check_atapi_dma().

    Signed-off-by: Tejun Heo
    Cc: Alan Cox
    Signed-off-by: Jeff Garzik

    Tejun Heo
     
  • Implement ata_qc_raw_nbytes() which determines the raw user-requested
    size of a PC command.

    Signed-off-by: Tejun Heo
    Signed-off-by: Jeff Garzik

    Tejun Heo
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
    [POWERPC] Fix Oops with TQM5200 on TQM5200
    [POWERPC] mpc5200: Fix null dereference if bestcomm fails to initialize
    [POWERPC] mpc5200-fec: Fix possible NULL dereference in mdio driver
    [POWERPC] Fix crash in init_ipic_sysfs on efika
    [POWERPC] Don't use 64k pages for ioremap on pSeries

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    sch_htb: fix "too many events" situation
    connector: convert to single-threaded workqueue
    [ATM]: When proc_create() fails, do some error handling work and return -ENOMEM.
    [SUNGEM]: Fix NAPI assertion failure.
    BNX2X: prevent ethtool from setting port type
    [9P] net/9p/trans_fd.c: remove unused variable
    [IPV6] net/ipv6/ndisc.c: remove unused variable
    [IPV4] fib_trie: fix warning from rcu_assign_poinger
    [TCP]: Let skbs grow over a page on fast peers
    [DLCI]: Fix tiny race between module unload and sock_ioctl.
    [SCTP]: Fix build warnings with IPV6 disabled.
    [IPV4]: Fix null dereference in ip_defrag

    Linus Torvalds
     

24 Mar, 2008

5 commits

  • If the reg property is missing from the phy node (unlikely, but possible),
    then the kernel will oops with a NULL pointer dereference. This fixes
    it by checking the pointer first.

    Signed-off-by: Grant Likely
    Signed-off-by: Paul Mackerras

    Grant Likely
     
  • From: Evgeniy Polyakov

    We don't need one cqueue thread for each CPU. cqueue is used for
    receiving userspace datagrams, which are very rare and thus will
    happily live with a single queue.

    Signed-off-by: Andrew Morton
    Signed-off-by: David S. Miller

    Evgeniy Polyakov
     
  • Sometimes kernel-doc and xmlto conspire to create output that is invalid
    and causes problems. Until I know a real/better solution, change the
    source code that causes this.

    If anyone has better fixes or can just explain what is happening here,
    that would be great.

    xmlto: input does not validate (status 1)
    mmotm-2008-0314-1449/Documentation/DocBook/kernel-api.xml:71468: parser error : Opening and ending tag mismatch: programlisting line 71464 and para

    ^
    mmotm-2008-0314-1449/Documentation/DocBook/kernel-api.xml:71480: parser error : Opening and ending tag mismatch: para line 71473 and programlisting

    ^
    make[1]: *** [Documentation/DocBook/kernel-api.html] Error 1

    Signed-off-by: Randy Dunlap
    Signed-off-by: Jean Delvare

    Randy Dunlap
     
  • If an I2C interrupt happens between disabling interface clock
    and functional clock, the interrupt handler will produce an
    external abort on non-linefetch error when trying to access
    driver registers while interface clock is disabled.

    This patch fixes the problem by saving and disabling i2c-omap
    interrupt before turning off the clocks. Also disable functional
    clock before the interface clock as suggested by Paul Walmsley.

    Patch also renames enable/disable_clocks functions to unidle/idle
    functions. Note that the driver is currently not taking advantage
    of the idle interrupts. To use the idle interrupts, driver would
    have to enable interface clock based on the idle interrupt
    and dev->idle flag.

    This patch has been tested in linux-omap tree with various omaps.

    Cc: Paul Walmsley
    Signed-off-by: Tony Lindgren
    Signed-off-by: Jean Delvare

    Tony Lindgren
     
  • The i2c-bfin-twi driver doesn't support BF54x for now due to
    missing header definitions causing the build to fail. Exclude
    it for now, it will be enabled again later.

    Signed-off-by: Bryan Wu
    Signed-off-by: Jean Delvare

    Bryan Wu
     

23 Mar, 2008

5 commits

  • As reported by Johannes Berg:

    I started getting this warning with recent kernels:

    [ 773.908927] ------------[ cut here ]------------
    [ 773.908954] Badness at net/core/dev.c:2204
    ...

    If we loop more than once in gem_poll(), we'll
    use more than the real budget in our gem_rx()
    calls, thus eventually trigger the caller's
    assertions in net_rx_action().

    Subtract "work_done" from "budget" for the second
    arg to gem_rx() to fix the bug.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • On 10GBaseT boards setting the type to TP will cause the driver to try
    to configure 1GBaseT.
    Since there are currently no boards that support setting of the port
    type, disable this for now.

    Signed-off-by: Eliezer Tamir
    Signed-off-by: David S. Miller

    Eliezer Tamir
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
    RDMA/nes: Fix MSS calculation on RDMA path

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6:
    Revert "ide-tape: schedule driver for removal after 6 months"
    ide: mark "hdx=remap" and "hdx=remap63" kernel parameters as obsoleted
    ide: mark "hdx=[driver_name]" and "hdx=scsi" kernel parameters as obsoleted
    ide: Documentation/ide/ide.txt fixes
    ide: mark special "ide0=" kernel parameters as obsoleted
    ide: remove commented out entries from ide_pio_blacklist[]

    Linus Torvalds
     
  • Suppressing uevents turned out to be a bad idea as it screws up the
    order of events, making user space very confused. Change the system to
    use sysfs groups instead.

    This is a regression that, for some odd reason, has gone unnoticed for
    some time. It confuses hal so that the block devices (which have the
    mmc device as a parent) are not registered. End result being that
    desktop magic when cards are inserted won't work.

    Signed-off-by: Pierre Ossman
    Signed-off-by: Linus Torvalds

    Pierre Ossman