Re: [PATCH RFC v2 08/12] soc: samsung: pm_domain: Add support for parent power domain

2014-11-24 Thread Ulf Hansson
On 24 November 2014 at 14:04, Amit Daniel Kachhap wrote: > This patch adds supports for parent power domain. This will ensure > invoking of parent/child power domain on/off in a correct sequence. > In exynos7 SOC's, power domain controllers have parent and child > hierarchy. > > Cc: Kukjin Kim >

[Patch Part3 v4 33/38] x86, irq: Move check of cfg->move_in_progress into send_cleanup_vector()

2014-11-24 Thread Jiang Liu
Move check of cfg->move_in_progress into send_cleanup_vector() to prepare for simplifying struct irq_cfg. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/kernel/apic/vector.c | 10 -- arch/x86/platform/uv/uv_irq.c |3 +-- drivers/iommu/amd_iommu.c

[Patch Part3 v4 19/38] iommu/vt-d: Clean up unsued code

2014-11-24 Thread Jiang Liu
Now we have converted to hierarchy irqdomain, so clean up unused code. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- drivers/iommu/intel_irq_remapping.c | 187 +-- 1 file changed, 1 insertion(+), 186 deletions(-) diff --git a/drivers/iommu/intel_irq_rema

Re: [PATCH v2] clk: Add PWM clock driver

2014-11-24 Thread Philipp Zabel
Hi Mike, Am Montag, den 24.11.2014, 23:07 -0800 schrieb Mike Turquette: > Quoting Philipp Zabel (2014-11-03 01:31:18) > > Some board designers, when running out of clock output pads, decide to > > (mis)use PWM output pads to provide a clock to external components. > > This driver supports this pra

[Patch Part3 v4 35/38] x86, irq: Refine the way to calculate NR_IRQS

2014-11-24 Thread Jiang Liu
Now we have made MSI independent of IOAPIC, so we need to refine the way to calculate NR_IRQS to support configuration with MSI enabled but IOAPIC disabled. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/irq_vectors.h | 18 +++--- 1 file changed, 11 inse

[Patch Part3 v4 38/38] x86, irq: Add kernel parameter vector_alloc to set CPU vector allocation policy

2014-11-24 Thread Jiang Liu
Parameter vector_alloc should be set to an integer with: bit 0: enable allocating CPU vector from CPUs on device local node. That's to allocate from cpumask_of_node(irq_data->node). bit 1: enable the default policy, which is to allocate from apic->target_cpus(). When allocating vec

[Patch Part3 v4 36/38] ACPI, irq, x86: Kill private function mp_register_gsi()/ mp_unregister_gsi()

2014-11-24 Thread Jiang Liu
Function mp_register_gsi() is only called once, so fold it into caller acpi_register_gsi_ioapic(). Do the same for mp_unregister_gsi(). Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/kernel/acpi/boot.c | 57 ++- 1 file changed, 18 inserti

[Patch Part3 v4 32/38] x86, irq: Kill function apic_set_affinity()

2014-11-24 Thread Jiang Liu
Now there's no user of apic_set_affinity(), so kill it. Also rename vector_set_affinity() to apic_set_affinity() for consistency. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/hw_irq.h |2 -- arch/x86/kernel/apic/vector.c | 40 +++---

[Patch Part3 v4 34/38] x86, irq: Move private data in struct irq_cfg into dedicated data structure

2014-11-24 Thread Jiang Liu
Several fields in struct irq_cfg are private to vector.c, so move it into dedicated data structure. This helps to hide implementation details. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/hw_irq.h |3 - arch/x86/kernel/apic/vector.c | 221 ++

[Patch Part3 v4 37/38] x86, irq: Introduce mechanism to support different vector allocation policies

2014-11-24 Thread Jiang Liu
Introduce mechanism to support different vector allocation policies, so platform or user may choose the best suitable CPU vector allocation policy. Currently two policies are supported: 1) allocate CPU vector from cpumask_of_node(dev_to_node(dev)) 2) allocate from apic->target_cpus(), this is the d

[Patch Part3 v4 31/38] x86, irq: Change functions only used in vector.c as static

2014-11-24 Thread Jiang Liu
Function {assign|clear}_irq_vector() and apic_retrigger_irq() are only used in file vector.c, so change them as static. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/hw_irq.h |3 --- arch/x86/kernel/apic/vector.c |7 --- 2 files changed, 4 insertions(+),

[Patch Part3 v4 30/38] x86, irq: Kill unused alloc_irq_and_cfg_at()

2014-11-24 Thread Jiang Liu
There's no caller of alloc_irq_and_cfg_at() anymore, so kill it. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/hw_irq.h |1 - arch/x86/kernel/apic/vector.c | 21 - 2 files changed, 22 deletions(-) diff --git a/arch/x86/include/asm/hw_irq.h

[Patch Part3 v4 29/38] x86, irq: Use cached IOAPIC entry instead of reading from hardware

2014-11-24 Thread Jiang Liu
Use cahced IOAPIC entry instead of reading data from IOAPIC hardware registers to improve performance. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/kernel/apic/io_apic.c | 78 +++- 1 file changed, 21 insertions(+), 57 deletions(-) diff --g

[Patch Part3 v4 28/38] x86, irq: Clean up io_apic.h

