02 Apr, 2015

1 commit

  • Replace sscanf() with mac_pton().

    [ralf@linux-mips.org: Resolved conflict.]

    Signed-off-by: Daniel Walter
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/7151/
    Signed-off-by: Ralf Baechle

    Daniel Walter
     

24 Nov, 2014

1 commit

  • Use the much more common pr_warn instead of pr_warning
    with the goal of removing pr_warning eventually.

    Other miscellanea:

    o Coalesce formats
    o Realign arguments

    Signed-off-by: Joe Perches
    Cc: linux-mips
    Cc: LKML
    Patchwork: https://patchwork.linux-mips.org/patch/7935/
    Signed-off-by: Ralf Baechle

    Joe Perches
     

27 Mar, 2014

1 commit

  • Commit 0046be10e0c502705fc74d91408eba13a73bc201 ("mips: delete
    non-required instances of include ") inadvertently
    removed an include that was actually correct. Restore it.

    Note that it gets init.h implicitly anyway, so this is largely a
    cosmetic fixup; no build regressions were caused by this.

    Signed-off-by: Paul Gortmaker
    Cc: John Crispin
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/6416/
    Signed-off-by: Ralf Baechle

    Paul Gortmaker
     

31 Jan, 2014

1 commit

  • Pull MIPS updates from Ralf Baechle:
    "The most notable new addition inside this pull request is the support
    for MIPS's latest and greatest core called "inter/proAptiv". The
    patch series describes this core as follows.

    "The interAptiv is a power-efficient multi-core microprocessor
    for use in system-on-chip (SoC) applications. The interAptiv combines
    a multi-threading pipeline with a coherence manager to deliver improved
    computational throughput and power efficiency. The interAptiv can
    contain one to four MIPS32R3 interAptiv cores, system level
    coherence manager with L2 cache, optional coherent I/O port,
    and optional floating point unit."

    The platform specific patches touch all 3 Broadcom families. It adds
    support for the new Broadcom/Netlogix XLP9xx Soc, building a common
    BCM63XX SMP kernel for all BCM63XX SoCs regardless of core type/count
    and full gpio button/led descriptions for BCM47xx.

    The rest of the series are cleanups and bug fixes that are MIPS
    generic and consist largely of changes that Imgtec/MIPS had published
    in their linux-mti-3.10.git stable tree. Random other cleanups and
    patches preparing code to be merged in 3.15"

    * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (139 commits)
    mips: select ARCH_MIGHT_HAVE_PC_SERIO
    mips: delete non-required instances of include
    MIPS: KVM: remove shadow_tlb code
    MIPS: KVM: use common EHINV aware UNIQUE_ENTRYHI
    mips/ide: flush dcache also if icache does not snoop dcache
    MIPS: BCM47XX: fix position of cpu_wait disabling
    MIPS: BCM63XX: select correct MIPS_L1_CACHE_SHIFT value
    MIPS: update MIPS_L1_CACHE_SHIFT based on MIPS_L1_CACHE_SHIFT_
    MIPS: introduce MIPS_L1_CACHE_SHIFT_
    MIPS: ZBOOT: gather string functions into string.c
    arch/mips/pci: don't check resource with devm_ioremap_resource
    arch/mips/lantiq/xway: don't check resource with devm_ioremap_resource
    bcma: gpio: don't cast u32 to unsigned long
    ssb: gpio: add own IRQ domain
    MIPS: BCM47XX: fix sparse warnings in board.c
    MIPS: BCM47XX: add board detection for Linksys WRT54GS V1
    MIPS: BCM47XX: fix detection for some boards
    MIPS: BCM47XX: Enable buttons support on SSB
    MIPS: BCM47XX: Convert WNDR4500 to new syntax
    MIPS: BCM47XX: Use "timer" trigger for status LEDs
    ...

    Linus Torvalds
     

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
     

26 Nov, 2013

1 commit

  • Now that we have a CONFIG_PANIC_TIMEOUT=x setting, remove the
    mips settings. The default is 0, which means don't reboot on
    panic.

    Signed-off-by: Ralf Baechle
    Acked-by: Shinya Kuribayashi
    Signed-off-by: Jason Baron
    Cc: benh@kernel.crashing.org
    Cc: paulus@samba.org
    Cc: mpe@ellerman.id.au
    Cc: felipe.contreras@gmail.com
    Cc: linux-mips@linux-mips.org
    Cc: Linus Torvalds
    Cc: Andrew Morton
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Link: http://lkml.kernel.org/r/d19dc75fca343ec5d9ada75a1400f57330021976.1385418410.git.jbaron@akamai.com
    Signed-off-by: Ingo Molnar

    Ralf Baechle
     

08 May, 2013

1 commit

  • Remove 'arch/mips/include/asm/mips-boards/prom.h' and get rid of
    all inclusions of it by Malta and SEAD-3 platforms.

    [ralf@linux-mips.org: Fold in John Crispin 's "MIPS:
    ar7 powertv build"].

    [ralf@linux-mips.org: Fold in John Crispin 's "MIPS:
    unbreak powertv build"].

    [ralf@linux-mips.org: Test. Build. Your. Fscking. Code. Or...]

    Signed-off-by: Steven J. Hill

    Steven J. Hill
     

01 Feb, 2013

1 commit

  • Having received another series of whitespace patches I decided to do this
    once and for all rather than dealing with this kind of patches trickling
    in forever.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     

14 Dec, 2012

1 commit


17 Jul, 2012

1 commit


11 Jan, 2012

1 commit


08 Dec, 2011

3 commits


21 Sep, 2011

1 commit


26 Jul, 2011

2 commits


21 Jul, 2011

1 commit


18 May, 2011

1 commit

  • The 'size' variable contains the correct register size for both AR7
    and Titan, but we never used it to ioremap the correct register size.
    This problem only shows up on Titan.

    [ralf@linux-mips.org: Fixed the fix. The original patch as in patchwork
    recognizes the problem correctly then fails to fix it ...]

    Reported-by: Alexander Clouter
    Signed-off-by: Florian Fainelli
    Patchwork: https://patchwork.linux-mips.org/patch/2380/
    Signed-off-by: Ralf Baechle

    Florian Fainelli
     

29 Mar, 2011

1 commit


26 Mar, 2011

1 commit


17 Dec, 2010

1 commit

  • TNETD7200 run their CPU clock faster than the default CPU clock we assume.
    In order to have the correct loops per jiffies settings, initialize clocks right
    before setting mips_hpt_frequency. As a side effect, we can no longer use
    msleep in clocks.c which requires other parts of the kernel to be initialized,
    so replace these with mdelay.

    Signed-off-by: Florian Fainelli
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1749/
    Signed-off-by: Ralf Baechle

    Florian Fainelli
     

30 Oct, 2010

2 commits

  • Add support for Titan TNETV1050,1055,1056,1060 variants. This SoC is almost
    completely identical to AR7 except on a few points:
    - a second bank of gpios is available
    - vlynq0 on titan is vlynq1 on ar7
    - different PHY addresses for cpmac0

    This SoC can be found on commercial products like the Linksys WRTP54G

    Original patch by Xin with improvments by Florian.

    Signed-off-by: Xin Zhen
    Signed-off-by: Florian Fainelli
    Patchwork: http://patchwork.linux-mips.org/patch/1563/
    Signed-off-by: Ralf Baechle

    ---

    Florian Fainelli
     
  • In order to detect the Titan variant, we must initialize GPIOs earlier since
    detection relies on some GPIO values to be set.

    Signed-off-by: Florian Fainelli
    Patchwork: http://patchwork.linux-mips.org/patch/1562/
    Signed-off-by: Ralf Baechle

    ---

    Florian Fainelli
     

07 Oct, 2010

1 commit

  • Add missing #inclusions of to a whole bunch of files that should
    really include it. Note that this can replace #inclusions of .

    This is required for the patch to sort out irqflags handling function naming to
    compile on MIPS.

    The problem is that these files require access to things like setup_irq() -
    which isn't available by #including

    Signed-off-by: David Howells
    Acked-by: Ralf Baechle

    David Howells
     

05 Aug, 2010

2 commits

  • Shamelessly stealing wisdom from pasemi_mac.c, I found char2hex() could
    be replaced with a single call to sscanf(), looks cleaner to me at
    least. The result is 100 bytes trimmed off the size of a compiled
    cpmac_get_mac() and as an extra bonus it grumbles and gracefully fails
    over to using random_ether_addr() when an attempt to parse an invalid
    MAC address is made.

    Signed-off-by: Alexander Clouter
    To: linux-mips@linux-mips.org
    Cc: florian@openwrt.org
    Signed-off-by: Ralf Baechle

    Alexander Clouter
     
  • Move platform specific definitions to the platfrom directories.

    Each platform shall do the following:
    1) include an entry in arch/mips/Kbuild.platforms
    2) add relevant definitions to arch/mips//Platform

    This commits changes ar7 to the new scheme as an example.

    Introducing a platform speecific Platfrom file has following advantages:
    1) decentralization of platfrom definitions
    2) simplification af arch/mips/Makefile
    3) force all platfrom to build with -Werror (done in arch/mips/Kbuild)

    [Ralf: Remove forgotten -Werror from AR7 Makefile]

    Signed-off-by: Sam Ravnborg
    To: linux-mips
    To: Wu Zhangjin
    Patchwork: https://patchwork.linux-mips.org/patch/1302/
    Patchwork: http://patchwork.linux-mips.org/patch/1308/
    Signed-off-by: Ralf Baechle

    Sam Ravnborg
     

