Re: blackfin-cpufreq: How to mark cpu_set_cclk() as static?

2015-12-21 Thread SF Markus Elfring
> This should be static, yeah. Would you like to integrate a corresponding small source code change yourself? (Do you need a separate patch from me?) Regards, Markus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org Mo

[PATCH v4 3/4] ARM: dts: dra7: Use "ti,dra7x-usb2-phy2" compatible string for USB2 PHY2

2015-12-21 Thread Kishon Vijay Abraham I
The USB2 PHY2 has a different register map compared to USB2 PHY1 to power on/off the PHY. In order to handle it, use the new compatible string "ti,dra7x-usb2-phy2" for the second instance of USB2 PHY. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7.dtsi |3 ++- 1 file change

[RESEND PATCH v4 0/4] ARM: dts: use syscon property instead of ctrl-module

2015-12-21 Thread Kishon Vijay Abraham I
This series is basically to deprecate using ctrl-module property and use corresponding syscon properties to program the control module registers. Changes from v3: *) Renamed 'tisyscon@1c24' node to 'scm_conf@1c24' Changes from v2: No changes. Changes from v1: *) Squashed the patches that replace

[PATCH v4 1/4] ARM: dts: dra7: Add dt node for the sycon pcie

2015-12-21 Thread Kishon Vijay Abraham I
Add new device tree node for the control module register space where PCIe registers are present. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index fe992

[PATCH v4 4/4] ARM: dts: : Use "syscon-phy-power" instead of "ctrl-module"

2015-12-21 Thread Kishon Vijay Abraham I
Add "syscon-phy-power" property and remove the deprecated "ctrl-module" property from SATA and USB PHY node. Also remove the unused control module dt nodes. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am4372.dtsi | 16 ++-- arch/arm/boot/dts/dra7.dtsi | 34 -

[PATCH v4 2/4] ARM: dts: dra7: Use "syscon-phy-power" and "syscon-pcs" in PCIe PHY node

2015-12-21 Thread Kishon Vijay Abraham I
Add "syscon-phy-power" property and "syscon-pcs" property which can be used to perform the control module initializations and remove the deprecated "ctrl-module" property from PCIe PHY dt nodes. Phandle to "sysclk" clock node is also added to the PCIe PHY node since some of the syscon initializati

[PATCH v4 1/4] ARM: dts: dra7: Add dt node for the sycon pcie

2015-12-21 Thread Kishon Vijay Abraham I
Add new device tree node for the control module register space where PCIe registers are present. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index fe992

[PATCH v4 2/4] ARM: dts: dra7: Use "syscon-phy-power" and "syscon-pcs" in PCIe PHY node

2015-12-21 Thread Kishon Vijay Abraham I
Add "syscon-phy-power" property and "syscon-pcs" property which can be used to perform the control module initializations and remove the deprecated "ctrl-module" property from PCIe PHY dt nodes. Phandle to "sysclk" clock node is also added to the PCIe PHY node since some of the syscon initializati

Re: [PATCH v1 1/4] um: Fix ptrace GETREGS/SETREGS bugs

2015-12-21 Thread Mickaël Salaün
On 21/12/2015 01:20, Richard Weinberger wrote: > Am 21.12.2015 um 01:03 schrieb Mickaël Salaün: >> diff --git a/arch/um/kernel/skas/syscall.c b/arch/um/kernel/skas/syscall.c >> index 1683b8e..65f0d1a 100644 >> --- a/arch/um/kernel/skas/syscall.c >> +++ b/arch/um/kernel/skas/syscall.c >> @@ -7,6 +7

[PATCH v4 4/4] ARM: dts: : Use "syscon-phy-power" instead of "ctrl-module"

2015-12-21 Thread Kishon Vijay Abraham I
Add "syscon-phy-power" property and remove the deprecated "ctrl-module" property from SATA and USB PHY node. Also remove the unused control module dt nodes. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am4372.dtsi | 16 ++-- arch/arm/boot/dts/dra7.dtsi | 34 -