2014-11-24 Thread Jiang Liu
Clean up io_apic.h by: 1) moving definition of struct mp_ioapic_gsi into io_apic.c 2) changing mp_pin_to_gsi() and mp_ioapic_gsi_routing() as static 3) killing unused MP_MAX_IOAPIC_PIN 4) killing useless forward declaration 5) killing useless comments Signed-off-by: Jiang Liu Tested-by: Joerg Roe

[Patch Part3 v4 26/38] x86, irq: Kill struct io_apic_irq_attr

2014-11-24 Thread Jiang Liu
Now there's no user of struct io_apic_irq_attr anymore, so kill it. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/io_apic.h |7 --- arch/x86/kernel/apic/io_apic.c | 10 -- 2 files changed, 17 deletions(-) diff --git a/arch/x86/include/asm/io_apic.h

[Patch Part3 v4 25/38] x86, irq: Move irq_cfg.irq_2_pin into io_apic.c

2014-11-24 Thread Jiang Liu
Now only io_apic.c accesses struct irq_cfg.irq_2_pin, so move irq_2_pin into struct mp_chip_data in io_apic.c to clean up struct irq_cfg further. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/hw_irq.h |7 -- arch/x86/kernel/apic/io_apic.c | 164

[Patch Part3 v4 27/38] x86, irq: Kill x86_io_apic_ops.write and x86_io_apic_ops.modify

2014-11-24 Thread Jiang Liu
x86_io_apic_ops.write is always set to native_io_apic_write(), and nobody overrides it. So get rid of the indirection by changing native_io_apic_write() as io_apic_write() and killing x86_io_apic_ops.write. Do the same for x86_io_apic_ops.modify and native_io_apic_modify(). Signed-off-by: Jiang L

Re: [PATCH 1/2] [drivers] staging/lustre: fix sparse warnings

2014-11-24 Thread Dan Carpenter
On Tue, Nov 25, 2014 at 08:35:42AM +0100, Zahari Doychev wrote: > On Tue, Nov 25, 2014 at 02:40:36AM +0300, Dan Carpenter wrote: > > On Mon, Nov 24, 2014 at 07:55:41PM +0100, Zahari Doychev wrote: > > > --- a/drivers/staging/lustre/include/linux/lnet/lib-lnet.h > > > +++ b/drivers/staging/lustre/in

[Patch Part3 v4 23/38] iommu/vt-d: Move struct irq_2_iommu into intel_irq_remapping.c

2014-11-24 Thread Jiang Liu
Now only intel_irq_remapping.c access irq_2_iommu, so move it from hw_irq.h into intel_irq_remapping.c. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/hw_irq.h |9 - drivers/iommu/intel_irq_remapping.c |7 +++ 2 files changed, 7 insertions(+)

[Patch Part3 v4 24/38] iommu/amd: Move struct irq_2_irte into amd_iommu.c

2014-11-24 Thread Jiang Liu
Now only amd_iommu.c access irq_2_irte, so move it from hw_irq.h into amd_iommu.c. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/hw_irq.h | 13 - drivers/iommu/amd_iommu.c |5 + 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a

[Patch Part3 v4 22/38] x86, irq: Kill irq_cfg.irq_remapped

2014-11-24 Thread Jiang Liu
Now there is no user of irq_cfg.irq_remapped, so kill it. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/hw_irq.h |1 - drivers/iommu/amd_iommu.c |1 - drivers/iommu/intel_irq_remapping.c |2 -- 3 files changed, 4 deletions(-) diff --git a

[Patch Part3 v4 20/38] iommu/amd: Clean up unsued code

2014-11-24 Thread Jiang Liu
Now we have converted to hierarchy irqdomain, so clean up unused code. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- drivers/iommu/amd_iommu.c | 144 - 1 file changed, 144 deletions(-) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/am

[Patch Part3 v4 21/38] x86: irq_remapping: Clean up unused interfaces

2014-11-24 Thread Jiang Liu
Now we have converted to hierarchy irqdomain, so clean up unused interfaces. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- drivers/iommu/irq_remapping.h | 16 1 file changed, 16 deletions(-) diff --git a/drivers/iommu/irq_remapping.h b/drivers/iommu/irq_remapping.h in

[Patch Part3 v4 18/38] x86: irq_remapping: Clean up unsued code

2014-11-24 Thread Jiang Liu
Now we have converted to hierarchy irqdomain, so clean up unused code. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/irq_remapping.h | 23 -- arch/x86/kernel/apic/vector.c|1 - drivers/iommu/irq_remapping.c| 36

[Patch Part3 v4 17/38] x86: Clean up unused forward declarations in x86_init.h

2014-11-24 Thread Jiang Liu
Clean up unused forward declarations in x86_init.h. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/x86_init.h |6 -- 1 file changed, 6 deletions(-) diff --git a/arch/x86/include/asm/x86_init.h b/arch/x86/include/asm/x86_init.h index 4ada3d3a0e86..09d4dab9302f

[Patch Part3 v4 15/38] x86, irq: Kill x86_io_apic_ops.eoi_ioapic_pin and related interfaces

2014-11-24 Thread Jiang Liu
Now there is no user of x86_io_apic_ops.eoi_ioapic_pin anymore, so kill it. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/io_apic.h |7 --- arch/x86/include/asm/x86_init.h |1 - arch/x86/kernel/apic/io_apic.c | 20 arch/x86/kernel