06 Jul, 2010

1 commit

  • PORT_AR7 has the correct TRIG flag (UART_FCR_R_TRIG_00) as well as
    UART_CAP_AFE being set. This fixes UART on TNETD7300 revision 0x02,
    which would otherwise mangle some characters, no side effects on
    other revisions.

    Signed-off-by: Florian Fainelli
    To: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/1246/
    Signed-off-by: Ralf Baechle

    Florian Fainelli
     

22 May, 2010

2 commits

  • ar7_regiser_devices needs ar7_clocks_init to have been called first,
    however clock.o is currently linked later due to its order in the Makefile,
    therefore ar7_clocks_init always gets called later than ar7_register_devices
    because both have the same initcall level. Fix this by moving
    ar7_register_devices to the right initcall level.

    Reported-by: Michael J. Evans
    Signed-off-by: Florian Fainelli
    To: linux-mips@linux-mips.org
    Cc: Ralf Baechle
    Patchwork: http://patchwork.linux-mips.org/patch/1212/
    Signed-off-by: Ralf Baechle

    Florian Fainelli
     
  • Instead of doing yet another switch/case on the chip_id, use existing
    inline function to set the watchdog base address.

    Signed-off-by: Florian Fainelli
    To: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/1211/
    Signed-off-by: Ralf Baechle

    Florian Fainelli
     

13 Apr, 2010

2 commits

  • Seems I trimmed one too many lines in
    29ca2d81bd2a62fa86bc9a72ddadcf03d7daf795 (lmo) rsp
    7084338eb8eb0cc021ba86c340157bad397f3f0b (kernel.org) which led to no
    functioning Ethernet on my WAG54Gv2. This patch restores the AWOL line.

    Signed-off-by: Alexander Clouter
    To: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/1065/
    Signed-off-by: Ralf Baechle

    Alexander Clouter
     
  • Seems in my whitespace cleanup 0f2536082d01448daeced8d9e82c3ba1751fefa3
    (lmo) rsp. 8c2961da46abd85a71d20f2b169bf80618e (kernel.org) caused AR7
    to no longer get as far as init. Fixed my phat fingering.

    Signed-off-by: Alexander Clouter
    To: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/1064/
    Signed-off-by: Ralf Baechle

    Alexander Clouter
     

27 Feb, 2010

8 commits