[PATCH v8 30/42] ARM: davinci_all_defconfig: remove CONFIG_DAVINCI_RESET_CLOCKS

2018-03-15 Thread David Lechner
This removes CONFIG_DAVINCI_RESET_CLOCKS. The option has been removed from the kernel. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - none v7 changes: - none v6 changes: - none arch/arm/configs/davinci_all_defconfig | 1 - 1

[PATCH v8 30/42] ARM: davinci_all_defconfig: remove CONFIG_DAVINCI_RESET_CLOCKS

2018-03-15 Thread David Lechner
This removes CONFIG_DAVINCI_RESET_CLOCKS. The option has been removed from the kernel. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - none v7 changes: - none v6 changes: - none arch/arm/configs/davinci_all_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v8 36/42] ARM: davinci: dm644x: Remove legacy clock init

2018-03-15 Thread David Lechner
This removes the unused legacy clock init code from arch/arm/mach-davinci/dm644x.c. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - none v7 changes: - rebased - add davinci prefix to commit message v6 changes: - rebased

[PATCH v8 31/42] ARM: davinci: switch to common clock framework

2018-03-15 Thread David Lechner
This switches ARCH_DAVINCI to use the common clock framework. The legacy clock code in arch/arm/mach-davinci/ is no longer used. New drivers in drivers/clk/davinci/ are used instead. A few macros had to be moved to prevent compilation errors. Signed-off-by: David Lechner

[PATCH v8 31/42] ARM: davinci: switch to common clock framework

2018-03-15 Thread David Lechner
This switches ARCH_DAVINCI to use the common clock framework. The legacy clock code in arch/arm/mach-davinci/ is no longer used. New drivers in drivers/clk/davinci/ are used instead. A few macros had to be moved to prevent compilation errors. Signed-off-by: David Lechner --- v8 changes: - none

[PATCH v8 36/42] ARM: davinci: dm644x: Remove legacy clock init

2018-03-15 Thread David Lechner
This removes the unused legacy clock init code from arch/arm/mach-davinci/dm644x.c. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - none v7 changes: - rebased - add davinci prefix to commit message v6 changes: - rebased arch/arm/mach-davinci/dm644x.c | 300

[PATCH v8 33/42] ARM: davinci: da850: Remove legacy clock init

2018-03-15 Thread David Lechner
This removes the unused legacy clock init code from arch/arm/mach-davinci/da850.c. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - rebased v7 changes: - rebased - add davinci prefix to commit message v6 changes: - rebased

[PATCH v8 41/42] ARM: davinci: da8xx-dt: switch to device tree clocks

2018-03-15 Thread David Lechner
This removes all of the clock init code from da8xx-dt.c. This includes all of the OF_DEV_AUXDATA that was just used for looking up clocks. Signed-off-by: David Lechner --- v8 changes: - none v7 changes: - rebased - drop of_platform_default_populate(NULL, NULL, NULL) - add

[PATCH v8 41/42] ARM: davinci: da8xx-dt: switch to device tree clocks

2018-03-15 Thread David Lechner
This removes all of the clock init code from da8xx-dt.c. This includes all of the OF_DEV_AUXDATA that was just used for looking up clocks. Signed-off-by: David Lechner --- v8 changes: - none v7 changes: - rebased - drop of_platform_default_populate(NULL, NULL, NULL) - add change in pm_domain.c

[PATCH v8 33/42] ARM: davinci: da850: Remove legacy clock init

2018-03-15 Thread David Lechner
This removes the unused legacy clock init code from arch/arm/mach-davinci/da850.c. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - rebased v7 changes: - rebased - add davinci prefix to commit message v6 changes: - rebased arch/arm/mach-davinci/board-omapl138-hawk.c

[PATCH v8 32/42] ARM: davinci: da830: Remove legacy clock init

2018-03-15 Thread David Lechner
This removes the unused legacy clock init code from arch/arm/mach-davinci/da830.c. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - none v7 changes: - rebased - add davinci prefix to commit message v6 changes: - rebased

[PATCH v8 32/42] ARM: davinci: da830: Remove legacy clock init

2018-03-15 Thread David Lechner
This removes the unused legacy clock init code from arch/arm/mach-davinci/da830.c. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - none v7 changes: - rebased - add davinci prefix to commit message v6 changes: - rebased arch/arm/mach-davinci/board-da830-evm.c | 12 -

[PATCH v8 35/42] ARM: davinci: dm365: Remove legacy clock init

