On register r/w macros/procedures of drivers/media/pci

2015-04-19 Thread Andrey Utkin
I am starting a work on driver for techwell tw5864 media grabberencoder. I am basing on tw68 driver (mentorship, advising and testing by board owners are appreciated). And here (and in some other drivers/media/pci/ drivers) I see what confuses me: tw68-core.c: dev-lmmio =

Re: On register r/w macros/procedures of drivers/media/pci

2015-04-19 Thread Andrey Utkin
On Sun, Apr 19, 2015 at 11:28 AM, Hans Verkuil hverk...@xs4all.nl wrote: Check the types of llmio and bbmio: u32 __iomem *lmmio; u8 __iomem *bmmio; So the values of the pointers are the same, but the types are not. So 'lmmio + 1' ==

Re: qemu:arm test failure due to commit 8053871d0f7f (smp: Fix smp_call_function_single_async() locking)

2015-04-19 Thread Linus Torvalds
On Sun, Apr 19, 2015 at 4:48 AM, Linus Torvalds torva...@linux-foundation.org wrote: Does that smaller patch work equally well? .. and here's a properly formatted email and patch. Linus kernel/smp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/smp.c

Re: [PATCH 4/5] MIPS: ath79: Fix the PCI memory size and offset of window 7

2015-04-19 Thread Alban
On Sun, 19 Apr 2015 00:28:39 +0200 Jonas Gorski j...@openwrt.org wrote: Hi, On Fri, Apr 17, 2015 at 2:36 PM, Alban Bedel al...@free.fr wrote: The define AR71XX_PCI_MEM_SIZE miss one window, there is 7 windows, not 6. To make things clearer, and allow simpler code, derive

[PATCH] s390: char: con3215: Free memory in error path

2015-04-19 Thread Christophe Jaillet
If one memory allocation fails, there is a memory leak. Signed-off-by: Christophe Jaillet christophe.jail...@wanadoo.fr --- drivers/s390/char/con3215.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/s390/char/con3215.c b/drivers/s390/char/con3215.c index c43aca6..0fc3fe5 100644

Re: [PATCH 1/3] iio: magnetometer: Add support for MEMSIC MMC35240 sensor

2015-04-19 Thread Jonathan Cameron
On 15/04/15 12:02, Daniel Baluta wrote: Minimal implementation for MMC35240 3-axis magnetometer sensor. It provides processed readings and possiblity to change the sampling frequency. Signed-off-by: Daniel Baluta daniel.bal...@intel.com a couple of really minor points inline. Looks good to

[RFC PATCH v3 04/10] lib: time handling (kernel glue code)

2015-04-19 Thread Hajime Tazaki
timer related (internal) functions such as add_timer(), do_gettimeofday() of kernel are trivially reimplemented for libos. these eventually call the functions registered by lib_init() API. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/hrtimer.c | 122

[RFC PATCH v3 08/10] lib: auxially files for auto-generated asm-generic files of libos

2015-04-19 Thread Hajime Tazaki
these files works as stubs in order to transparently run the other kernel part (e.g., net/) on libos environment. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/include/asm/Kbuild | 57 +++ arch/lib/include/asm/atomic.h | 50

[RFC PATCH v3 06/10] lib: sysctl handling (kernel glue code)

2015-04-19 Thread Hajime Tazaki
This interacts with fs/proc_fs.c for sysctl-like interface registed via lib_init() API. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/sysctl.c | 270 ++ 1 file changed, 270 insertions(+) create mode 100644 arch/lib/sysctl.c

Re: qemu:arm test failure due to commit 8053871d0f7f (smp: Fix smp_call_function_single_async() locking)

2015-04-19 Thread Ingo Molnar
* Linus Torvalds torva...@linux-foundation.org wrote: On Sun, Apr 19, 2015 at 4:48 AM, Linus Torvalds torva...@linux-foundation.org wrote: Does that smaller patch work equally well? .. and here's a properly formatted email and patch. Linus kernel/smp.c | 4 +++- 1 file

[PATCH v3] psmouse - focaltech pass finger width to userspace

2015-04-19 Thread Dmitry Tunin
Focaltech touchpads report finger width in packet[5] of absolute packet. Range for width in raw format is 0x10 - 0x70. Second half-byte is always 0. 0xff is reported, when a large contact area is detected. This can be handled in userspace. Signed-off-by: Dmitry Tunin hanipouspi...@gmail.com ---

[PATCH v10 3/4] cgroups: allow a cgroup subsystem to reject a fork

2015-04-19 Thread Aleksa Sarai
Add a new cgroup subsystem callback can_fork that conditionally states whether or not the fork is accepted or rejected by a cgroup policy. In addition, add a cancel_fork callback so that if an error occurs later in the forking process, any state modified by can_fork can be reverted. Allow for a

[PATCH v10 4/4] cgroups: implement the PIDs subsystem