[PATCH v4 3/4] ARM: dts: dra7: Use "ti,dra7x-usb2-phy2" compatible string for USB2 PHY2

2015-12-21 Thread Kishon Vijay Abraham I
The USB2 PHY2 has a different register map compared to USB2 PHY1 to power on/off the PHY. In order to handle it, use the new compatible string "ti,dra7x-usb2-phy2" for the second instance of USB2 PHY. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/dra7.dtsi |3 ++- 1 file change

[PATCH v4 0/4] ARM: dts: use syscon property instead of ctrl-module

2015-12-21 Thread Kishon Vijay Abraham I
This series is basically to deprecate using ctrl-module property and use corresponding syscon properties to program the control module registers. Changes from v3: *) Renamed 'tisyscon@1c24' node to 'scm_conf@1c24' Changes from v2: No changes. Changes from v1: *) Squashed the patches that replace

Re: [PATCH] regulator: wm8*: constify regulator_ops structures

2015-12-21 Thread Charles Keepax
On Sat, Dec 19, 2015 at 04:31:24PM +0100, Julia Lawall wrote: > The regulator_ops structures are never modified, so declare them as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall > > --- Acked-by: Charles Keepax Thanks, Charles -- To unsubscribe from this list:

Re: [PATCH v1 1/4] um: Fix ptrace GETREGS/SETREGS bugs

2015-12-21 Thread Richard Weinberger
[sending the mail again, Thunderbird crashed :-\] Am 21.12.2015 um 09:49 schrieb Mickaël Salaün: > > On 21/12/2015 01:20, Richard Weinberger wrote: >> Am 21.12.2015 um 01:03 schrieb Mickaël Salaün: >>> diff --git a/arch/um/kernel/skas/syscall.c b/arch/um/kernel/skas/syscall.c >>> index 1683b8e..6

Re: net, ipv6: out of bounds access in secret_stable

2015-12-21 Thread Hannes Frederic Sowa
On 19.12.2015 21:50, Cong Wang wrote: > On Fri, Dec 18, 2015 at 5:13 PM, Sasha Levin wrote: >> Hi Hannes, >> >> I've hit the following out of bounds access while fuzzing on the latest >> -next kernel. >> >> This code was added in 3d1bec9932 ("ipv6: introduce secret_stable to >> ipv6_devconf"). >

[PATCH v4 2/9] phy: ti-pipe3: move clk initialization to a separate function

2015-12-21 Thread Kishon Vijay Abraham I
No functional change. Moved clock initialization done in probe to a separate function as part of cleaning up ti_pipe3_probe. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-ti-pipe3.c | 127 +--- 1 file changed, 72 insertions(+), 55 deletions(-)

[PATCH v4 1/9] phy: ti-pipe3: introduce local struct device* in probe

2015-12-21 Thread Kishon Vijay Abraham I
No functional change. Introduce local struct device pointer in probe and replace using &pdev->dev/phy->dev with the local device pointer. This is in preparation to split ti_pipe3_probe and add separate functions for getting mem resource, getting sysctrl and getting clocks. Signed-off-by: Kishon Vi

Re: [PATCH v1 1/4] um: Fix ptrace GETREGS/SETREGS bugs

2015-12-21 Thread Richard Weinberger
Hi! Am 21.12.2015 um 09:49 schrieb Mickaël Salaün: > > On 21/12/2015 01:20, Richard Weinberger wrote: >> Am 21.12.2015 um 01:03 schrieb Mickaël Salaün: >>> diff --git a/arch/um/kernel/skas/syscall.c b/arch/um/kernel/skas/syscall.c >>> index 1683b8e..65f0d1a 100644 >>> --- a/arch/um/kernel/skas/sy

[PATCH v4 4/9] phy: ti-pipe3: move mem resource initialization to a separate function

2015-12-21 Thread Kishon Vijay Abraham I
No functional change. Moved mem resource initialization done in probe to a separate function as part of cleaning up ti_pipe3_probe. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-ti-pipe3.c | 52 1 file changed, 33 insertions(+), 19 delet

