21 Nov, 2011

2 commits

  • * 'fixes' of http://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm:
    ARM: wire up process_vm_writev and process_vm_readv syscalls
    ARM: 7160/1: setup: avoid overflowing {elf,arch}_name from proc_info_list
    ARM: 7158/1: add new MFP implement for NUC900
    ARM: 7157/1: fix a building WARNING for nuc900
    ARM: 7156/1: l2x0: fix compile error on !CONFIG_USE_OF
    ARM: 7155/1: arch.h: Declare 'pt_regs' locally
    ARM: 7154/1: mach-bcmring: fix build error in dma.c
    ARM: 7153/1: mach-bcmring: fix build error in core.c
    ARM: 7152/1: distclean: Remove generated .dtb files
    ARM: 7150/1: Allow kernel unaligned accesses on ARMv6+ processors
    ARM: 7149/1: spi/pl022: Enable clock in probe
    Revert "ARM: 7098/1: kdump: copy kernel relocation code at the kexec prepare stage"

    Linus Torvalds
     
  • * 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    PM / Suspend: Fix bug in suspend statistics update
    PM / Hibernate: Fix the early termination of test modes
    PM / shmobile: Fix build of sh7372_pm_init() for CONFIG_PM unset
    PM Sleep: Do not extend wakeup paths to devices with ignore_children set
    PM / driver core: disable device's runtime PM during shutdown
    PM / devfreq: correct Kconfig dependency
    PM / devfreq: fix use after free in devfreq_remove_device
    PM / shmobile: Avoid restoring the INTCS state during initialization
    PM / devfreq: Remove compiler error after irq.h update
    PM / QoS: Properly use the WARN() macro in dev_pm_qos_add_request()
    PM / Clocks: Only disable enabled clocks in pm_clk_suspend()
    ARM: mach-shmobile: sh7372 A3SP no_suspend_console fix
    PM / shmobile: Don't skip debugging output in pd_power_up()

    Linus Torvalds
     

18 Nov, 2011

2 commits


15 Nov, 2011

1 commit

  • The SH7372 PM domain initialization routine calls pd_power_up()
    that executes the domain's .resume() callback, if present, and for
    the A4R domain this callback attepmts to restore the INTCS state from
    uninitialized data. To avoid that, introduce __pd_power_up() that
    will only execute the domain's .resume() callback if its second
    argument is 'true' and make the SH7372 PM domain initialization
    use it with 'false' as its second argument. Redefine pd_power_up()
    as a wrapper around __pd_power_up().

    Reported-by: Guennadi Liakhovetski
    Tracked-down-by: Magnus Damm
    Signed-off-by: Rafael J. Wysocki
    Acked-by: Magnus Damm

    Rafael J. Wysocki
     

14 Nov, 2011

2 commits

  • * 'rmobile-fixes-for-linus' of git://github.com/pmundt/linux-sh:
    ARM: mach-shmobile: cpuidle single/global and last_state fixes
    ARM: mach-shmobile: move helper macro PORTCR to sh_pfc.h
    ARM: mach-shmobile: move helper macro PORT_xx to sh_pfc.h
    ARM: mach-shmobile: move helper macro PORT_DATA_xx to sh_pfc.h
    ARM: mach-shmobile: ap4evb: remove white space from end of line
    ARM: mach-shmobile: clock-sh7372: remove un-necessary index
    ARM: mach-shmobile: kota2: add comment out separator
    ARM: mach-shmobile: sh73a0: add MMC data pin pull-up

    Linus Torvalds
     
  • * 'sh-fixes-for-linus' of git://github.com/pmundt/linux-sh:
    mailmap: Fix up some renesas attributions
    sh: clkfwk: Kill off remaining debugfs cruft.
    drivers: sh: Kill off dead pathname for runtime PM stub.
    drivers: sh: Generalize runtime PM platform stub.
    sh: Wire up process_vm syscalls.
    sh: clkfwk: add clk_rate_mult_range_round()
    serial: sh-sci: Fix up SH-2A SCIF support.
    sh: Fix cached/uncaced address calculation in 29bit mode

    Linus Torvalds
     

12 Nov, 2011

6 commits


11 Nov, 2011