2018-03-15 Thread David Lechner
This removes the unused legacy clock init code from arch/arm/mach-davinci/dm365.c. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - none v7 changes: - rebased - add davinci prefix to commit message v6 changes: - rebased

[PATCH v8 35/42] ARM: davinci: dm365: Remove legacy clock init

2018-03-15 Thread David Lechner
This removes the unused legacy clock init code from arch/arm/mach-davinci/dm365.c. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - none v7 changes: - rebased - add davinci prefix to commit message v6 changes: - rebased arch/arm/mach-davinci/dm365.c | 449

Re: [PATCH v3 7/7] kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS

2018-03-15 Thread Nicolas Pitre
On Fri, 16 Mar 2018, Masahiro Yamada wrote: > If CONFIG_TRIM_UNUSED_KSYMS is enabled and the kernel is built from > a pristine state, the vmlinux is linked twice. > > [1] A user runs "make" > > [2] First build with empty autoksyms.h > > [3] adjust_autoksyms.sh updates autoksyms.h and recurses

Re: [PATCH v3 7/7] kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS

2018-03-15 Thread Nicolas Pitre
On Fri, 16 Mar 2018, Masahiro Yamada wrote: > If CONFIG_TRIM_UNUSED_KSYMS is enabled and the kernel is built from > a pristine state, the vmlinux is linked twice. > > [1] A user runs "make" > > [2] First build with empty autoksyms.h > > [3] adjust_autoksyms.sh updates autoksyms.h and recurses

Re: [PATCH v1 1/2] tracing: Improve design of preemptirq tracepoints and its users

2018-03-15 Thread Joel Fernandes
On Thu, Mar 15, 2018 at 8:13 PM, kbuild test robot wrote: > Hi Joel, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.16-rc5 next-20180314] > [if your patch is applied to the wrong git tree, please

Re: [PATCH v1 1/2] tracing: Improve design of preemptirq tracepoints and its users

2018-03-15 Thread Joel Fernandes
On Thu, Mar 15, 2018 at 8:13 PM, kbuild test robot wrote: > Hi Joel, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.16-rc5 next-20180314] > [if your patch is applied to the wrong git tree, please drop us a note to

[PATCH v3 7/7] kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS

2018-03-15 Thread Masahiro Yamada
If CONFIG_TRIM_UNUSED_KSYMS is enabled and the kernel is built from a pristine state, the vmlinux is linked twice. [1] A user runs "make" [2] First build with empty autoksyms.h [3] adjust_autoksyms.sh updates autoksyms.h and recurses "make vmlinux" (begin sub-make) [4]

[PATCH v3 7/7] kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS

2018-03-15 Thread Masahiro Yamada
If CONFIG_TRIM_UNUSED_KSYMS is enabled and the kernel is built from a pristine state, the vmlinux is linked twice. [1] A user runs "make" [2] First build with empty autoksyms.h [3] adjust_autoksyms.sh updates autoksyms.h and recurses "make vmlinux" (begin sub-make) [4]

[PATCH] acpi, numa: fix pxm to online numa node associations

2018-03-15 Thread Dan Williams
Commit 99759869faf1 "acpi: Add acpi_map_pxm_to_online_node()" added support for mapping a given proximity to its nearest, by SLIT distance, online node. However, it sometimes returns unexpected results due to the fact that it switches from comparing the PXM node to the last node that was closer

[PATCH] acpi, numa: fix pxm to online numa node associations

2018-03-15 Thread Dan Williams
Commit 99759869faf1 "acpi: Add acpi_map_pxm_to_online_node()" added support for mapping a given proximity to its nearest, by SLIT distance, online node. However, it sometimes returns unexpected results due to the fact that it switches from comparing the PXM node to the last node that was closer

Re: [PATCH v1 1/2] tracing: Improve design of preemptirq tracepoints and its users

2018-03-15 Thread kbuild test robot
Hi Joel, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.16-rc5 next-20180314] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH v1 1/2] tracing: Improve design of preemptirq tracepoints and its users

2018-03-15 Thread kbuild test robot
Hi Joel, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.16-rc5 next-20180314] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: New -Werror=restrict error with incremental gcc

2018-03-15 Thread Josh Poimboeuf
On Thu, Mar 15, 2018 at 08:06:26AM -0700, Laura Abbott wrote: > This only showed up with the very latest rawhide snapshot, .17 worked and > .18 started failing. I had to download .18 manually to test locally > https://koji.fedoraproject.org/koji/packageinfo?packageID=40 I also see the error with