2015-04-19 Thread Aleksa Sarai
Adds a new single-purpose PIDs subsystem to limit the number of tasks that can be forked inside a cgroup. Essentially this is an implementation of RLIMIT_NPROC that applies to a cgroup rather than a process tree. However, it should be noted that organisational operations (adding and removing

[PATCH v10 2/4] cgroups: replace explicit ss_mask checking with for_each_subsys_which

2015-04-19 Thread Aleksa Sarai
Replace the explicit checking against ss_masks inside a for_each_subsys block with for_each_subsys_which(ss_mask, ...), to take advantage of the more readable macro. Signed-off-by: Aleksa Sarai cyp...@cyphar.com --- kernel/cgroup.c | 42 ++ 1 file changed,

[PATCH v10 1/4] cgroups: use bitmask to filter for_each_subsys

2015-04-19 Thread Aleksa Sarai
Add a new macro for_each_subsys_which that allows all enabled cgroup subsystems to be filtered by a bitmask, such that mask (1 ssid) determines if the subsystem is to be processed in the loop body (where ssid is the unique id of the subsystem). Also replace the need_forkexit_callback with two

[PATCH v10 0/4] cgroups: add pids subsystem

2015-04-19 Thread Aleksa Sarai
This is an updated version of v9 of the pids patchset[1], with a few small fixes: * Fixed an off-by-one error in the SUBSYS_TAG macro that affects intermediate __unused_* values (causing issues when merging tags into the subsys enum) * Updated the SUBSYS_TAG macro to be simpler (removed

[RFC PATCH v3 10/10] lib: tools used for test scripts

2015-04-19 Thread Hajime Tazaki
These auxiliary files are used for testing and debugging of net/ code with libos. a simple test is implemented with make test ARCH=lib. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- tools/testing/libos/.gitignore | 6 + tools/testing/libos/Makefile | 38

[RFC PATCH v3 09/10] lib: libos build scripts and documentation

2015-04-19 Thread Hajime Tazaki
document and build scripts for libos architecture. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp Signed-off-by: Ryo Nakamura u...@haeena.net --- Documentation/virtual/libos-howto.txt | 144 MAINTAINERS | 9 + arch/lib/.gitignore | 8 +

[PATCH] regulator: Fix the function name in documentation

2015-04-19 Thread Krzysztof Kozlowski
The function name in kernel-doc for regulator_map_voltage_linear_range() was wrong. Signed-off-by: Krzysztof Kozlowski k.kozlowsk...@gmail.com --- drivers/regulator/helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/helpers.c

Re: sparc64: Build failure due to commit f1600e549b94 (sparc: Make sparc64 use scalable lib/iommu-common.c functions)

2015-04-19 Thread Sowmini Varadhan
On (04/18/15 21:23), Guenter Roeck wrote: I spoke too early. Now I get a similar failure in the powerpc:allmodconfig build (which previously failed for a different reason). I think this duplicate symbol is genuine.. there's a definition in arch/powerpc/kernel/iommu.c. To avoid conflicting

Re: [PATCH] drm: rockchip: Turn off VT switching on suspend

2015-04-19 Thread Caesar Wang
Hi Mark, Can you apply it into your drm branch if it's indeed uesful for u? 在 2015年03月31日 18:22, Caesar Wang 写道: drm/rockchip already has support for disabling all displays on suspend and enabling them on resume. Disable automatic VT switching on suspend by the pm console tracking layer.

Re: [PATH] MIPS: ath79: Add OF support and DTS for TL-WR1043ND

2015-04-19 Thread Alban
On Sat, 18 Apr 2015 13:33:20 -0700 Florian Fainelli f.faine...@gmail.com wrote: Le 17/04/2015 07:24, Alban Bedel a écrit : This series add OF bindings and code support for the interrupt controllers, clocks and GPIOs. However it was only tested on a TL-WR1043ND with an AR9132, others SoCs

Re: [PATCH 1/2] clk: change clk_ops' -round_rate() prototype

2015-04-19 Thread Heiko Stübner
Hi Boris, Am Freitag, 17. April 2015, 09:29:28 schrieb Boris Brezillon: Clock rates are stored in an unsigned long field, but -round_rate() (which returns a rounded rate from a requested one) returns a long value (errors are reported using negative error codes), which can lead to long

[PATCH v2 4/5] MIPS: ath79: Improve the DDR controller interface

2015-04-19 Thread Alban Bedel
The DDR controller need to be used by the IRQ controller to flush the write buffer of some devices before running the IRQ handler. It is also used by the PCI controller to setup the PCI memory windows. The current interface used to access the DDR controller doesn't provides any useful abstraction

[PATCH v2 2/5] MIPS: ath79: Add a missing new line in log message

2015-04-19 Thread Alban Bedel
The memory setup log is missing a new line. Signed-off-by: Alban Bedel al...@free.fr --- arch/mips/ath79/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c index a73c93c..7fc8397 100644 --- a/arch/mips/ath79/setup.c +++

[PATCH v2 5/5] MIPS: ath79: Use the common clk API

2015-04-19 Thread Alban Bedel
Make the code simpler and open the way for device tree clocks. Signed-off-by: Alban Bedel al...@free.fr --- arch/mips/Kconfig | 1 + arch/mips/ath79/clock.c | 29 ++--- 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/arch/mips/Kconfig

[PATCH v2 3/5] MIPS: ath79: Correctly name the defines for the PLL_FB register

2015-04-19 Thread Alban Bedel
This register is named PLL_FB and is not a divider but a multiplier. To make things less confusing rename the AR_PLL_DIV_SHIFT and AR_PLL_DIV_MASK macros to AR_PLL_FB_SHIFT and AR_PLL_FB_MASK. Signed-off-by: Alban Bedel al...@free.fr --- arch/mips/ath79/clock.c

[RFC PATCH v3 05/10] lib: context and scheduling functions (kernel glue code) for libos

2015-04-19 Thread Hajime Tazaki
contexnt primitives of kernel such as soft interupts, scheduling, tasklet are implemented for libos. these functions eventually call the functions registered by lib_init() API as well. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/sched.c | 406

[RFC PATCH v3 03/10] lib: public headers and API implementations for userspace programs

2015-04-19 Thread Hajime Tazaki
userspace programs which uses libos access via a public API, lib_init(), with passed arguments struct SimImported and struct SimExported. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp Signed-off-by: Ryo Nakamura u...@haeena.net --- arch/lib/include/sim-assert.h | 23 +++

[RFC PATCH v3 01/10] sysctl: make some functions unstatic to access by arch/lib

2015-04-19 Thread Hajime Tazaki
libos (arch/lib) emulates a sysctl-like interface by a function call of userspace by enumerating sysctl tree from sysctl_table_root. It requires to be publicly accessible to this symbol and related functions. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- fs/proc/proc_sysctl.c | 36

[RFC PATCH v3 02/10] slab: add SLIB (Library memory allocator) for arch/lib

2015-04-19 Thread Hajime Tazaki
add SLIB allocator for arch/lib (CONFIG_LIB) to wrap kmalloc and co. This will bring user's own allocator of libos: malloc(3) etc. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- include/linux/slab.h | 6 +- include/linux/slib_def.h | 21 + init/Kconfig | 8 ++

[RFC PATCH v3 00/10] an introduction of library operating system for Linux (LibOS)

2015-04-19 Thread Hajime Tazaki
changes from v2: - Patch 02/11 (slab: add private memory allocator header for arch/lib) * add new allocator named SLIB (Library Allocator): Patch 04/11 is integrated to 02 (commented by Christoph Lameter) - Overall * rewrite commit log messages changes from v1: - Patch 01/11 (sysctl: make some

Re: [PATCH v2 03/12] devicetree: Add bindings for the ATH79 DDR controllers

2015-04-19 Thread Sergei Shtylyov
Hello. On 4/19/2015 3:57 PM, Alban Bedel wrote: The DDR controller of the ARxxx and AR9xxx famillies provides an interface to flush the FIFO between various devices and the DDR. This is mainly used by the IRQ controller to flush the FIFO before running the interrupt handler of such devices.

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-19 Thread Rob Landley
On Thu, Apr 16, 2015 at 6:03 PM, Tejun Heo t...@kernel.org wrote: In a lot of configurations, netconsole is a useful way to collect system logs; however, all netconsole does is simply emitting UDP packets for the raw messages and there's no way for the receiver to find out whether the packets

[PATCH v2 06/12] MIPS: ath79: Add OF support to the IRQ controllers

2015-04-19 Thread Alban Bedel
Add OF support for the CPU and MISC interrupt controllers of most supported ATH79 devices. Signed-off-by: Alban Bedel al...@free.fr --- arch/mips/ath79/irq.c | 87 ++- 1 file changed, 86 insertions(+), 1 deletion(-) diff --git

[PATCH v2 02/12] MIPS: ath79: Add basic device tree support

2015-04-19 Thread Alban Bedel
Add the bare minimum to load a device tree. Signed-off-by: Alban Bedel al...@free.fr --- arch/mips/Kconfig | 1 + arch/mips/ath79/Kconfig | 10 ++ arch/mips/ath79/machtypes.h | 1 + arch/mips/ath79/setup.c | 27 ++- 4 files changed, 38

[PATCH v2 04/12] devicetree: Add bindings for the ATH79 interrupt controllers

2015-04-19 Thread Alban Bedel
Signed-off-by: Alban Bedel al...@free.fr --- v2: * Fixed the node names to respect ePAPR * Removed the unneeded @0 on the node name --- .../interrupt-controller/qca,ath79-cpu-intc.txt| 44 ++ 1 file changed, 44 insertions(+) create mode 100644

[PATCH v2 01/12] devicetree: Add bindings for the SoC of the ATH79 familly

2015-04-19 Thread Alban Bedel
Signed-off-by: Alban Bedel al...@free.fr --- .../devicetree/bindings/mips/ath79-soc.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/ath79-soc.txt diff --git a/Documentation/devicetree/bindings/mips/ath79-soc.txt

[PATCH v2 03/12] devicetree: Add bindings for the ATH79 DDR controllers

2015-04-19 Thread Alban Bedel
The DDR controller of the ARxxx and AR9xxx famillies provides an interface to flush the FIFO between various devices and the DDR. This is mainly used by the IRQ controller to flush the FIFO before running the interrupt handler of such devices. Signed-off-by: Alban Bedel al...@free.fr --- v2: *

[PATCH v2 05/12] devicetree: Add bindings for the ATH79 MISC interrupt controllers

2015-04-19 Thread Alban Bedel
Signed-off-by: Alban Bedel al...@free.fr --- v2: * Fixed the node names to respect ePAPR --- .../interrupt-controller/qca,ath79-misc-intc.txt | 30 ++ 1 file changed, 30 insertions(+) create mode 100644

[PATCH v2 07/12] devicetree: Add bindings for the ATH79 PLL controllers

2015-04-19 Thread Alban Bedel
Signed-off-by: Alban Bedel al...@free.fr --- v2: * Fixed the node names to respect ePAPR * Fixed the missing 's' in 'fallbacks' and the 'clocks' property --- .../devicetree/bindings/clock/qca,ath79-pll.txt| 33 ++ 1 file changed, 33 insertions(+) create mode 100644

Re: [patch] seccomp.2: Note that memory area is read-only

2015-04-19 Thread Michael Kerrisk (man-pages)
On 19 April 2015 at 01:37, Kees Cook keesc...@chromium.org wrote: On Mon, Apr 6, 2015 at 8:29 AM, Michael Kerrisk (man-pages) mtk.manpa...@gmail.com wrote: Hi Kees, I recently was asked about the point below, and had to go check the code to be sure, since the man page said nothing. It would

[PATCH v13 2/3] power-domain: rockchip: add power domain driver

2015-04-19 Thread Caesar Wang
In order to meet high performance and low power requirements, a power management unit is designed or saving power when RK3288 in low power mode. The RK3288 PMU is dedicated for managing the power ot the whole chip. Signed-off-by: jinkun.hong jinkun.h...@rock-chips.com Signed-off-by: Caesar Wang

[PATCH v13 3/3] ARM: dts: add RK3288 power-domain node

2015-04-19 Thread Caesar Wang
This patch add the needed clocks into power-controller. why need we do so that? Firstly, we always be needed turn off clocks to save power when the system enter suspend.So we need to enumerate the clocks are needed to switch power doamin no and off. Secondly, RK3288 reset circuit should be

[PATCH v2 0/5] MIPS: ath79: Various small fix to prepare OF support

2015-04-19 Thread Alban Bedel
First re-run of this serie of misc fix and preparation for OF support on ATH79. * Dropped the bad PCI patch * Moved the patch to use the common clk API out of the OF support serie into this one. Alban Bedel (5): MIPS: ath79: Enable ZBOOT support MIPS: ath79: Add a missing new line in

[PATCH v2 1/5] MIPS: ath79: Enable ZBOOT support

2015-04-19 Thread Alban Bedel
ZBOOT is working fine, so allow using it. Signed-off-by: Alban Bedel al...@free.fr --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index f501665..9075147 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -131,6 +131,7 @@

[PATCH v2 00/12] MIPS: ath79: Add OF support and DTS for TL-WR1043ND

2015-04-19 Thread Alban Bedel
This series add OF bindings and code support for the interrupt controllers, clocks and GPIOs. However it was only tested on a TL-WR1043ND with an AR9132, others SoCs are untested, and a few are not supported at all. Most code changes base on the previous bug fix series: [PATCH v2 0/5] MIPS:

Re: On register r/w macros/procedures of drivers/media/pci

2015-04-19 Thread Hans Verkuil
On 04/19/2015 09:36 AM, Andrey Utkin wrote: I am starting a work on driver for techwell tw5864 media grabberencoder. I am basing on tw68 driver (mentorship, advising and testing by board owners are appreciated). And here (and in some other drivers/media/pci/ drivers) I see what confuses me:

Re: [RFC PATCH 2/2] tee: add OP-TEE driver

2015-04-19 Thread Javier González
On 18 Apr 2015, at 21:01, Arnd Bergmann a...@arndb.de wrote: On Saturday 18 April 2015 20:49:03 Greg Kroah-Hartman wrote: On Sat, Apr 18, 2015 at 11:36:53AM +0200, Javier González wrote: Hi, A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top

Re: [PATCH 0/2] Tentative fix for the divide-by-zero on score/paris/..

2015-04-19 Thread Quentin Casasnovas
On Fri, Apr 17, 2015 at 10:52:43PM -0700, Guenter Roeck wrote: Hi Quentin, Hi Guenter, it looks like there is another failure in linux-next, this time with sparc64:allmodconfig: WARNING: arch/sparc/kernel/built-in.o(__ex_table+0x3b4): Section mismatch in reference from the (unknown

[PATCH v4] psmouse - focaltech pass finger width to userspace

2015-04-19 Thread Dmitry Tunin
Focaltech touchpads report finger width in packet[5] of absolute packet. Range for width in raw format is 0x10 - 0x70. Second half-byte is always 0. 0xff is reported, when a large contact area is detected. This can be handled in userspace. Signed-off-by: Dmitry Tunin hanipouspi...@gmail.com ---

[PATCH v5] psmouse - focaltech pass finger width to userspace

2015-04-19 Thread Dmitry Tunin
Focaltech touchpads report finger width in packet[5] of absolute packet. Range for width in raw format is 0x10 - 0x70. Second half-byte is always 0. 0xff is reported, when a large contact area is detected. This can be handled in userspace. Signed-off-by: Dmitry Tunin hanipouspi...@gmail.com ---

Re: [PATCH 2/3] iio: magnetometer: mmc35240: Add PM sleep support

2015-04-19 Thread Jonathan Cameron
On 15/04/15 12:02, Daniel Baluta wrote: We rely on regmap to save the state of the registers at suspend, and then we do an explicit sync at resume. Signed-off-by: Daniel Baluta daniel.bal...@intel.com This looks fine to me. --- drivers/iio/magnetometer/mmc35240.c | 35

Re: [PATCH 3/3] iio: magnetometer: Add ACPI support for MMC35240

2015-04-19 Thread Jonathan Cameron
On 15/04/15 12:02, Daniel Baluta wrote: We assume that ACPI device tables use MMC35240 to identify MEMSIC's 3 axis magnetic sensor. Signed-off-by: Daniel Baluta daniel.bal...@intel.com Also fine, just wait for v2 of patch 1. --- drivers/iio/magnetometer/mmc35240.c | 8 1 file

[RFC PATCH v3 07/10] lib: other kernel glue layer code

2015-04-19 Thread Hajime Tazaki
These files are used to provide the same function calls so that other network stack code keeps untouched. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp Signed-off-by: Christoph Paasch christoph.paa...@gmail.com --- arch/lib/capability.c | 47 + arch/lib/filemap.c| 32 ++

Re: [RFC PATCH 1/2] tee: generic TEE subsystem

2015-04-19 Thread Greg Kroah-Hartman
On Sat, Apr 18, 2015 at 09:50:19PM +0100, Russell King - ARM Linux wrote: On Sat, Apr 18, 2015 at 10:37:16PM +0200, Greg Kroah-Hartman wrote: On Sat, Apr 18, 2015 at 08:02:24PM +0100, Russell King - ARM Linux wrote: On Sat, Apr 18, 2015 at 08:47:13PM +0200, Greg Kroah-Hartman wrote: On

Re: [PATCH 01/21] e820, efi: add ACPI 6.0 persistent memory types

2015-04-19 Thread Boaz Harrosh
On 04/18/2015 04:35 AM, Dan Williams wrote: ACPI 6.0 formalizes e820-type-7 and efi-type-14 as persistent memory. Mark it reserved and allow it to be claimed by a persistent memory device driver. This definition is in addition to the Linux kernel's existing type-12 definition that was

[PATCH v13 1/3] dt-bindings: add document of Rockchip power domain

2015-04-19 Thread Caesar Wang
This add the necessary binding documentation for the power domain found on Rockchip Socs. Signed-off-by: jinkun.hong jinkun.h...@rock-chips.com Signed-off-by: Caesar Wang w...@rock-chips.com --- .../bindings/arm/rockchip/power_domain.txt | 48 ++ 1 file changed, 48

[PATCH v13 0/3] ARM: rk3288: Add PM Domain support

2015-04-19 Thread Caesar Wang
Add power domain drivers based on generic power domain for Rockchip platform, and support RK3288. Verified on url = https://chromium.googlesource.com/chromiumos/third_party/kernel. At the moment,there are mass of products are using the driver. I believe the driver can happy work

[PATCH v2 09/12] devicetree: Add bindings for the ATH79 GPIO controllers

2015-04-19 Thread Alban Bedel
These bindings support the GPIO controllers found on the Qualcomm Atheros AR7xxx/AR9XXX SoC. Signed-off-by: Alban Bedel al...@free.fr --- v2: * Add the ngpios property to have fewer fallbacks and simpler code --- .../devicetree/bindings/gpio/gpio-ath79.txt| 38 ++ 1

Re: [PATCH v2] iio: gyro: itg3200: add suspend/resume support.

2015-04-19 Thread Hartmut Knaack
NeilBrown schrieb am 24.02.2015 um 03:24: Unless we put the device to sleep when not it use, it wastes 6mA. If the device is asleep on probe, the 'id' register sometimes mis-reads - so reset first. If the device responds at all a command sent to the address, it is almost certainly the

Re: [PATCH] arm64: annotate psci invoke functions as notrace

2015-04-19 Thread Vinicius Tinti
On Tue, Feb 24, 2015 at 3:11 PM, Mark Rutland mark.rutl...@arm.com wrote: On Tue, Feb 24, 2015 at 05:59:50PM +, Richard W.M. Jones wrote: On Wed, Feb 18, 2015 at 12:26:38PM -0500, Kyle McMartin wrote: Using GCC 5 to build the kernel with ftrace enabled, we encounter the following error

Re: [PATCH v3] psmouse - focaltech pass finger width to userspace

2015-04-19 Thread Dmitry Tunin
Focaltech touchpads report finger width in packet[5] of absolute packet. Range for width in raw format is 0x10 - 0x70. Second half-byte is always 0. 0xff is reported, when a large contact area is detected. This can be handled in userspace. Signed-off-by: Dmitry Tunin hanipouspi...@gmail.com

[PATCH v2 08/12] MIPS: ath79: Add OF support to the clocks

2015-04-19 Thread Alban Bedel
Allow using the SoC clocks in the device tree. Signed-off-by: Alban Bedel al...@free.fr --- arch/mips/ath79/clock.c | 63 ++--- 1 file changed, 44 insertions(+), 19 deletions(-) diff --git a/arch/mips/ath79/clock.c b/arch/mips/ath79/clock.c index

Re: [PATCH 02/20] STAGING/lustre: limit follow_link recursion using stack space.

2015-04-19 Thread Al Viro
On Sun, Apr 19, 2015 at 02:57:07PM -0600, Andreas Dilger wrote: I'd be happy if symlink recursion was removed completely, but so far the added symlink recursion limit hasn't been a problem for Lustre users. Well, it's gone in my tree; I've just pushed the current queue to

Re: [PATCH 1/5 v2] blk-mq: Add prep/unprep support

2015-04-19 Thread Matias Bjorling
On Sat, Apr 18, 2015 at 08:45:19AM +0200, Matias Bjorling wrote: snip The reason it shouldn't be under the a single block device, is that a target should be able to provide a global address space. That allows the address space to grow/shrink dynamically with the disks. Allowing a continuously

Fwd: Re: sparc64: Build failure due to commit f1600e549b94 (sparc: Make sparc64 use scalable lib/iommu-common.c functions)

2015-04-19 Thread Sowmini Varadhan
On (04/19/15 14:09), David Miller wrote: On (04/18/15 21:23), Guenter Roeck wrote: lib/built-in.o:(.discard+0x1): multiple definition of `__pcpu_unique_iommu_pool_hash' arch/powerpc/kernel/built-in.o:(.discard+0x18): first defined here .. I get a similar failure in the

Re: [PATCH 03/21] nd_acpi: initial core implementation and nfit skeleton

2015-04-19 Thread Rafael J. Wysocki
On Friday, April 17, 2015 09:35:30 PM Dan Williams wrote: 1/ Autodetect an NFIT table for the ACPI namespace device with _HID of ACPI0012 2/ Skeleton implementation to register an NFIT bus. The NFIT provided by ACPI is the primary method by which platforms will discover NVDIMM

[PATCH 1/2] modpost: expand pattern matching to support substring matches

2015-04-19 Thread Paul Gortmaker
Currently the match() function supports a leading * to match any prefix and a trailing * to match any suffix. However there currently is not a combination of both that can be used to target matches of whole families of functions that share a common substring. Here we expand the *foo and foo*

[PATCH 2/2] modpost: don't emit section mismatch warnings for compiler optimizations

2015-04-19 Thread Paul Gortmaker
Currently an allyesconfig build [gcc-4.9.1] can generate the following: WARNING: vmlinux.o(.text.unlikely+0x3864): Section mismatch in reference from the function cpumask_empty.constprop.3() to the variable .init.data:nmi_ipi_mask which comes from the cpumask_empty usage in

Re: [PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-19 Thread Arnd Bergmann
On Sunday 19 April 2015 11:40:09 Duc Dang wrote: On Fri, Apr 17, 2015 at 7:10 AM, Arnd Bergmann a...@arndb.de wrote: On Friday 17 April 2015 02:50:07 Duc Dang wrote: + + /* +* MSIINTn (n is 0..F) indicates if there is a pending MSI interrupt +* If bit x of this

[PATCH] staging: rtl8192u: ieee80211: Silence sparse warning

2015-04-19 Thread Gaston Gonzalez
Silence the following sparse warning: drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c:184:16: warning: cast to restricted __le16 Signed-off-by: Gaston Gonzalez gasc...@gmail.com --- .../rtl8192u/ieee80211/ieee80211_crypt_tkip.c | 22 +++--- 1 file changed, 11

Re: [PATCH 02/20] STAGING/lustre: limit follow_link recursion using stack space.

2015-04-19 Thread Andreas Dilger
On Apr 17, 2015, at 9:01 PM, Al Viro v...@zeniv.linux.org.uk wrote: On Mon, Mar 23, 2015 at 01:37:38PM +1100, NeilBrown wrote: lustre's -follow_link() uses a lot of stack space and so need to limit symlink recursion based on stack size. It currently tests current-link_count, but that will

Re: [PATCH 2/2] checkpatch: suggest using eth_zero_addr() and eth_broadcast_addr()

2015-04-19 Thread Mateusz Kulikowski
Hi Joe, On 19.04.2015 22:20, Joe Perches wrote: (...) +# check for memset(foo, 0xFF, ETH_ALEN) that could be eth_broadcast_addr +if ($^V $^V ge 5.10.0 +$line =~ /^\+(?:.*?)\bmemset\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*ETH_ALEN\s*\)/s) { Please align the

[PATCH] drm: fb_helper: prefer to use mode, which is not DRM_MODE_TYPE_USERDEF

2015-04-19 Thread Radek Dostal
commit eaf99c749d43 (drm: Perform cmdline mode parsing during connector initialisation) breaks HDMI output on BeagleBone Black with LG TV (model 19LS4R-ZA) when video=HDMI-A-1:1280x720@60 is specified on the command line. The reason is newly added mode '1280x720 60 74440 1280 1336 1472 1664 720

[PATCH] etherdevice: Add ether_addr_copy_unaligned

2015-04-19 Thread Mateusz Kulikowski
Some drivers require copying unaligned ethernet addresses. Using memcpy() causes checkpatch warnings and may cause regressions (someone will fix alignment of packed structure) Signed-off-by: Mateusz Kulikowski mateusz.kulikow...@gmail.com --- include/linux/etherdevice.h | 16 1

[PATCH] Staging: dgnc: Using temporary value for repeated dereferences.

2015-04-19 Thread Yorick Rommers
Hello Joe, Thank you once again for the feedback. I've changed my patch accordingly, see below. -- A patch for a line being too long (80) in dgnc_mgmt.c, fixed by making a temporary value for dgnc_Board[brd], replacing all instanced of dgnc_Board[brd] with

[PATCH v2 2/2] checkpatch: suggest using eth_zero_addr() and eth_broadcast_addr()

2015-04-19 Thread Mateusz Kulikowski
Suggest using eth_zero_addr() or eth_broadcast_addr() instead of memset(). Signed-off-by: Mateusz Kulikowski mateusz.kulikow...@gmail.com --- scripts/checkpatch.pl | 16 1 file changed, 16 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index

[PATCH v2 1/2] checkpatch: suggest using ether_addr_equal*()

2015-04-19 Thread Mateusz Kulikowski
Check if memcmp() is used to compare ethernet addresses and suggest using ether_addr_equal() or ether_addr_equal_unaligned() Signed-off-by: Mateusz Kulikowski mateusz.kulikow...@gmail.com --- scripts/checkpatch.pl | 7 +++ 1 file changed, 7 insertions(+) diff --git a/scripts/checkpatch.pl

[PATCH v2 0/2] checkpatch: new ethernet address manipulation checks

2015-04-19 Thread Mateusz Kulikowski
Changes in v2 (applied review comments): - Fixed indentation in both patches - Detect memset(foo, 0x00, ETH_ALEN) - Detect memset(foo, 255, ETH_ALEN) - Rephrased 2/2 commit message Patch Notes from v1: Add 3 new warnings to checkpatch: 1) PREFER_ETHER_ADDR_EQUAL Replace memcmp(foo, bar,

Re: qemu:arm test failure due to commit 8053871d0f7f (smp: Fix smp_call_function_single_async() locking)

2015-04-19 Thread Ingo Molnar
* Guenter Roeck li...@roeck-us.net wrote: I _think_ most such callers calling an SMP function call for offline or out of range CPUs are at minimum racy. Not really; at least the online cpu part is an absolutely normal use case for qemu-arm. The problem is that an IPI is attempted to be

Re: [PATCH 1/2] checkpatch: suggest using ether_addr_equal*()

2015-04-19 Thread Joe Perches
On Sun, 2015-04-19 at 21:04 +0200, Mateusz Kulikowski wrote: Check if memcmp() is used to compare ethernet addresses and suggest using ether_addr_equal() or ether_addr_equal_unaligned() Hi again Mateusz. This is OK with me. If you ever submit that ether_addr_copy_unaligned patch, please

Re: [PATCH] ALSA: hda - Add dock support for ThinkPad X250 (17aa:2226)

2015-04-19 Thread Yves-Alexis Perez
On sam., 2015-04-11 at 17:27 +0200, Takashi Iwai wrote: At Sat, 11 Apr 2015 09:31:35 +0200, Yves-Alexis Perez wrote: This model uses the same dock port as the previous generation. Signed-off-by: Yves-Alexis Perez cor...@debian.org Thanks, applied with Cc to stable. But, at the next

Re: [PATCH v4 1/4] PCI: X-Gene: Add the APM X-Gene v1 PCIe MSI/MSIX termination driver

2015-04-19 Thread Duc Dang
On Fri, Apr 17, 2015 at 7:10 AM, Arnd Bergmann a...@arndb.de wrote: On Friday 17 April 2015 02:50:07 Duc Dang wrote: + + /* +* MSIINTn (n is 0..F) indicates if there is a pending MSI interrupt +* If bit x of this register is set (x is 0..7), one or more interupts +

[PATCH 0/2] checkpatch: new ethernet address manipulation checks

2015-04-19 Thread Mateusz Kulikowski
Add 3 new warnings to checkpatch: 1) PREFER_ETHER_ADDR_EQUAL Replace memcmp(foo, bar, ETH_ALEN) with ether_addr_equal*() 2) PREFER_ETH_ZERO_ADDR Replace memset(foo, 0, ETH_ALEN) with eth_zero_addr() 3) PREFER_ETH_BROADCAST_ADDR Replace memset(foo, 0xFF, ETH_ALEN) with eth_broadcast_addr()

[PATCH 2/2] checkpatch: suggest using eth_zero_addr() and eth_broadcast_addr()

2015-04-19 Thread Mateusz Kulikowski
Suggest using eth_zero_addr() or eth_broadcast_addr() if memset is used instead. Signed-off-by: Mateusz Kulikowski mateusz.kulikow...@gmail.com --- scripts/checkpatch.pl | 16 1 file changed, 16 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index

Re: [RFC PATCH 2/2] tee: add OP-TEE driver

2015-04-19 Thread Arnd Bergmann
On Sunday 19 April 2015 13:17:20 Javier González wrote: Only providing user space support would defeat one of the main purposes of the driver. We could better organize the patches and divide them into user space support and in-kernel support if that is what you mean. In the end the

Re: [PATCH] Staging: dgnc: fixed code style issue

2015-04-19 Thread Joe Perches
On Sun, 2015-04-19 at 21:18 +0200, Yorick Rommers wrote: A patch for a line being too long (80) in dgnc_mgmt.c, fixed by making a temporary value for dgnc_Board[brd], and removing an unnecessary typecast. Hello Yorick. The patch subject isn't very descriptive. A better subject might be

Re: sparc64: Build failure due to commit f1600e549b94 (sparc: Make sparc64 use scalable lib/iommu-common.c functions)

2015-04-19 Thread David Miller
From: Sowmini Varadhan sowmini.varad...@oracle.com Date: Sun, 19 Apr 2015 06:51:57 -0400 On (04/18/15 21:23), Guenter Roeck wrote: I spoke too early. Now I get a similar failure in the powerpc:allmodconfig build (which previously failed for a different reason). I think this duplicate

[PATCH 1/2] checkpatch: suggest using ether_addr_equal*()

2015-04-19 Thread Mateusz Kulikowski
Check if memcmp() is used to compare ethernet addresses and suggest using ether_addr_equal() or ether_addr_equal_unaligned() Signed-off-by: Mateusz Kulikowski mateusz.kulikow...@gmail.com --- scripts/checkpatch.pl | 7 +++ 1 file changed, 7 insertions(+) diff --git a/scripts/checkpatch.pl

[PATCH 0/2] lockless wake-queues

2015-04-19 Thread Davidlohr Bueso
Hello, This series is aimed at addressing some of the futex hash bucket lock hold times by introducing lockless wake-queues for futex_wake. patch-1: introduces the lockless wake-queue machinery. patch-2: makes use of patch 1 for futexes. Details in the individual patches. This was suggested

[PATCH 2/2] futex: lockless wakeups

2015-04-19 Thread Davidlohr Bueso
Given the overall futex architecture, any chance of reducing hb-lock contention is welcome. In this particular case, using wake-queues to enable lockless wakeups addresses very much real world performance concerns, even cases of soft-lockups in cases of large amounts of blocked tasks (which is not

[PATCH 1/2] sched: lockless wake-queues

2015-04-19 Thread Davidlohr Bueso
From: Peter Zijlstra pet...@infradead.org This is useful for locking primitives that can effect multiple wakeups per operation and want to avoid lock internal lock contention by delaying the wakeups until we've released the lock internal locks. Alternatively it can be used to avoid issuing

[PATCH] Staging: dgnc: fixed code style issue

2015-04-19 Thread Yorick Rommers
A patch for a line being too long (80) in dgnc_mgmt.c, fixed by making a temporary value for dgnc_Board[brd], and removing an unnecessary typecast. Signed-off-by: Yorick Rommers yorick-romm...@hotmail.com --- drivers/staging/dgnc/dgnc_mgmt.c | 4 +++- 1 file changed, 3 insertions(+), 1

Re: [PATCH v2 0/5] Driver for pxa architectures

2015-04-19 Thread Robert Jarzmik
Robert Jarzmik robert.jarz...@free.fr writes: Hi Vinod, This is the same serie as in v1, only one fix around irq probing was included in patch 3/5. I copy-pasted the previous cover letter for reference here : Vinod, any update please ? Cheers. -- Robert -- To unsubscribe from this list:

Re: [PATCH 2/2] checkpatch: suggest using eth_zero_addr() and eth_broadcast_addr()

2015-04-19 Thread Joe Perches
On Sun, 2015-04-19 at 21:04 +0200, Mateusz Kulikowski wrote: Suggest using eth_zero_addr() or eth_broadcast_addr() if memset is used instead. Hi Mateusz, this is OK but here are some notes: diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] @@ -5042,6 +5042,22 @@ sub process { []

Re: qemu:arm test failure due to commit 8053871d0f7f (smp: Fix smp_call_function_single_async() locking)

2015-04-19 Thread Linus Torvalds
On Sun, Apr 19, 2015 at 11:01 AM, Ingo Molnar mi...@kernel.org wrote: That's all fine and good, but why is an IPI sent to a non-existent CPU? It's not like we don't know which CPU is up and down. I agree that the qemu-arm behavior smells like a bug, plain and simple. Nobody sane should send

[PATCH 0/2] blk-mq: fix oops caused by CPU hotplug

2015-04-19 Thread Ming Lei
Hi Guys, Dongsu Park reported[1] that kernel oops can be triggered easily by CPU plug when there is pending I/O on virtio-scsi. Turns out two problems exist and both can trigger oops by CPU plug: - timeout handling vs CPU hotplug, especially unmapped hw queue tags is still

Re: BUG: unable to handle kernel NULL pointer deref, bisected to 746650160

2015-04-19 Thread Christoph Hellwig
This looks like a long standing bug in all three 3ware drivers to me, that the taking the host lock around the host_busy manipulation was hiding. Can you test the patch below? From b500f76e6f92722d8f1fc0de90961af730320953 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig h...@lst.de Date: Sun, 19

[PATCH] ALSA: hda - Mute headphone pin on suspend on XPS13 9333

2015-04-19 Thread Gabriele Mazzotta
Muting the headphone output pin right before the codec suspension prevents pop noises when headphones are plugged in (except for a barely audible click noise). This solution allows to truly save some power when headphones are plugged in unlike the previous solution (033b0a7ca9c: ALSA: hda - Pop

  1   2   3   4   5   >