13 Nov, 2014

1 commit

  • The only place where the time is invalid is when the ACPI_CSTATE_FFH entry
    method is not set. Otherwise for all the drivers, the time can be correctly
    measured.

    Instead of duplicating the CPUIDLE_FLAG_TIME_VALID flag in all the drivers
    for all the states, just invert the logic by replacing it by the flag
    CPUIDLE_FLAG_TIME_INVALID, hence we can set this flag only for the acpi idle
    driver, remove the former flag from all the drivers and invert the logic with
    this flag in the different governor.

    Signed-off-by: Daniel Lezcano
    Signed-off-by: Rafael J. Wysocki

    Daniel Lezcano
     

30 Oct, 2014

1 commit

  • Resources scif1_resources & scif2_resources overlap. Actual SCIF region
    size is 0x10.

    This is regression from commit d850acf975be ("sh: Declare SCIF register
    base and IRQ as resources")

    Signed-off-by: Andriy Skulysh
    Acked-by: Laurent Pinchart
    Cc: Geert Uytterhoeven
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andriy Skulysh
     

11 Aug, 2014

1 commit

  • Pull slave-dma updates from Vinod Koul:
    "Some notable changes are:
    - new driver for AMBA AXI NBPF by Guennadi
    - new driver for sun6i controller by Maxime
    - pl330 drivers fixes from Lar's
    - sh-dma updates and fixes from Laurent, Geert and Kuninori
    - Documentation updates from Geert
    - drivers fixes and updates spread over dw, edma, freescale, mpc512x
    etc.."

    * 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma: (72 commits)
    dmaengine: sun6i: depends on RESET_CONTROLLER
    dma: at_hdmac: fix invalid remaining bytes detection
    dmaengine: nbpfaxi: don't build this driver where it cannot be used
    dmaengine: nbpf_error_get_channel() can be static
    dma: pl08x: Use correct specifier for size_t values
    dmaengine: Remove the context argument to the prep_dma_cyclic operation
    dmaengine: nbpfaxi: convert to tasklet
    dmaengine: nbpfaxi: fix a theoretical race
    dmaengine: add a driver for AMBA AXI NBPF DMAC IP cores
    dmaengine: add device tree binding documentation for the nbpfaxi driver
    dmaengine: edma: Do not register second device when booted with DT
    dmaengine: edma: Do not change the error code returned from edma_alloc_slot
    dmaengine: rcar-dmac: Add device tree bindings documentation
    dmaengine: shdma: Allocate cyclic sg list dynamically
    dmaengine: shdma: Make channel filter ignore unrelated devices
    dmaengine: sh: Rework Kconfig and Makefile
    dmaengine: sun6i: Fix memory leaks
    dmaengine: sun6i: Free the interrupt before killing the tasklet
    dmaengine: sun6i: Remove switch statement from buswidth convertion routine
    dmaengine: of: kconfig: select DMA_ENGINE when DMA_OF is selected
    ...

    Linus Torvalds
     

07 Aug, 2014

1 commit

  • Fix the device name for the CMT.

    Add clocks called usb0 and usb1 so that r8a66597_hcd works again on the
    ecovec24 board

    Signed-off-by: Daniel Palmer
    Cc: Kuninori Morimoto
    Cc: Richard Weinberger
    Cc: Paul Bolle
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Palmer
     

15 Jul, 2014

1 commit


11 May, 2014

3 commits

  • The MTU2 (Multi-Function Timer Pulse Unit 2) driver implements a new
    style of platform data that handles the timer as a single device with
    multiple channel. Switch from the old-style platform data to the
    new-style platform data.

    Signed-off-by: Laurent Pinchart
    Tested-by: Wolfram Sang
    Signed-off-by: Simon Horman

    Laurent Pinchart
     
  • The TMU (Timer Unit) driver implements a new style of platform data that
    handles the timer as a single device with multiple channel. Switch from
    the old-style platform data to the new-style platform data.

    Signed-off-by: Laurent Pinchart
    Signed-off-by: Simon Horman

    Laurent Pinchart
     
  • The CMT (Compare Match Timer) driver implements a new style of platform
    data that handles the timer as a single device with multiple channel.
    Switch from the old-style platform data to the new-style platform data.

    Signed-off-by: Laurent Pinchart
    Signed-off-by: Simon Horman

    Laurent Pinchart
     

04 Apr, 2014

1 commit


04 Mar, 2014

1 commit

  • Commit bcf24e1daa94 ("mmc: omap_hsmmc: use the generic config for
    omap2plus devices"), enabled the build for other platforms for compile
    testing.

    sh-allmodconfig now fails with:

    include/linux/omap-dma.h:171:8: error: expected identifier before numeric constant
    make[4]: *** [drivers/mmc/host/omap_hsmmc.o] Error 1

    This happens because SuperH #defines "CCR", which is one of the enum
    values in include/linux/omap-dma.h. There's a similar issue with "CCR2"
    on sh2a.

    As "CCR" and "CCR2" are too generic names for global #defines, prefix
    them with "SH_" to fix this.

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     

24 Dec, 2013

3 commits


13 Nov, 2013

1 commit

  • Only a couple of arches (sh/x86) use fpu_counter in task_struct so it can
    be moved out into ARCH specific thread_struct, reducing the size of
    task_struct for other arches.

    Compile tested sh defconfig + sh4-linux-gcc (4.6.3)

    Signed-off-by: Vineet Gupta
    Cc: Paul Mundt
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Vineet Gupta
     

06 Sep, 2013

1 commit

  • Pull networking changes from David Miller:
    "Noteworthy changes this time around:

    1) Multicast rejoin support for team driver, from Jiri Pirko.

    2) Centralize and simplify TCP RTT measurement handling in order to
    reduce the impact of bad RTO seeding from SYN/ACKs. Also, when
    both timestamps and local RTT measurements are available prefer
    the later because there are broken middleware devices which
    scramble the timestamp.

    From Yuchung Cheng.

    3) Add TCP_NOTSENT_LOWAT socket option to limit the amount of kernel
    memory consumed to queue up unsend user data. From Eric Dumazet.

    4) Add a "physical port ID" abstraction for network devices, from
    Jiri Pirko.

    5) Add a "suppress" operation to influence fib_rules lookups, from
    Stefan Tomanek.

    6) Add a networking development FAQ, from Paul Gortmaker.

    7) Extend the information provided by tcp_probe and add ipv6 support,
    from Daniel Borkmann.

    8) Use RCU locking more extensively in openvswitch data paths, from
    Pravin B Shelar.

    9) Add SCTP support to openvswitch, from Joe Stringer.

    10) Add EF10 chip support to SFC driver, from Ben Hutchings.

    11) Add new SYNPROXY netfilter target, from Patrick McHardy.

    12) Compute a rate approximation for sending in TCP sockets, and use
    this to more intelligently coalesce TSO frames. Furthermore, add
    a new packet scheduler which takes advantage of this estimate when
    available. From Eric Dumazet.

    13) Allow AF_PACKET fanouts with random selection, from Daniel
    Borkmann.

    14) Add ipv6 support to vxlan driver, from Cong Wang"

    Resolved conflicts as per discussion.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1218 commits)
    openvswitch: Fix alignment of struct sw_flow_key.
    netfilter: Fix build errors with xt_socket.c
    tcp: Add missing braces to do_tcp_setsockopt
    caif: Add missing braces to multiline if in cfctrl_linkup_request
    bnx2x: Add missing braces in bnx2x:bnx2x_link_initialize
    vxlan: Fix kernel panic on device delete.
    net: mvneta: implement ->ndo_do_ioctl() to support PHY ioctls
    net: mvneta: properly disable HW PHY polling and ensure adjust_link() works
    icplus: Use netif_running to determine device state
    ethernet/arc/arc_emac: Fix huge delays in large file copies
    tuntap: orphan frags before trying to set tx timestamp
    tuntap: purge socket error queue on detach
    qlcnic: use standard NAPI weights
    ipv6:introduce function to find route for redirect
    bnx2x: VF RSS support - VF side
    bnx2x: VF RSS support - PF side
    vxlan: Notify drivers for listening UDP port changes
    net: usbnet: update addr_assign_type if appropriate
    driver/net: enic: update enic maintainers and driver
    driver/net: enic: Exposing symbols for Cisco's low latency driver
    ...

    Linus Torvalds
     