Re: New -Werror=restrict error with incremental gcc

2018-03-15 Thread Josh Poimboeuf
On Thu, Mar 15, 2018 at 08:06:26AM -0700, Laura Abbott wrote: > This only showed up with the very latest rawhide snapshot, .17 worked and > .18 started failing. I had to download .18 manually to test locally > https://koji.fedoraproject.org/koji/packageinfo?packageID=40 I also see the error with

Re: [PATCH v8 12/42] clk: davinci: Add platform information for TI DA850 PSC

2018-03-15 Thread David Lechner
On 03/15/2018 09:52 PM, David Lechner wrote: This adds platform-specific declarations for the PSC clocks on TI DA850/ OMAP-L138/AM18XX SoCs. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- This Reviewed-by: was supposed to be dropped. This

Re: [PATCH v8 12/42] clk: davinci: Add platform information for TI DA850 PSC

2018-03-15 Thread David Lechner
On 03/15/2018 09:52 PM, David Lechner wrote: This adds platform-specific declarations for the PSC clocks on TI DA850/ OMAP-L138/AM18XX SoCs. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- This Reviewed-by: was supposed to be dropped. This file has had some significant changes.

[git pull] drm fixes for 4.16-rc6

2018-03-15 Thread Dave Airlie
Hi Linus, i915 has a backlight fix for some panels, a pm and a fencing fix, along with some GVT fixes. amdgpu has a backlight fix across suspend/resume, an object destruction ordering issue fix, and a displayport fix nouveau has two backlight fixes, and a fix for some lockups. Pretty quiet week,

[git pull] drm fixes for 4.16-rc6

2018-03-15 Thread Dave Airlie
Hi Linus, i915 has a backlight fix for some panels, a pm and a fencing fix, along with some GVT fixes. amdgpu has a backlight fix across suspend/resume, an object destruction ordering issue fix, and a displayport fix nouveau has two backlight fixes, and a fix for some lockups. Pretty quiet week,

Re: [PATCH v4 1/2] kernel.h: Introduce const_max() for VLA removal

2018-03-15 Thread Miguel Ojeda
On Fri, Mar 16, 2018 at 12:49 AM, Kees Cook wrote: > On Thu, Mar 15, 2018 at 4:46 PM, Linus Torvalds > wrote: >> What I'm *not* so much ok with is "const_max(5,sizeof(x))" erroring >> out, or silently causing insane behavior due to hidden

Re: [PATCH v4 1/2] kernel.h: Introduce const_max() for VLA removal

2018-03-15 Thread Miguel Ojeda
On Fri, Mar 16, 2018 at 12:49 AM, Kees Cook wrote: > On Thu, Mar 15, 2018 at 4:46 PM, Linus Torvalds > wrote: >> What I'm *not* so much ok with is "const_max(5,sizeof(x))" erroring >> out, or silently causing insane behavior due to hidden subtle type >> casts.. > > Yup! I like it as an explicit

Re: [RFC v2 03/83] Add super.h.

2018-03-15 Thread Theodore Y. Ts'o
On Thu, Mar 15, 2018 at 09:38:29PM +0100, Arnd Bergmann wrote: > > You could also have a resolution of less than a nanosecond. Note > that today, the file time stamps generated by the kernel are in > jiffies resolution, so at best one millisecond. However, most modern > file systems go with the

Re: [RFC v2 03/83] Add super.h.

2018-03-15 Thread Theodore Y. Ts'o
On Thu, Mar 15, 2018 at 09:38:29PM +0100, Arnd Bergmann wrote: > > You could also have a resolution of less than a nanosecond. Note > that today, the file time stamps generated by the kernel are in > jiffies resolution, so at best one millisecond. However, most modern > file systems go with the

[PATCH v8 02/42] clk: davinci: New driver for davinci PLL clocks

2018-03-15 Thread David Lechner
This adds a new driver for mach-davinci PLL clocks. This is porting the code from arch/arm/mach-davinci/clock.c to the common clock framework. Additionally, it adds device tree support for these clocks. The ifeq ($(CONFIG_COMMON_CLK), y) in the Makefile is needed to prevent compile errors until

[PATCH v8 02/42] clk: davinci: New driver for davinci PLL clocks

2018-03-15 Thread David Lechner
This adds a new driver for mach-davinci PLL clocks. This is porting the code from arch/arm/mach-davinci/clock.c to the common clock framework. Additionally, it adds device tree support for these clocks. The ifeq ($(CONFIG_COMMON_CLK), y) in the Makefile is needed to prevent compile errors until