13 commits

  • The following error is seen in some case when mounting rootfs from
    SD/MMC cards.

    Waiting for root device /dev/mmcblk0p1...
    mmc1: host does not support reading read-only switch. assuming write-enable.
    mmc1: new high speed SDHC card at address b368
    mmcblk0: mmc1:b368 SDC 3.74 GiB
    mmcblk0: p1
    mmc1: Timeout waiting for hardware interrupt.
    mmcblk0: error -110 transferring data, sector 3678224, nr 40, cmd response 0x900, card status 0xc00
    end_request: I/O error, dev mmcblk0, sector 3678225
    Buffer I/O error on device mmcblk0p1, logical block 458754
    lost page write due to I/O error on mmcblk0p1

    This patch fixes the problem by lowering the usdhc clock and correcting
    watermark configuration.

    Signed-off-by: Shawn Guo
    Cc: Chris Ball
    Cc: Sascha Hauer
    Signed-off-by: Sascha Hauer

    Shawn Guo
     
  • The AUTO_ZRELADDR selection for ARCH_IMX_V4_V5 and ARCH_MX5 should
    really be mutually exclusive to ZBOOT_ROM just like what ARCH_IMX_V6_V7
    does.

    Signed-off-by: Shawn Guo
    Cc: Sascha Hauer
    Signed-off-by: Sascha Hauer

    Shawn Guo
     
  • The config symbol ARCH_MX3 has been removed by commit 'a89cf59
    arm/imx: merge i.MX3 and i.MX6', and it should not be referenced
    any more.

    The patch also change ARCH_MX* to SOC_IMX* for other platforms.

    Signed-off-by: Shawn Guo
    Cc: Sascha Hauer
    Signed-off-by: Sascha Hauer

    Shawn Guo
     
  • Signed-off-by: Richard Zhao
    Signed-off-by: Sascha Hauer

    Richard Zhao
     
  • The following commits break cpuidle on SH-Mobile ARM:

    46bcfad cpuidle: Single/Global registration of idle states
    e978aa7 cpuidle: Move dev->last_residency update to driver enter routine; remove dev->last_state

    This patch remedies these issues by up-porting the SH-Mobile
    code to fit with the above introduced framework changes.

    It is worth noting that the new code becomes significantly cleaner,
    so these framework changes are very welcome. At the same time this
    breakage could probably have been avoided by grepping for "last_state"
    and "cpuidle_register_driver".

    Signed-off-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • Signed-off-by: Kuninori Morimoto
    Signed-off-by: Paul Mundt

    Kuninori Morimoto
     
  • This patch moves PORT_xx helper macro to sh_pfc.h,
    and it expects CPU_ALL_PORT() macro for each CPU

    Signed-off-by: Kuninori Morimoto
    Signed-off-by: Paul Mundt

    Kuninori Morimoto
     
  • This patch move PORT_DATA_xx helper macro to sh_pfc.h.
    and pfc-sh7372.c used it

    Signed-off-by: Kuninori Morimoto
    Signed-off-by: Paul Mundt

    Kuninori Morimoto
     
  • Signed-off-by: Kuninori Morimoto
    Signed-off-by: Paul Mundt

    Kuninori Morimoto
     
  • it is not necessary to have sh7372_xxxx index on static variable

    Signed-off-by: Kuninori Morimoto
    Signed-off-by: Paul Mundt

    Kuninori Morimoto
     
  • Signed-off-by: Kuninori Morimoto
    Signed-off-by: Paul Mundt

    Kuninori Morimoto
     
  • This patch adds MMC data pin pull-up option for pfc-sh73a0.c,
    and select it on ag5evm board.
    The MMC read/write will be error without this patch.

    Cc: Takashi YOSHII
    Tested-by: Simon Horman
    Signed-off-by: Kuninori Morimoto
    Signed-off-by: Paul Mundt

    Kuninori Morimoto
     
  • The runtime PM platform support stub in use by ARM-based SH/R-Mobile
    platforms contains nothing that's specifically ARM-related and instead of
    wholly generic to anything using the clock framework.

    The recent runtime PM changes interact rather badly with the lazy
    disabling of clocks late in the boot process through the clock framework,
    leading to situations where the runtime suspend/resume paths are entered
    without a clock being actively driven due to having been lazily gated
    off.

    In order to correct this we can trivially tie in the aforementioned stub
    as a general fallback for all SH platforms that don't presently have
    their own runtime PM implementations (the corner case being SH-based
    SH-Mobile platforms, which have their own stub through the hwblk API --
    which in turn has bitrotted and will be subsequently adapted to use the
    same stub as everyone else), regardless of whether the platforms choose
    to define power domains of their own or not.

    This fixes up regressions for clock framework users who also build in
    runtime PM support without any specific power domains of their own, which
    was previously causing the serial console to be lost when warring with
    lazy clock disabling.

    Signed-off-by: Paul Mundt

    Paul Mundt
     

10 Nov, 2011

