An error occurred fetching the project authors.
  1. 23 Mar, 2007 2 commits
    • David Brownell's avatar
      musb_hdrc: Update peripheral side suspend support · 68a37991
      David Brownell authored
      Update peripheral side suspend support:
      
       - Work around some IRQ strangeness (disconnect not detected reliably
         while suspended).
      
       - Swaps out clearly-broken SRP logic (from Mentor?) with code which
         at least matches the documentation.
      
       - Track whether peripheral is suspended; this helps detect invalid remote
         wakeup requests, and will also help work around a tusb6010 peripheral
         side issue (separate patch).
      
       - For tusb6010, don't be so noisy with tps65030 idle/suspend messaging;
         among other things, it interferes with debugging.
      
       - In OTG mode, host side can now autosuspend when peripheral side is
         active (connected or otherwise).
      
      USBCV remote wakeup tests now pass.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      68a37991
    • David Brownell's avatar
      musb_hdrc: Minor cleanups involving name changes · 8b63229c
      David Brownell authored
      Minor cleanups involving name changes, primarily on the peripheral side:
      
       - musb->bMayWakeup becomes may_wakeup (camelcase bad)
       - musb->bIsSelfPowered becomes is_self_powered (camelcase bad)
       - pThis (as parameter or variable) becomes musb (camelcase bad)
       - tusb_set_power becomes tusb_draw_power (more meaningful name)
       - tusb_set_vbus becomes tusb_source_power (more meaningful name)
      
      Also, add a flag to track if a B-Peripheral device draws any VBUS power
      (currently only tusb6010 can set that).
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      8b63229c
  2. 17 Jan, 2007 1 commit
  3. 09 Nov, 2006 2 commits
    • 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
  4. 27 Oct, 2006 1 commit
    • David Brownell's avatar
      musb_hdrc: Various bugfixes and other updates · 8db67e15
      David Brownell authored
      Various bugfixes:
          - gadget side does dma_sync_single_for_*() if the buffer
            was mapped by the gadget driver (none do that just yet)
          - host side rx, always force dma request off "just in case",
            instead of just for Mentor's DMA (i.e. not just OMAP2430)
          - complain louder about the board needing different driver config
          - iounmap() registers on rmmod
          - fault handling fixes in tusb_start()
          - (from TI) save dma mask so modprobe after use_dma=n can use dma
          - (from TI) gadget side zero-length IN likes TXPKTRDY before status stage
      
      Other updates:
          - catch up to pt_regs finally leaving the irq path, other build fixes
          - remove pointless headers like <linux/pci.h>
          - RemoveMoreCamelCaseNastiness
          - resolve some config-specific compiler warning/error messages
          - dump tusb irq status register too
          - remove that MIN_DMA thing; dma logic must now handle zlps
            in all cases, not just to terminate a transfer
          - comment fixes
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      8db67e15
  5. 23 Oct, 2006 1 commit
  6. 04 Oct, 2006 1 commit
  7. 18 Sep, 2006 1 commit
  8. 14 Sep, 2006 2 commits
    • David Brownell's avatar
      MUSB: More TUSB OTG support · e3071039
      David Brownell authored
      Add more host/OTG functionality.
      
      New Features:
         -	Cable based role switching (using the ID pin) mostly works.  This gives
      	much of the end-user value for USB OTG; there's also dynamic role
      	switching (using special HNP protocol with another OTG device), which
      	surely won't work yet.
         -	Root can write 0/N to /sys/module/musb_hdrc/parameters/musb_otg to
         	disable OTG functionality, forcing B-Default mode (with optional SRP
      	support, but without 8mA current limits) when it's set.  Change this
      	before the gadget driver initializes (e.g. before "modprobe").
      
      Bugfixes:
         -	Fix many OTG mode startup glitches, notably for the root hub.
         -	Add workaround for "issue 4".
      
      Cleanups:
         -	Remove more mode-specific #ifdeffery
         -	ReMoveSomeCamelCasing
         -	Quieter startup
         -	Quash another Kconfig rebellion
         -	Add missing bit declaration
         -	Tersify TUSB irq messages
      
      Open Issues:
         -	Nothing passes remote wakeup down to root hub (unchanged)
         -	Strange VBUS errors (unchanged; workaround: use hub modified for
      	N770, providing 5V supply till TUSB board does so reliably);
         -	Plug in/out as peripheral many times; fine.  As host (with modified
      	hub), ditto.  Now peripheral again ... fails.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      e3071039
    • David Brownell's avatar
      MUSB: TUSB OTG enumeration support · 89c57744
      David Brownell authored
      This gives TUSB host side enumeration support for low speed devices (like
      USB mice), through a Mini-A connector that's not removed ... basically, a
      non-OTG configuration, with the ID pin always grounded.
      
      Basically it punts the "turn VBUS power on/off" to board-specific logic,
      and implements it for TUSB using software switching (rather than having
      the controller do it).
      
      There are various issues, notably
      
          (a)	remote wakeup not getting passed to the root hub then down
      	to the device (mouse) that issued the wakeup;
      
          (b)	strange "vbus error" reports on device connection if nothing
          	is hooked up at driver initialization; and
      
          (c) full or high speed devices see spurious disconnect events
      	right after they've been reset (hw bug?);
      
      Includes various small cleanups too, notably starting to obey the OTG
      state machine and use the OTG timer.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      89c57744
  9. 12 Sep, 2006 1 commit
    • David Brownell's avatar
      MUSB: Miscellaneous updates · 0d79ef71
      David Brownell authored
      Lots of miscellaneous updates:
      
        - bugfixes
           * flag hcd-framework "got irq" state earlier
           * reject urb submission if port is suspended
           * linkage fix: unbind became optional
           * initialize vbus error retry count earlier
           * tusb init removes diagnostic-only settings
        - procfs updates
           * always show otg state info in procfs
           * show some TUSB-specific registers in procfs
        - cleanups
           * remove pointless MUSB_ERR stuff (handled better now)
           * tusb init removes dead code
           * more informative vbus error debug message
           * comment fixes
           * etc
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      0d79ef71
  10. 08 Sep, 2006 2 commits
    • Tony Lindgren's avatar
      MUSB: Add back irq_work for cable events · 355486a9
      Tony Lindgren authored
      This is needed to avoid sleeping function called from invalid context.
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      355486a9
    • David Brownell's avatar
      MUSB: PM cleanup · 88d7747b
      David Brownell authored
      Second pass over TUSB power related code:
      
        - Add new field in board-specific platform data, giving a nonzero floor to
          the amount of VBUS power that peripherals could draw; pass that to the
          platform code.
      
        - Implement the call letting gadget drivers say how much VBUS power their
          current configuration may draw, and use that to initialize appropriately
          (pure-peripheral vs OTG modes) on USB reset and disconnect.
      
        - Provide TUSB-specific hook into OTG transceiver logic to support that
          VBUS call; and _only_ change the VBUS usage through that call.
      
        - Remove obsolete comment and bitmask declarations.
      
      On one board I measured 36 mA (at 5.1V) coming from VBUS not the battery
      using the default gadget drivers in non-OTG TUSB configuration.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      88d7747b
  11. 07 Sep, 2006 2 commits
  12. 06 Sep, 2006 2 commits
  13. 05 Sep, 2006 5 commits