[Patch Part3 v4 16/38] x86, irq: Kill GENERIC_IRQ_LEGACY_ALLOC_HWIRQ

2014-11-24 Thread Jiang Liu
There's no user of irq_alloc_hwirqs(), irq_alloc_hwirq(), irq_free_hwirqs() and irq_free_hwirq() anymore, so kill GENERIC_IRQ_LEGACY_ALLOC_HWIRQ and related code. Signed-off-by: Jiang Liu --- arch/x86/Kconfig |1 - arch/x86/kernel/apic/vector.c | 34 ---

[Patch Part3 v4 13/38] x86, irq: Kill x86_io_apic_ops.setup_entry and related interfaces

2014-11-24 Thread Jiang Liu
Now there is no user of x86_io_apic_ops.setup_entry anymore, so kill it. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/io_apic.h |4 arch/x86/include/asm/irq_remapping.h | 13 - arch/x86/include/asm/x86_init.h |3 --- arch/x86/ke

[Patch Part3 v4 11/38] x86, irq: Kill unused struct mp_pin_info

2014-11-24 Thread Jiang Liu
Now nobody makes use of struct mp_pin_info, so kill it. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/kernel/apic/io_apic.c | 30 +++--- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic

[Patch Part3 v4 12/38] x86, irq: Kill x86_io_apic_ops.print_entries and related interfaces

2014-11-24 Thread Jiang Liu
Now there is no user of x86_io_apic_ops.print_entries anymore, so kill it. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/io_apic.h |3 -- arch/x86/include/asm/x86_init.h |1 - arch/x86/kernel/apic/io_apic.c | 55 ---

[Patch Part3 v4 14/38] x86, irq: Kill x86_io_apic_ops.set_affinity and related interfaces

2014-11-24 Thread Jiang Liu
Now there is no user of x86_io_apic_ops.set_affinity anymore, so kill it. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/io_apic.h |4 arch/x86/include/asm/x86_init.h |3 --- arch/x86/kernel/apic/io_apic.c | 25 + arch/x86/kern

[Patch Part3 v4 10/38] x86, irq: Kill unused old IOAPIC irqdomain interfaces

2014-11-24 Thread Jiang Liu
Now we have converted to hierarchy irqdomain, so kill unused old IOAPIC irqdomain interfaces and code. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/io_apic.h |4 - arch/x86/kernel/apic/io_apic.c | 202 +--- 2 files changed, 1

[Patch Part3 v4 09/38] x86, irq: Convert IOAPIC to use hierarchy irqdomain interfaces

2014-11-24 Thread Jiang Liu
Convert IOAPIC driver to support and use hierarchy irqdomain interfaces. It's a little big, but it always break bisectings if we split it into multiple patches. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/kernel/acpi/boot.c| 11 +- arch/x86/kernel/api

[Patch Part3 v4 04/38] x86, irq: Prepare IOAPIC interfaces to support hierarchy irqdomain

2014-11-24 Thread Jiang Liu
Introduce helper functions to manipulate struct irq_alloc_info for IOAPIC. Also add extra parameter to IOAPIC interfaces to prepare for hierarchy irqdomain. Function mp_set_gsi_attr() will be killed once we have switched to hierarchy irqdomain. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --

[Patch Part3 v4 08/38] x86, irq: Introduce helper functions to support hierarchy irqdomain for IOAPIC

2014-11-24 Thread Jiang Liu
Introduce several helper functions, which will be used to enable hierarchy irqdomain for IOAPIC. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/kernel/apic/io_apic.c | 59 1 file changed, 59 insertions(+) diff --git a/arch/x86/kernel/ap

[Patch Part3 v4 05/38] x86, irq: Implement callbacks to enable hierarchy irqdomain on IOAPICs

2014-11-24 Thread Jiang Liu
Implement required callbacks to prepare for enabling hierarchy irqdomain on IOAPICs. Later we will clean up IOAPIC code a lot by using hierarchy irqdomain framework. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/include/asm/io_apic.h | 10 +++ arch/x86/kernel/apic/io_apic.c |

[Patch Part3 v4 06/38] x86, irq: Refine the way to allocate irq_cfg for legacy IRQs

2014-11-24 Thread Jiang Liu
To support legacy ISA IRQs, we need to preallocate irq_cfg structures for legacy ISA IRQs. Refine the way to allocate irq_cfg for legacy ISA IRQs, so it's more friend to hierarchy irqdomain implementation. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/kernel/apic/io_apic.c | 1

[Patch Part3 v4 07/38] x86, irq: Simplify the way to print IOAPIC entry

2014-11-24 Thread Jiang Liu
Simplify the way to print IOAPIC entry content, so we could kill native_io_apic_print_entries(), intel_ir_io_apic_print_entries() and x86_io_apic_ops.print_entries() later. Signed-off-by: Jiang Liu Tested-by: Joerg Roedel --- arch/x86/kernel/apic/io_apic.c | 30 --

Re: Using kernel filesystems as userland libraries

2014-11-24 Thread xun ni
Hi, George: is there any reason to do this? we still need to copy files from userspace to kernel. Thanks, Xun 2014-11-24 21:12 GMT+08:00 Nicolas George : > Hi. > > With the libraries present in e2fsprogs, it is possible to open a plain file > (or any other reasonable storage) as an EXT2 files