[PATCH v8 00/42] ARM: davinci: convert to common clock framework​

2018-03-15 Thread David Lechner
This series converts mach-davinci to use the common clock framework. The series works like this, the first 19 patches create new clock drivers using the common clock framework. There are basically 3 groups of clocks - PLL, PSC and CFGCHIP (syscon). There are six different SoCs that each have

[PATCH v8 04/42] clk: davinci: Add platform information for TI DA850 PLL

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PLL clocks on TI DA850/ OMAP-L138/AM18XX SoCs. Signed-off-by: David Lechner --- v8 changes: - drop __init and __initconst attributes - add a clkdev lookup for each SYSCLK v7 changes: - include clkdev lookup registration

[PATCH v8 00/42] ARM: davinci: convert to common clock framework​

2018-03-15 Thread David Lechner
This series converts mach-davinci to use the common clock framework. The series works like this, the first 19 patches create new clock drivers using the common clock framework. There are basically 3 groups of clocks - PLL, PSC and CFGCHIP (syscon). There are six different SoCs that each have

[PATCH v8 04/42] clk: davinci: Add platform information for TI DA850 PLL

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PLL clocks on TI DA850/ OMAP-L138/AM18XX SoCs. Signed-off-by: David Lechner --- v8 changes: - drop __init and __initconst attributes - add a clkdev lookup for each SYSCLK v7 changes: - include clkdev lookup registration here instead of in

[PATCH v8 06/42] clk: davinci: Add platform information for TI DM365 PLL

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PLL clocks on TI DM365 based systems. Signed-off-by: David Lechner --- v8 changes: - drop __init and __initconst attributes - add a clkdev lookup for each SYSCLK v7 changes: - split registration functions for each PLL - Add

[PATCH v8 05/42] clk: davinci: Add platform information for TI DM355 PLL

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PLL clocks on TI DM355 based systems. Signed-off-by: David Lechner --- v8 changes: - drop __init and __initconst attributes - add a clkdev lookup for each SYSCLK v7 changes: - split registration functions for each PLL - Add

[PATCH v8 06/42] clk: davinci: Add platform information for TI DM365 PLL

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PLL clocks on TI DM365 based systems. Signed-off-by: David Lechner --- v8 changes: - drop __init and __initconst attributes - add a clkdev lookup for each SYSCLK v7 changes: - split registration functions for each PLL - Add platform_device_id

[PATCH v8 05/42] clk: davinci: Add platform information for TI DM355 PLL

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PLL clocks on TI DM355 based systems. Signed-off-by: David Lechner --- v8 changes: - drop __init and __initconst attributes - add a clkdev lookup for each SYSCLK v7 changes: - split registration functions for each PLL - Add platform_device_id

[PATCH v8 01/42] dt-bindings: clock: Add new bindings for TI Davinci PLL clocks

2018-03-15 Thread David Lechner
This adds a new binding for the PLL IP blocks in the mach-davinci family of processors. Currently, only da850 has device tree support but these bindings can also work for other SoCs in this family just by adding new compatible strings. Note: Although these PLL controllers are very similar to the

[PATCH v8 01/42] dt-bindings: clock: Add new bindings for TI Davinci PLL clocks

2018-03-15 Thread David Lechner
This adds a new binding for the PLL IP blocks in the mach-davinci family of processors. Currently, only da850 has device tree support but these bindings can also work for other SoCs in this family just by adding new compatible strings. Note: Although these PLL controllers are very similar to the

[PATCH v8 03/42] clk: davinci: Add platform information for TI DA830 PLL

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PLL clocks on TI DA830/ OMAP-L137/AM17XX SoCs. Signed-off-by: David Lechner --- v8 changes: - drop __init and __initconst attributes - add a clkdev lookup for each SYSCLK v7 changes: - include clkdev lookup registration

[PATCH v8 03/42] clk: davinci: Add platform information for TI DA830 PLL

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PLL clocks on TI DA830/ OMAP-L137/AM17XX SoCs. Signed-off-by: David Lechner --- v8 changes: - drop __init and __initconst attributes - add a clkdev lookup for each SYSCLK v7 changes: - include clkdev lookup registration here instead of in

[PATCH v8 08/42] clk: davinci: Add platform information for TI DM646x PLL

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PLL clocks on TI DM646x based systems. Signed-off-by: David Lechner --- v8 changes: - drop __init and __initconst attributes - add a clkdev lookup for each SYSCLK - drop fixed-factor clock for timer2 v7 changes: - split

