20 Oct, 2010

2 commits

  • Since we're now using addruart to establish the debug mapping, we can
    remove the io_pg_offst and phys_io members of struct machine_desc.

    The various declarations were removed using the following script:

    grep -rl MACHINE_START arch/arm | xargs \
    sed -i '/MACHINE_START/,/MACHINE_END/ { /\.\(phys_io\|io_pg_offst\)/d }'

    [ Initial patch was from Jeremy Kerr, example script from Russell King ]

    Signed-off-by: Nicolas Pitre
    Acked-by: Eric Miao

    Nicolas Pitre
     
  • Rather than checking the MMU status in every instance of addruart, do it
    once in kernel/debug.S, and change the existing addruart macros to
    return both physical and virtual addresses. The main debug code can then
    select the appropriate address to use.

    This will also allow us to retreive the address of a uart for the MMU
    state that we're not current in.

    Updated with fixes for OMAP from Jason Wang
    and Tony Lindgren , and fix for versatile express from
    Lorenzo Pieralisi .

    Signed-off-by: Jeremy Kerr
    Signed-off-by: Lorenzo Pieralisi
    Signed-off-by: Jason Wang
    Signed-off-by: Tony Lindgren
    Tested-by: Kevin Hilman

    Jeremy Kerr
     

07 Aug, 2010

1 commit


05 Aug, 2010

1 commit


04 Aug, 2010

1 commit


19 Jul, 2010

1 commit


16 Jul, 2010

2 commits


25 May, 2010

1 commit

  • arch/arm/mach-sa1100/leds.c:21: ERROR: code indent should use tabs where possible
    arch/arm/mach-sa1100/leds.c:21: WARNING: please, no space before tabs
    arch/arm/mach-sa1100/leds.c:22: ERROR: code indent should use tabs where possible
    arch/arm/mach-sa1100/leds.c:22: WARNING: please, no space before tabs
    arch/arm/mach-sa1100/leds.c:24: ERROR: code indent should use tabs where possible
    arch/arm/mach-sa1100/leds.c:24: WARNING: please, no space before tabs

    Signed-off-by: Andrea Gelmini
    Signed-off-by: Russell King

    Andrea Gelmini
     

01 May, 2010

2 commits


30 Mar, 2010

1 commit

  • …it slab.h inclusion from percpu.h

    percpu.h is included by sched.h and module.h and thus ends up being
    included when building most .c files. percpu.h includes slab.h which
    in turn includes gfp.h making everything defined by the two files
    universally available and complicating inclusion dependencies.

    percpu.h -> slab.h dependency is about to be removed. Prepare for
    this change by updating users of gfp and slab facilities include those
    headers directly instead of assuming availability. As this conversion
    needs to touch large number of source files, the following script is
    used as the basis of conversion.

    http://userweb.kernel.org/~tj/misc/slabh-sweep.py

    The script does the followings.

    * Scan files for gfp and slab usages and update includes such that
    only the necessary includes are there. ie. if only gfp is used,
    gfp.h, if slab is used, slab.h.

    * When the script inserts a new include, it looks at the include
    blocks and try to put the new include such that its order conforms
    to its surrounding. It's put in the include block which contains
    core kernel includes, in the same order that the rest are ordered -
    alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
    doesn't seem to be any matching order.

    * If the script can't find a place to put a new include (mostly
    because the file doesn't have fitting include block), it prints out
    an error message indicating which .h file needs to be added to the
    file.

    The conversion was done in the following steps.

    1. The initial automatic conversion of all .c files updated slightly
    over 4000 files, deleting around 700 includes and adding ~480 gfp.h
    and ~3000 slab.h inclusions. The script emitted errors for ~400
    files.

    2. Each error was manually checked. Some didn't need the inclusion,
    some needed manual addition while adding it to implementation .h or
    embedding .c file was more appropriate for others. This step added
    inclusions to around 150 files.

    3. The script was run again and the output was compared to the edits
    from #2 to make sure no file was left behind.

    4. Several build tests were done and a couple of problems were fixed.
    e.g. lib/decompress_*.c used malloc/free() wrappers around slab
    APIs requiring slab.h to be added manually.

    5. The script was run on all .h files but without automatically
    editing them as sprinkling gfp.h and slab.h inclusions around .h
    files could easily lead to inclusion dependency hell. Most gfp.h
    inclusion directives were ignored as stuff from gfp.h was usually
    wildly available and often used in preprocessor macros. Each
    slab.h inclusion directive was examined and added manually as
    necessary.

    6. percpu.h was updated not to include slab.h.

    7. Build test were done on the following configurations and failures
    were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
    distributed build env didn't work with gcov compiles) and a few
    more options had to be turned off depending on archs to make things
    build (like ipr on powerpc/64 which failed due to missing writeq).

    * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
    * powerpc and powerpc64 SMP allmodconfig
    * sparc and sparc64 SMP allmodconfig
    * ia64 SMP allmodconfig
    * s390 SMP allmodconfig
    * alpha SMP allmodconfig
    * um on x86_64 SMP allmodconfig

    8. percpu.h modifications were reverted so that it could be applied as
    a separate patch and serve as bisection point.

    Given the fact that I had only a couple of failures from tests on step
    6, I'm fairly confident about the coverage of this conversion patch.
    If there is a breakage, it's likely to be something in one of the arch
    headers which should be easily discoverable easily on most builds of
    the specific arch.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

    Tejun Heo
     

13 Mar, 2010