23 Aug, 2013

1 commit


21 Aug, 2013

2 commits

  • Now that the 'register_type' field of the 'sh_eth' driver's platform data is not
    used by the driver anymore, it's time to remove it and its initializers from
    the SH platform code. Also move *enum* declaring values for this field from
    to the local driver's header file as they're only needed
    by the driver itself now...

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: David S. Miller

    Sergei Shtylyov
     
  • The 'sh_eth' driver's probe will crash as the platform code is hopelessly behind
    the platform data -- it passes PHY ID instead of 'struct sh_eth_plat_data *'.
    Strangely, both commit d88a3ea6fa4c (SH7619 add ethernet controler support) that
    added the platform code and commit 71557a37adb5 ([netdrvr] sh_eth: Add SH7619
    support) were done in about the same time, yet the latter one added 'struct
    sh_eth_plat_data' and the platform code didn't ever get updated...

    Add the proper platform data and fix off-by-one memory resource end error, while
    at it...

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: David S. Miller

    Sergei Shtylyov
     

12 Aug, 2013

1 commit

  • arch/sh/kernel/cpu/shmobile/cpuidle.c: In function 'sh_mobile_setup_cpuidle':
    arch/sh/kernel/cpu/shmobile/cpuidle.c:102:2: error: too few arguments to function 'cpuidle_register'
    include/linux/cpuidle.h:129:12: note: declared here
    arch/sh/kernel/cpu/shmobile/cpuidle.c:94:6: warning: unused variable 'ret' [-Wunused-variable]

    Add the missing parameter, and remove the unused variable.

    Both introduced by commit b181a3b03f866776211f22390c185c4da1dc45ff ("SH:
    cpuidle: use init/exit common routine").

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Daniel Lezcano

    Geert Uytterhoeven
     

15 Jul, 2013

1 commit

  • 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)
    are flagged as __cpuinit -- so if we remove the __cpuinit from
    arch specific callers, we will also get section mismatch warnings.
    As an intermediate step, we intend to turn the linux/init.h cpuinit
    content into no-ops as early as possible, since that will get rid
    of these warnings. In any case, they are temporary and harmless.

    This removes all the arch/sh uses of the __cpuinit macros from
    all C files. Currently sh does not have any __CPUINIT used in
    assembly files.

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

    Cc: Paul Mundt
    Cc: linux-sh@vger.kernel.org
    Signed-off-by: Paul Gortmaker

    Paul Gortmaker
     

