22 Sep, 2014

1 commit

  • Move the SEAD-3 device-tree to arch/mips/boot/dts/ and update the
    Makefiles accordingly. Since SEAD-3 requires the device-tree to be
    built into the kernel, select BUILTIN_DTB when building for SEAD-3.

    Signed-off-by: Andrew Bresticker
    Cc: Rob Herring
    Cc: Pawel Moll
    Cc: Mark Rutland
    Cc: Ian Campbell
    Cc: Kumar Gala
    Cc: James Hogan
    Cc: Paul Burton
    Cc: David Daney
    Cc: John Crispin
    Cc: Jayachandran C
    Cc: Qais Yousef
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/7555/
    Signed-off-by: Ralf Baechle

    Andrew Bresticker
     

10 Jun, 2014

1 commit

  • Pull MIPS updates from Ralf Baechle:
    - three fixes for 3.15 that didn't make it in time
    - limited Octeon 3 support.
    - paravirtualization support
    - improvment to platform support for Netlogix SOCs.
    - add support for powering down the Malta eval board in software
    - add many instructions to the in-kernel microassembler.
    - add support for the BPF JIT.
    - minor cleanups of the BCM47xx code.
    - large cleanup of math emu code resulting in significant code size
    reduction, better readability of the code and more accurate
    emulation.
    - improvments to the MIPS CPS code.
    - support C3 power status for the R4k count/compare clock device.
    - improvments to the GIO support for older SGI workstations.
    - increase number of supported CPUs to 256; this can be reached on
    certain embedded multithreaded ccNUMA configurations.
    - various small cleanups, updates and fixes

    * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (173 commits)
    MIPS: IP22/IP28: Improve GIO support
    MIPS: Octeon: Add twsi interrupt initialization for OCTEON 3XXX, 5XXX, 63XX
    DEC: Document the R4k MB ASIC mini interrupt controller
    DEC: Add self as the maintainer
    MIPS: Add microMIPS MSA support.
    MIPS: Replace calls to obsolete strict_strto call with kstrto* equivalents.
    MIPS: Replace obsolete strict_strto call with kstrto
    MIPS: BFP: Simplify code slightly.
    MIPS: Call find_vma with the mmap_sem held
    MIPS: Fix 'write_msa_##' inline macro.
    MIPS: Fix MSA toolchain support detection.
    mips: Update the email address of Geert Uytterhoeven
    MIPS: Add minimal defconfig for mips_paravirt
    MIPS: Enable build for new system 'paravirt'
    MIPS: paravirt: Add pci controller for virtio
    MIPS: Add code for new system 'paravirt'
    MIPS: Add functions for hypervisor call
    MIPS: OCTEON: Add OCTEON3 to __get_cpu_type
    MIPS: Add function get_ebase_cpunum
    MIPS: Add minimal support for OCTEON3 to c-r4k.c
    ...

    Linus Torvalds
     

26 May, 2014

1 commit

  • This patch moves data allocated using kzalloc to managed data allocated
    using devm_kzalloc and cleans now unnecessary kfrees in probe and remove
    functions. Also, the now unnecessary labels out_mem and out are done
    away with. The error handling code is moved under if and return 0 is now
    at the end of the function.

    The following Coccinelle semantic patch was used for making the change:

    @platform@
    identifier p, probefn, removefn;
    @@
    struct platform_driver p = {
    .probe = probefn,
    .remove = removefn,
    };

    @prb@
    identifier platform.probefn, pdev;
    expression e, e1, e2;
    @@
    probefn(struct platform_device *pdev, ...) {
    dev, e1, e2)
    ...
    ?-kfree(e);
    ...+>
    }

    @rem depends on prb@
    identifier platform.removefn;
    expression e;
    @@
    removefn(...) {

    }

    Signed-off-by: Himangi Saraogi
    Acked-by: Julia Lawall
    Tested-by: Markos Chandras
    Reviewed-by: Markos Chandras
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/6977/
    Signed-off-by: Ralf Baechle

    Himangi Saraogi
     

30 Apr, 2014

1 commit


01 Apr, 2014

1 commit

  • The sead3-mtd.o is built for obj-y -- and hence this code is always
    present. It will never be modular, so using module_init as an alias
    for __initcall can be somewhat misleading.

    Fix this up now, so that we can relocate module_init from
    init.h into module.h in the future. If we don't do this, we'd
    have to add module.h to obviously non-modular code, and that
    would be a worse thing.

    Note that direct use of __initcall is discouraged, vs. one
    of the priority categorized subgroups. As __initcall gets
    mapped onto device_initcall, our use of device_initcall
    directly in this change means that the runtime impact is
    zero -- it will remain at level 6 in initcall ordering.

    We also fix a missing semicolon, which this change uncovers.

    Signed-off-by: Paul Gortmaker
    Reported-by: kbuild test robot
    Cc: linux-mips@linux-mips.org
    Cc: fengguang.wu@intel.com
    Patchwork: https://patchwork.linux-mips.org/patch/6412/
    Signed-off-by: Ralf Baechle

    Paul Gortmaker
     

