24 Feb, 2014

3 commits

  • These local symbols are used only in this file.
    Fix the following sparse warnings:

    drivers/remoteproc/ste_modem_rproc.c:167:27: warning: symbol 'sproc_fw_ops' was not declared. Should it be static?
    drivers/remoteproc/ste_modem_rproc.c:196:25: warning: symbol 'sproc_dev_cb' was not declared. Should it be static?

    Signed-off-by: Jingoo Han
    [standartize patch title]
    Signed-off-by: Ohad Ben-Cohen

    Jingoo Han
     
  • Remove unneeded error handling on the result of a call to
    platform_get_resource when the value is passed to devm_ioremap_resource.

    Move the call to platform_get_resource adjacent to the call to
    devm_ioremap_resource to make the connection between them more clear.

    A simplified version of the semantic patch that makes this change is as
    follows: (http://coccinelle.lip6.fr/)

    //
    @@
    expression pdev,res,n,e,e1;
    expression ret != 0;
    identifier l;
    @@

    - res = platform_get_resource(pdev, IORESOURCE_MEM, n);
    ... when != res
    - if (res == NULL) { ... \(goto l;\|return ret;\) }
    ... when != res
    + res = platform_get_resource(pdev, IORESOURCE_MEM, n);
    e = devm_ioremap_resource(e1, res);
    //

    Signed-off-by: Julia Lawall
    [simplify patch title]
    Signed-off-by: Ohad Ben-Cohen

    Julia Lawall
     
  • The comment above disable_irq says that it is needed to ensure that the
    "devm subsystem might end up releasing things before freeing the irq,
    thus allowing an interrupt to sneak in while the device is being
    removed." disable_irq is enough for this purpose and there is no need to
    manually free the reference to the clock.

    Cc: Robert Tivy
    Signed-off-by: Uwe Kleine-König
    [moved the Cc line into the commit message]
    Signed-off-by: Ohad Ben-Cohen

    Uwe Kleine-König
     

29 Oct, 2013

1 commit

  • Currently a host kick error is silently ignored and not reflected in
    the virtqueue of a particular virtio device.

    Changing the notify API for guest->host notification seems to be one
    prerequisite in order to be able to handle such errors in the context
    where the kick is triggered.

    This patch changes the notify API. The notify function must return a
    bool return value. It returns false if the host notification failed.

    Signed-off-by: Heinz Graalfs
    Signed-off-by: Rusty Russell

    Heinz Graalfs
     

15 Jul, 2013

1 commit


12 Jul, 2013

1 commit


01 Jul, 2013

2 commits

  • Use kmemdup instead of kmalloc + memcpy.

    Signed-off-by: Thomas Meyer
    Signed-off-by: Ohad Ben-Cohen

    Thomas Meyer
     
  • It is not preferable to have the allocated pages for carveout
    memories freed before they are unmapped. The code that deals
    with the cleanup of carveout memories is therefore moved after
    the corresponding mapping entries were cleaned up.

    This is mostly a no-op since the remote processors are already
    stopped when the cleanup function is called, but this will make
    the cleanup code follow the exact reverse path of allocation.

    Signed-off-by: Suman Anna
    Signed-off-by: Ohad Ben-Cohen

    Suman Anna
     

30 Jun, 2013

2 commits


12 Jun, 2013

1 commit

  • 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.

    The OMAP mailbox framework/driver code is moved to be under
    drivers/mailbox, in preparation for adapting to a common mailbox
    driver framework. This allows the build for OMAP mailbox to be
    enabled (it was disabled during the multi-platform support).

    As part of the migration from plat and mach code:
    - Kconfig symbols have been renamed to build OMAP1 or OMAP2+ drivers.
    - mailbox.h under plat-omap/plat/include has been split into a public
    and private header files. The public header has only the API related
    functions and types.
    - The module name mailbox.ko from plat-omap is changed to
    omap-mailbox.ko
    - The module name mailbox_mach.ko from mach-omapX is changed as
    mailbox_omap1.ko for OMAP1
    mailbox_omap2.ko for OMAP2+

    Cc: Tony Lindgren
    [gregkh@linuxfoundation.org: ack for staging part]
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Omar Ramirez Luna
    Signed-off-by: Suman Anna

    Suman Anna
     

08 May, 2013

1 commit

  • Pull remoteproc update from Ohad Ben-Cohen:

    - Some refactoring, cleanups and small improvements from Sjur
    Brændeland. The improvements are mainly about better supporting
    varios virtio properties (such as virtio's config space, status and
    features). I now see that I messed up while commiting one of Sjur's
    patches and erroneously put myself as the author, as well as letting
    a nasty typo sneak in. I will not fix this in order to avoid
    rebasing the patches. Sjur - sorry!

    - A new remoteproc driver for OMAP-L13x (technically a DaVinci
    platform) from Robert Tivy.

    - Extend OMAP support to OMAP5 as well, from Vincent Stehlé.

    - Fix Kconfig VIRTUALIZATION dependency, from Suman Anna (a
    non-critical fix which arrived late during the rc cycle).

    * tag 'remoteproc-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/remoteproc:
    remoteproc: fix kconfig dependencies for VIRTIO
    remoteproc/davinci: add a remoteproc driver for OMAP-L13x DSP
    remoteproc: support default firmware name in rproc_alloc()
    remoteproc/omap: support OMAP5 too
    remoteproc: set vring addresses in resource table
    remoteproc: support virtio config space.
    remoteproc: perserve resource table data
    remoteproc: calculate max_notifyid by counting vrings
    remoteproc: code cleanup of resource parsing
    remoteproc: parse STE-firmware and find resource table address
    remoteproc: add find_loaded_rsc_table firmware ops
    remoteproc: refactor rproc_elf_find_rsc_table()

    Linus Torvalds
     

01 May, 2013

1 commit

  • Pull trivial tree updates from Jiri Kosina:
    "Usual stuff, mostly comment fixes, typo fixes, printk fixes and small
    code cleanups"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (45 commits)
    mm: Convert print_symbol to %pSR
    gfs2: Convert print_symbol to %pSR
    m32r: Convert print_symbol to %pSR
    iostats.txt: add easy-to-find description for field 6
    x86 cmpxchg.h: fix wrong comment
    treewide: Fix typo in printk and comments
    doc: devicetree: Fix various typos
    docbook: fix 8250 naming in device-drivers
    pata_pdc2027x: Fix compiler warning
    treewide: Fix typo in printks
    mei: Fix comments in drivers/misc/mei
    treewide: Fix typos in kernel messages
    pm44xx: Fix comment for "CONFIG_CPU_IDLE"
    doc: Fix typo "CONFIG_CGROUP_CGROUP_MEMCG_SWAP"
    mmzone: correct "pags" to "pages" in comment.
    kernel-parameters: remove outdated 'noresidual' parameter
    Remove spurious _H suffixes from ifdef comments
    sound: Remove stray pluses from Kconfig file
    radio-shark: Fix printk "CONFIG_LED_CLASS"
    doc: put proper reference to CONFIG_MODULE_SIG_ENFORCE
    ...

    Linus Torvalds
     

24 Apr, 2013

1 commit


21 Apr, 2013

1 commit


15 Apr, 2013

1 commit


07 Apr, 2013

7 commits


05 Apr, 2013

7 commits


28 Feb, 2013

2 commits


27 Feb, 2013

1 commit

  • Pull virtio updates from Rusty Russell:
    "All trivial, thanks to the stuff which didn't quite make it time"

    * tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
    virtio_console: Initialize guest_connected=true for rproc_serial
    virtio: use module_virtio_driver.
    virtio: Add module driver macro for virtio drivers.
    virtio_console: Use virtio device index to generate port name
    virtio: make pci_device_id const
    virtio: make config_ops const
    virtio-mmio: fix wrong comment about register offset
    virtio_console: Let unconnected rproc device receive data.

    Linus Torvalds
     

22 Feb, 2013

1 commit

  • Pull ARM SoC multiplatform support from Arnd Bergmann:
    "Converting more ARM platforms to multiplatform support. This time,
    OMAP gets converted, which is a major step since this is by far the
    largest platform in terms of code size. The same thing happens to the
    vt8500 platform."

    * tag 'multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
    net: cwdavinci_cpdma: export symbols for cpsw
    remoteproc: omap: depend on OMAP_MBOX_FWK
    [media] davinci: do not include mach/hardware.h
    ARM: OMAP2+: Make sure files with omap initcalls include soc.h
    ARM: OMAP2+: Include soc.h to drm.c to fix compiling
    ARM: OMAP2+: Fix warning for hwspinlock omap_postcore_initcall
    ARM: multi_v7_defconfig: add ARCH_ZYNQ
    ARM: multi_v7_defconfig: remove unnecessary CONFIG_GPIOLIB
    arm: vt8500: Remove remaining mach includes
    arm: vt8500: Convert debug-macro.S to be multiplatform friendly
    arm: vt8500: Remove single platform Kconfig options
    ARM: OMAP2+: Remove now obsolete uncompress.h and debug-macro.S
    ARM: OMAP2+: Add minimal support for booting vexpress
    ARM: OMAP2+: Enable ARCH_MULTIPLATFORM support
    ARM: OMAP2+: Disable code that currently does not work with multiplaform
    ARM: OMAP2+: Add multiplatform debug_ll support
    ARM: OMAP: Fix dmaengine init for multiplatform
    ARM: OMAP: Fix i2c cmdline initcall for multiplatform
    ARM: OMAP2+: Use omap initcalls
    ARM: OMAP2+: Limit omap initcalls to omap only on multiplatform kernels

    Linus Torvalds
     

15 Feb, 2013

1 commit

  • Patch a62a6e98 "ARM: OMAP2+: Disable code that currently does not work
    with multiplaform" makes the OMAP_MBOX_FWK option depend on !MULTIPLATFORM,
    which means we cannot simply select that symbol from OMAP_REMOTEPROC.

    Turning the 'select' into 'depends on' ensures that all dependencies
    are correct until OMAP_MBOX_FWK loses its dependency.

    Without this patch, building allmodconfig results in:

    drivers/remoteproc/omap_remoteproc.c:31:26: fatal error: plat/mailbox.h: No such file or directory

    Signed-off-by: Arnd Bergmann
    Acked-by: Tony Lindgren
    Acked-by: Ohad Ben-Cohen

    Arnd Bergmann
     

11 Feb, 2013

1 commit


22 Jan, 2013

1 commit


04 Jan, 2013

1 commit

  • CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
    markings need to be removed.

    This change removes the use of __devinit, __devexit_p, __devinitdata,
    __devinitconst, and __devexit from these drivers.

    Based on patches originally written by Bill Pemberton, but redone by me
    in order to handle some of the coding style issues better, by hand.

    Cc: Bill Pemberton
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

14 Dec, 2012

1 commit

  • Pull trivial branch from Jiri Kosina:
    "Usual stuff -- comment/printk typo fixes, documentation updates, dead
    code elimination."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (39 commits)
    HOWTO: fix double words typo
    x86 mtrr: fix comment typo in mtrr_bp_init
    propagate name change to comments in kernel source
    doc: Update the name of profiling based on sysfs
    treewide: Fix typos in various drivers
    treewide: Fix typos in various Kconfig
    wireless: mwifiex: Fix typo in wireless/mwifiex driver
    messages: i2o: Fix typo in messages/i2o
    scripts/kernel-doc: check that non-void fcts describe their return value
    Kernel-doc: Convention: Use a "Return" section to describe return values
    radeon: Fix typo and copy/paste error in comments
    doc: Remove unnecessary declarations from Documentation/accounting/getdelays.c
    various: Fix spelling of "asynchronous" in comments.
    Fix misspellings of "whether" in comments.
    eisa: Fix spelling of "asynchronous".
    various: Fix spelling of "registered" in comments.
    doc: fix quite a few typos within Documentation
    target: iscsi: fix comment typos in target/iscsi drivers
    treewide: fix typo of "suport" in various comments and Kconfig
    treewide: fix typo of "suppport" in various comments
    ...

    Linus Torvalds
     

03 Dec, 2012

1 commit