13 Jul, 2005

40 commits

  • Update PCMCIA driver changes for patches merged in 2.6.13

    Signed-off-by: Dominik Brodowski
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dominik Brodowski
     
  • If the CardBus windows were pre-configured and the CardBus bridge is behind a
    transparent PCI-PCI bridge, pci_find_parent_resource() might return a
    different resource than the real parent if it is called before the window is
    determined. Therefore, move that call around.

    Also fix return of value in void function.

    Signed-off-by: Dominik Brodowski
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dominik Brodowski
     
  • Fix pcmcia-cs compilation with recent pcmcia kernel changes.

    Signed-off-by: Dominik Brodowski
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dominik Brodowski
     
  • This is the second time this has happened: inserting a new section requires
    that we adjust the arithmetic which is used to calculate the vsyscall page's
    offset.

    Cc: Christoph Lameter
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Bug symptoms
    ~~~~~~~~~~~~
    For the same inode VFS calls read_inode() twice and doesn't call
    clear_inode() between the two read_inode() invocations.

    Bug description
    ~~~~~~~~~~~~~~~
    Suppose we have an inode which has zero reference count but is still in
    the inode cache. Suppose kswapd invokes shrink_icache_memory() to free
    some RAM. In prune_icache() inodes are removed from i_hash. prune_icache
    () is then going to call clear_inode(), but drops the inode_lock
    spinlock before this. If in this moment another task calls iget() for an
    inode which was just removed from i_hash by prune_icache(), then iget()
    invokes read_inode() for this inode, because it is *already removed*
    from i_hash.

    The end result is: we call iget(#N) then iput(#N); inode #N has zero
    i_count now and is in the inode cache; kswapd starts. kswapd removes the
    inode #N from i_hash ans is preempted; we call iget(#N) again;
    read_inode() is invoked as the result; but we expect clear_inode()
    before.

    Fix
    ~~~~~~~
    To fix the bug I remove inodes from i_hash later, when clear_inode() is
    actually called. I remove them from i_hash under spinlock protection.
    Since the i_state is set to I_FREEING, it is safe to do this. The others
    will sleep waiting for the inode state change.

    I also postpone removing inodes from i_sb_list. It is not compulsory to
    do so but I do it for readability reasons. Inodes are added/removed to
    the lists together everywhere in the code and there is no point to
    change this rule. This is harmless because the only user of i_sb_list
    which somehow may interfere with me (invalidate_list()) is excluded by
    the iprune_sem mutex.

    The same race is possible in invalidate_list() so I do the same for it.

    Acked-by: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Artem B. Bityuckiy
     
  • This patch fixes queer behavior in __wait_on_freeing_inode().

    If I_LOCK was not set it called yield(), effectively busy waiting for the
    removal of the inode from the hash. This change was introduced within
    "[PATCH] eliminate inode waitqueue hashtable" Changeset 1.1938.166.16 last
    october by wli.

    The solution is to restore the old behavior, of unconditionally waiting on
    the waitqueue. It doesn't matter if I_LOCK is not set initally, the task
    will go to sleep, and wake up when wake_up_inode() is called from
    generic_delete_inode() after removing the inode from the hash chain.

    Comment is also updated to better reflect current behavior.

    This condition is very hard to trigger normally (simultaneous clear_inode()
    with iget()) so probably only heavy stress testing can reveal any change of
    behavior.

    Signed-off-by: Miklos Szeredi
    Acked-by: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Miklos Szeredi
     
  • dup_mmap of a VM_DONTCOPY vma forgot to lower the child's total_vm. (But
    no way does this account for the recent report of total_vm seen too low.)

    Signed-off-by: Hugh Dickins
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hugh Dickins
     
  • This shuts up a potential uninitialized variable warning.

    Signed-off-by: Matt Mackall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • Signed-off-by: Dave Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Jones
     
  • kernel/power/disk.c needs a declaration of name_to_dev_t() in scope. mount.h
    seems like an appropriate choice.

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

    Andrew Morton
     
  • Linus Torvalds
     
  • Linus Torvalds
     
  • Linus Torvalds
     
  • OK, I can see what's happening here. eth0 doesn't detect link-up until
    after a few seconds, so when the vlan interface is opened immediately
    after eth0 has been opened, it inherits the link-down state. Subsequently
    the vlan interface is never properly activated and are thus unable to
    transmit any packets.

    dev->state bits are not supposed to be manipulated directly. Something
    similar is probably needed for the netif_device_present() bit, although
    I don't know how this is meant to work for a virtual device.

    Signed-off-by: David S. Miller

    Tommy Christensen
     
  • arch/sparc64/kernel/smp.c:48: error: parse error before "__attribute__"
    arch/sparc64/kernel/smp.c:49: error: parse error before "__attribute__"

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

    Andrew Morton
     
  • tr_type_trans(), hippi_type_trans() left as-is.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: David S. Miller

    Alexey Dobriyan
     
  • Revert the nf_reset change that caused so much trouble, drop conntrack
    references manually before packets are queued to packet sockets.

    Signed-off-by: Phil Oester
    Signed-off-by: Patrick McHardy
    Signed-off-by: David S. Miller

    Phil Oester
     
  • The following driver provides complete interrupt-in and interrupt-out
    reports (raw data) to a user program. Until now it uses the
    HIDIOCGDEVINFO ioctl call, because I don't know better :-(. Perhaps, it
    will be ok for you - and I will be happy, if you assign 8 minor numbers.

    I have tested it in several environments and it works very well for me.
    However, it has a problem with two or more devices at the same hub, if
    the two or more devices need 1 ms interrupt-in transfers. Unfortunately
    more than one interrupt-in transfer every ms isn't possible (ehci
    driver?). This is why the min_interrupt_in_interval and
    min_interrupt_out_interval are increased to 2 ms (see the corresponding
    module parameters). This way, I can use two devices simultaneously at
    the same hub.

    Signed-off-by: Michael Hund
    Signed-off-by: Greg Kroah-Hartman

    Michael Hund
     
  • This increases the reference count on the usb cdc acm control interface
    which is referred to by the tty interface provided by the driver. This
    allows the deferred removal of the tty after the physical device is
    disconnected if the tty is held open at the time of disconnection.

    Signed-off-by: brian@murphy.dk
    Signed-off-by: Greg Kroah-Hartman

    brian@murphy.dk
     
  • Export usb_get_intf and usb_put_intf so that modules can increase
    usb interface reference counts.

    Signed-off-by: brian@murphy.dk
    Signed-off-by: Greg Kroah-Hartman

    brian@murphy.dk
     
  • This adds another CDC descriptor type to ; the main claim
    to fame for this is that some Motorola phones include it. It's not currently
    needed by any driver code; included for completeness.

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    david-b@pacbell.net
     
  • A patch re-organizing some parts of root hub initialization deleted the
    code initializing the bus-neutral reboot/shutdown notifier for OHCI.
    This patch just restores that deleted code.

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    david-b@pacbell.net
     
  • The recent "pm_message_t" changes removed functionality from the Linux
    PM framework. This patch removes it from the OMAP OHCI too, removing
    the distinction between (previous) PM_SUSPEND_MEM and PM_SUSPEND_DISK
    state transitions ... now the only suspend semantics supportable are
    what was previously PM_SUSPEND_DISK (4) and is now "PMSG_SUSPEND" (3).

    From: Todd Poynor
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    david-b@pacbell.net
     
  • Minor OMAP updates that somehow got dropped from previous patches.

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    david-b@pacbell.net
     
  • I also needed the following on 2.6.13-rc1 without CONFIG_USB_ETH_RNDIS,
    symbol fs_status_desc isn't available in that case on PXA255.

    This builds both with and without ETH_RNDIS, but I haven't actually
    tested either.

    Signed-off-by: Ian Campbell
    Signed-off-by: Greg Kroah-Hartman

    Ian Campbell
     
  • Signed-off-by: Ian Campbell
    Signed-off-by: Greg Kroah-Hartman

    Ian Campbell
     
  • SN9C10x driver updates.

    Changes: + new, - removed, * cleanup, @ bugfix

    @ Remove bad get_ctrl()'s
    * Documentation updates
    + Add 0x0c45/0x602d to the list of SN9C10x based devices
    + Add support for OV7630 image sensors

    Signed-off-by: Luca Risolia
    Signed-off-by: Greg Kroah-Hartman

    Luca Risolia
     
  • below you will find one patch to hid-core.c, which lets usbhid ignore
    our HID devices. It would be nice, if you can apply it.

    Signed-off-by: Michael Hund
    Signed-off-by: Greg Kroah-Hartman

    Michael Hund
     
  • The length of the array desc->bitmap is 3, and not 4:

    Definitions involved:

    In drivers/usb/core/hcd.h

    464 #define bitmap DeviceRemovable

    In drivers/usb/host/ohci-hub.c

    395 struct usb_hub_descriptor *desc

    In drivers/usb/core/hub.h

    130 struct usb_hub_descriptor {
    131 __u8 bDescLength;
    132 __u8 bDescriptorType;
    133 __u8 bNbrPorts;
    134 __u16 wHubCharacteristics;
    135 __u8 bPwrOn2PwrGood;
    136 __u8 bHubContrCurrent;
    137 /* add 1 bit for hub status change; round to bytes */
    138 __u8 DeviceRemovable[(USB_MAXCHILDREN + 1 + 7) / 8];
    139 __u8 PortPwrCtrlMask[(USB_MAXCHILDREN + 1 + 7) / 8];
    140 } __attribute__ ((packed));

    In include/linux/usb.h

    306 #define USB_MAXCHILDREN (16)

    This defect was found automatically by Coverity Prevent, a static analysis
    tool.

    (akpm: this code should be shot. Field `bitmap' doesn't exist in struct
    usb_hub_descriptor. And this .c file is #included in
    drivers/usb/host/ohci-hcd.c, and someone somewhere #defines `bitmap' to
    `DeviceRemovable'.

    >From a maintainability POV it would be better to memset the whole array
    beforehand - I changed the patch to do that)

    Signed-off-by: Zaur Kambarov
    Cc:
    Signed-off-by: Greg Kroah-Hartman

    KAMBAROV, ZAUR
     
  • This driver is a basic keypress input driver for the Keyspan Digital
    Remote with part number UIA-11. Currently there is an older remote with
    part number UIA-10 which isn't supported by this driver. Support for
    the older UIA-10 could be added but a binary file is required to be
    download to the device, and I don't have that file. I also don't have a
    UIA-10 device so I wouldn't be able to test any of the changes.

    Signed-off-by: Michael Downey
    Signed-off-by: Greg Kroah-Hartman

    Michael Downey
     
  • drivers/usb/gadget/net2280.c: In function 'show_registers':
    drivers/usb/gadget/net2280.c:1501: warning: assignment discards qualifiers from pointer target type

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

    Andrew Morton
     
  • Greg,

    This patch fixes the kmalloc() flags argument type in USB
    subsystem; hopefully all of its occurences. The patch was
    made against patch-2.6.12-git2 from Jun 20.

    Cleanup of flags for kmalloc() in USB subsystem.

    Signed-off-by: Olav Kongas
    Signed-off-by: Greg Kroah-Hartman

    Olav Kongas
     
  • Sorry that it took so long. Here comes a cleanup patch that
    addresses the remarks by Alexey Dobriyan about
    gregkh-usb-usb-isp116x-hcd-add.patch EXCEPT the remark about
    the typecasting of mem_flags argument for kcalloc; this will
    be addressed in a later patch.

    OlavCleanup of isp116x-hcd.

    Signed off by: Olav Kongas
    Signed-off-by: Greg Kroah-Hartman

    Olav Kongas
     
  • Make usbmon to print Setup packets of Control transfers. This is useful
    when debugging enumeration issues.

    This is a change to the trace format which is not fully compatible.
    A parser has to look at the data length word now. If that word is
    a character like 's', read setup packet before proceeding with data.
    I decided not to bump the API tag for this because not many such
    parsers exist at this point.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     
  • although 2.6.12 now contains the sisusb driver, it failes to build this
    driver due to a missing patch of the Makefile.

    From: Thomas Winischhofer
    Signed-off-by: Greg Kroah-Hartman

    Thomas Winischhofer
     
  • We map states 0x00 and 0x10 to the ATM_PHY_SIG_LOST flag. The current logic fails to
    resync the line if we get state 0x10 followed by 0x00, since we only resync the line
    when the state is 0x00 and the flag changed. Doubly fixed by (1) always resyncing the
    line when the state is 0x00 even if the state didn't change, and (2) keeping track of
    the last state, not just the flag. We do (2) as well as (1) in order to get better log
    messages.

    This is a tweaked version of the original patch by Aurelio Arroyo.

    Signed-off-by: Duncan Sands
    Signed-off-by: Greg Kroah-Hartman

    Duncan Sands
     
  • No functional change, but less likely to break in the future.

    Signed-off-by: Duncan Sands
    Signed-off-by: Greg Kroah-Hartman

    Duncan Sands
     
  • Spotted by David Woodhouse.

    Signed-off-by: Duncan Sands
    Signed-off-by: Greg Kroah-Hartman

    Duncan Sands
     
  • Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • ftdi_sio: Remove redundant handling of TIOCMBIS and TIOCMBIC ioctls
    as they are handled in the tty layer and never reach this driver.

    Signed-off-by: Ian Abbott
    Signed-off-by: Greg Kroah-Hartman

    Ian Abbott