Skip to content
Commits on May 4, 2013
  1. mailbox: add shareable & atomic context

    committed Apr 26, 2013
    This patch adds two new attributes for each mailbox,
    
    1. Atomic Context:
        The atomic context support is for the mailbox
        clients who want to control the sending and
        receiving contexts. The received messages are
        processed by using the client's atomic notifier
        context. Similarly, the send message is ensured
        to not call any sleeping calls. There is no rx
        buffering provided with the atomic notifier - it
        is the responsibility of the client.
    2. Shareability:
        The shareability attribute is for sharing a mailbox
        between multiple clients. If the mailbox requires
        atomic context, then all clients are required to be
        atomic as well. It does not stop the clients to be
        mutually exclusive during usage time.
    
    Signed-off-by: Suman Anna <s-anna@ti.com>
  2. Makefile: Build a uImage with dtb already appended

    Grant Likely committed with Apr 24, 2012
    Do not commit to mainline; this is a useful hack only for now.
    
    Signed-off-by: R Sricharan <r.sricharan@ti.com>
    Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
    Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
  3. ARM: DTS: OMAP: add mailbox nodes for OMAP2+

    committed Apr 25, 2013
    The mailbox DT node data has been added for OMAP2420,
    OMAP2430, OMAP3430/OMAP3630, OMAP44xx and AM33xx
    devices.
    
    Data for OMAP5 is skipped for now since the corresponding
    hwmod entry is not present.
    
    Signed-off-by: Suman Anna <s-anna@ti.com>
  4. mailbox/omap: add support for parsing dt devices

    committed Apr 25, 2013
    Logic has been added to the OMAP2+ mailbox code to
    parse the mailbox dt nodes and construct the different
    mailboxes associated with the instance. The design is
    based on gathering the same information that was being
    passed previously through the platform data.
    
    Signed-off-by: Suman Anna <s-anna@ti.com>
  5. mailbox: add support for multiple instances

    committed Apr 24, 2013
    The current mailbox driver core is designed to have only one mailbox
    h/w block in the system, but this is very unrealistic. Support has
    been added for multiple instances of same or different mailbox h/w
    blocks by adding a containing mailbox_device structure. The mailboxes
    contained within a h/w block are associated with this mailbox device
    structure. The mailbox drivers have to create this mailbox device object
    and register their mailboxes with this device.
    
    The design includes changing the mailbox_register/unregister functions
    to allow the registration and deregistration of mailboxes using a
    containing mailbox device object. Function ops are added per mailbox
    device as well, to have flexibility in each individual mailbox device
    implementations. The mailbox startup code is reconfigured to use both
    the mailbox_device and mbox startup/shutdown ops accordingly.
    
    While at it, modify the OMAP & DBX500 mailbox drivers to adapt to
    these new API changes.
    
    Signed-off-by: Suman Anna <s-anna@ti.com>
  6. mailbox: rename omap specific exported APIs accordingly

    committed Apr 24, 2013
    Rename the four exported API save_ctx/restore_ctx/
    enable_irq/disable_irq from mailbox_xxx to omap_mbox_xxx.
    
    Signed-off-by: Suman Anna <s-anna@ti.com>
  7. mailbox: descope the exported functions for interrupts & context

    committed Apr 23, 2013
    The four exported API that were currently dealing with enabling/disabling
    interrupts and saving/restoring contexts have been moved into an OMAP-
    specific header file, and removed from the public exported API.
    
    These are needed to be exported for the state machine in TI DSP/Bridge
    driver. The save_context and restore_context can be eliminated with
    usage similar to remoteproc driver and runtime_pm support, but the
    other two may need to be exposed to keep the TI DSP/Bridge driver
    functional.
    
    Signed-off-by: Suman Anna <s-anna@ti.com>
  8. mailbox: introduce irq_flags per mailbox

    committed Apr 23, 2013
    Leave it to the individual driver implementation to decide the
    irq_flags needed when requesting the irq.
    
    Signed-off-by: Suman Anna <s-anna@ti.com>
  9. mailbox: remove the header from struct mailbox_msg

    committed Apr 23, 2013
    The mailbox_msg is restricted to just two elements, a size field and
    a data pointer containing the data.
    
    NOTE: The size field is retained for now in the mailbox_msg structure
    for using the kfifos. The deciding factor would be the mechanism used
    for buffering. The current kfifo usage implies that the users need not
    maintain a reference to a queued buffer (obviously, we are expecting
    the transport packets to be small here). If the size field is removed,
    then the users do have to maintain the buffers, and the common code
    can just maintain the pointers.
    
    BIG NOTE: Will impact any out-of-tree DBX500 code, due to the structure
    change.
    
    Signed-off-by: Suman Anna <s-anna@ti.com>
  10. mailbox: remove mailbox_type_t from mailbox_ops

    committed Apr 22, 2013
    The mailbox_type_t is a legacy carry-over from the OMAP mailbox
    code. It was primarily used to distinquish the hardware FIFO type
    between OMAP1 & OMAP2+ SoCs. The type field serves no purpose in
    the common mailbox ops, and has therefore been cleaned up.
    
    The OMAP & DBX500 mailbox client drivers do have an internal type
    field in their respective private mbox structures, and is used for
    differentiating the mailbox types or register sets.
    
    Signed-off-by: Suman Anna <s-anna@ti.com>