[PATCH v4 6/9] phy: ti-pipe3: use *syscon* framework API to power on/off the PHY

2015-12-21 Thread Kishon Vijay Abraham I
Deprecate using phy-omap-control driver to power on/off the PHY and use *syscon* framework to do the same. Signed-off-by: Kishon Vijay Abraham I Acked-by: Rob Herring --- Documentation/devicetree/bindings/phy/ti-phy.txt | 10 ++- drivers/phy/phy-ti-pipe3.c | 88 +++

[PATCH v4 9/9] phy: omap-usb2: use *syscon* framework API to power on/off the PHY

2015-12-21 Thread Kishon Vijay Abraham I
Deprecate using phy-omap-control driver to power on/off the PHY, and use *syscon* framework to do the same. This handles powering on/off the PHY for the USB2 PHYs used in various TI SoCs. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/phy/ti-phy.txt |8 +- driver

[PATCH v4 7/9] phy: ti-pipe3: use *syscon* framework API to set PCS value of the PHY

2015-12-21 Thread Kishon Vijay Abraham I
Deprecate using phy-omap-control driver to set PCS value of the PHY and start using *syscon* API to do the same. Signed-off-by: Kishon Vijay Abraham I Acked-by: Roger Quadros Acked-by: Rob Herring --- Documentation/devicetree/bindings/phy/ti-phy.txt |2 ++ drivers/phy/phy-ti-pipe3.c

[PATCH v4 3/9] phy: ti-pipe3: move sysctrl initialization to a separate function