[Patch Part3 v4 02/38] x86, intel-mid, trivial: Refine code syntax for sfi_parse_mtmr()

2014-11-24 Thread Jiang Liu
Correctly indent code in function sfi_parse_mtmr(). Signed-off-by: Jiang Liu Tested-by: Andy Shevchenko --- arch/x86/platform/intel-mid/sfi.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/x86/platform/intel-mid/sfi.c b/arch/x86/platform/intel

[Patch Part3 v4 01/38] x86, intel-mid: Delay initialization of APB timer

2014-11-24 Thread Jiang Liu
From: Thomas Gleixner MID has no PIC, but depending on the platform it requires the abt_timer, which is connected to irq0. The timer is set up at late_time_init(). But, looking at the MID code it seems, that there is no reason to do so. The only code which might need the timer working is the TSC

[Patch Part3 v4 00/38] Enable hierarchy irqdomian on x86 platforms

2014-11-24 Thread Jiang Liu
This is the last part to enable support of hierarchy domain on x86 platforms. It first converts IOAPIC to support hierarchy irqdomain, then cleans up all unused code and interfaces. It also introduces a kernel boot parameter to configure CPU vector allocation policies. It's based on my previous p

[Patch Part3 v4 03/38] x86, irq: Kill unused pre_init_apic_IRQ0()

2014-11-24 Thread Jiang Liu
Now there's no user of pre_init_apic_IRQ0(), so kill it. Signed-off-by: Jiang Liu Tested-by: Andy Shevchenko --- arch/x86/include/asm/io_apic.h |1 - arch/x86/kernel/apic/io_apic.c | 17 - 2 files changed, 18 deletions(-) diff --git a/arch/x86/include/asm/io_apic.h b/arch

Re: [PATCH v4 4/6] hw_random: fix unregister race.

2014-11-24 Thread Amos Kong
On Wed, Nov 12, 2014 at 02:33:00PM +1030, Rusty Russell wrote: > Amos Kong writes: > > From: Rusty Russell > > > > The previous patch added one potential problem: we can still be > > reading from a hwrng when it's unregistered. Add a wait for zero > > in the hwrng_unregister path. > > > > v4: ad

Re: 3.18-rc regression: drm/nouveau: use shared fences for readable objects

2014-11-24 Thread Maarten Lankhorst
Hey, Op 22-11-14 om 21:16 schreef Michael Marineau: > On Nov 22, 2014 11:45 AM, "Michael Marineau" wrote: >> >> On Nov 22, 2014 8:56 AM, "Maarten Lankhorst" < > maarten.lankho...@canonical.com> wrote: >>> Hey, >>> >>> Op 22-11-14 om 01:19 schreef Michael Marineau: On Thu, Nov 20, 2014 at 12:

Re: [PATCH v8 2/6] arm64: ptrace: allow tracer to skip a system call

2014-11-24 Thread AKASHI Takahiro
On 11/21/2014 04:17 AM, Will Deacon wrote: On Thu, Nov 20, 2014 at 05:13:04AM +, AKASHI Takahiro wrote: On 11/20/2014 04:06 AM, Will Deacon wrote: On Wed, Nov 19, 2014 at 08:46:19AM +, AKASHI Takahiro wrote: Syscall(-1) will return -ENOSYS whether or not a syscallno is explicitly repla

Re: [PATCH 2/4] gpiolib: use const parameters when possible

2014-11-24 Thread Alexandre Courbot
On Wed, Nov 19, 2014 at 7:09 PM, Uwe Kleine-König wrote: > Hello Alexandre, > > On Wed, Nov 19, 2014 at 06:07:50PM +0900, Alexandre Courbot wrote: >> On Wed, Nov 19, 2014 at 6:02 PM, Uwe Kleine-König >> wrote: >> > I'd make gpiod_get_direction static and only use it to fill in >> > /sys/kernel/d

Re: Using kernel filesystems as userland libraries

2014-11-24 Thread Clemens Ladisch
Nicolas George wrote: > With the libraries present in e2fsprogs, it is possible to open a plain file > (or any other reasonable storage) as an EXT2 filesystem and manipulate files > inside it. > > Is it possible to use the implementations in the kernel to do the same thing > with any supported norm

Re: [PATCH 1/2] [drivers] staging/lustre: fix sparse warnings

