1. 09 Nov, 2006 6 commits
    • David Brownell's avatar
      ARM: OMAP: abstract debug card setup (smc, leds) · ae0ef82b
      David Brownell authored
      Additional cleanup for debug boards on H2/P2/H3/H4:  move the init
      code that's not board-specific into a new file where it can be easily
      shared between all the different boards (avoiding code duplication,
      and making it easier to support more devices).  Make H4 use that.
      
      This should be easy to drop in to the OMAP1 boards using these debug
      cards; the only difference seems to be that the p2 does an extra reset
      of the smc using the fpga (probably all boards could do that, if it's
      necessary) and doesn't use the gpio mux or request APIs.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      ae0ef82b
    • David Brownell's avatar
      ARM: OMAP: h4 must have blinky leds!! · e37758d2
      David Brownell authored
      This adds generic support for the "debug board" LEDs used by most of
      TI's OMAP reference boards, and board-specific support for the H4.
      
      It's derived from the not-as-generic stuff used by OMAP1 H2/H3/P2.
      Those should be able to switch easily to this version, and clean up
      some of the omap1-specific code.
      
      In addition to H4 support, one key improvement is supporting not just
      the "old" ARM debug LED API (with timer and idle LEDs, plus four that
      can be handy for kernel debugging), but it also supports the "new"
      generic LED API (most useful for usermode stuff IMO).  Either or both
      APIs can be enabled.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      e37758d2
    • David Brownell's avatar
      musb_hdrc: davinci · 636fa27e
      David Brownell authored
      Update how DaVinci handles powering up VBUS, and make cable based role
      switching work more or less as well as on TUSB6010.
      
        - Work around VBUS_ERROR IRQs triggering during enumeration, which
          seems to be a design botch from Mentor (TUSB 6010 has it too).
      
      	This is particularly nasty on the EVM (30 second delay) because
      	of differences between its RTL and the newer stuff in tusb6010.
      
        - Work around lack of ID change IRQ, a design botch in how the Mentor
          core was integrated into DaVinci.
      
      	This builds on the polling mechanism used to cope with VBUS
      	errors.  OTG devices will probe every few seconds until either
      	the ID pin grounds, or the device leaves B_IDLE.
      
        - Rename vbus_power() to source_power(), better matching its role.
          (DaVinci doesn't sink VBUS e.g. to charge batteries -- yet.)
      
        - Provide more complete tracing of IRQ events.
      
        - Provide a symbol for the DRVVBUS irq.
      
      Basically, with this driver's core behaving better (thanks to OTG/host
      updates for TUSB), the DaVinci stuff doesn't need to fight them so much;
      and it's more clear when problems are in the core vs its integration.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      636fa27e
    • David Brownell's avatar
      musb_hdrc: host vbus and connect/disconnect fixes · 41416eec
      David Brownell authored
      Teach host side VBUS powerup and connect logic about the problem whereby
      the HDRC core wrongly reports VBUS_ERROR during initial powerup.
      
      Remove previous non-working workaround for tusb powering VBUS:  don't
      try handling CPEN by hand.
      
      Rest of the fix for disconnection issues in A_SUSPEND.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      41416eec
    • David Brownell's avatar
      musb_hdrc: small fixes, mostly suspend/resume · b659d87e
      David Brownell authored
      A collection of mostly orthogonal and small fixes:
      
       - Update various corner cases in the side suspend/resume code,
         triggered mostly on the host side:
           * avoid spurious gadget driver resume callbacks in B_IDLE state
           * avoid spurious gadget driver suspend callbacks in A_HOST state
           * cope better with some spurious resume irqs
           * partial fix for disconnection issues in A_SUSPEND
      
       - Resolve some TUSB rmmod races by disabling IRQs at the proper moment,
         and killing the idle timer.
      
       - Only mark TUSB device as wakeup-capable if it's connected to an
         IRQ which allows that.
      
       - Don't idle the TUSB chip until khubd handles all pending port
         status change events; dump that status in procfs.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      b659d87e
    • David Brownell's avatar
      musb_hdrc: remove broken Mentor OTG code · 8e84c387
      David Brownell authored
      Remove most of the strange OTG-incompatible logic from Mentor, with
      its CamelCasing and so forth.  It's better to trigger the transitions
      explicitly with relevant operations, like suspend triggering HNP, than
      trying to track a subset of the OTG triggers.
      
      Plus some minor cleanups related to previous patches:  better fix
      for the "use_dma=n" related compiler warning, pt_regs for omap2430.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      8e84c387
  2. 01 Nov, 2006 22 commits
  3. 31 Oct, 2006 4 commits
    • Linus Torvalds's avatar
      Linux 2.6.19-rc4 · ae99a78a
      Linus Torvalds authored
      Not halloween. Not scary. Just a regular -rc release.
      ae99a78a
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus · 528ba4ef
      Linus Torvalds authored
      * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
        [MIPS] MIPS doesn't need compat_sys_getdents.
        [MIPS] JMR3927: Fixup another victim of the irq pt_regs cleanup.
        [MIPS] EMMA 2 / Markeins: struct resource takes physical addresses.
        [MIPS] EMMA 2 / Markeins: Convert to name struct resource initialization.
        [MIPS] EMMA 2 / Markeins: Formitting fixes split from actual address fixes.
        [MIPS] EMMA 2 / Markeins: Fix build wreckage due to genirq wreckage.
        [MIPS] Ocelot G: Fix build error and numerous warnings.
        [MIPS] Fix return value of TXX9 SPI interrupt handler
        [MIPS] Au1000: Fix warning about unused variable.
        [MIPS] Wire up getcpu(2) and epoll_wait(2) syscalls.
        [MIPS] Make SB1 cache flushes not to use on_each_cpu
        [MIPS] Fix warning about unused definition in c-sb1.c
        [MIPS] SMTC: Make 8 the default number of processors.
        [MIPS] Oprofile: Fix MIPSxx counter number detection.
        [MIPS] Au1xx0 code sets incorrect mips_hpt_frequency
        [MIPS] Oprofile: fix on non-VSMP / non-SMTC SMP configurations.
      528ba4ef
    • Jun'ichi Nomura's avatar
      [PATCH] clean up add_bd_holder() · df6c0cd9
      Jun'ichi Nomura authored
      add_bd_holder() is called from bd_claim_by_kobject to put a given struct
      bd_holder in the list if there is no matching entry.
      
      There are 3 possible results of add_bd_holder():
        1. there is no matching entry and add the given one to the list
        2. there is matching entry, so just increment reference count of
           the existing one
        3. something failed during its course
      
      1 and 2 are successful cases.  But for case 2, someone has to free the
      unused struct bd_holder.
      
      The current code frees it inside of add_bd_holder and returns same value
      0 for both cases 1 and 2.  However, it's natural and less error-prone if
      caller frees it since it's allocated by the caller.
      Signed-off-by: default avatarJun'ichi Nomura <j-nomura@ce.jp.nec.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      df6c0cd9
    • Jun'ichi Nomura's avatar
      [PATCH] fix bd_claim_by_kobject error handling · bcb55165
      Jun'ichi Nomura authored
      This fixes bd_claim_by_kobject to release bdev correctly in case that
      bd_claim succeeds but following add_bd_holder fails.
      Signed-off-by: default avatarJun'ichi Nomura <j-nomura@ce.jp.nec.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      bcb55165
  4. 30 Oct, 2006 8 commits