[PATCH v8 08/42] clk: davinci: Add platform information for TI DM646x PLL

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PLL clocks on TI DM646x based systems. Signed-off-by: David Lechner --- v8 changes: - drop __init and __initconst attributes - add a clkdev lookup for each SYSCLK - drop fixed-factor clock for timer2 v7 changes: - split registration functions

[PATCH 1/2] dt-bindings: analogix-dp: Add backlight-pwm-passthru

2018-03-15 Thread Alexandru M Stan
Documentation for the optional backlight-pwm-passthru property. Tells the EDP panel to folow the input pwm frequency instead of generating its own. Signed-off-by: Alexandru M Stan --- Documentation/devicetree/bindings/display/bridge/analogix_dp.txt | 4 1 file

[PATCH 1/2] dt-bindings: analogix-dp: Add backlight-pwm-passthru

2018-03-15 Thread Alexandru M Stan
Documentation for the optional backlight-pwm-passthru property. Tells the EDP panel to folow the input pwm frequency instead of generating its own. Signed-off-by: Alexandru M Stan --- Documentation/devicetree/bindings/display/bridge/analogix_dp.txt | 4 1 file changed, 4 insertions(+)

[PATCH 2/2] drm/bridge: analogix: Enable EDP_BACKLIGHT_FREQ_PWM_PIN_PASSTHRU

2018-03-15 Thread Alexandru M Stan
Configure the DPCD registers for the backlight to respect the pwm frequency of the input. We sometimes don't want it to generate its own. Signed-off-by: Alexandru M Stan --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 48 ++

[PATCH v8 09/42] dt-bindings: clock: New bindings for TI Davinci PSC