1 commit

  • * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (370 commits)
    ARM: S3C2443: Add set_rate and round_rate calls for armdiv clock
    ARM: S3C2443: Remove #if 0 for clk_mpll
    ARM: S3C2443: Update notes on MPLLREF clock
    ARM: S3C2443: Further clksrc-clk conversions
    ARM: S3C2443: Change to using plat-samsung clksrc-clk implementation
    USB: Fix s3c-hsotg build following Samsung platform header moves
    ARM: S3C64XX: Reintroduce unconditional build of audio device
    ARM: 5961/1: ux500: fix CLKRST addresses
    ARM: 5977/1: arm: Enable backtrace printing on oops when PC is corrupted
    ASoC: Fix S3C64xx IIS driver for Samsung header reorg
    ARM: S3C2440: Fix plat-s3c24xx move of s3c2440/s3c2442 support
    [ARM] pxa: fix typo in mxm8x10.h
    [ARM] pxa/raumfeld: set GPIO drive bits for LED pins
    [ARM] pxa/zeus: Add support for mcp2515 CAN bus
    [ARM] pxa/zeus: Add support for onboard max6369 watchdog
    [ARM] pxa/zeus: Add Eurotech as the manufacturer
    [ARM] pxa/zeus: Correct the USB host initialisation flags
    [ARM] pxa/zeus: Allow usage of 8250-compatible UART in uncompress
    [ARM] pxa: refactor uncompress.h for non-PXA uarts
    [ARM] mmp2: fix incorrect calling of chip->mask_ack() for 2nd level cascaded IRQs
    ...

    Linus Torvalds
     

09 Mar, 2010

1 commit


08 Mar, 2010

1 commit

  • A pointer to a probe callback is passed to the core via
    platform_driver_register and so the function must not disappear when the
    .init sections are discarded. Otherwise (if also having HOTPLUG=y)
    unbinding and binding a device to the driver via sysfs will result in an
    oops as does a device being registered late.

    An alternative to this patch is using platform_driver_probe instead of
    platform_driver_register plus removing the pointer to the probe function
    from the struct platform_driver.

    Signed-off-by: Uwe Kleine-König
    Cc: Andrew Morton
    Cc: Ben Dooks
    Cc: Dmitry Baryshkov
    Cc: Eric Miao
    Cc: Liam Girdwood
    Cc: Paul Sokolovsky
    Cc: Richard Purdie
    Cc: Russell King
    Acked-by: Arnaud Patard
    Acked-by: Dmitry Eremin-Solenikov
    Acked-by: Kristoffer Ericson
    Signed-off-by: Greg Kroah-Hartman

    Uwe Kleine-König
     

02 Mar, 2010

5 commits


26 Feb, 2010

1 commit


16 Feb, 2010

1 commit


13 Feb, 2010

1 commit

  • Otherwise more complicated uart configuration won't be possible.
    We can use r1 for tmp register for both head.S and debug.S.

    NOTE: This patch depends on another patch to add the the tmp register
    into all debug-macro.S files. That can be done with:

    $ sed -i -e "s/addruart,rx|addruart, rx/addruart, rx, tmp/"
    arch/arm/*/include/*/debug-macro.S

    Signed-off-by: Tony Lindgren
    Signed-off-by: Russell King

    Tony Lindgren
     

23 Jan, 2010

1 commit


14 Dec, 2009

1 commit

  • Fix:

    arch/arm/mach-sa1100/generic.c:117: error: redefinition of 'cpufreq_get'
    include/linux/cpufreq.h:299: error: previous definition of 'cpufreq_get' was here

    cpufreq_get() is used on these platforms to tell drivers what the CPU
    frequency is, and therefore the bus frequency - which is critical for
    setting the PCMCIA and LCD timings. Adding ifdefs to these drivers to
    select cpufreq_get() or some other interface adds confusion. Making
    these drivers use some other interface for the normal paths and cpufreq
    stuff for the cpufreq notifier is insane as well.

    (Why x86 can't provide a version of cpufreq_get() which returns the
    CPU frequency when CPUFREQ is disabled is beyond me, rather than
    requiring a dummy zero-returning cpufreq_get(). Especially as they
    do:

    unsigned long khz = cpufreq_get(cpu);
    if (!khz)
    khz = tsc_khz;

    In other words, if CPUFREQ is disabled, get it from tsc_khz - why
    not provide a dummy cpufreq_get() which returns tsc_khz?)

    Signed-off-by: Russell King

    Russell King
     

10 Dec, 2009

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (42 commits)
    tree-wide: fix misspelling of "definition" in comments
    reiserfs: fix misspelling of "journaled"
    doc: Fix a typo in slub.txt.
    inotify: remove superfluous return code check
    hdlc: spelling fix in find_pvc() comment
    doc: fix regulator docs cut-and-pasteism
    mtd: Fix comment in Kconfig
    doc: Fix IRQ chip docs
    tree-wide: fix assorted typos all over the place
    drivers/ata/libata-sff.c: comment spelling fixes
    fix typos/grammos in Documentation/edac.txt
    sysctl: add missing comments
    fs/debugfs/inode.c: fix comment typos
    sgivwfb: Make use of ARRAY_SIZE.
    sky2: fix sky2_link_down copy/paste comment error
    tree-wide: fix typos "couter" -> "counter"
    tree-wide: fix typos "offest" -> "offset"
    fix kerneldoc for set_irq_msi()
    spidev: fix double "of of" in comment
    comment typo fix: sybsystem -> subsystem
    ...

    Linus Torvalds
     

07 Dec, 2009

14 commits