25 Jan, 2014

1 commit

  • None of these files are actually using any __init type directives
    and hence don't need to include . Most are just a
    left over from __devinit and __cpuinit removal, or simply due to
    code getting copied from one driver to the next.

    Signed-off-by: Paul Gortmaker
    Signed-off-by: John Crispin
    Patchwork: http://patchwork.linux-mips.org/patch/6320/

    Paul Gortmaker
     

23 Jan, 2014

5 commits

  • we want the device tree to be unflattened into non init memory so it can be
    accessed later by, for example, a probing function of a driver module.

    Signed-off-by: Qais Yousef
    Reviewed-by: Paul Burton
    Reviewed-by: James Hogan
    Signed-off-by: John Crispin
    Patchwork: http://patchwork.linux-mips.org/patch/6210/

    Qais Yousef
     
  • Signed-off-by: Qais Yousef
    Reviewed-by: Paul Burton
    Reviewed-by: James Hogan
    Signed-off-by: John Crispin
    Patchwork: http://patchwork.linux-mips.org/patch/6209/

    Qais Yousef
     
  • The defaults are not always applicable and it makes it hard for the bootloader
    to override them. By removing it we give the bootloader full control over what
    command line parameters to pass.

    Without this change we will need to modify the built-in dtb to add bootloader
    cmd line parameters or do some work to append them after we unflatten the device
    tree.

    Sead3 is a development board, that's why we want to be able to change boot
    parameters on the fly from the bootloader.

    Signed-off-by: Qais Yousef
    Reviewed-by: Paul Burton
    Reviewed-by: James Hogan
    Signed-off-by: John Crispin
    Patchwork: http://patchwork.linux-mips.org/patch/6208/

    Qais Yousef
     
  • if the user sets memsize parameter in commandline or bootloader
    environment, we use it to modify the built-in dtb memory size

    Signed-off-by: Qais Yousef
    Reviewed-by: Paul Burton
    Reviewed-by: James Hogan
    Signed-off-by: John Crispin
    Patchwork: http://patchwork.linux-mips.org/patch/6207/

    Qais Yousef
     
  • This variable seems to have been copied from Malta when SEAD3 support
    was introduced, but is likewise unused. Remove it.

    Signed-off-by: Paul Burton
    Reviewed-by: Markos Chandras
    Reviewed-by: James Hogan
    Signed-off-by: John Crispin
    Patchwork: http://patchwork.linux-mips.org/patch/6172/

    Paul Burton
     

10 Oct, 2013

1 commit


19 Sep, 2013

1 commit


15 Jul, 2013

1 commit

  • commit 3747069b25e419f6b51395f48127e9812abc3596 upstream.

    The __cpuinit type of throwaway sections might have made sense
    some time ago when RAM was more constrained, but now the savings
    do not offset the cost and complications. For example, the fix in
    commit 5e427ec2d0 ("x86: Fix bit corruption at CPU resume time")
    is a good example of the nasty type of bugs that can be created
    with improper use of the various __init prefixes.

    After a discussion on LKML[1] it was decided that cpuinit should go
    the way of devinit and be phased out. Once all the users are gone,
    we can then finally remove the macros themselves from linux/init.h.

    Note that some harmless section mismatch warnings may result, since
    notify_cpu_starting() and cpu_up() are arch independent (kernel/cpu.c)
    and are flagged as __cpuinit -- so if we remove the __cpuinit from
    the arch specific callers, we will also get section mismatch warnings.
    As an intermediate step, we intend to turn the linux/init.h cpuinit
    related content into no-ops as early as possible, since that will get
    rid of these warnings. In any case, they are temporary and harmless.

    Here, we remove all the MIPS __cpuinit from C code and __CPUINIT
    from asm files. MIPS is interesting in this respect, because there
    are also uasm users hiding behind their own renamed versions of the
    __cpuinit macros.

    [1] https://lkml.org/lkml/2013/5/20/589

    [ralf@linux-mips.org: Folded in Paul's followup fix.]

    Signed-off-by: Paul Gortmaker
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/5494/
    Patchwork: https://patchwork.linux-mips.org/patch/5495/
    Patchwork: https://patchwork.linux-mips.org/patch/5509/
    Signed-off-by: Ralf Baechle

    Paul Gortmaker
     

22 Jun, 2013

1 commit

  • The soft reset register address and reset value to be written are
    incorrect for the SEAD-3 platform. This patch fixes them such that
    the SEAD-3 can actually perform a soft reset instead of causing an
    exception. Also remove usage of 'include/asm/mips-boards/generic.h'
    header file.

    Signed-off-by: Steven J. Hill
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/5454/
    Signed-off-by: Ralf Baechle

    Steven J. Hill
     

09 May, 2013

2 commits


08 May, 2013

3 commits


02 May, 2013

1 commit


01 Feb, 2013

3 commits


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,
    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 Sep, 2012

1 commit