Commits on May 2, 2013
  1. mailbox: add documentation to core code and headers

    committed Apr 30, 2013
    The current mailbox code lacks any meaningful documentation,
    making life hard for any new users to understand the API/usage.
    Hopefully, this patch adds enough basic info for the developers.
    
    This patch does not touch any code pieces, it is strictly limited
    to documentation and code comments.
    
    Signed-off-by: Suman Anna <s-anna@ti.com>
Commits on Mar 26, 2013
  1. mailbox: fix invalid use of sizeof in mailbox_msg_send()

    Wei Yongjun committed with Mar 23, 2013
    sizeof() when applied to a pointer typed expression gives the
    size of the pointer, not that of the pointed data.
    
    Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
    Signed-off-by: Suman Anna <s-anna@ti.com>
Commits on Mar 14, 2013
  1. mailbox: call request_irq after mbox queues are allocated

    committed Feb 1, 2013
    The mailbox startup code is enabling the interrupt even before
    any of the associated mailbox queues are allocated. Any pending
    received mailbox message could cause a kernel panic as soon as
    the interrupt is enabled due to the dereferencing of non-existing
    mailbox queues within the ISR.
    
    Signed-off-by: Fernando Guzman Lugo <lugo.fernando@gmail.com>
    Signed-off-by: Suman Anna <s-anna@ti.com>
  2. mailbox: check for NULL nb in mailbox_put

    committed Feb 1, 2013
    The mailbox_put function must check the notifier block for
    NULL before trying to unregister it.
    
    Signed-off-by: Fernando Guzman Lugo <lugo.fernando@gmail.com>
    Signed-off-by: Suman Anna <s-anna@ti.com>
  3. mailbox/omap: check iomem resource before dereferencing it

    committed Feb 1, 2013
    Add a NULL check for iomem resource in mailbox probe functions.
    
    Signed-off-by: Fernando Guzman Lugo <lugo.fernando@gmail.com>
    Signed-off-by: Suman Anna <s-anna@ti.com>
  4. @ydrallap

    mailbox: create dbx500 mailbox driver

    ydrallap committed with Feb 13, 2013
    Add STEriccson DBX500 PRCM mailbox support.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Suman Anna <s-anna@ti.com>
  5. @ydrallap

    mailbox: add no_irq send message

    ydrallap committed with Jan 31, 2013
    For debug purpose, mailbox must be available when
    interrupts are disabled to collect dump information.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Suman Anna <s-anna@ti.com>
  6. @ydrallap

    mailbox: add IRQF_NO_SUSPEND flag

    ydrallap committed with Jan 31, 2013
    Coprocessor must be accessible during suspend transitions.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Suman Anna <s-anna@ti.com>
  7. @ydrallap

    mailbox: add shared memory mailbox type

    ydrallap committed with Jan 31, 2013
    Some mailboxes are made up of cross interrupts
    and associated shared memory.
    Shared memory mapping is fixed and cross interrupt/shared
    memory relation make impossible the use of virtio.
    Mailbox framework must be enough opened to support
    any kind of mailbox.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Suman Anna <s-anna@ti.com>
  8. @ydrallap

    mailbox: change protection mechanisms

    ydrallap committed with Jan 31, 2013
    TX: replace spin by mutex to release CPU
    during wait on mailbox resource.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Suman Anna <s-anna@ti.com>
  9. @ydrallap

    mailbox: create opened message type

    ydrallap committed with Jan 31, 2013
    Current message type is a u32 to fit HW fifo format.
    This should be extended to support any message exchanges
    and type of mailbox.
    
    Proposed structure owns the original u32 and an optional
    pointer on additional data.
    
    Adaptations made to remoteproc and tidspbridge drivers.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Omar Ramirez Luna <omar.ramirez@copitl.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Suman Anna <s-anna@ti.com>
  10. @ydrallap

    mailbox: rename omap_mbox in mailbox

    ydrallap committed with Jan 31, 2013
    In order to create a generic mailbox framework, functions
    and structures should be renamed in mailbox.
    
    Taking care of remoteproc and tidspbridge while at it.
    
    Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
    Signed-off-by: Omar Ramirez Luna <omar.ramirez@copitl.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Suman Anna <s-anna@ti.com>
  11. mailbox: split internal header from API header

    Omar Ramirez Luna committed with Jan 31, 2013
    Now internal structures can remain hidden to the user and just API
    related functions and defines are made available.
    
    Signed-off-by: Omar Ramirez Luna <omar.luna@linaro.org>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    Signed-off-by: Suman Anna <s-anna@ti.com>
  12. mailbox: OMAP: introduce mailbox framework

    Omar Ramirez Luna committed with Mar 12, 2013
    Actually moving it from plat-omap, as this framework/driver code is
    supposed to be under drivers/ folder. The framework should work with
    the current supported OMAP processors (OMAP1+) that have mailbox and
    can be used as a method of interprocessor communication.
    
    The mailbox hardware (in OMAP) uses a queued mailbox-interrupt mechanism
    that provides a communication channel between processors through a set of
    registers and their associated interrupt signals by sending and receiving
    messages.
    
    As part of the migration from plat and mach code:
    - Kconfig symbols have been renamed to build OMAP1 or OMAP2+ drivers.
    - mailbox.h has been changed from plat to a dedicated drivers/ folder.
    
    Module names have changed too, instead of mailbox_mach:
    - OMAP1: mailbox-omap1.ko
    - OMAP2+: mailbox-omap2.ko
    
    Signed-off-by: Omar Ramirez Luna <omar.luna@linaro.org>
    Acked-by: Tony Lindgren <tony@atomide.com>
    Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
    [s-anna@ti.com: Kconfig fixes for build errors]
    Signed-off-by: Suman Anna <s-anna@ti.com>