08 Jun, 2013

3 commits

  • Get the SH7724 code/data in the driver out of #ifdef by adding "r8a7724-ether"
    to the platform driver's ID table. Change the Ether platform device's name in
    the SH platform code accordingly.

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: David S. Miller

    Sergei Shtylyov
     
  • Get the SH77{34|63} specific code/data in the driver out of #ifdef by adding
    "sh7734-gether" and "sh7763-gether" to the platform driver's ID table. Note
    that we have to split the 'struct sh_eth_cpu_data' instance into two due to
    #ifdef inside it; note that we can kill the duplicate sh_eth_set_rate_gether().
    Change the GEther platform device's name in the SH platform code accordingly.

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: David S. Miller

    Sergei Shtylyov
     
  • Get the SH7619 data in the driver out of #ifdef by adding "sh7619-ether" to the
    platform driver's ID table. Change the Ether platform device's name in the SH
    platform code accordingly.

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: David S. Miller

    Sergei Shtylyov
     

10 May, 2013

1 commit

  • Pull removal of GENERIC_GPIO from Grant Likely:
    "GENERIC_GPIO now synonymous with GPIOLIB. There are no longer any
    valid cases for enableing GENERIC_GPIO without GPIOLIB, even though it
    is possible to do so which has been causing confusion and breakage.
    This branch does the work to completely eliminate GENERIC_GPIO."

    * tag 'gpio-for-linus' of git://git.secretlab.ca/git/linux:
    gpio: update gpio Chinese documentation
    Remove GENERIC_GPIO config option
    Convert selectors of GENERIC_GPIO to GPIOLIB
    blackfin: force use of gpiolib
    m68k: coldfire: use gpiolib
    mips: pnx833x: remove requirement for GENERIC_GPIO
    openrisc: default GENERIC_GPIO to false
    avr32: default GENERIC_GPIO to false
    xtensa: remove explicit selection of GENERIC_GPIO
    sh: replace CONFIG_GENERIC_GPIO by CONFIG_GPIOLIB
    powerpc: remove redundant GENERIC_GPIO selection
    unicore32: default GENERIC_GPIO to false
    unicore32: remove unneeded select GENERIC_GPIO
    arm: plat-orion: use GPIO driver on CONFIG_GPIOLIB
    arm: remove redundant GENERIC_GPIO selection
    mips: alchemy: require gpiolib
    mips: txx9: change GENERIC_GPIO to GPIOLIB
    mips: loongson: use GPIO driver on CONFIG_GPIOLIB
    mips: remove redundant GENERIC_GPIO select

    Linus Torvalds
     