2018-03-15 Thread David Lechner
This adds a new binding for the Power Sleep Controller (PSC) for the mach-davinci family of processors. Note: Although TI Keystone has a very similar PSC, we are not using the existing bindings. Keystone is using a legacy one-node-per-clock binding (actually two nodes if you count the separate

[PATCH 2/2] drm/bridge: analogix: Enable EDP_BACKLIGHT_FREQ_PWM_PIN_PASSTHRU

2018-03-15 Thread Alexandru M Stan
Configure the DPCD registers for the backlight to respect the pwm frequency of the input. We sometimes don't want it to generate its own. Signed-off-by: Alexandru M Stan --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 48 ++

[PATCH v8 09/42] dt-bindings: clock: New bindings for TI Davinci PSC

2018-03-15 Thread David Lechner
This adds a new binding for the Power Sleep Controller (PSC) for the mach-davinci family of processors. Note: Although TI Keystone has a very similar PSC, we are not using the existing bindings. Keystone is using a legacy one-node-per-clock binding (actually two nodes if you count the separate

[PATCH 0/2] Add backlight-pwm-passthru in analogix DP driver

2018-03-15 Thread Alexandru M Stan
I noticed that the backlight on the ASUS Chromebook Flip C101 (bob) is flickering. We're sending it a high frequency pwm signal, but the EDP panel decided to "parse" the signal, read the duty cycle, then make its own signal that it sends to the LEDs. So even though we send a nice high refresh

Re: [PATCH v8 00/42] ARM: davinci: convert to common clock framework​

2018-03-15 Thread David Lechner
On 03/15/2018 09:52 PM, David Lechner wrote: This series converts mach-davinci to use the common clock framework. Hi Adam, I think we are getting pretty close to the final product here. If you have time to test the EVM(s) you have again, I think this is a good time to do it.

[PATCH 0/2] Add backlight-pwm-passthru in analogix DP driver

2018-03-15 Thread Alexandru M Stan
I noticed that the backlight on the ASUS Chromebook Flip C101 (bob) is flickering. We're sending it a high frequency pwm signal, but the EDP panel decided to "parse" the signal, read the duty cycle, then make its own signal that it sends to the LEDs. So even though we send a nice high refresh

Re: [PATCH v8 00/42] ARM: davinci: convert to common clock framework​

2018-03-15 Thread David Lechner
On 03/15/2018 09:52 PM, David Lechner wrote: This series converts mach-davinci to use the common clock framework. Hi Adam, I think we are getting pretty close to the final product here. If you have time to test the EVM(s) you have again, I think this is a good time to do it.

[PATCH v8 15/42] clk: davinci: Add platform information for TI DM644x PSC

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PSC clocks on TI DM644x based systems. Signed-off-by: David Lechner --- v8 changes: - drop use of __init and __initconst attributes - add parent clock mappings v7 changes: - add platform_device_id table - don't wrap lines

[PATCH v8 10/42] clk: davinci: New driver for davinci PSC clocks

2018-03-15 Thread David Lechner
This adds a new driver for mach-davinci PSC clocks. This is porting the code from arch/arm/mach-davinci/psc.c to the common clock framework and is converting it to use regmap to simplify the code. Additionally, it adds device tree support for these clocks. Note: although there are similar clocks

[PATCH v8 11/42] clk: davinci: Add platform information for TI DA830 PSC

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PSC clocks on TI DA830/ OMAP-L137/AM17XX SoCs. Signed-off-by: David Lechner --- v8 changes: - drop use of __init and __initconst attributes - add parent clock mappings v7 changes: - split registration function into two, one

[PATCH v8 12/42] clk: davinci: Add platform information for TI DA850 PSC

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PSC clocks on TI DA850/ OMAP-L138/AM18XX SoCs. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - drop use of __init and __initconst attributes - add parent clock mappings v7 changes: -

[PATCH v8 15/42] clk: davinci: Add platform information for TI DM644x PSC

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PSC clocks on TI DM644x based systems. Signed-off-by: David Lechner --- v8 changes: - drop use of __init and __initconst attributes - add parent clock mappings v7 changes: - add platform_device_id table - don't wrap lines for readability - add

[PATCH v8 10/42] clk: davinci: New driver for davinci PSC clocks

2018-03-15 Thread David Lechner
This adds a new driver for mach-davinci PSC clocks. This is porting the code from arch/arm/mach-davinci/psc.c to the common clock framework and is converting it to use regmap to simplify the code. Additionally, it adds device tree support for these clocks. Note: although there are similar clocks

[PATCH v8 11/42] clk: davinci: Add platform information for TI DA830 PSC

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PSC clocks on TI DA830/ OMAP-L137/AM17XX SoCs. Signed-off-by: David Lechner --- v8 changes: - drop use of __init and __initconst attributes - add parent clock mappings v7 changes: - split registration function into two, one for each PSC - add

[PATCH v8 12/42] clk: davinci: Add platform information for TI DA850 PSC

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PSC clocks on TI DA850/ OMAP-L138/AM18XX SoCs. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - drop use of __init and __initconst attributes - add parent clock mappings v7 changes: - split registration function into two,

[PATCH v8 17/42] dt-bindings: clock: Add bindings for DA8XX CFGCHIP clocks

2018-03-15 Thread David Lechner
This adds a new binding for the clocks present in the CFGCHIP syscon registers in TI DA8XX SoCs. Signed-off-by: David Lechner Reviewed-by: Rob Herring --- v8 changes: - none v7 changes: - none v6 changes: - combine "dt-bindings: clock: Add bindings for

[PATCH v8 17/42] dt-bindings: clock: Add bindings for DA8XX CFGCHIP clocks

2018-03-15 Thread David Lechner
This adds a new binding for the clocks present in the CFGCHIP syscon registers in TI DA8XX SoCs. Signed-off-by: David Lechner Reviewed-by: Rob Herring --- v8 changes: - none v7 changes: - none v6 changes: - combine "dt-bindings: clock: Add bindings for DA8XX CFGCHIP gate clocks",

[PATCH v8 16/42] clk: davinci: Add platform information for TI DM646x PSC

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PSC clocks on TI DM646x based systems. Signed-off-by: David Lechner --- v8 changes: - drop use of __init and __initconst attributes - add parent clock mappings v7 changes: - add platform_device_id table - don't wrap lines

[PATCH v8 16/42] clk: davinci: Add platform information for TI DM646x PSC

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PSC clocks on TI DM646x based systems. Signed-off-by: David Lechner --- v8 changes: - drop use of __init and __initconst attributes - add parent clock mappings v7 changes: - add platform_device_id table - don't wrap lines for readability - add

[PATCH v8 19/42] clk: davinci: cfgchip: Add TI DA8XX USB PHY clocks

2018-03-15 Thread David Lechner
This adds a new driver for the USB PHY clocks in the CFGCHIP2 syscon register on TI DA8XX-type SoCs. The USB0 (USB 2.0) PHY clock is an interesting case because it calls clk_enable() in a reentrant way. The USB 2.0 PSC only has to be enabled temporarily while we are locking the PLL, which takes

[PATCH v8 19/42] clk: davinci: cfgchip: Add TI DA8XX USB PHY clocks

2018-03-15 Thread David Lechner
This adds a new driver for the USB PHY clocks in the CFGCHIP2 syscon register on TI DA8XX-type SoCs. The USB0 (USB 2.0) PHY clock is an interesting case because it calls clk_enable() in a reentrant way. The USB 2.0 PSC only has to be enabled temporarily while we are locking the PLL, which takes

[PATCH] Revert "mm/memblock.c: hardcode the end_pfn being -1"

2018-03-15 Thread Jia He
This reverts commit 379b03b7fa05f7db521b7732a52692448a3c34fe. Commit 864b75f9d6b0 ("mm/page_alloc: fix memmap_init_zone pageblock alignment") introduced boot hang issues in arm/arm64 machines, so Ard Biesheuvel reverted in commit 3e04040df6d4. But there is a preparation patch for commit

[PATCH] Revert "mm/memblock.c: hardcode the end_pfn being -1"

2018-03-15 Thread Jia He
This reverts commit 379b03b7fa05f7db521b7732a52692448a3c34fe. Commit 864b75f9d6b0 ("mm/page_alloc: fix memmap_init_zone pageblock alignment") introduced boot hang issues in arm/arm64 machines, so Ard Biesheuvel reverted in commit 3e04040df6d4. But there is a preparation patch for commit

[PATCH v8 25/42] ARM: davinci: dm644x: add new clock init using common clock framework

2018-03-15 Thread David Lechner
This adds the new board-specific clock init in mach-davinci/dm644x.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Also clean up the #includes since we are adding some here. Signed-off-by: David Lechner

[PATCH v8 20/42] ARM: davinci: pass clock as parameter to davinci_timer_init()

2018-03-15 Thread David Lechner
This changes davinci_timer_init() so that we pass the clock as a parameter instead of using clk_get(). This is done in preparation for converting to the common clock framework. It removes the requirement that we have to have a clock with con_id of "timer0", which will be good for DT bindings

[PATCH v8 26/42] ARM: davinci: dm646x: add new clock init using common clock framework

2018-03-15 Thread David Lechner
This adds the new board-specific clock init in mach-davinci/dm646x.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Also clean up the #includes since we are adding some here. Signed-off-by: David Lechner

[PATCH v8 25/42] ARM: davinci: dm644x: add new clock init using common clock framework

2018-03-15 Thread David Lechner
This adds the new board-specific clock init in mach-davinci/dm644x.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Also clean up the #includes since we are adding some here. Signed-off-by: David Lechner

[PATCH v8 20/42] ARM: davinci: pass clock as parameter to davinci_timer_init()

2018-03-15 Thread David Lechner
This changes davinci_timer_init() so that we pass the clock as a parameter instead of using clk_get(). This is done in preparation for converting to the common clock framework. It removes the requirement that we have to have a clock with con_id of "timer0", which will be good for DT bindings

[PATCH v8 26/42] ARM: davinci: dm646x: add new clock init using common clock framework

2018-03-15 Thread David Lechner
This adds the new board-specific clock init in mach-davinci/dm646x.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Also clean up the #includes since we are adding some here. Signed-off-by: David Lechner

[PATCH v8 18/42] clk: davinci: New driver for TI DA8XX CFGCHIP clocks

2018-03-15 Thread David Lechner
This adds a new driver for the gate and multiplexer clocks in the CFGCHIPn syscon registers on TI DA8XX-type SoCs. Signed-off-by: David Lechner --- v8 changes: - register clkdev lookup for async1 and async3 v7 changes: - convert to platform device v6 changes: - added

[PATCH v8 18/42] clk: davinci: New driver for TI DA8XX CFGCHIP clocks

2018-03-15 Thread David Lechner
This adds a new driver for the gate and multiplexer clocks in the CFGCHIPn syscon registers on TI DA8XX-type SoCs. Signed-off-by: David Lechner --- v8 changes: - register clkdev lookup for async1 and async3 v7 changes: - convert to platform device v6 changes: - added DIV4.5 and ASYNC1 clocks

[PATCH v8 28/42] ARM: davinci: da8xx: add new sata_refclk init using common clock framework

2018-03-15 Thread David Lechner
This adds the new SATA REFCLK clock init in mach-davinci/devices-da8xx.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Also, the #includes are sorted since we are adding some here. Signed-off-by: David

[PATCH v8 22/42] ARM: davinci: da850: add new clock init using common clock framework

2018-03-15 Thread David Lechner
This adds the new board-specific clock init in mach-davinci/da850.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Also clean up the #includes since we are adding some here. Some CFGCHIP macros were

[PATCH v8 28/42] ARM: davinci: da8xx: add new sata_refclk init using common clock framework

2018-03-15 Thread David Lechner
This adds the new SATA REFCLK clock init in mach-davinci/devices-da8xx.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Also, the #includes are sorted since we are adding some here. Signed-off-by: David

[PATCH v8 22/42] ARM: davinci: da850: add new clock init using common clock framework

2018-03-15 Thread David Lechner
This adds the new board-specific clock init in mach-davinci/da850.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Also clean up the #includes since we are adding some here. Some CFGCHIP macros were

[PATCH v8 27/42] ARM: davinci: da8xx: add new USB PHY clock init using common clock framework

2018-03-15 Thread David Lechner
This adds the new USB PHY clock init in mach-davinci/usb-da8xx.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Signed-off-by: David Lechner --- v8 changes: - rebased on "ARM:

[PATCH v8 29/42] ARM: davinci: remove CONFIG_DAVINCI_RESET_CLOCKS

2018-03-15 Thread David Lechner
The common clock framework will take care of disabling unused clocks when we switch from the legacy davinci clocks and having this enabled will cause compile errors after we switch, so remove it now. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori ---

[PATCH v8 27/42] ARM: davinci: da8xx: add new USB PHY clock init using common clock framework

2018-03-15 Thread David Lechner
This adds the new USB PHY clock init in mach-davinci/usb-da8xx.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Signed-off-by: David Lechner --- v8 changes: - rebased on "ARM: davinci: DA8XX: fix oops

[PATCH v8 29/42] ARM: davinci: remove CONFIG_DAVINCI_RESET_CLOCKS

2018-03-15 Thread David Lechner
The common clock framework will take care of disabling unused clocks when we switch from the legacy davinci clocks and having this enabled will cause compile errors after we switch, so remove it now. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - none v7 changes: -

[PATCH v8 23/42] ARM: davinci: dm355: add new clock init using common clock framework

2018-03-15 Thread David Lechner
This adds the new board-specific clock init in mach-davinci/dm355.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Also clean up the #includes since we are adding some here. Signed-off-by: David Lechner

[PATCH v8 23/42] ARM: davinci: dm355: add new clock init using common clock framework

2018-03-15 Thread David Lechner
This adds the new board-specific clock init in mach-davinci/dm355.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Also clean up the #includes since we are adding some here. Signed-off-by: David Lechner

[PATCH v8 21/42] ARM: davinci: da830: add new clock init using common clock framework

2018-03-15 Thread David Lechner
This adds the new board-specific clock init in mach-davinci/da830.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Also clean up the #includes since we are adding some here. Signed-off-by: David Lechner

[PATCH v8 24/42] ARM: davinci: dm365: add new clock init using common clock framework

2018-03-15 Thread David Lechner
This adds the new board-specific clock init in mach-davinci/dm365.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Also clean up the #includes since we are adding some here. Signed-off-by: David Lechner

[PATCH v8 21/42] ARM: davinci: da830: add new clock init using common clock framework

2018-03-15 Thread David Lechner
This adds the new board-specific clock init in mach-davinci/da830.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Also clean up the #includes since we are adding some here. Signed-off-by: David Lechner

[PATCH v8 24/42] ARM: davinci: dm365: add new clock init using common clock framework

2018-03-15 Thread David Lechner
This adds the new board-specific clock init in mach-davinci/dm365.c using the new common clock framework drivers. The #ifdefs are needed to prevent compile errors until the entire ARCH_DAVINCI is converted. Also clean up the #includes since we are adding some here. Signed-off-by: David Lechner

[PATCH v8 14/42] clk: davinci: Add platform information for TI DM365 PSC

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PSC clocks on TI DM365 based systems. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - drop use of __init and __initconst attributes - add parent clock mappings v7 changes: - split

[PATCH v8 14/42] clk: davinci: Add platform information for TI DM365 PSC

2018-03-15 Thread David Lechner
This adds platform-specific declarations for the PSC clocks on TI DM365 based systems. Signed-off-by: David Lechner Reviewed-by: Sekhar Nori --- v8 changes: - drop use of __init and __initconst attributes - add parent clock mappings v7 changes: - split registration function into two, one for

<    1   2   3   4   5   6   7   8   9   10   >