21 Mar, 2014

1 commit

  • The current devfreq_update_status() has the following bugs:
    - If previous frequency doesn't have a valid level, it does an out of bounds
    access into the trans_table and causes memory corruption.
    - When the new frequency doesn't have a valid level, the time spent in the
    new frequency is counted towards the next valid frequency switch instead of
    being ignored.
    - The time spent on the previous frequency is added to the new frequency's
    stats instead of the previous frequency's stats.

    This patch fixes all of this.

    Signed-off-by: Saravana Kannan
    Signed-off-by: MyungJoo Ham

    Saravana Kannan
     

29 Jan, 2014

1 commit


28 Jan, 2014

1 commit

  • Exynos4 devfreq driver uses mach/map.h which is not available on
    multiplatform. Hence disable build on multiplatform for now.
    Without this patch we get the following build errors:
    drivers/devfreq/exynos/exynos4_bus.h:15:22: fatal error: mach/map.h: No such file or directory

    Signed-off-by: Sachin Kamat
    Signed-off-by: Rafael J. Wysocki

    Sachin Kamat
     

24 Jan, 2014

1 commit

  • Pull ARM SoC cleanups from Olof Johansson:
    "This is the branch where we usually queue up cleanup efforts, moving
    drivers out of the architecture directory, header file restructuring,
    etc. Sometimes they tangle with new development so it's hard to keep
    it strictly to cleanups.

    Some of the things included in this branch are:

    * Atmel SAMA5 conversion to common clock
    * Reset framework conversion for tegra platforms
    - Some of this depends on tegra clock driver reworks that are shared
    with Mike Turquette's clk tree.
    * Tegra DMA refactoring, which are shared branches with the DMA tree.
    * Removal of some header files on exynos to prepare for
    multiplatform"

    * tag 'cleanup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (169 commits)
    ARM: mvebu: move Armada 370/XP specific definitions to armada-370-xp.h
    ARM: mvebu: remove prototypes of non-existing functions from common.h
    ARM: mvebu: move ARMADA_XP_MAX_CPUS to armada-370-xp.h
    serial: sh-sci: Rework baud rate calculation
    serial: sh-sci: Compute overrun_bit without using baud rate algo
    serial: sh-sci: Remove unused GPIO request code
    serial: sh-sci: Move overrun_bit and error_mask fields out of pdata
    serial: sh-sci: Support resources passed through platform resources
    serial: sh-sci: Don't check IRQ in verify port operation
    serial: sh-sci: Set the UPF_FIXED_PORT flag
    serial: sh-sci: Remove duplicate interrupt check in verify port op
    serial: sh-sci: Simplify baud rate calculation algorithms
    serial: sh-sci: Remove baud rate calculation algorithm 5
    serial: sh-sci: Sort headers alphabetically
    ARM: EXYNOS: Kill exynos_pm_late_initcall()
    ARM: EXYNOS: Consolidate selection of PM_GENERIC_DOMAINS for Exynos4
    ARM: at91: switch Calao QIL-A9260 board to DT
    clk: at91: fix pmc_clk_ids data type attriubte
    PM / devfreq: use inclusion instead of
    ARM: EXYNOS: remove for exynos
    ...

    Linus Torvalds
     

19 Dec, 2013

4 commits


02 Dec, 2013

1 commit


08 Nov, 2013

1 commit

  • * pm-devfreq:
    PM / devfreq: create_freezable_workqueue() doesn't return an ERR_PTR
    PM / devfreq: Remove duplicate header file inclusion in exynos5_bus.c
    PM / devfreq: Use devm_* APIs in exynos5_bus.c
    PM / devfreq: Remove redundant platform_set_drvdata() in exynos5_bus.c
    PM / devfreq: Fix incorrect usage of IS_ERR_OR_NULL in exynos5_bus.c

    Rafael J. Wysocki
     

28 Oct, 2013