2015-12-21 Thread Kishon Vijay Abraham I
No functional change. Moved sysctrl initialization done in probe to a separate function as part of cleaning up ti_pipe3_probe. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/phy-ti-pipe3.c | 78 +--- 1 file changed, 45 insertions(+), 33 deletions(

[PATCH v4 8/9] phy: omap-usb2: use omap_usb_power_off to power off the PHY during probe

2015-12-21 Thread Kishon Vijay Abraham I
No functional change. Previously omap_control_phy_power() was used to power off the PHY during probe. But once phy-omap-usb2 driver is adapted to use syscon, omap_control_phy_power() cannot be used. Hence used omap_usb_power_off to power off the PHY. Signed-off-by: Kishon Vijay Abraham I Acked-by

[PATCH v4 5/9] phy: ti-pipe3: use ti_pipe3_power_off to power off the PHY during probe

2015-12-21 Thread Kishon Vijay Abraham I
No functional change. Previously omap_control_phy_power() was used to power off the PHY during probe. But once PIPE3 driver is adapted to use syscon, omap_control_phy_power() cannot be used. Hence used ti_pipe3_power_off to power off the PHY. Signed-off-by: Kishon Vijay Abraham I Acked-by: Roger

[PATCH v4 0/9] phy: use syscon framework APIs to set ctrl mod reg

2015-12-21 Thread Kishon Vijay Abraham I
phy-omap-control driver was added when there was no proper infrastructure for doing control module initializations. The phy-omap-control driver is not an 'actual' PHY driver and it was just a hack to do PHY related control module initializations. phy-omap-control is also getting unmanageable with t

[PATCH] irqchip: omap-intc: Remove duplicate setup for IRQ chip type handler

2015-12-21 Thread Milo Kim
Some OMAP interrupt controllers use generic level detection, so handle_level_irq() is used as the chip type handler. Allocated IRQ chip type handler doesn't need to set it again because irq_alloc_domain_generic_chips() has already registered it. Tested with BeagleBoneBlack Rev C. Cc: Tony Lindgre

Re: linux-next: build failure after merge of the gpio tree

2015-12-21 Thread Linus Walleij
On Mon, Dec 21, 2015 at 6:02 AM, Stephen Rothwell wrote: > Hi Linus, > > On Wed, 16 Dec 2015 14:37:55 +1100 Stephen Rothwell > wrote: >> >> After merging the gpio tree, today's linux-next build (arm >> multi_v7_defconfig) failed like this: >> >> drivers/pinctrl/bcm/pinctrl-nsp-gpio.c: In functio

Re: [PATCH 08/10] perf tools: Add --raw-trace option

2015-12-21 Thread Namhyung Kim
On Sun, Dec 20, 2015 at 03:58:42PM +0100, Jiri Olsa wrote: > On Wed, Dec 16, 2015 at 12:35:41AM +0900, Namhyung Kim wrote: > > The --raw-trace option is to prevent pretty printing by event's > > print_fmt or plugin. Besides that, each dynamic sort key now receives > > 'raw' suffix separated by '/'

Re: linux-next: build failure after merge of the pinctrl tree

2015-12-21 Thread Linus Walleij
On Mon, Dec 21, 2015 at 5:58 AM, Stephen Rothwell wrote: > After merging the pinctrl tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: Argh damned, I pushed a oneliner fix in accordance with Pramod's report. Sorry about the mess. Yours, Linus Walleij -- To unsubscribe

[GIT PULL] tpmdd updates for Linux 4.5

2015-12-21 Thread Jarkko Sakkinen
https://github.com/jsakkine/linux-tpmdd.git tags/tpmdd-next-20151221 for you to fetch changes up to 5beb0c435bdde35a09376566b0e28f7df87c9f68: keys, trusted: seal with a TPM2 authorization policy (2015-12-20 15:27:13 +0200) tpmdd update

[PATCH] pinctrl: bcm/cygnys/iproc: fixup rebase issue

2015-12-21 Thread Linus Walleij
Somehow this variable name screwed up in some rebase, fixed it. Reported-by: Stephen Rothwell Reported-by: Pramod Kumar Signed-off-by: Linus Walleij --- drivers/pinctrl/bcm/pinctrl-iproc-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/bcm/pinctrl-ipro

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2015-12-21 Thread Andy Shevchenko
+Viresh On Mon, Dec 21, 2015 at 2:58 AM, Måns Rullgård wrote: > Andy Shevchenko writes: > >> On Sun, Dec 20, 2015 at 8:49 PM, Måns Rullgård wrote: >>> Julian Margetson writes: On 12/20/2015 1:11 PM, Måns Rullgård wrote: > Julian Margetson writes: >> [ 48.769671] ata3.00: faile

Re: [PATCH 1/2] mm, oom: introduce oom reaper

2015-12-21 Thread Michal Hocko
On Fri 18-12-15 13:14:00, Andrew Morton wrote: > On Fri, 18 Dec 2015 12:54:55 +0100 Michal Hocko wrote: > > > /* Retry the down_read_trylock(mmap_sem) a few times */ > > - while (attempts++ < 10 && !__oom_reap_vmas(mm)) > > - msleep_interruptible(100); > > + while (attempts++ <

Re: [PATCH v3 6/9] phy: ti-pipe3: use *syscon* framework API to power on/off the PHY

2015-12-21 Thread Kishon Vijay Abraham I
Hi On Sunday 20 December 2015 09:08 AM, Rob Herring wrote: > On Tue, Dec 15, 2015 at 02:46:05PM +0530, Kishon Vijay Abraham I wrote: >> Deprecate using phy-omap-control driver to power on/off the PHY and >> use *syscon* framework to do the same. >> >> Signed-off-by: Kishon Vijay Abraham I >> ---

Re: [PATCH 06/10] perf tools: Try to show pretty printed output for dynamic sort keys

2015-12-21 Thread Namhyung Kim
Hi Jiri, On Sun, Dec 20, 2015 at 03:12:45PM +0100, Jiri Olsa wrote: > On Wed, Dec 16, 2015 at 12:35:39AM +0900, Namhyung Kim wrote: > > SNIP > > > struct trace_seq seq; > > + char *str, *pos; > > + struct format_field *field; > > + struct pevent_record rec = { > > + .cpu = h

Re: [PATCH 0/4] clocksource/vt8500: Fix hangs in small delays

2015-12-21 Thread Roman Volkov
On Mon, 21 Dec 2015 01:28:08 +0300 Roman Volkov wrote: > From: Roman Volkov > > vt8500 hangs in nanosleep() function, starting from commit > c6eb3f70d4482806dc2d3e1e3c7736f497b1d418, making the system unusable. > Per investigation, looks like set_next_event() now receives too small > delta and

Re: [PATCH] mm, oom: initiallize all new zap_details fields before use

2015-12-21 Thread Michal Hocko
On Fri 18-12-15 20:04:51, Sasha Levin wrote: > Commit "mm, oom: introduce oom reaper" forgot to initialize the two new fields > of struct zap_details in unmap_mapping_range(). This caused using stack > garbage > on the call to unmap_mapping_range_tree(). > > Signed-off-by: Sasha Levin Thanks fo

[PATCH] lib: radix_tree: Fix error in docs about locks

2015-12-21 Thread Adam Barth
This text refers to the "first 7 functions", which was correct when written but became incorrect when Johannes Weiner added another function to the list in 139e561660fe ("lib: radix_tree: tree node interface"). Change the text to correctly refer to the first 8 functions. Signed-off-by: Adam Barth

[PatchV2 1/6] nvmem: Add flag to export NVMEM to root only

2015-12-21 Thread Andrew Lunn
Legacy AT24, AT25 EEPROMs are exported in sys so that only root can read the contents. The EEPROMs may contain sensitive information. Add a flag so the provide can indicate that NVMEM should also restrict access to root only. Signed-off-by: Andrew Lunn --- drivers/nvmem/core.c | 57 +++

[PatchV2 5/6] eeprom: at25: extend driver to plug into the NVMEM framework

2015-12-21 Thread Andrew Lunn
Add a regmap for accessing the EEPROM, and then use that with the NVMEM framework. Enable backwards compatibility in the NVMEM config, so that the 'eeprom' file in sys is provided by the framework. Signed-off-by: Andrew Lunn --- drivers/misc/eeprom/Kconfig | 2 + drivers/misc/eeprom/at25.c |

[PatchV2 0/6] Convert exiting EEPROM drivers to NVMEM

2015-12-21 Thread Andrew Lunn
This patch set converts the old EEPROM drivers in driver/misc/eeprom to use the NVMEM framework. These drivers export there content in /sys as read only to root, since the EEPROM may contain sensitive information. So the first patch adds a flag so the NVMEM framework will create its file in /sys as

Re: The console log is doubled if earlycon is enabled

2015-12-21 Thread Jon Masters
On 11/30/15, 12:10 PM, Greg Kroah-Hartman wrote: On Mon, Nov 30, 2015 at 02:53:49PM +0900, Masahiro Yamada wrote: 2015-11-28 9:04 GMT+09:00 Greg Kroah-Hartman : On Fri, Nov 27, 2015 at 07:21:06PM +0900, Masahiro Yamada wrote: Hi, If I add "earlycon" to the kernel parameter, the log message o

[PatchV2 3/6] eeprom: at24: extend driver to plug into the NVMEM framework

2015-12-21 Thread Andrew Lunn
Add a regmap for accessing the EEPROM, and then use that with the NVMEM framework. Set the NVMEM config structure to enable backward, so that the 'eeprom' file in sys is provided by the framework. Signed-off-by: Andrew Lunn --- drivers/misc/eeprom/Kconfig | 2 + drivers/misc/eeprom/at24.c | 1

[PatchV2 6/6] eeprom: 93xx46: extend driver to plug into the NVMEM framework

2015-12-21 Thread Andrew Lunn
Add a regmap for accessing the EEPROM, and then use that with the NVMEM framework. Enable backward compatibility in the MVMEM config structure, so that the 'eeprom' file in sys is provided by the framework. Signed-off-by: Andrew Lunn --- drivers/misc/eeprom/Kconfig | 2 + drivers/misc/

[PatchV2 2/6] nvmem: Add backwards compatibility support for older EEPROM drivers.

2015-12-21 Thread Andrew Lunn
Older drivers made an 'eeprom' file available in the /sys device directory. Have the NVMEM core provide this to retain backwards compatibility. Signed-off-by: Andrew Lunn --- drivers/nvmem/core.c | 77 +- include/linux/nvmem-provider.h | 4 ++-

[PatchV2 4/6] eeprom: at25: Remove in kernel API for accessing the EEPROM

2015-12-21 Thread Andrew Lunn
The setup() callback is not used by any in kernel code. Remove it. Any new code which requires access to the eeprom can use the NVMEM API. Signed-off-by: Andrew Lunn --- drivers/misc/eeprom/at25.c | 26 -- include/linux/spi/eeprom.h | 2 -- 2 files changed, 28 deletions(

Re: [PATCH V1] rtc: da9063: access ordering error during RTC interrupt system power on

2015-12-21 Thread Alexandre Belloni
On 08/12/2015 at 16:28:39 +, Steve Twiss wrote : > From: Steve Twiss > > This fix alters the ordering of the IRQ and device registrations in the RTC > driver probe function. This change will apply to the RTC driver that supports > both DA9063 and DA9062 PMICs. > > A problem could occur with

Re: [PATCHv3] RTC: RK808: Compensate for Rockchip calendar deviation on November 31st

2015-12-21 Thread Alexandre Belloni
On 15/12/2015 at 15:02:49 -0800, Julius Werner wrote : > In A.D. 1582 Pope Gregory XIII found that the existing Julian calendar > insufficiently represented reality, and changed the rules about > calculating leap years to account for this. Similarly, in A.D. 2013 > Rockchip hardware engineers found

Re: [PATCH] mtd: onenand: omap2: Simplify the DMA setup for various paths

2015-12-21 Thread Peter Ujfalusi
On 12/19/2015 03:30 PM, Aaro Koskinen wrote: > Probably DMA support is not that critical. Looks like with DT boot it's > not even possible to enable it at the moment. I think by adding 'dma-channel' property is there to enable the DMA mode via DT. As for stripping out the DMA support: I'm fine wi

Re: Skylake (XPS 13 9350) TSC is way off

2015-12-21 Thread Jon Masters
On 12/2/15, 6:55 PM, John Stultz wrote: On Wed, Dec 2, 2015 at 3:42 PM, Andy Lutomirski wrote: On a hunch, are you running chrony instead of ntpd? Yes, this is indeed chrony. Ok. I'll have to look closer. The last time that message came up it was in a report of a bug that chrony uncovered

linux-next: Tree for Dec 21

2015-12-21 Thread Stephen Rothwell
Hi all, Changes since 20151218: The orangefs tree gained a conflict against Linus' tree. The i2c tree still had its build failure for which I applied a patch. The clockevents tree lost its build failure but gained a conflict against the tip tree. The cgroup tree gained conflict against the tip

Re: [RFC] theoretical race between memory hotplug and pfn iterator

2015-12-21 Thread Zhu Guihua
On 12/21/2015 03:17 PM, Joonsoo Kim wrote: On Mon, Dec 21, 2015 at 03:00:08PM +0800, Zhu Guihua wrote: On 12/21/2015 11:15 AM, Joonsoo Kim wrote: Hello, memory-hotplug folks. I found theoretical problems between memory hotplug and pfn iterator. For example, pfn iterator works something like b

Re: overriding ACPI _CRS method

2015-12-21 Thread Jon Masters
On 11/29/15, 10:23 PM, Daniel J Blueman wrote: On Mon, Nov 30, 2015 at 11:09 AM, Zheng, Lv wrote: Hi, IMO, if you want the new _CRS to be applied during the Linux early boot stage, you can override the table using initrd override or DSDT override mechanism. Please see Documentation/acpi/initrd

<    4   5   6   7   8   9