2014-11-24 Thread Zahari Doychev
On Tue, Nov 25, 2014 at 02:40:36AM +0300, Dan Carpenter wrote: > On Mon, Nov 24, 2014 at 07:55:41PM +0100, Zahari Doychev wrote: > > --- a/drivers/staging/lustre/include/linux/lnet/lib-lnet.h > > +++ b/drivers/staging/lustre/include/linux/lnet/lib-lnet.h > > @@ -784,7 +784,8 @@ lnet_copy_iov2flat(i

Re: [PATCH RFC v2 07/12] PM / Domains: export pm_genpd_lookup_name

2014-11-24 Thread Ulf Hansson
On 24 November 2014 at 14:04, Amit Daniel Kachhap wrote: > This API may be needed to set the power domain parent/child relationship > in the power domain platform driver. The parent relationship is > generally set after the child power domain is registered with the power > domain subsystem. In thi

[PATCH v9 3/4] ARM: dts: add RK3288 suspend support

2014-11-24 Thread Chris Zhong
add pmu sram node for suspend, add global_pwroff pinctrl. The pmu sram is used to store the resume code. global_pwroff is held low level at work, it would be pull to high when entering suspend. reference this in the board DTS file since some boards need it. Signed-off-by: Tony Xie Signed-off-by:

[PATCH v9 4/4] ARM: dts: rockchip: add suspend settings for rk3288-evb-rk808

2014-11-24 Thread Chris Zhong
Add suspend-voltages and necessary pin-states for suspend on rk3288-evb-rk808 boards. global_pwroff would be pulled high when RK3288 entering suspend, this pin is a sleep signal for RK808, so RK808 could goto sleep mode, and some regulators would be disable. Signed-off-by: Chris Zhong --- Chang

[PATCH v9 2/4] ARM: rockchip: Add pmu-sram binding

2014-11-24 Thread Chris Zhong
The pmu-sram is used to store resume code, suspend/resume need get the address of it. Therefore add a binding and documentation for it. Signed-off-by: Tony Xie Signed-off-by: Chris Zhong Reviewed-by: Doug Anderson --- Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6:

[PATCH v9 1/4] ARM: rockchip: add suspend and resume for RK3288

2014-11-24 Thread Chris Zhong
It's a basic version of suspend and resume for rockchip, it only support RK3288 now. Signed-off-by: Tony Xie Signed-off-by: Chris Zhong Signed-off-by: Doug Anderson Tested-by: Doug Anderson Reviewed-by: Doug Anderson --- Changes in v9: - fold Doug's patches - modify some print log Changes

[PATCH v9 0/4] The 1st version of suspend for RK3288.

2014-11-24 Thread Chris Zhong
This suspend patch is only support cut off the power of cpu and some external devices, since we still lack power_domain driver, so the other power rail of rk3288 need keep power on. I have tested it on rk3288-evb board, atop next-20141124. goto suspend by type "echo mem > /sys/pow

Re: [PATCH RFC v2 06/12] driver: soc: exynos-pmu: Add exynos7 power domain on/off ops

2014-11-24 Thread Ulf Hansson
On 24 November 2014 at 14:04, Amit Daniel Kachhap wrote: > This patch uses the restructuring done in PD handlers and adds PD > on/off/status handlers for exynos7. In this SoC, some extra settings > need to be done prior to turning on/off power domains. Some of those > settings are also different f

[PATCH v5 2/7] fs: moved kernel_write to fs/read_write

2014-11-24 Thread Pieter Smith
kernel_write shares infrastructure with the read_write translation unit but not with the splice translation unit. Grouping kernel_write with the read_write translation unit is more logical. It also paves the way to compiling out the splice group of syscalls for embedded systems that do not need the

[PATCH v5 1/7] fs: move sendfile syscall into fs/splice

2014-11-24 Thread Pieter Smith
sendfile functionally forms part of the splice group of syscalls (splice, vmsplice and tee). Grouping sendfile with splice paves the way to compiling out the splice group of syscalls for embedded systems that do not need these. add/remove: 0/0 grow/shrink: 7/2 up/down: 86/-61 (25) function

[PATCH v5 5/7] net/core: support compiling out splice

2014-11-24 Thread Pieter Smith
To implement splice support, net/core makes use of nosteal_pipe_buf_ops. This struct is exported by fs/splice. The goal of the larger patch set is to completely compile out fs/splice, so uses of the exported struct need to be compiled out along with fs/splice. This patch therefore compiles out spl

[PATCH v5 3/7] fs/splice: support compiling out splice-family syscalls

2014-11-24 Thread Pieter Smith
Many embedded systems will not need the splice-family syscalls (splice, vmsplice, tee and sendfile). Omitting them saves space. This adds a new EXPERT config option CONFIG_SYSCALL_SPLICE (default y) to support compiling them out. The goal is to completely compile out fs/splice along with the sysc

[PATCH v5 7/7] fs/splice: full support for compiling out splice

2014-11-24 Thread Pieter Smith
Entirely compile out splice translation unit when the system is configured without splice family of syscalls (i.e. CONFIG_SYSCALL_SPLICE is undefined). Exported fs/splice functions are transparently mocked out with static inlines. Because userspace support for splice has already been removed by th

[PATCH] gpio: remove const modifier from gpiod_get_direction()

2014-11-24 Thread Alexandre Courbot
Although gpiod_get_direction() can be considered side-effect free for consumers, its internals involve setting or clearing bits in the affected GPIO descriptor, for which we need to force-cast the const descriptor parameter. This could lead to incorrect behavior is the compiler decide to optimize h

[PATCH v5 6/7] fs/nfsd: support compiling out splice

2014-11-24 Thread Pieter Smith
The goal of the larger patch set is to completely compile out fs/splice, and as a result, splice support for all file-systems. This patch ensures that fs/nfsd falls back to non-splice fs support when CONFIG_SYSCALL_SPLICE is undefined. Signed-off-by: Pieter Smith --- net/sunrpc/svc.c | 2 +- 1 f

[PATCH v5 4/7] fs/fuse: support compiling out splice

2014-11-24 Thread Pieter Smith
To implement splice support, fs/fuse makes use of nosteal_pipe_buf_ops. This struct is exported by fs/splice. The goal of the larger patch set is to completely compile out fs/splice, so uses of the exported struct need to be compiled out along with fs/splice. This patch therefore compiles out spli

Re: linux-next: manual merge of the tiny tree with the tip tree

2014-11-24 Thread Josh Triplett
On Mon, Nov 24, 2014 at 10:30:10PM -0800, John Stultz wrote: > On Mon, Nov 24, 2014 at 10:16 PM, Ingo Molnar wrote: > > > > * Stephen Rothwell wrote: > > > >> Hi Josh, > >> > >> Today's linux-next merge of the tiny tree got a conflict in > >> kernel/time/Makefile between commit fd866e2b116b ("tim

[PATCH v5 0/7] kernel tinification: optionally compile out splice family of syscalls (splice, vmsplice, tee and sendfile)

2014-11-24 Thread Pieter Smith
REPO: https://github.com/smipi1/linux-tinification.git BRANCH: tiny/config-syscall-splice BACKGROUND: This patch-set forms part of the Linux Kernel Tinification effort ( https://tiny.wiki.kernel.org/). GOAL: Support compiling out the splice family of syscalls (splice, vmsplice, tee and sendf

Re: [PATCH v2 5/5] btrfs: enable swap file support

2014-11-24 Thread Brendan Hide
On 2014/11/25 00:03, Omar Sandoval wrote: [snip] The snapshot issue is a little tricker to resolve. I see a few options: 1. Just do the COW and hope for the best 2. As part of btrfs_swap_activate, COW any shared extents. If a snapshot happens while a swap file is active, we'll fall back to 1. 3

Re: [PATCH v2 2/3] PM / devfreq: tegra: add devfreq driver for Tegra Activity Monitor

2014-11-24 Thread MyungJoo Ham
> The ACTMON block can monitor several counters, providing averaging and firing > interrupts based on watermarking configuration. This implementation monitors > the MCALL and MCCPU counters to choose an appropriate frequency for the > external memory clock. > > This patch is based on work by Alex

Re: [PATCH v2] clk: Add PWM clock driver

2014-11-24 Thread Mike Turquette
Quoting Philipp Zabel (2014-11-03 01:31:18) > Some board designers, when running out of clock output pads, decide to > (mis)use PWM output pads to provide a clock to external components. > This driver supports this practice by providing an adapter between the > PWM and clock bindings in the device

RE: [PATCH v3 3/3] usb: phy: hold wakeupsource when USB is enumerated in peripheral mode

2014-11-24 Thread Peter Chen
> > usb: phy: hold wakeupsource when USB is enumerated in peripheral mode > > Some systems require a mechanism to prevent system to enter into suspend > state when USB is connected and enumerated in peripheral mode. > > This patch provides an interface to hold a wakeupsource to prevent suspend

Re: [PATCH 1/1] platform: x86: Deletion of checks before backlight_device_unregister()

2014-11-24 Thread Darren Hart
On Mon, Nov 24, 2014 at 08:40:22PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 24 Nov 2014 20:30:29 +0100 > > The backlight_device_unregister() function tests whether its argument is NULL > and then returns immediately. Thus the test around the call is not needed. > > Thi

Re: [PATCH 1/1] Sony-laptop: Deletion of an unnecessary check before the function call "pci_dev_put"

2014-11-24 Thread Darren Hart
On Mon, Nov 24, 2014 at 10:04:16PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 24 Nov 2014 22:00:21 +0100 > > The pci_dev_put() function tests whether its argument is NULL > and then returns immediately. Thus the test around the call > is not needed. > > This issue was de

Re: [PATCH] mm: add parameter to disable faultaround

2014-11-24 Thread Andrew Morton
On Tue, 25 Nov 2014 15:51:58 +0900 Chanho Min wrote: > The faultaround improves the file read performance, whereas pages which > can be dropped by drop_caches are reduced. On some systems, The amount of > freeable pages under memory pressure is more important than read > performance. The faultar

[PATCH v8 7/8] regulator: sky81452: Modify Device Tree structure

2014-11-24 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v8: Changed the DT parsing of regulator using regulator_node and of_match Changes v7: Modified licensing text to GPLv2 Splitted Kconfig renaming from DT patch Changes v6: Added new line character at the end of line of dev_err() Changes

[PATCH v8 5/8] devicetree: Add vendor prefix for Skyworks Solutions, Inc.

2014-11-24 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v8: Nothing Changes v7: Nothing Changes v6: Nothing Changes v5: Nothing Changes v4: Nothing Changes v3: Nothing Changes v2: Added vendor prefix for Skyworks Solutions, Inc. Documentation/devicetree/bindings/vendor-prefixes.txt | 1

[PATCH v8 6/8] devicetree: i2c: Add SKY81452 to the Trivial Devices list

2014-11-24 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v8: Nothing Changes v7: Nothing Changes v6: Nothing Changes v5: Nothing Changes v4: Nothing Changes v3: Nothing Changes v2: Add SKY81452 to the Trivial Devices list Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 + 1

[PATCH v8 8/8] devicetree: regulator: sky81452: Modify Device Tree structure

2014-11-24 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v8: Nothing Changes v7: Nothing Changes v6: Nothing Changes v5: Changed DT for regulator : 'lout' node should be defined under 'regulator' Removed compatible string from sky81452-regulator driver Changes v4: Nothing Changes v3: Nothin

[PATCH v8 4/8] devicetree: backlight: Add new SKY81452 backlight binding

2014-11-24 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v8: Renamed property names for backlight with vendor prefix Modified gpio-enable property to generic property for GPIO Made up the example for backlight DT Changes v7: Nothing Changes v6: Nothing Changes v5: Nothing Changes v4: Nothing

[PATCH v8 2/8] backlight: Add support Skyworks SKY81452 backlight driver

2014-11-24 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v8: Renamed property names for backlight with vendor prefix Modified gpio-enable property to generic property for GPIO Changes v7: Modified licensing text to GPLv2 Changes v6: Added new line character at the end of line of dev_err() Cha

[PATCH v8 3/8] devicetree: mfd: Add new SKY81452 mfd binding

2014-11-24 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v8: Made up the example for backlight DT Changes v7: Nothing Changes v6: Nothing Changes v5: Changed DT for regulator : 'lout' node should be defined under 'regulator' Removed compatible string from sky81452-regulator driver Changes v4

[PATCH v8 1/8] mfd: Add support for Skyworks SKY81452 driver

2014-11-24 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo Acked-by: Lee Jones --- Changes v8: Nothing Changes v7: Modified licensing text to GPLv2 Changes v6: Added new line character at the end of line of dev_err() Changes v5: Move sky81452-backlight.h to include/linux/platform_data Changes v4: Removed

[PATCH v8 0/8] Add Skyworks SKY81452 device drivers

2014-11-24 Thread gyungoh
From: Gyungoh Yoo This patch set includes regulator and backlight driver for SKY81452. Also it includes documents for device tree and module. The initial version of sky81452-regulator was applied. Fo this, incremental patches are included. v8: Renamed property names for backlight with vendor pre

Re: [PATCH v2] toshiba_acpi: Fix regression caused by backlight extra check code

2014-11-24 Thread Darren Hart
On Mon, Nov 24, 2014 at 07:29:36PM -0700, Azael Avalos wrote: > Bug 86521 uncovered that some TOS6208 devices also return > non zero values on a write call to the backlight method, > thus getting caught and bailed out by the extra check code. > > This patch changes the set_lcd_brightness function

[PATCH] mm: add parameter to disable faultaround

2014-11-24 Thread Chanho Min
The faultaround improves the file read performance, whereas pages which can be dropped by drop_caches are reduced. On some systems, The amount of freeable pages under memory pressure is more important than read performance. So It prefers to be selectable. This patch adds a new kernel cmdline param

Re: [PATCH] of: support passing console options with stdout-path

2014-11-24 Thread Sascha Hauer
On Tue, Nov 25, 2014 at 12:00:16AM +0100, Andrew Lunn wrote: > On Mon, Nov 24, 2014 at 10:23:58PM +, Leif Lindholm wrote: > > Support specifying console options (like with console=ttyXN,) > > by appending them to the stdout-path property after a separating ':'. > > > > Example: > > stdout-

Re: linux-next: manual merge of the tiny tree with the tip tree

2014-11-24 Thread Josh Triplett
On Tue, Nov 25, 2014 at 07:16:45AM +0100, Ingo Molnar wrote: > * Stephen Rothwell wrote: > > Hi Josh, > > > > Today's linux-next merge of the tiny tree got a conflict in > > kernel/time/Makefile between commit fd866e2b116b ("time: Rename > > udelay_test.c to test_udelay.c") from the tip tree and

Re: [PATCHv3 08/16] clk: mvebu: add suspend/resume for gatable clocks

2014-11-24 Thread Thomas Petazzoni
Mike, On Mon, 24 Nov 2014 22:07:00 -0800, Mike Turquette wrote: > Quoting Thomas Petazzoni (2014-11-21 08:00:05) > > This commit adds suspend/resume support for the gatable clock driver > > used on Marvell EBU platforms. When getting out of suspend, the > > Marvell EBU platforms go through the boo

Re: [PATCH v4 1/2] ARM: keystone: pm: switch to use generic pm domains

2014-11-24 Thread Mike Turquette
Quoting Arnd Bergmann (2014-11-24 02:50:28) > On Friday 21 November 2014 20:58:01 Grygorii Strashko wrote: > > Hi Kevin, > > On 11/21/2014 10:06 AM, Geert Uytterhoeven wrote: > > > On Fri, Nov 21, 2014 at 2:30 AM, Kevin Hilman wrote: > > >> Geert Uytterhoeven writes: > > >> > > >> So now I'm conf

Re: [PATCH v3] sched/fair: Add advisory flag for borrowing a timeslice (was: Pre-emption control for userspace)

2014-11-24 Thread Davidlohr Bueso
On Mon, 2014-11-24 at 21:03 -0500, Rik van Riel wrote: > I can see this "solution" help mostly with userspace spinlocks, > which are relics of a past era that need to die. There is no > way userspace spinlocks will not fail miserably on virtual > machines, and it is time to get rid of them. No, no

Re: [PATCH] mmc: dw_mmc: add quirk for data over interrupt timeout

2014-11-24 Thread Addy
Hi, Jaehoon On 2014/11/20 18:01, Jaehoon Chung wrote: Hi, Addy. On 11/20/2014 06:33 PM, addy ke wrote: Hi, Jaehoon On 2014/11/19 13:56, addy ke wrote: Hi Jaehoon On 2014/11/19 09:22, Jaehoon Chung Wrote: Hi, Addy. On 11/18/2014 09:32 AM, Addy wrote: On 2014年11月14日 21:18, Jaehoon Chung wr

[tip:perf/urgent] x86/asm/traps: Disable tracing and kprobes in fixup_bad_iret and sync_regs

2014-11-24 Thread tip-bot for Andy Lutomirski
Commit-ID: 7ddc6a2199f1da405a2fb68c40db8899b1a8cd87 Gitweb: http://git.kernel.org/tip/7ddc6a2199f1da405a2fb68c40db8899b1a8cd87 Author: Andy Lutomirski AuthorDate: Mon, 24 Nov 2014 17:39:06 -0800 Committer: Ingo Molnar CommitDate: Tue, 25 Nov 2014 07:26:55 +0100 x86/asm/traps: Disable t

Re: linux-next: manual merge of the tiny tree with the tip tree

2014-11-24 Thread John Stultz
On Mon, Nov 24, 2014 at 10:16 PM, Ingo Molnar wrote: > > * Stephen Rothwell wrote: > >> Hi Josh, >> >> Today's linux-next merge of the tiny tree got a conflict in >> kernel/time/Makefile between commit fd866e2b116b ("time: Rename >> udelay_test.c to test_udelay.c") from the tip tree and commit >>

Re: Obsolete Fix Me in main.c due to not included header file

2014-11-24 Thread Ingo Molnar
* nick wrote: > Greeting Thomas and other maintainers, I am wondering why we > still need a fix me for including types.h,as this seems correct > and good according to my reading of the other header files this > file needs to function. Nick So your first few mails were OK, but now you are com

Re: [PATCH v2] ALSA: korg1212: cleanup of printk

2014-11-24 Thread Sudip Mukherjee
On Mon, Nov 24, 2014 at 09:25:10AM -0800, Joe Perches wrote: > On Mon, 2014-11-24 at 18:08 +0100, Takashi Iwai wrote: > > At Sun, 23 Nov 2014 13:40:51 +0530, Sudip Mukherjee wrote: > [] > > > replaced all references of the debug messages via printk > > > with dev_* macro (mostly dev_dbg). > > > one

[tip:timers/core] time: Fix sign bug in NTP mult overflow warning

2014-11-24 Thread tip-bot for John Stultz
Commit-ID: cb2aa63469f81426c7406227be70b628b42f7a05 Gitweb: http://git.kernel.org/tip/cb2aa63469f81426c7406227be70b628b42f7a05 Author: John Stultz AuthorDate: Mon, 24 Nov 2014 20:35:45 -0800 Committer: Ingo Molnar CommitDate: Tue, 25 Nov 2014 07:18:34 +0100 time: Fix sign bug in NTP mu

Re: linux-next: manual merge of the tiny tree with the tip tree

2014-11-24 Thread Ingo Molnar
* Stephen Rothwell wrote: > Hi Josh, > > Today's linux-next merge of the tiny tree got a conflict in > kernel/time/Makefile between commit fd866e2b116b ("time: Rename > udelay_test.c to test_udelay.c") from the tip tree and commit > d1f6d68d03ea ("kernel: time: Compile out NTP support") from th

Re: [PATCHv3 08/16] clk: mvebu: add suspend/resume for gatable clocks

2014-11-24 Thread Mike Turquette
Quoting Thomas Petazzoni (2014-11-21 08:00:05) > This commit adds suspend/resume support for the gatable clock driver > used on Marvell EBU platforms. When getting out of suspend, the > Marvell EBU platforms go through the bootloader, which re-enables all > gatable clocks. However, upon resume, the

linux-next: manual merge of the tiny tree with the tip tree

2014-11-24 Thread Stephen Rothwell
Hi Josh, Today's linux-next merge of the tiny tree got a conflict in kernel/time/Makefile between commit fd866e2b116b ("time: Rename udelay_test.c to test_udelay.c") from the tip tree and commit d1f6d68d03ea ("kernel: time: Compile out NTP support") from the tiny tree. I fixed it up (see below) a

Re: [PATCH 0/6] blk: introduce generic io stat accounting help function

2014-11-24 Thread Gu Zheng
On 11/24/2014 11:03 PM, Jens Axboe wrote: > On 11/23/2014 08:05 PM, Gu Zheng wrote: >> Many block drivers accounting io stat based on bio (e.g. NVMe...), >> the blk_account_io_start/end() which is based on request >> does not make sense to them, so here we introduce the similar help >> function na

[Patch Part2 v6 05/27] x86, uv: Use new irqdomain interfaces to allocate/free IRQ

2014-11-24 Thread Jiang Liu
Use new irqdomain interfaces to allocate/free IRQ, so we could kill GENERIC_IRQ_LEGACY_ALLOC_HWIRQ later. Signed-off-by: Jiang Liu --- arch/x86/platform/uv/uv_irq.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/arch/x86/platform/uv/uv_irq.c b

  1   2   3   4   5   6   7   8   9   10   >