02 Jun, 2016
29 commits
-
Open-code samsung_cmu_register_one() calls for CMU_APOLLO and
CMU_ATLAS setup code as a preparation for adding CPU clocks
support for Exynos5433.There should be no functional change resulting from this patch.
Cc: Kukjin Kim
CC: Krzysztof Kozlowski
Signed-off-by: Bartlomiej Zolnierkiewicz
Signed-off-by: Sylwester Nawrocki -
Although unbinding a driver requires root privileges but it still might
be used theoretically in certain attacks (by triggering NULL pointer
exception or memory corruption if driver does not provide proper remove
callbacks or core does not handle it).Samsung clock drivers are essential for system operation so their
removal is not expected. More over, the Exynos3250 ISP clock driver does
not implement remove() driver callback and it is not buildable as
modules.Suppress the unbind interface for Exynos3250 ISP and S3C2410 DCLK clock
drivers.Suggested-by: Marek Szyprowski
Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
The aclk333 clock needs to be ungated during the MFC power domain switch,
so set the clock ID to allow the Exynos power domain logic to lookup this
clock if is defined in the MFC PD device tree node.Signed-off-by: Javier Martinez Canillas
Reviewed-by: Krzysztof Kozlowski
Tested-by: Marek Szyprowski
Signed-off-by: Sylwester Nawrocki -
Add clock for TMU to the Exynos5410 clock driver.
Signed-off-by: Krzysztof Kozlowski
Reviewed-by: Javier Martinez Canillas
Signed-off-by: Sylwester Nawrocki -
Add clocks for I2C, USI (HSI2C) and RTC to the Exynos5410 clock driver.
Signed-off-by: Krzysztof Kozlowski
Reviewed-by: Javier Martinez Canillas
Acked-by: Stephen Boyd
Signed-off-by: Sylwester Nawrocki -
Just like other Exynos5 family SoCs, this one has four UARTs. Add
missing UART3 clocks to the Exynos5410 clock driver.Add clocks for USB and PWM.
Signed-off-by: Krzysztof Kozlowski
Acked-by: Stephen Boyd
Reviewed-by: Javier Martinez Canillas
Signed-off-by: Sylwester Nawrocki -
The arrays with initialization data of PLLs can be moved to initconst
section because they are referenced only from other initconst-level
symbols.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
The PNAME macro defines array of strings for names of mux parents.
Although the strings itself were const but pointers to them were not thus
this data resided in initdata. Make this an array of const pointers to
const strings and move to initconst section.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
The exynos5250_clk_sleep_init() function can be moved to init section
because it is referenced only from other init-level calls.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
The exynos5420_clk_sleep_init() function and arrays with initialization
data of PLLs can be moved to init section because they are referenced
only from other init-level symbols.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
The arrays with initialization data of PLLs can be moved to initconst
section because they are referenced only from other initconst-level
symbols.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
All of initialization data can be made const.
Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
All of initialization data can be made const.
Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
All of initialization data can be made const.
Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
All of initialization data can be made const.
Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
All of initialization data can be made const.
Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
All of initialization data can be made const.
Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
All of initialization data can be made const.
Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
The arrays with initialization data of PLLs can be moved to initconst
section because they are referenced only from other initconst-level
symbols.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
All of initialization data can be made const.
Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
All of initialization data can be made const.
Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
The local exynos4_get_xom() function is referenced only from other
init-level functions.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
All of initialization data can be made const.
Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
The platform_driver and of_device_id structs can be moved to init
section because they are referenced only from subsys_initcall-level
function.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
samsung_cmu_register_one() can accept pointer to const initialization
data: struct samsung_cmu_info. The members of the latter can also be
pointers to const data.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
Add compatible for Exynos5410 so the PMU on this SoC would provide
CLKOUT.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Sylwester Nawrocki -
The samsung_clk_init() cannot return NULL. Either it returns allocated
memory or it panics.Signed-off-by: Krzysztof Kozlowski
Reviewed-by: Javier Martinez Canillas
Signed-off-by: Sylwester Nawrocki -
This patch adds CLK_IS_CRITICAL flag to ACLK_CCORE_133 and ACLK_FSYS0_200
clocks. These clocks are critical for accessing CMU_CCORE and CMU_FSYS0
blocks registers. Let these clocks to be enabled all the time.Signed-off-by: Alim Akhtar
Signed-off-by: Sylwester Nawrocki -
Add IDs for watchdog and Security SubSystem to Exynos5410. Use the same
number as for Exynos5420 just in case in future these drivers were
merged.Signed-off-by: Krzysztof Kozlowski
Reviewed-by: Javier Martinez Canillas
Signed-off-by: Sylwester Nawrocki
01 Jun, 2016
1 commit
-
Add ID for TMU clock to Exynos5410. Use the same number as for
Exynos5420 just in case in future these drivers were merged.Signed-off-by: Krzysztof Kozlowski
Reviewed-by: Javier Martinez Canillas
Signed-off-by: Sylwester Nawrocki
30 May, 2016
4 commits
-
Add IDs for I2C, USI (HSI2C) and RTC clocks to Exynos5410. Use the same
number as for Exynos5420 just in case in future these drivers are merged.Signed-off-by: Krzysztof Kozlowski
Reviewed-by: Javier Martinez Canillas
Signed-off-by: Sylwester Nawrocki -
Add IDs for PWM and USB clocks to Exynos5410. Use the same number as for
Exynos5420 just in case in future these drivers were merged.Signed-off-by: Krzysztof Kozlowski
Acked-by: Stephen Boyd
Reviewed-by: Javier Martinez Canillas
Signed-off-by: Sylwester Nawrocki -
Add license and copyrights (file introduced in 2014) to header with
Exynos5410 clock IDs. Additionally reformat it to improve readability.Signed-off-by: Krzysztof Kozlowski
Acked-by: Stephen Boyd
Reviewed-by: Javier Martinez Canillas
Signed-off-by: Sylwester Nawrocki
29 May, 2016
6 commits
-
The self-test was updated to cover zero-length strings; the function
needs to be updated, too.Reported-by: Geert Uytterhoeven
Signed-off-by: George Spelvin
Fixes: fcfd2fbf22d2 ("fs/namei.c: Add hashlen_string() function")
Signed-off-by: Linus Torvalds -
The original name was simply hash_string(), but that conflicted with a
function with that name in drivers/base/power/trace.c, and I decided
that calling it "hashlen_" was better anyway.But you have to do it in two places.
[ This caused build errors for architectures that don't define
CONFIG_DCACHE_WORD_ACCESS - Linus ]Signed-off-by: George Spelvin
Reported-by: Guenter Roeck
Fixes: fcfd2fbf22d2 ("fs/namei.c: Add hashlen_string() function")
Signed-off-by: Linus Torvalds -
The HPFS filesystem used generic_show_options to produce string that is
displayed in /proc/mounts. However, there is a problem that the options
may disappear after remount. If we mount the filesystem with option1
and then remount it with option2, /proc/mounts should show both option1
and option2, however it only shows option2 because the whole option
string is replaced with replace_mount_options in hpfs_remount_fs.To fix this bug, implement the hpfs_show_options function that prints
options that are currently selected.Signed-off-by: Mikulas Patocka
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds -
Commit c8f33d0bec99 ("affs: kstrdup() memory handling") checks if the
kstrdup function returns NULL due to out-of-memory condition.However, if we are remounting a filesystem with no change to
filesystem-specific options, the parameter data is NULL. In this case,
kstrdup returns NULL (because it was passed NULL parameter), although no
out of memory condition exists. The mount syscall then fails with
ENOMEM.This patch fixes the bug. We fail with ENOMEM only if data is non-NULL.
The patch also changes the call to replace_mount_options - if we didn't
pass any filesystem-specific options, we don't call
replace_mount_options (thus we don't erase existing reported options).Fixes: c8f33d0bec99 ("affs: kstrdup() memory handling")
Signed-off-by: Mikulas Patocka
Cc: stable@vger.kernel.org # v4.1+
Signed-off-by: Linus Torvalds -
Commit ce657611baf9 ("hpfs: kstrdup() out of memory handling") checks if
the kstrdup function returns NULL due to out-of-memory condition.However, if we are remounting a filesystem with no change to
filesystem-specific options, the parameter data is NULL. In this case,
kstrdup returns NULL (because it was passed NULL parameter), although no
out of memory condition exists. The mount syscall then fails with
ENOMEM.This patch fixes the bug. We fail with ENOMEM only if data is non-NULL.
The patch also changes the call to replace_mount_options - if we didn't
pass any filesystem-specific options, we don't call
replace_mount_options (thus we don't erase existing reported options).Fixes: ce657611baf9 ("hpfs: kstrdup() out of memory handling")
Signed-off-by: Mikulas Patocka
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds -
Pull more MIPS updates from Ralf Baechle:
"This is the secondnd batch of MIPS patches for 4.7. Summary:CPS:
- Copy EVA configuration when starting secondary VPs.EIC:
- Clear Status IPL.Lasat:
- Fix a few off by one bugs.lib:
- Mark intrinsics notrace. Not only are the intrinsics
uninteresting, it would cause infinite recursion.MAINTAINERS:
- Add file patterns for MIPS BRCM device tree bindings.
- Add file patterns for mips device tree bindings.MT7628:
- Fix MT7628 pinmux typos.
- wled_an pinmux gpio.
- EPHY LEDs pinmux support.Pistachio:
- Enable KASLRVDSO:
- Build microMIPS VDSO for microMIPS kernels.
- Fix aliasing warning by building with `-fno-strict-aliasing' for
debugging but also tracing them might result in recursion.Misc:
- Add missing FROZEN hotplug notifier transitions.
- Fix clk binding example for varioius PIC32 devices.
- Fix cpu interrupt controller node-names in the DT files.
- Fix XPA CPU feature separation.
- Fix write_gc0_* macros when writing zero.
- Add inline asm encoding helpers.
- Add missing VZ accessor microMIPS encodings.
- Fix little endian microMIPS MSA encodings.
- Add 64-bit HTW fields and fix its configuration.
- Fix sigreturn via VDSO on microMIPS kernel.
- Lots of typo fixes.
- Add definitions of SegCtl registers and use them"* 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (49 commits)
MIPS: Add missing FROZEN hotplug notifier transitions
MIPS: Build microMIPS VDSO for microMIPS kernels
MIPS: Fix sigreturn via VDSO on microMIPS kernel
MIPS: devicetree: fix cpu interrupt controller node-names
MIPS: VDSO: Build with `-fno-strict-aliasing'
MIPS: Pistachio: Enable KASLR
MIPS: lib: Mark intrinsics notrace
MIPS: Fix 64-bit HTW configuration
MIPS: Add 64-bit HTW fields
MAINTAINERS: Add file patterns for mips device tree bindings
MAINTAINERS: Add file patterns for mips brcm device tree bindings
MIPS: Simplify DSP instruction encoding macros
MIPS: Add missing tlbinvf/XPA microMIPS encodings
MIPS: Fix little endian microMIPS MSA encodings
MIPS: Add missing VZ accessor microMIPS encodings
MIPS: Add inline asm encoding helpers
MIPS: Spelling fix lets -> let's
MIPS: VR41xx: Fix typo
MIPS: oprofile: Fix typo
MIPS: math-emu: Fix typo
...