1. 08 Jun, 2007 15 commits
    • Simon Arlott's avatar
      USB: cxacru: ignore error trying to start ADSL in atm_start · fd209e35
      Simon Arlott authored
      The sysfs adsl_status attribute ignores (aside from returning -EIO to the
      user) any error sending a START/STOP command to the device and there is at
      least one firmware which never sends a response but appears to work
      regardless.  Therefore atm_start should also continue if an error is received
      so that such firmware is usable.
      
      The official Conexant driver doesn't expect a reply either but this is for
      another device (E2 router) and a commonly used firmware does respond.
      
      Also, there is no point in changing -ECONNRESET to -ETIMEDOUT since nothing
      ever checks for either of these values.
      Signed-off-by: default avatarSimon Arlott <simon@fire.lp0.eu>
      Cc: Duncan Sands <duncan.sands@math.u-psud.fr>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      fd209e35
    • Simon Arlott's avatar
      USB: cxacru: create sysfs attributes in atm_start instead of bind · da1f82b5
      Simon Arlott authored
      Since usbatm doesn't set the usb_interface driver data until after calling
      bind and heavy_init, it would be NULL when the sysfs attributes are read.
      Reading the MAC address from atm_dev before atm_dev exists would have been
      be possible too.
      
      Calling create_device_file in atm_start will avoid this problem, and the
      data is useless until the first status poll runs.  However, it must be
      ready before a status poll does a printk on line status change otherwise
      userspace could react before the files exist.
      
      For completeness I've moved remove_device_file to atm_stop so it's not
      called in unbind when it's not needed.  There's no point starting ADSL if
      atm_start could still fail either.
      Signed-off-by: default avatarSimon Arlott <simon@fire.lp0.eu>
      Cc: Duncan Sands <duncan.sands@math.u-psud.fr>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      da1f82b5
    • Simon Arlott's avatar
      USB: cxacru: add Documentation file · 64b85006
      Simon Arlott authored
      The sysfs attributes for exposing cxacru statistics/status information with
      possible values is now explained in Documentation/networking/cxacru.txt
      including information on the writable adsl_state attribute's commands and a
      sample of the kernel log format.
      Signed-off-by: default avatarSimon Arlott <simon@fire.lp0.eu>
      Cc: Duncan Sands <duncan.sands@math.u-psud.fr>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      64b85006
    • Ben Collins's avatar
      USB: UNUSUAL_DEV: Sync up some reported devices from Ubuntu · 67fa1062
      Ben Collins authored
      UNUSUAL_DEV: Sync up some reported devices from Ubuntu
      
      Various unusual dev entries accumulated from Ubuntu bug reports.
      Signed-off-by: default avatarBen Collins <bcollins@ubuntu.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Signed-off-by: default avatarPhil Dibowitz <phil@ipom.com>
      67fa1062
    • David Brownell's avatar
      USB: usb gadgets avoid le{16,32}_to_cpup() · 01ee7d70
      David Brownell authored
      It turns out that le16_to_cpup() and le32_to_cpup() aren't always safe
      to call with pointers into packed structures, since those are inlined
      functions and GCC may lose the "packed" attribute.  So those references
      can become unaligned kernel accesses, which are evil on some hardware.
      
      This patch updates uses of those routines in the gadget stack.  The
      references into packed structures can just use leXX_to_cpu(*x), which
      in most cases is more natural.  Some other uses in RNDIS, mostly in
      debug code, were wrong in the first place; those use get_unaligned().
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      01ee7d70
    • Pete Zaitcev's avatar
      usblp: Don't let suspend to kill ->used · 97cb95d1
      Pete Zaitcev authored
      Suspend destroys refcounting for open/release.
      Signed-off-by: default avatarPete Zaitcev <zaitcev@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      97cb95d1
    • Kay Sievers's avatar
      USB: set default y for CONFIG_USB_DEVICE_CLASS · dda034bc
      Kay Sievers authored
      Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
      Cc: bert hubert <bert.hubert@netherlabs.nl>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      dda034bc
    • Bryan Wu's avatar
      RAMFS NOMMU: missed POSIX UID/GID inode attribute checking · 85f6038f
      Bryan Wu authored
      This bug was caught by LTP testcase fchmod06 on Blackfin platform.
      
      In the manpage of fchmod, "EPERM: The effective UID does not match the
      owner of the file, and the process is not privileged (Linux: it does not
      have the CAP_FOWNER capability)."
      
      But the ramfs nommu code missed the inode_change_ok POSIX UID/GID
      verification. This patch fixed this.
      Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
      Cc: David Howells <dhowells@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      85f6038f
    • Linus Torvalds's avatar
      Merge git://git.linux-xtensa.org/kernel/xtensa-feed · c8d8170f
      Linus Torvalds authored
      * git://git.linux-xtensa.org/kernel/xtensa-feed:
        Xtensa: use asm-generic/fcntl.h
        [XTENSA] Remove non-rt signal handling
        [XTENSA] Move common sections into bss sections
        [XTENSA] clean-up header files
        [XTENSA] Use generic 64-bit division
        [XTENSA] Remove multi-exported symbols from xtensa_ksyms.c
        [XTENSA] fix sources using deprecated assembler directive
        [XTENSA] Spelling fixes in arch/xtensa
        [XTENSA] fix bit operations in bitops.h
      c8d8170f
    • Linus Torvalds's avatar
      Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 · 34750bb1
      Linus Torvalds authored
      * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
        [SPARC64]: Fix SBUS IRQ regression caused by PCI-E driver.
        [SPARC64]: Fix 2 bugs in PCI Sabre bus scanning.
      34750bb1
    • Linus Torvalds's avatar
      Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 · df3872a9
      Linus Torvalds authored
      * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (24 commits)
        xfrm: Add security check before flushing SAD/SPD
        [NET_SCHED]: Fix filter double free
        [NET]: Avoid duplicate netlink notification when changing link state
        [UDP]: Revert 2-pass hashing changes.
        [AF_UNIX]: Fix stream recvmsg() race.
        [NETFILTER]: nf_conntrack_amanda: fix textsearch_prepare() error check
        [NETFILTER]: ip_tables: fix compat related crash
        [NETFILTER]: nf_conntrack: fix helper module unload races
        [RTNETLINK]: ifindex 0 does not exist
        [NETLINK]: Mark netlink policies const
        [TCP] tcp_probe: Attach printf attribute properly to printl().
        [TCP]: Use LIMIT_NETDEBUG in tcp_retransmit_timer().
        [NET]: Merge dst_discard_in and dst_discard_out.
        [RFKILL]: Make rfkill->name const
        [IPV4]: Restore old behaviour of default config values
        [IPV4]: Add default config support after inetdev_init
        [IPV4]: Convert IPv4 devconf to an array
        [IPV4]: Only panic if inetdev_init fails for loopback
        [TCP]: Honour sk_bound_dev_if in tcp_v4_send_ack
        [BNX2]: Update version and reldate.
        ...
      df3872a9
    • Steven Rostedt's avatar
      enable interrupts in user path of page fault. · e5e3c84b
      Steven Rostedt authored
      This is a minor fix, but what is currently there is essentially wrong.
      In do_page_fault, if the faulting address from user code happens to be
      in kernel address space (int *p = (int*)-1; p = 0xbed;)  then the
      do_page_fault handler will jump over the local_irq_enable with the
      
        goto bad_area_nosemaphore;
      
      But the first line there sees this is user code and goes through the
      process of sending a signal to send SIGSEGV to the user task. This whole
      time interrupts are disabled and the task can not be preempted by a
      higher priority task.
      
      This patch always enables interrupts in the user path of the
      bad_area_nosemaphore.
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e5e3c84b
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/rmk/linux-2.6-arm · c52ecdab
      Linus Torvalds authored
      * master.kernel.org:/home/rmk/linux-2.6-arm:
        [ARM] pxa: fix pxa27x keyboard driver
        [ARM] Fix 4417/1: Serial: Fix AMBA drivers locking
        [ARM] 4421/1: AT91: Value of _KEY fields.
        [ARM] Solve buggy smp_processor_id() usage
        [ARM] 4422/1: Fix default value handling in gpio_direction_output (PXA)
        [ARM] 4419/1: AT91: SAM9 USB clocks check for suspending
        [ARM] 4418/1: AT91: Number of programmable clocks differs
        [ARM] 4392/2: Do not corrupt the SP register in compressed/head.S
      c52ecdab
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus · dc315011
      Linus Torvalds authored
      * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
        [MIPS] Fix warning by moving do_default_vi into CONFIG_CPU_MIPSR2_SRS
        [MIPS] Fix some minor typoes in arch/mips/Kconfig.
        [MIPS] Remove prototype for deleted function qemu_handle_int
        [MIPS] Fix some system calls with long long arguments
        [MIPS] Make dma_map_sg handle sg elements which are longer than one page
        [MIPS] Drop __ARCH_WANT_SYS_FADVISE64
        [MIPS] Fix VGA corruption on RM300C
        [MIPS] RM300: Fix MMIO problems by marking the PCI INT ACK region busy
        [MIPS] EMMA2RH: remove dead KGDB code
        [MIPS] Remove duplicate fpu enable hazard code.
        [MIPS] Atlas, Malta, SEAD: Remove scroll from interrupt handler.
      dc315011
    • Peter Zijlstra's avatar
      frv: build fix · 2c750edd
      Peter Zijlstra authored
      In file included from /usr/src/linux-2.6-2/net/ipv4/ip_input.c:118:
      
        include2/asm/system.h:245: error: parse error before "__cmpxchg_32"
        include2/asm/system.h:245: error: parse error before '*' token
        include2/asm/system.h:245: warning: type defaults to `int' in declaration of `__cmpxchg_32'
        include2/asm/system.h:245: warning: function declaration isn't a prototype
        include2/asm/system.h:245: warning: data definition has no type or storage class
      Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
      Acked-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2c750edd
  2. 07 Jun, 2007 25 commits