12 commits

  • Olof Johansson
     
  • If "no_suspend_irq" is used on the sh7372 Mackerel board
    with v3.2-rc1 then Suspend-to-RAM fails because the serial
    console tries to write to the SCIF driver even though the
    power domain is turned off.

    This patch checks the state of "console_suspend_enabled"
    to see if A3SP should be forced enabled.

    Signed-off-by: Magnus Damm
    Signed-off-by: Rafael J. Wysocki

    Magnus Damm
     
  • Don't skip debugging output upon earlier loop termination in pd_power_up().

    Signed-off-by: Guennadi Liakhovetski
    Acked-by: Magnus Damm
    Signed-off-by: Rafael J. Wysocki

    Guennadi Liakhovetski
     
  • Fix the following warning when building imx_v4_v5_defconfig target:

    CC arch/arm/mach-imx/mach-imx27ipcam.o
    In file included from arch/arm/mach-imx/mach-imx27ipcam.c:18:
    /home/fabio/linus/linux-2.6/arch/arm/include/asm/mach/arch.h:47: warning: 'struct pt_regs' declared inside parameter list
    /home/fabio/linus/linux-2.6/arch/arm/include/asm/mach/arch.h:47: warning: its scope is only this definition or declaration, which is probably not what you want
    arch/arm/mach-imx/mach-imx27ipcam.c:78: warning: initialization from incompatible pointer type

    Declare 'struct pt_regs' locally.

    Cc: Eric Miao
    Signed-off-by: Fabio Estevam
    Signed-off-by: Russell King

    Fabio Estevam
     
  • Fixes this build error:

    CC arch/arm/mach-bcmring/dma.o
    arch/arm/mach-bcmring/dma.c: In function 'dma_request_channel_dbg':
    arch/arm/mach-bcmring/dma.c:1022: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
    arch/arm/mach-bcmring/dma.c:1022: error: (Each undeclared identifier is reported only once
    arch/arm/mach-bcmring/dma.c:1022: error: for each function it appears in.)
    arch/arm/mach-bcmring/dma.c:1024: error: implicit declaration of function 'schedule'
    arch/arm/mach-bcmring/dma.c:1027: error: implicit declaration of function 'signal_pending'
    arch/arm/mach-bcmring/dma.c: In function 'dma_free_channel':
    arch/arm/mach-bcmring/dma.c:1092: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
    arch/arm/mach-bcmring/dma.c: In function 'dma_map_add_region':
    arch/arm/mach-bcmring/dma.c:1946: error: dereferencing pointer to incomplete type
    arch/arm/mach-bcmring/dma.c:1948: error: dereferencing pointer to incomplete type
    arch/arm/mach-bcmring/dma.c:1955: error: dereferencing pointer to incomplete type
    make[1]: *** [arch/arm/mach-bcmring/dma.o] Error 1
    make: *** [arch/arm/mach-bcmring] Error 2

    Signed-off-by: Maxin B. John
    Reviewed-by: Jiandong Zheng
    Signed-off-by: Russell King

    Maxin B. John
     
  • Fixes this build error:

    CC arch/arm/mach-bcmring/core.o
    arch/arm/mach-bcmring/core.c: In function 'bcmring_init_timer':
    arch/arm/mach-bcmring/core.c:238: error: implicit declaration of function 'sp804_clockevents_register'
    make[1]: *** [arch/arm/mach-bcmring/core.o] Error 1
    make: *** [arch/arm/mach-bcmring] Error 2

    Signed-off-by: Maxin B. John
    Reviewed-by: Jiandong Zheng
    Signed-off-by: Russell King

    Maxin B. John
     
  • Olof Johansson
     
  • Enable the headphone detection gpio on tegra platform.

    Signed-off-by: Yufeng Shen
    Acked-by: Stephen Warren
    Signed-off-by: Olof Johansson

    Yufeng Shen
     
  • Ventana uses the same SDHCI GPIOs as Seaboard; PI6 (70) is the power GPIO
    for the SD port, and there is no power GPIO for the MMC chip.

    Signed-off-by: Stephen Warren
    Signed-off-by: Olof Johansson

    Stephen Warren
     
  • *_pinmux_init() register the GPIO and pinmux devices so that they're ready
    before any other device needs them.

    *_pinmux_init() are also called by board-dt.c in order to set up the GPIO
    and pinmux configurations. In this case, if we register the devices, they
    end up being probed once due to this registration, and a second time due
    to a device-tree node (or vice-versa). The second probe fails since the
    memory regions are already requested. Besides, we don't actually want the
    duplicated devices.

    To avoid this duplicate registration, modify *_pinmux_init() to check
    whether it's running on a DT machine. If not, register the pinmux devices.
    If so, don't register them.

    Finally, modify board-dt.c to call the *_pinmux_init() after all devices have
    been instantiated from device-tree. This allows the GPIO and pinmux devices
    to be instantiated and initialized before calling functions to configure the
    hardware.

    This has one disadvantage: The pinmux and GPIO initialization now happens
    after /all/ devices are instantiated, rather than after just gpio and
    pinmux but before anything else. So the correct HW configuration is not
    in place when e.g. the SD/MMC device is probed. Long-term, this should be
    solved by doing both:

    a) Initializing the HW state from DT nodes during GPIO and pinmux device
    probe.
    b) Using the deferred driver probe mechanism, so that drivers can defer
    their probe until after the gpio and pinmux drivers have probed.

    v2: s/int is_dt/bool is_dt/
    v3: Use of_machine_is_compatible inside *_pinmux_init() rather than passing
    an explicit parameter into the function from outside.

    Signed-off-by: Stephen Warren
    Signed-off-by: Olof Johansson

    Stephen Warren
     
  • Olof Johansson
     
  • Olof Johansson
     

09 Nov, 2011

2 commits