6 commits

  • The create_freezable_workqueue() function returns a NULL on error and
    not an ERR_PTR.

    Signed-off-by: Dan Carpenter
    Signed-off-by: MyungJoo Ham

    Dan Carpenter
     
  • linux/opp.h was included twice.

    Signed-off-by: Sachin Kamat
    Signed-off-by: MyungJoo Ham

    Sachin Kamat
     
  • devm_* APIs are device managed and make clean up and exit codes
    simpler.

    Signed-off-by: Sachin Kamat
    Signed-off-by: MyungJoo Ham

    Sachin Kamat
     
  • Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
    driver is bound) removes the need to set driver data field to
    NULL.

    Signed-off-by: Sachin Kamat
    Acked-by: MyungJoo Ham
    Signed-off-by: MyungJoo Ham

    Sachin Kamat
     
  • platform_device_register_simple does not return NULL.
    Hence NULL check is not required.

    Signed-off-by: Sachin Kamat
    Acked-by: MyungJoo Ham
    Signed-off-by: MyungJoo Ham

    Sachin Kamat
     
  • * pm-cpufreq: (167 commits)
    cpufreq: create per policy rwsem instead of per CPU cpu_policy_rwsem
    intel_pstate: Add Baytrail support
    intel_pstate: Refactor driver to support CPUs with different MSR layouts
    cpufreq: Implement light weight ->target_index() routine
    PM / OPP: rename header to linux/pm_opp.h
    PM / OPP: rename data structures to dev_pm equivalents
    PM / OPP: rename functions to dev_pm_opp*
    cpufreq / governor: Remove fossil comment
    cpufreq: exynos4210: Use the common clock framework to set APLL clock rate
    cpufreq: exynos4x12: Use the common clock framework to set APLL clock rate
    cpufreq: Detect spurious invocations of update_policy_cpu()
    cpufreq: pmac64: enable cpufreq on iMac G5 (iSight) model
    cpufreq: pmac64: provide cpufreq transition latency for older G5 models
    cpufreq: pmac64: speed up frequency switch
    cpufreq: highbank-cpufreq: Enable Midway/ECX-2000
    exynos-cpufreq: fix false return check from "regulator_set_voltage"
    speedstep-centrino: Remove unnecessary braces
    acpi-cpufreq: Add comment under ACPI_ADR_SPACE_SYSTEM_IO case
    cpufreq: arm-big-little: use clk_get instead of clk_get_sys
    cpufreq: exynos: Show a list of available frequencies
    ...

    Conflicts:
    drivers/devfreq/exynos/exynos5_bus.c

    Rafael J. Wysocki
     

26 Oct, 2013

3 commits

  • Since Operating Performance Points (OPP) functions are specific
    to device specific power management, be specific and rename opp.h
    to pm_opp.h

    Reported-by: Randy Dunlap
    Signed-off-by: Nishanth Menon
    Signed-off-by: Rafael J. Wysocki

    Nishanth Menon
     
  • Since Operating Performance Points (OPP) data structures are specific
    to device specific power management, be specific and rename opp_* data
    structures in OPP library with dev_pm_opp_* equivalent.

    Affected structures are:
    struct opp
    enum opp_event

    Minor checkpatch warning resulting of this change was fixed as well.

    Reported-by: Randy Dunlap
    Signed-off-by: Nishanth Menon
    Signed-off-by: Rafael J. Wysocki

    Nishanth Menon
     
  • Since Operating Performance Points (OPP) functions are specific to
    device specific power management, be specific and rename opp_*
    accessors in OPP library with dev_pm_opp_* equivalent.

    Affected functions are:
    opp_get_voltage
    opp_get_freq
    opp_get_opp_count
    opp_find_freq_exact
    opp_find_freq_floor
    opp_find_freq_ceil
    opp_add
    opp_enable
    opp_disable
    opp_get_notifier
    opp_init_cpufreq_table
    opp_free_cpufreq_table

    Reported-by: Randy Dunlap
    Signed-off-by: Nishanth Menon
    Acked-by: Viresh Kumar
    Signed-off-by: Rafael J. Wysocki

    Nishanth Menon
     

17 Oct, 2013

1 commit


20 Aug, 2013

1 commit


04 Jul, 2013