08 May, 2013

1 commit

  • Pull ARM SoC platform updates (part 2) from Arnd Bergmann:
    "These patches are all for Renesas shmobile, and depend on the earlier
    pinctrl updates. Remarkably, this adds support for three new SoCs:
    r8a73a4, r8a73a4 and r8a7778. The bulk of the code added for these is
    for pinctrl (using the new subsystem) and for clocks (not yet using
    the common clock subsystem). The latter will have to get converted in
    one of the upcoming releases, but shmobile is not ready for that yet.

    The series also contains Renesas shmobile board changes, adding one
    board file for each of the three new SoCs. These boards are using a
    mix of classic and device-tree based probing, as there is still a lot
    of infrastructure in shmobile that has not been converted to DT yet.
    Once those are resolved to the degree that no board specific setup
    code is needed, they can get folded into the respective SoC setup files."

    * tag 'soc-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (78 commits)
    ARM: shmobile: use r8a7790 timer setup code on Lager
    ARM: shmobile: force enable of r8a7790 arch timer
    ARM: shmobile: Add second I/O range for r8a7790 PFC
    ARM: shmobile: bockw: enable network settings on bootargs
    ARM: shmobile: bockw: add SMSC ethernet support
    ARM: shmobile: R8A7778: add Ether support
    ARM: shmobile: bockw: enable SMSC ethernet on defconfig
    ARM: shmobile: r8a7778: add r8a7778_init_irq_extpin()
    ARM: shmobile: r8a7778: remove pointless PLATFORM_INFO()
    ARM: shmobile: mackerel: clean up MMCIF vs. SDHI1 selection
    ARM: shmobile: mackerel: add interrupt names for SDHI0
    ARM: shmobile: mackerel: switch SDHI and MMCIF interfaces to slot-gpio
    ARM: shmobile: mackerel: remove OCR masks, where regulators are used
    ARM: shmobile: mackerel: SDHI resources do not have to be numbered
    ARM: shmobile: Initial r8a7790 Lager board support
    ARM: shmobile: APE6EVM LAN9220 support
    ARM: shmobile: APE6EVM PFC support
    ARM: shmobile: APE6EVM base support
    ARM: shmobile: kzm9g-reference: add ethernet support
    ARM: shmobile: add R-Car M1A Bock-W platform support
    ...

    Linus Torvalds
     

05 May, 2013

