1. 12 5月, 2011 22 次提交
  2. 11 5月, 2011 18 次提交
    • L
      mfd: Fix for the TWL4030 PM sleep/wakeup sequence · c62dd365
      Lesly A M 提交于
      Only configure sleep script when the flag is TWL4030_SLEEP_SCRIPT.
      
      Adding the missing brackets for fixing the issue.
      Signed-off-by: NLesly A M <leslyam@ti.com>
      Cc: Nishanth Menon <nm@ti.com>
      Cc: David Derrick <dderrick@ti.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      c62dd365
    • A
      mfd: Fix asic3 build error · a09aee8b
      Axel Lin 提交于
      Fix below compile error:
      
        CC      drivers/mfd/asic3.o
      drivers/mfd/asic3.c: In function 'asic3_irq_demux':
      drivers/mfd/asic3.c:147: error: 'irq_data' undeclared (first use in this function)
      drivers/mfd/asic3.c:147: error: (Each undeclared identifier is reported only once
      drivers/mfd/asic3.c:147: error: for each function it appears in.)
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      a09aee8b
    • J
      mfd: Fixed gpio polarity of omap-usb gpio USB-phy reset · 557f447f
      Juergen Kilb 提交于
      With commit 19403165 a main part of ehci-omap.c moved to
      drivers/mfd/omap-usb-host.c created by commit 17cdd29d.
      Due to this reorganisation the polarity used to reset the
      external USB phy changed and USB host doesn't recognize
      any devices.
      Signed-off-by: NJuergen Kilb <J.Kilb@phytec.de>
      Acked-by: NFelipe Balbi <balbi@ti.com>
      Tested-by: NSteve Sakoman <steve@sakoman.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      557f447f
    • D
      drm/radeon/nouveau: fix build regression on alpha due to Xen changes. · 03a80665
      Dave Airlie 提交于
      The Xen changes were using DMA_ERROR_CODE which isn't defined on a few
      platforms, however we reverted the Xen patch that caused use to try and
      use this code path earlier in 2.6.39 cycle, so for now lets just force
      the code to never take this path and allow it to build again on alpha.
      
      The proper long term answer is probably to store if the dma_addr has
      been assigned to alongside the dma_addr in the higher level code,
      though I think Thomas wanted to rewrite most of this anyways properly.
      Acked-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      03a80665
    • A
      drm/radeon/kms: fix cayman acceleration · 1f031282
      Alex Deucher 提交于
      The TCC disable setup was incorrect.  This
      prevents the GPU from hanging when draw commands
      are issued.
      Signed-off-by: NAlex Deucher <alexdeucher@gmail.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      1f031282
    • D
      drm/radeon: fix cayman struct accessors. · 285e042d
      Dave Airlie 提交于
      We are accessing totally the wrong struct in this case, and putting
      uninitialised values into the GPU, which it doesn't like unsurprisingly.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      285e042d
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 9f381a61
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (27 commits)
        slcan: fix ldisc->open retval
        net/usb: mark LG VL600 LTE modem ethernet interface as WWAN
        xfrm: Don't allow esn with disabled anti replay detection
        xfrm: Assign the inner mode output function to the dst entry
        net: dev_close() should check IFF_UP
        vlan: fix GVRP at dismantle time
        netfilter: revert a2361c87
        netfilter: IPv6: fix DSCP mangle code
        netfilter: IPv6: initialize TOS field in REJECT target module
        IPVS: init and cleanup restructuring
        IPVS: Change of socket usage to enable name space exit.
        netfilter: ebtables: only call xt_compat_add_offset once per rule
        netfilter: fix ebtables compat support
        netfilter: ctnetlink: fix timestamp support for new conntracks
        pch_gbe: support ML7223 IOH
        PCH_GbE : Fixed the issue of checksum judgment
        PCH_GbE : Fixed the issue of collision detection
        NET: slip, fix ldisc->open retval
        be2net: Fixed bugs related to PVID.
        ehea: fix wrongly reported speed and port
        ...
      9f381a61
    • D
      slub: Revert "[PARISC] slub: fix panic with DISCONTIGMEM" · 21a43e39
      David Rientjes 提交于
      This reverts commit 4a5fa359, which did not allow SLUB to be used
      on architectures that use DISCONTIGMEM without compiling NUMA support
      without CONFIG_BROKEN also set.
      
      The slub panic that it was intended to prevent is addressed by
      d9b41e0b ("[PARISC] set memory ranges in N_NORMAL_MEMORY when
      onlined") on parisc so there is no further slub issues with such a
      configuration.
      
      The reverts allows SLUB now to be used on such architectures since
      there haven't been any reports of additional errors.
      
      Cc: James Bottomley <James.Bottomley@suse.de>
      Signed-off-by: NDavid Rientjes <rientjes@google.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      21a43e39
    • D
    • O
      slcan: fix ldisc->open retval · 0d4420a9
      Oliver Hartkopp 提交于
      TTY layer expects 0 if the ldisc->open operation succeeded.
      Reported-by: NMatvejchikov Ilya <matvejchikov@gmail.com>
      Signed-off-by: NOliver Hartkopp <socketcan@hartkopp.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0d4420a9
    • D
      net/usb: mark LG VL600 LTE modem ethernet interface as WWAN · aae1e743
      Dan Williams 提交于
      Like other mobile broadband device ethernet interfaces, mark the LG
      VL600 with the 'wwan' devtype so userspace knows it needs additional
      configuration via the AT port before the interface can be used.
      Signed-off-by: NDan Williams <dcbw@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      aae1e743
    • S
      xfrm: Don't allow esn with disabled anti replay detection · 6fa5ddcc
      Steffen Klassert 提交于
      Unlike the standard case, disabled anti replay detection needs some
      nontrivial extra treatment on ESN. RFC 4303 states:
      
      Note: If a receiver chooses to not enable anti-replay for an SA, then
      the receiver SHOULD NOT negotiate ESN in an SA management protocol.
      Use of ESN creates a need for the receiver to manage the anti-replay
      window (in order to determine the correct value for the high-order
      bits of the ESN, which are employed in the ICV computation), which is
      generally contrary to the notion of disabling anti-replay for an SA.
      
      So return an error if an ESN state with disabled anti replay detection
      is inserted for now and add the extra treatment later if we need it.
      Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6fa5ddcc
    • S
      xfrm: Assign the inner mode output function to the dst entry · 43a4dea4
      Steffen Klassert 提交于
      As it is, we assign the outer modes output function to the dst entry
      when we create the xfrm bundle. This leads to two problems on interfamily
      scenarios. We might insert ipv4 packets into ip6_fragment when called
      from xfrm6_output. The system crashes if we try to fragment an ipv4
      packet with ip6_fragment. This issue was introduced with git commit
      ad0081e4 (ipv6: Fragment locally generated tunnel-mode IPSec6 packets
      as needed). The second issue is, that we might insert ipv4 packets in
      netfilter6 and vice versa on interfamily scenarios.
      
      With this patch we assign the inner mode output function to the dst entry
      when we create the xfrm bundle. So xfrm4_output/xfrm6_output from the inner
      mode is used and the right fragmentation and netfilter functions are called.
      We switch then to outer mode with the output_finish functions.
      Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      43a4dea4
    • E
      net: dev_close() should check IFF_UP · e14a5993
      Eric Dumazet 提交于
      Commit 44345724 (factorize sync-rcu call in
      unregister_netdevice_many) mistakenly removed one test from dev_close()
      
      Following actions trigger a BUG :
      
      modprobe bonding
      modprobe dummy
      ifconfig bond0 up
      ifenslave bond0 dummy0
      rmmod dummy
      
      dev_close() must not close a non IFF_UP device.
      
      With help from Frank Blaschka and Einar EL Lueck
      Reported-by: NFrank Blaschka <blaschka@linux.vnet.ibm.com>
      Reported-by: NEinar EL Lueck <ELELUECK@de.ibm.com>
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e14a5993
    • E
      vlan: fix GVRP at dismantle time · 55aee10d
      Eric Dumazet 提交于
      ip link add link eth2 eth2.103 type vlan id 103 gvrp on loose_binding on
      ip link set eth2.103 up
      rmmod tg3    # driver providing eth2
      
       BUG: unable to handle kernel NULL pointer dereference at           (null)
       IP: [<ffffffffa0030c9e>] garp_request_leave+0x3e/0xc0 [garp]
       PGD 11d251067 PUD 11b9e0067 PMD 0
       Oops: 0000 [#1] SMP
       last sysfs file: /sys/devices/virtual/net/eth2.104/ifindex
       CPU 0
       Modules linked in: tg3(-) 8021q garp nfsd lockd auth_rpcgss sunrpc libphy sg [last unloaded: x_tables]
      
       Pid: 11494, comm: rmmod Tainted: G        W   2.6.39-rc6-00261-gfd71257-dirty #580 HP ProLiant BL460c G6
       RIP: 0010:[<ffffffffa0030c9e>]  [<ffffffffa0030c9e>] garp_request_leave+0x3e/0xc0 [garp]
       RSP: 0018:ffff88007a19bae8  EFLAGS: 00010286
       RAX: 0000000000000000 RBX: ffff88011b5e2000 RCX: 0000000000000002
       RDX: 0000000000000000 RSI: 0000000000000175 RDI: ffffffffa0030d5b
       RBP: ffff88007a19bb18 R08: 0000000000000001 R09: ffff88011bd64a00
       R10: ffff88011d34ec00 R11: 0000000000000000 R12: 0000000000000002
       R13: ffff88007a19bc48 R14: ffff88007a19bb88 R15: 0000000000000001
       FS:  0000000000000000(0000) GS:ffff88011fc00000(0063) knlGS:00000000f77d76c0
       CS:  0010 DS: 002b ES: 002b CR0: 000000008005003b
       CR2: 0000000000000000 CR3: 000000011a675000 CR4: 00000000000006f0
       DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
       DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
       Process rmmod (pid: 11494, threadinfo ffff88007a19a000, task ffff8800798595c0)
       Stack:
        ffff88007a19bb36 ffff88011c84b800 ffff88011b5e2000 ffff88007a19bc48
        ffff88007a19bb88 0000000000000006 ffff88007a19bb38 ffffffffa003a5f6
        ffff88007a19bb38 670088007a19bba8 ffff88007a19bb58 ffffffffa00397e7
       Call Trace:
        [<ffffffffa003a5f6>] vlan_gvrp_request_leave+0x46/0x50 [8021q]
        [<ffffffffa00397e7>] vlan_dev_stop+0xb7/0xc0 [8021q]
        [<ffffffff8137e427>] __dev_close_many+0x87/0xe0
        [<ffffffff8137e507>] dev_close_many+0x87/0x110
        [<ffffffff8137e630>] rollback_registered_many+0xa0/0x240
        [<ffffffff8137e7e9>] unregister_netdevice_many+0x19/0x60
        [<ffffffffa00389eb>] vlan_device_event+0x53b/0x550 [8021q]
        [<ffffffff8143f448>] ? ip6mr_device_event+0xa8/0xd0
        [<ffffffff81479d03>] notifier_call_chain+0x53/0x80
        [<ffffffff81062539>] __raw_notifier_call_chain+0x9/0x10
        [<ffffffff81062551>] raw_notifier_call_chain+0x11/0x20
        [<ffffffff8137df82>] call_netdevice_notifiers+0x32/0x60
        [<ffffffff8137e69f>] rollback_registered_many+0x10f/0x240
        [<ffffffff8137e85f>] rollback_registered+0x2f/0x40
        [<ffffffff8137e8c8>] unregister_netdevice_queue+0x58/0x90
        [<ffffffff8137e9eb>] unregister_netdev+0x1b/0x30
        [<ffffffffa005d73f>] tg3_remove_one+0x6f/0x10b [tg3]
      
      We should call vlan_gvrp_request_leave() from unregister_vlan_dev(),
      not from vlan_dev_stop(), because vlan_gvrp_uninit_applicant()
      is called right after unregister_netdevice_queue(). In batch mode,
      unregister_netdevice_queue() doesn’t immediately call vlan_dev_stop().
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      55aee10d
    • L
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus · 54b33352
      Linus Torvalds 提交于
      * 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus: (28 commits)
        MIPS: Alchemy: fix xxs1500 build error
        MIPS: Invalidate old TLB mappings when updating huge page PTEs.
        MIPS: Hibernation: Fixes for PAGE_SIZE >= 64kb
        MIPS: JZ4740: Set one-shot feature flag for the clockevent
        MIPS: JZ4740: Export symbols to the watchdog driver module
        MIPS: JZ4740: Fix GCC 4.6.0 build error.
        MIPS: Audit: Fix success success argument pass to audit_syscall_exit
        MIPS: Fix calc_vmlinuz_load_addr build warnings.
        MIPS: Alchemy: Fix GCC 4.6.0 build error.
        MIPS: Document former use of timerfd(2) syscall number.
        MIPS: IP27: Fix GCC 4.6.0 build error.
        MIPS: IP27: Fix GCC 4.6.0 build error.
        MIPS: bcm63xx: Fix header_crc comment in bcm963xx_tag.h
        MIPS: Octeon: Guard the Kconfig body with CPU_CAVIUM_OCTEON
        MIPS: Octeon: Cleanup Kconfig IRQ_CPU* symbols.
        MIPS: Rename .data..mostly and properly handle it in linker script
        MIPS: MSP: Fix build error
        MIPS: MSP71xx: Fix typo in msp_per_irq_controller
        MIPS: Loongson: Fix GCC 2.6.0 build error.
        MIPS: Jazz: Fix GCC 4.6.0 build error
        ...
      54b33352
    • L
      Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs · 675badfc
      Linus Torvalds 提交于
      * 'for-linus' of git://oss.sgi.com/xfs/xfs:
        xfs: fix race condition in AIL push trigger
        xfs: make AIL target updates and compares 32bit safe.
        xfs: always push the AIL to the target
        xfs: exit AIL push work correctly when AIL is empty
        xfs: ensure reclaim cursor is reset correctly at end of AG
      675badfc
    • M
      MIPS: Alchemy: fix xxs1500 build error · 780914c3
      Manuel Lauss 提交于
      This fixes:
      alchemy/xxs1500/init.c: In function 'prom_init':
      alchemy/xxs1500/init.c:57:17: error: ignoring return value of 'kstrtoul', declared with attribute warn_unused_result
      Signed-off-by: NManuel Lauss <manuel.lauss@googlemail.com>
      Cc: Linux-MIPS <linux-mips@linux-mips.org>
      Patchwork: https://patchwork.linux-mips.org/patch/2340/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      780914c3