1. 07 Jun, 2013 5 commits
    • jean-philippe francois's avatar
      ARM: OMAP: fix __init section mismatch for _enable_preprogram · b9c6487f
      jean-philippe francois authored
      commit 0f497039 upstream.
      
      _enable_preprogram is marked as __init, but is called from _enable
      which is not. Without this patch, the board oopses after init. Tested
      on custom hardware and on beagle board xM. Otherwise we can get:
      
      Unable to handle kernel paging request at virtual address 000b0012
      pgd = cf968000
      *pgd=8fb06831, *pte=00000000, *ppte=00000000
      PREEMPT ARM
      Modules linked in:
      CPU: 0    Not tainted  (3.9.0 #2)
      PC is at _enable_preprogram+0x1c/0x24
      LR is at omap_hwmod_enable+0x34/0x60
         psr: 80000093
      sp : cf95de08  ip : 00002de5  fp : bec33d4c
      r10: 00000000  r9 : 00000002  r8 : b6dd2c78
      r7 : 00000004  r6 : 00000000  r5 : a0000013  r4 : cf95c000
      r3 : 00000000  r2 : b6dd2c7c  r1 : 00000000  r0 : 000b0012
      Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
      Control: 10c5387d  Table: 8f968019  DAC: 00000015
      Process otpcmd (pid: 607, stack limit = 0xcf95c230)
      Stack: (0xcf95de08 to 0xcf95e000)
      de00:                   00000001 cf91f840 00000000 c001d6fc 00000002 cf91f840
      de20: cf8f7e10 c001de54 cf8f7e10 c001de78 c001de68 c01d5e80 00000000 cf8f7e10
      de40: cf8f7e10 c01d5f28 cf8f7e10 c0530d30 00000000 c01d6f28 00000000 c0088664
      de60: b6ea1000 cfb05284 cf95c000 00000001 cf95c000 60000013 00000001 cf95dee4
      de80: cf870050 c01d7308 cf870010 cf870050 00000001 c0278b14 c0526f28 00000000
      dea0: cf870050 ffff8e18 00000001 cf95dee4 00000000 c0274f7c cf870050 00000001
      dec0: cf95dee4 cf1d8484 000000e0 c0276464 00000008 cf9c0000 00000007 c0276980
      dee0: cf9c0000 00000064 00000008 cf1d8404 cf1d8400 c01cc05c 0000270a cf1d8504
      df00: 00000023 cf1d8484 00000007 c01cc670 00000bdd 00000001 00000000 cf449e60
      df20: cf1dde70 cf1d8400 bec33d18 cf1d8504 c0246f00 00000003 cf95c000 00000000
      df40: bec33d4c c01cd078 00000003 cf1d8504 00000081 c01cbcb8 bec33d18 00000003
      df60: bec33d18 c00a9034 00002000 c00a9c68 cf92fe00 00000003 c0246f00 cf92fe00
      df80: 00000000 c00a9cb0 00000003 00000000 00008e70 00000000 b6f17000 00000036
      dfa0: c000e484 c000e300 00008e70 00000000 00000003 c0246f00 bec33d18 bec33d18
      dfc0: 00008e70 00000000 b6f17000 00000036 00000000 00000000 b6f6d000 bec33d4c
      dfe0: b6ea1bd0 bec33d0c 00008c9c b6ea1bdc 60000010 00000003 00000000 00000000
      (_omap_device_enable_hwmods+0x20/0x34)
      (omap_device_enable+0x3c/0x50)
      (_od_runtime_resume+0x10/0x1c)
      (__rpm_callback+0x54/0x98)
      (rpm_callback+0x64/0x7c)
      (rpm_resume+0x434/0x554)
      (__pm_runtime_resume+0x48/0x74)
      (omap_i2c_xfer+0x28/0xe8)
      (__i2c_transfer+0x3c/0x78)
      (i2c_transfer+0x6c/0xc0)
      (i2c_master_send+0x38/0x48)
      (sha204p_send_command+0x60/0x9c)
      (sha204c_send_and_receive+0x5c/0x1e0)
      (sha204m_read+0x94/0xa0)
      (otp_do_read+0x50/0xa4)
      (vfs_ioctl+0x24/0x40)
      (do_vfs_ioctl+0x1b0/0x1c0)
      (sys_ioctl+0x38/0x54)
      (ret_fast_syscall+0x0/0x30)
      Code: e1a08002 ea000009 e598003c e592c05c (e7904003)
      Signed-off-by: default avatarJean-Philippe Fran=C3=A7ois <jp.francois@cynove.com>
      Acked-by: default avatarKevin Hilman <khilman@linaro.org>
      [tony@atomide.com: updated description with oops]
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b9c6487f
    • Gregory CLEMENT's avatar
      ARM: plat-orion: Fix num_resources and id for ge10 and ge11 · 7bdb115b
      Gregory CLEMENT authored
      commit 2b8b2797 upstream.
      
      When platform data were moved from arch/arm/mach-mv78xx0/common.c to
      arch/arm/plat-orion/common.c with the commit "7e3819d8 ARM: orion:
      Consolidate ethernet platform data", there were few typo made on
      gigabit Ethernet interface ge10 and ge11. This commit writes back
      their initial value, which allows to use this interfaces again.
      Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
      Acked-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7bdb115b
    • Alan Stern's avatar
      USB: fix latency in uhci-hcd and ohci-hcd · 33edcea3
      Alan Stern authored
      commit e1944017 upstream.
      
      Commits c44b2250 (UHCI: implement new
      semantics for URB_ISO_ASAP) and
      6a41b4d3 (OHCI: implement new
      semantics for URB_ISO_ASAP) increased the latency for isochronous URBs
      in uhci-hcd and ohci-hcd respectively to 2 milliseconds, in an
      attempt to avoid underruns.  It turns out that not only was this
      unnecessary -- 1-ms latency works okay -- it also causes problems with
      certain application loads such as real-time audio.
      
      This patch changes the latency for both drivers back to 1 ms.
      
      This should be applied to -stable kernels going back to 3.8.
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Reported-and-tested-by: default avatarJoe Rayhawk <jrayhawk@fairlystable.org>
      CC: Clemens Ladisch <clemens@ladisch.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      33edcea3
    • Alan Stern's avatar
      USB: OHCI: fix logic for scheduling isochronous URBs · aa4ccf7a
      Alan Stern authored
      commit 815fa7b9 upstream.
      
      The isochronous scheduling logic in ohci-hcd has a bug.  The
      calculation for skipping TDs that are too late should be carried out
      only in the !URB_ISO_ASAP case.  When URB_ISO_ASAP is set, the URB is
      pushed back so that none of the TDs are too late, which would cause
      the calculation to overflow.
      
      The patch also fixes the calculation to avoid overflow in the case
      where the frame value wraps around.
      
      This should be applied to -stable kernels going back to 3.8.
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      aa4ccf7a
    • Hans-Christian Egtvedt's avatar
      avr32: fix relocation check for signed 18-bit offset · ccc1525f
      Hans-Christian Egtvedt authored
      commit e68c636d upstream.
      
      Caught by static code analysis by David.
      Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
      Signed-off-by: default avatarHans-Christian Egtvedt <egtvedt@samfundet.no>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ccc1525f
  2. 24 May, 2013 22 commits
  3. 19 May, 2013 13 commits