1 commit

  • Pull ARM SoC pinctrl changes for Renesas from Olof Johansson:
    "This is yet another driver change, which is split out just because of
    its size. As already in 3.9, a lot of changes are going on here, as
    the shmobile platform gets converted from its own pin control API to
    the generic drivers/pinctrl subsystem.

    Based on agreements with Paul Mundt, we are merging the sh-arch-side
    changes here as well"

    * tag 'renesas-pinctrl-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (142 commits)
    ARM: shmobile: r8a7779: Remove INTC function GPIOs
    ARM: shmobile: r8a7779: Remove LBSC function GPIOs
    ARM: shmobile: r8a7779: Remove USB function GPIOs
    ARM: shmobile: r8a7779: Remove HSPI function GPIOs
    ARM: shmobile: r8a7779: Remove SCIF function GPIOs
    ARM: shmobile: r8a7779: Remove SDHI and MMCIF function GPIOs
    ARM: shmobile: r8a7779: Remove DU function GPIOs
    ARM: shmobile: r8a7779: Remove DU1_DOTCLKOUT1 GPIO
    ARM: shmobile: r8a7740: Remove SDHI and MMCIF function GPIOs
    ARM: shmobile: r8a7740: Remove LCD0 and LCD1 function GPIOs
    ARM: shmobile: sh73a0: Remove IrDA function GPIOs
    ARM: shmobile: sh73a0: Remove USB function GPIOs
    ARM: shmobile: sh73a0: Remove BSC function GPIOs
    ARM: shmobile: sh73a0: Remove KEYSC function GPIOs
    ARM: shmobile: sh73a0: Remove pull-up function GPIOS
    ARM: shmobile: sh73a0: Remove FSI function GPIOs
    ARM: shmobile: sh73a0: Remove I2C function GPIOs
    ARM: shmobile: sh73a0: Remove SCIFA and SCIFB function GPIOs
    ARM: shmobile: sh73a0: Remove LCDC and LCDC2 function GPIOs
    ARM: shmobile: sh7372: Remove SDHI and MMCIF function GPIOs
    ...

    Linus Torvalds
     

24 Apr, 2013

1 commit


23 Apr, 2013

1 commit

  • The en_core_tk_irqen flag is set in all the cpuidle driver which
    means it is not necessary to specify this flag.

    Remove the flag and the code related to it.

    Signed-off-by: Daniel Lezcano
    Acked-by: Kevin Hilman # for mach-omap2/*
    Signed-off-by: Rafael J. Wysocki

    Daniel Lezcano
     

22 Apr, 2013

4 commits


02 Apr, 2013

1 commit


20 Mar, 2013

1 commit

  • SH GPIO drivers all use gpiolib and CONFIG_GENERIC_GPIO is only selected
    through CONFIG_GPIOLIB, yet some compilation units depended on
    CONFIG_GENERIC_GPIO. Make them depend on CONFIG_GPIOLIB instead since it
    is more accurate and prepares us for the future removal of
    CONFIG_GENERIC_GPIO.

    Signed-off-by: Alexandre Courbot
    Acked-by: Paul Mundt
    Acked-by: Arnd Bergmann
    Acked-by: Linus Walleij

    Alexandre Courbot
     

15 Mar, 2013

6 commits

  • Add memory resources for the pin control platform device to let the
    sh-pfc driver ioremap() registers properly instead of evily casting
    register physical addresses to virtual addresses.

    The memory resource address range has been extracted from the config and
    data registes lists in the sh-pfc driver.

    Signed-off-by: Laurent Pinchart

    Laurent Pinchart
     
  • Add memory resources for the pin control platform device to let the
    sh-pfc driver ioremap() registers properly instead of evily casting
    register physical addresses to virtual addresses.

    The memory resource address range has been extracted from the config and
    data registes lists in the sh-pfc driver.

    Signed-off-by: Laurent Pinchart

    Laurent Pinchart
     
  • Add memory resources for the pin control platform device to let the
    sh-pfc driver ioremap() registers properly instead of evily casting
    register physical addresses to virtual addresses.

    The memory resource address range has been extracted from the config and
    data registes lists in the sh-pfc driver.

    Signed-off-by: Laurent Pinchart

    Laurent Pinchart
     
  • Add memory resources for the pin control platform device to let the
    sh-pfc driver ioremap() registers properly instead of evily casting
    register physical addresses to virtual addresses.

    The memory resource address range has been extracted from the config and
    data registes lists in the sh-pfc driver.

    Signed-off-by: Laurent Pinchart

    Laurent Pinchart
     
  • Add memory resources for the pin control platform device to let the
    sh-pfc driver ioremap() registers properly instead of evily casting
    register physical addresses to virtual addresses.

    The memory resource address range has been extracted from the config and
    data registes lists in the sh-pfc driver.

    Signed-off-by: Laurent Pinchart

    Laurent Pinchart
     
  • Add memory resources for the pin control platform device to let the
    sh-pfc driver ioremap() registers properly instead of evily casting
    register physical addresses to virtual addresses.

    The memory resource address range has been extracted from the config and
    data registes lists in the sh-pfc driver.

    Signed-off-by: Laurent Pinchart

    Laurent Pinchart