2 commits

  • Merge first patch-bomb from Andrew Morton:
    - various misc bits
    - I'm been patchmonkeying ocfs2 for a while, as Joel and Mark have been
    distracted. There has been quite a bit of activity.
    - About half the MM queue
    - Some backlight bits
    - Various lib/ updates
    - checkpatch updates
    - zillions more little rtc patches
    - ptrace
    - signals
    - exec
    - procfs
    - rapidio
    - nbd
    - aoe
    - pps
    - memstick
    - tools/testing/selftests updates

    * emailed patches from Andrew Morton : (445 commits)
    tools/testing/selftests: don't assume the x bit is set on scripts
    selftests: add .gitignore for kcmp
    selftests: fix clean target in kcmp Makefile
    selftests: add .gitignore for vm
    selftests: add hugetlbfstest
    self-test: fix make clean
    selftests: exit 1 on failure
    kernel/resource.c: remove the unneeded assignment in function __find_resource
    aio: fix wrong comment in aio_complete()
    drivers/w1/slaves/w1_ds2408.c: add magic sequence to disable P0 test mode
    drivers/memstick/host/r592.c: convert to module_pci_driver
    drivers/memstick/host/jmb38x_ms: convert to module_pci_driver
    pps-gpio: add device-tree binding and support
    drivers/pps/clients/pps-gpio.c: convert to module_platform_driver
    drivers/pps/clients/pps-gpio.c: convert to devm_* helpers
    drivers/parport/share.c: use kzalloc
    Documentation/accounting/getdelays.c: avoid strncpy in accounting tool
    aoe: update internal version number to v83
    aoe: update copyright date
    aoe: perform I/O completions in parallel
    ...

    Linus Torvalds
     
  • Calling dev_set_name with a single paramter causes it to be handled as a
    format string. Many callers are passing potentially dynamic string
    content, so use "%s" in those cases to avoid any potential accidents,
    including wrappers like device_create*() and bdi_register().

    Signed-off-by: Kees Cook
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kees Cook
     

03 Jun, 2013

6 commits


29 Jan, 2013

1 commit


22 Jan, 2013

2 commits

  • OPP pointers cannot be expected to be valid beyond the boundary
    of rcu_read_lock and rcu_read_unlock. Unfortunately, the current
    exynos4 busfreq driver does not honor the usage constraint and stores
    the OPP pointer in struct busfreq_data. This could potentially
    become invalid later such as: across devfreq opp change decisions,
    resulting in unpredictable behavior.

    To fix this, we introduce a busfreq specific busfreq_opp_info
    structure which is used to handle OPP information. OPP information
    is de-referenced to voltage and frequency pairs as needed into
    busfreq_opp_info structure and used as needed.

    Signed-off-by: Nishanth Menon
    Signed-off-by: Rafael J. Wysocki

    Nishanth Menon
     
  • OPP pointers are protected by RCU locks, the pointer validity is
    permissible only under the section of rcu_read_lock to rcu_read_unlock

    Add documentation to the effect.

    Signed-off-by: Nishanth Menon
    Signed-off-by: Rafael J. Wysocki

    Nishanth Menon
     

09 Jan, 2013

1 commit


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,
    __devinitconst, 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
     

08 Dec, 2012

1 commit

  • * pm-devfreq: (23 commits)
    PM / devfreq: remove compiler error with module governors (2)
    PM / devfreq: Fix return value in devfreq_remove_governor()
    PM / devfreq: Fix incorrect argument in error message
    PM / devfreq: missing rcu_read_lock() added for find_device_opp()
    PM / devfreq: remove compiler error when a governor is module
    PM / devfreq: exynos4_bus.c: Fixed an alignment of the func call args.
    PM / devfreq: Add sysfs node to expose available governors
    PM / devfreq: allow sysfs governor node to switch governor
    PM / devfreq: governors: add GPL module license and allow module build
    PM / devfreq: map devfreq drivers to governor using name
    PM / devfreq: register governors with devfreq framework
    PM / devfreq: provide hooks for governors to be registered
    PM / devfreq: export update_devfreq
    PM / devfreq: Add sysfs node for representing frequency transition information.
    PM / devfreq: Add sysfs node to expose available frequencies
    PM / devfreq: documentation cleanups for devfreq header
    PM / devfreq: Use devm_* functions in exynos4_bus.c
    PM / devfreq: make devfreq_class static
    PM / devfreq: fix sscanf handling for writable sysfs entries
    PM / devfreq: kernel-doc typo corrections
    ...

    Rafael J. Wysocki
     

29 Nov, 2012

1 commit


26 Nov, 2012

3 commits


20 Nov, 2012

1 commit