Commits on Mar 13, 2013
  1. ARM: OMAP2+: mbox: remove dependencies with soc.h

    committed Jan 28, 2013
    The OMAP mailbox platform driver code has been cleaned up to
    remove the dependencies with soc.h in preparation for moving
    the mailbox code to drivers folder.
    
    The code relied on cpu_is_xxx/soc_is_xxx macros previously to
    pick the the right set of mailbox devices and register with the
    mailbox driver. This data is now represented in a concise format
    and moved to the respective omap_hwmod data files and published
    to the driver through the platform data.
    
    Signed-off-by: Suman Anna <s-anna@ti.com>
Commits on Mar 11, 2013
  1. mailbox: rename pl320-ipc specific mailbox.h

    committed Mar 5, 2013
    The patch 3005867 "ARM / highbank: add support for pl320 IPC"
    added a pl320 IPC specific header file as a generic mailbox.h.
    This file has been renamed appropriately to allow the
    introduction of the generic mailbox API framework.
    
    Signed-off-by: Suman Anna <s-anna@ti.com>
    Cc: Mark Langsdorf <mark.langsdorf@calxeda.com>
    Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Commits on Mar 10, 2013
  1. @torvalds

    Linux 3.9-rc2

    torvalds committed Mar 10, 2013
  2. @torvalds

    Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    torvalds committed Mar 9, 2013
    …/git/ebiederm/user-namespace
    
    Pull namespace bugfixes from Eric Biederman:
     "This is three simple fixes against 3.9-rc1.  I have tested each of
      these fixes and verified they work correctly.
    
      The userns oops in key_change_session_keyring and the BUG_ON triggered
      by proc_ns_follow_link were found by Dave Jones.
    
      I am including the enhancement for mount to only trigger requests of
      filesystem modules here instead of delaying this for the 3.10 merge
      window because it is both trivial and the kind of change that tends to
      bit-rot if left untouched for two months."
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
      proc: Use nd_jump_link in proc_ns_follow_link
      fs: Limit sys_mount to only request filesystem modules (Part 2).
      fs: Limit sys_mount to only request filesystem modules.
      userns: Stop oopsing in key_change_session_keyring
Commits on Mar 9, 2013
  1. @torvalds

    Atmel MXT touchscreen: increase reset timeouts

    torvalds committed Mar 9, 2013
    There is a more complete atmel patch-series out by Nick Dyer that fixes
    this and other things, but in the meantime this is the minimal thing to
    get the touchscreen going on (at least my) Pixel Chromebook.
    
    Not that I want my dirty fingers near that beautiful screen, but it
    seems that a non-initialized touchscreen will also end up being a
    constant wakeup source, so you have to disable it to go to sleep.  And
    it's easier to just fix the initialization sequence.
    
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  2. @ebiederm

    proc: Use nd_jump_link in proc_ns_follow_link

    ebiederm committed Mar 9, 2013
    Update proc_ns_follow_link to use nd_jump_link instead of just
    manually updating nd.path.dentry.
    
    This fixes the BUG_ON(nd->inode != parent->d_inode) reported by Dave
    Jones and reproduced trivially with mkdir /proc/self/ns/uts/a.
    
    Sigh it looks like the VFS change to require use of nd_jump_link
    happend while proc_ns_follow_link was baking and since the common case
    of proc_ns_follow_link continued to work without problems the need for
    making this change was overlooked.
    
    Cc: stable@vger.kernel.org
    Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
  3. @torvalds

    Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    torvalds committed Mar 8, 2013
    …/git/mason/linux-btrfs
    
    Pull btrfs fixes from Chris Mason:
     "These are scattered fixes and one performance improvement.  The
      biggest functional change is in how we throttle metadata changes.  The
      new code bumps our average file creation rate up by ~13% in fs_mark,
      and lowers CPU usage.
    
      Stefan bisected out a regression in our allocation code that made
      balance loop on extents larger than 256MB."
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs:
      Btrfs: improve the delayed inode throttling
      Btrfs: fix a mismerge in btrfs_balance()
      Btrfs: enforce min_bytes parameter during extent allocation
      Btrfs: allow running defrag in parallel to administrative tasks
      Btrfs: avoid deadlock on transaction waiting list
      Btrfs: do not BUG_ON on aborted situation
      Btrfs: do not BUG_ON in prepare_to_reloc
      Btrfs: free all recorded tree blocks on error
      Btrfs: build up error handling for merge_reloc_roots
      Btrfs: check for NULL pointer in updating reloc roots
      Btrfs: fix unclosed transaction handler when the async transaction commitment fails
      Btrfs: fix wrong handle at error path of create_snapshot() when the commit fails
      Btrfs: use set_nlink if our i_nlink is 0
  4. @bleungatchromium @torvalds

    Platform: x86: chromeos_laptop : Add basic platform data for atmel de…

    bleungatchromium committed with torvalds Mar 7, 2013
    …vices
    
    Add basic platform data to get the current upstream driver working
    with the 224s touchpad and 1664s touchscreen.
    We will be using NULL config so we will use the settings from the
    devices' NVRAMs.
    
    Signed-off-by: Benson Leung <bleung@chromium.org>
    Tested-by: Olof Johansson <olof@lixom.net>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  5. @djkurtz @torvalds

    Input: atmel_mxt_ts - Support for touchpad variant

    djkurtz committed with torvalds Mar 7, 2013
    This same driver can be used by atmel based touchscreens and touchpads
    (buttonpads). Platform data may specify a device is a touchpad
    using the is_tp flag.
    
    This will cause the driver to perform some touchpad specific
    initializations, such as:
      * register input device name "Atmel maXTouch Touchpad" instead of
      Touchscreen.
      * register BTN_LEFT & BTN_TOOL_* event types.
      * register axis resolution (as a fixed constant, for now)
      * register BUTTONPAD property
      * process GPIO buttons using reportid T19
    
    Input event GPIO mapping is done by the platform data key_map array.
    
    key_map[x] should contain the KEY or BTN code to send when processing
    GPIOx from T19. To specify a GPIO as not an input source, populate
    with KEY_RESERVED, or 0.
    
    Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
    Signed-off-by: Benson Leung <bleung@chromium.org>
    Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
    Tested-by: Olof Johansson <olof@lixom.net>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Mar 8, 2013
  1. @torvalds

    Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6

    torvalds committed Mar 8, 2013
    Pull CIFS fixes from Steve French:
     "A small set of cifs fixes which includes one for a recent regression
      in the write path (pointed out by Anton), some fixes for rename
      problems and as promised for 3.9 removing the obsolete sockopt mount
      option (and the accompanying deprecation warning)."
    
    * 'for-next' of git://git.samba.org/sfrench/cifs-2.6:
      CIFS: Fix missing of oplock_read value in smb30_values structure
      cifs: don't try to unlock pagecache page after releasing it
      cifs: remove the sockopt= mount option
      cifs: Check server capability before attempting silly rename
      cifs: Fix bug when checking error condition in cifs_rename_pending_delete()
  2. @torvalds

    Merge branch 'akpm' (fixes from Andrew)

    torvalds committed Mar 8, 2013
    Merge misc fixes from Andrew Morton.
    
    * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
      alpha: boot: fix build breakage introduced by system.h disintegration
      memcg: initialize kmem-cache destroying work earlier
      Randy has moved
      ksm: fix m68k build: only NUMA needs pfn_to_nid
      dmi_scan: fix missing check for _DMI_ signature in smbios_present()
      Revert parts of "hlist: drop the node parameter from iterators"
      idr: remove WARN_ON_ONCE() on negative IDs
      mm/mempolicy.c: fix sp_node_init() argument ordering
      mm/mempolicy.c: fix wrong sp_node insertion
      ipc: don't allocate a copy larger than max
      ipc: fix potential oops when src msg > 4k w/ MSG_COPY
Something went wrong with that request. Please try again.