[PATCH v4 0/5] ARM: sun9i: Add USB host controller support for A80

2015-02-02 Thread Chen-Yu Tsai
Hi everyone, This is v4 of the sun9i A80 USB host support series. Changes since v3: - Dropped patches merged. - Moved reg_usb3_vbus into the optimus board dts - Dropped ohci1 from A80 dtsi. Cover letter from v3: This series adds USB host controller (EHCI/OHCI) support for the

[PATCH v4 3/5] ARM: dts: sun9i: Enable USB support on A80 Optimus board

2015-02-02 Thread Chen-Yu Tsai
On the Optimus board, all three USB hosts can be used. HCI0 and HCI2 are available through the USB connector. HCI1 is available with HSIC through 2 pins on the GPIO expansion header. This patch also adds a regulator for HCI2/USB3's VBUS. Signed-off-by: Chen-Yu Tsai ---

[PATCH v4 5/5] ARM: multi_v7_defconfig: Enable CONFIG_PHY_SUN9I_USB

2015-02-02 Thread Chen-Yu Tsai
On sun9i we have a new PHY driver for USB. Signed-off-by: Chen-Yu Tsai --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index eec304487e6d..63fcc5522393 100644 ---

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-02 Thread Dave Hansen
On 02/02/2015 08:55 AM, Mel Gorman wrote: > This patch identifies when a thread is frequently calling MADV_DONTNEED > on the same region of memory and starts ignoring the hint. On an 8-core > single-socket machine this was the impact on ebizzy using glibc 2.19. The manpage, at least, claims that

[PATCH v4 4/5] ARM: sunxi_defconfig: Enable CONFIG_PHY_SUN9I_USB

2015-02-02 Thread Chen-Yu Tsai
On sun9i we have a new PHY driver for USB. Signed-off-by: Chen-Yu Tsai --- arch/arm/configs/sunxi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index 38840a812924..6b271645eb43 100644 ---

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-02 Thread Mel Gorman
On Mon, Feb 02, 2015 at 02:05:06PM -0800, Andrew Morton wrote: > On Mon, 2 Feb 2015 16:55:25 + Mel Gorman wrote: > > > glibc malloc changed behaviour in glibc 2.10 to have per-thread arenas > > instead of creating new areans if the existing ones were contended. > > The decision appears to

Re: v3.19: Nokia N900 - usb nokia gadget crash

2015-02-02 Thread Felipe Balbi
On Sat, Jan 31, 2015 at 10:25:09AM +0100, Pali Rohár wrote: > On Saturday 31 January 2015 10:06:11 Pali Rohár wrote: > > Hello, > > > > when I try to modprobe g_nokia.ko gadget module on n900 > > device, it produce tons on lines to display and then crash > > and reboot device. So its not working

Re: [PATCH 4/6] i2c: busses: add SLIMpro I2C device driver on APM X-Gene platform

2015-02-02 Thread Feng Kan
On Thu, Jan 29, 2015 at 10:11 PM, Wolfram Sang wrote: > >> > ctx->dev is probably the wrong device here. The i2c controller is not >> > DMA capable itself, you need to have a pointer to the device that actually >> > performs the DMA here. >> >> Arnd, I do agree this may not be the best

Re: [PATCH 2/4] Input - synaptics: do not release extra buttons once they are pressed

2015-02-02 Thread Benjamin Tissoires
On Mon, Feb 2, 2015 at 4:46 PM, Dmitry Torokhov wrote: > On Wed, Jan 28, 2015 at 03:10:05PM -0500, Benjamin Tissoires wrote: >> The current code releases the extra buttons right after they are pressed. >> As soon as a new serio report comes in, the hw state is reset to 0 >> and so the buttons are

Re: [PATCH 1/5] i8042: intel-8042 DT documentation

2015-02-02 Thread Roman Volkov
В Tue, 3 Feb 2015 00:48:46 +0300 Roman Volkov пишет: > Documentation for 'intel,8042' DT compatible node. > > Signed-off-by: Tony Prisk > Signed-off-by: Roman Volkov > --- > .../devicetree/bindings/input/intel-8042.txt | 29 > ++ 1 file changed, 29 insertions(+) >

Re: [PATCH] Remove might_sleep from wait_event_cmd

2015-02-02 Thread NeilBrown
On Mon, 2 Feb 2015 09:39:02 -0500 (EST) Mikulas Patocka wrote: > Hi > > Please apply this before 3.19 is released. > > Mikulas > > > The patch e22b886a8a43b147e1994a9f970f678fc0df2033 introduced a bug in the > raid5 subsystem. > > The function raid5_quiesce (and resize_stripes) calls >

[PATCH] clk: clk_set_parent() with current parent shouldn't fail

2015-02-02 Thread Stephen Boyd
If a driver calls clk_set_parent(clk, parent) and parent is the current parent of clk we shouldn't fail in any case. Unfortunately if clk is a read-only mux we return -ENOSYS because we think we can't change the parent, except for in this special case where we don't actually need to change the

[PATCH] clk: Missing set_phase op is an error

2015-02-02 Thread Stephen Boyd
If a clock's clk_ops doesn't have the set_phase op set we should return an error from clk_set_phase(). This way clock consumers know that when they tried to set a phase it didn't work, as opposed to the current behavior where the return value is 0 meaning success. Signed-off-by: Stephen Boyd ---

Re: [PATCH] staging/fwserial: use correct vendor/version IDs

2015-02-02 Thread Peter Hurley
On 01/28/2015 03:07 PM, Clemens Ladisch wrote: > The driver was using the vendor ID 0xd00d1e from the FireWire core. > However, this ID was not registered, and invalid. > > Instead, use the vendor/version IDs that now are officially assigned to > firewire-serial: >

Re: [PATCH 2/2] coresight: Adding coresight support to arm64

2015-02-02 Thread Mathieu Poirier
On 2 February 2015 at 06:45, Will Deacon wrote: > On Fri, Jan 30, 2015 at 10:54:26PM +, mathieu.poir...@linaro.org wrote: >> From: Mathieu Poirier >> >> Aside from tracers, all currently supported coresight IP blocks >> are 64 bit ready. As such add the required symbol definition to >>

Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-02 Thread Andrew Morton
On Mon, 2 Feb 2015 16:55:25 + Mel Gorman wrote: > glibc malloc changed behaviour in glibc 2.10 to have per-thread arenas > instead of creating new areans if the existing ones were contended. > The decision appears to have been made so the allocator scales better but the > downside is that

Re: [PATCH v8 17/21] clocksource / arch_timer: Parse GTDT to initialize arch timer

2015-02-02 Thread Rafael J. Wysocki
On Monday, February 02, 2015 08:45:45 PM Hanjun Guo wrote: > Using the information presented by GTDT (Generic Timer Description Table) > to initialize the arch timer (not memory-mapped). > > CC: Daniel Lezcano > Originally-by: Amit Daniel Kachhap > Tested-by: Suravee Suthikulpanit > Tested-by:

Re: [PATCH v8 16/21] irqchip: Add GICv2 specific ACPI boot support

2015-02-02 Thread Rafael J. Wysocki
On Monday, February 02, 2015 08:45:44 PM Hanjun Guo wrote: > From: Tomasz Nowicki > > ACPI kernel uses MADT table for proper GIC initialization. It needs to > parse GIC related subtables, collect CPU interface and distributor > addresses and call driver initialization function (which is hardware

Re: [PATCH 3/4] Input - synaptics: remove TOPBUTTONPAD property for Lenovos 2015

2015-02-02 Thread Dmitry Torokhov
On Wed, Jan 28, 2015 at 03:10:06PM -0500, Benjamin Tissoires wrote: > The 2015 series of the Lenovo thinkpads added back the hardware buttons > on top of the touchpad for the trackstick. > > Unfortunately, they are wired to the touchpad, and not the trackstick. > Thus, they are seen as extra

[PATCH 1/2] mutex: In mutex_spin_on_owner(), return true when owner changes

2015-02-02 Thread Jason Low
In the mutex_spin_on_owner(), we return true only if lock->owner == NULL. This was beneficial in situations where there were multiple threads simultaneously spinning for the mutex. If another thread got the lock while other spinner(s) were also doing mutex_spin_on_owner(), then the other spinners

[PATCH 2/2] mutex: Refactor mutex_spin_on_owner

2015-02-02 Thread Jason Low
As suggested by Davidlohr, we could refactor mutex_spin_on_owner(). Currently, we split up owner_running() with mutex_spin_on_owner(). When the owner changes, we make duplicate owner checks which are not necessary. It also makes the code a bit obscure as we are using a second check to figure

[PATCH 0/2] mutex: Modifications to mutex_spin_on_owner

2015-02-02 Thread Jason Low
This patchset contains a few modifications to mutex_spin_on_owner(). The first patch makes the optimistic spinner continue spinning whenever the owner changes, and the second patch refactors mutex_spin_on_owner() to micro optimize the code as well as make it simpler. Jason Low (2): mutex: In

Re: [PATCH v8 05/21] ACPI / sleep: Introduce sleep_arm.c

2015-02-02 Thread Rafael J. Wysocki
On Monday, February 02, 2015 08:45:33 PM Hanjun Guo wrote: > From: Graeme Gregory > > ACPI 5.1 does not currently support S states for ARM64 hardware but > ACPI code will call acpi_target_system_state() for device power > managment, so introduce sleep_arm.c to allow other drivers to function >

Re: [PATCH v8 02/21] acpi: fix acpi_os_ioremap for arm64

2015-02-02 Thread Rafael J. Wysocki
On Monday, February 02, 2015 08:45:30 PM Hanjun Guo wrote: > From: Mark Salter > > The acpi_os_ioremap() function may be used to map normal RAM or IO > regions. The current implementation simply uses ioremap_cache(). This > will work for some architectures, but arm64 ioremap_cache() cannot be >

[PATCH 4/5] i8042: Prepare i8042 driver for DT support

2015-02-02 Thread Roman Volkov
Use platform_device_probe() instead of platform_create_bundle() when compiled with DT support, since the latter function is not suitable for handling the OF device tree. The order of initialization is changed, since i8042_platform_init() for DT requires initialized platform_device structure. To

[PATCH 5/5] i8042: Add i8042_dt.h glue for DT support

2015-02-02 Thread Roman Volkov
This header file designed to be similar to other glue layers found for i8042. The difference is that interrupt numbers, device address, and other information should be retrieved from the device tree. Signed-off-by: Tony Prisk Signed-off-by: Roman Volkov --- drivers/input/serio/i8042-dt.h | 112

[PATCH 1/5] i8042: intel-8042 DT documentation

2015-02-02 Thread Roman Volkov
Documentation for 'intel,8042' DT compatible node. Signed-off-by: Tony Prisk Signed-off-by: Roman Volkov --- .../devicetree/bindings/input/intel-8042.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644

[PATCH 2/5] i8042: Kernel configuration handling for DT support

2015-02-02 Thread Roman Volkov
i8042_dt.h should be included when CONFIG_ARCH_MIGHT_HAVE_PC_SERIO and CONFIG_USE_OF are selected. It should be not necessary to create additional options in the kernel config. Signed-off-by: Roman Volkov --- drivers/input/serio/i8042.h | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 3/5] i8042: Add OF match table

2015-02-02 Thread Roman Volkov
The OF device table allows the platform_driver_probe() function to automatically match device and parse the DT node. Signed-off-by: Tony Prisk Signed-off-by: Roman Volkov --- drivers/input/serio/i8042.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/input/serio/i8042.c

Re: [PATCH 2/4] Input - synaptics: do not release extra buttons once they are pressed

2015-02-02 Thread Dmitry Torokhov
On Wed, Jan 28, 2015 at 03:10:05PM -0500, Benjamin Tissoires wrote: > The current code releases the extra buttons right after they are pressed. > As soon as a new serio report comes in, the hw state is reset to 0 > and so the buttons are released. > > Check for the report type before acting on

Re: [PATCH v3 02/24] vfio: powerpc/iommu: Check that TCE page size is equal to it_page_size

2015-02-02 Thread Alex Williamson
On Thu, 2015-01-29 at 20:21 +1100, Alexey Kardashevskiy wrote: > This checks that the TCE table page size is not bigger that the size of > a page we just pinned and going to put its physical address to the table. > > Otherwise the hardware gets unwanted access to physical memory between > the end

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-02-02 Thread Russell King - ARM Linux
On Mon, Feb 02, 2015 at 03:30:21PM -0500, Rob Clark wrote: > On Mon, Feb 2, 2015 at 11:54 AM, Daniel Vetter wrote: > >> My initial thought is for dma-buf to not try to prevent something than > >> an exporter can actually do.. I think the scenario you describe could > >> be handled by two

[PATCH 3/9] x86, mpx: we do not allocate the bounds directory

2015-02-02 Thread Dave Hansen
From: Dave Hansen The comment and code here are confusing. We do not currently allocate the bounds directory in the kernel. Signed-off-by: Dave Hansen --- b/arch/x86/mm/mpx.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN

Re: [GIT PULL]: clockevents: new material for 3.20

2015-02-02 Thread Daniel Lezcano
Hi Thomas, just a gentle reminder ;) Thanks -- Daniel On 01/29/2015 02:06 PM, Daniel Lezcano wrote: this pull request contains the following changes: * Barry Song renamed the marco timer to atlas7 * Baruch Siach provided a new driver for the Conexant Digicolor SoCs * Daniel

[PATCH 0/9] x86, mpx: Support 32-bit binaries on 64-bit kernels

2015-02-02 Thread Dave Hansen
The MPX hardware structures differ in layout in 32 and 64-bit mode. A 32-bit binary running on a 64-bit kernel needs the 32-bit structures, so we need code which switches between the two modes. x86: make is_64bit_mm() widely available x86: make __VIRTUAL_MASK safe to use on 32

[PATCH 4/9] x86, mpx: remove redundant MPX_BNDCFG_ADDR_MASK

2015-02-02 Thread Dave Hansen
From: Qiaowei Ren MPX_BNDCFG_ADDR_MASK is defined two times, so this patch removes redundant one. Signed-off-by: Qiaowei Ren Signed-off-by: Dave Hansen --- b/arch/x86/include/asm/mpx.h |1 - 1 file changed, 1 deletion(-) diff -puN

[PATCH 2/9] x86: make __VIRTUAL_MASK safe to use on 32 bit

2015-02-02 Thread Dave Hansen
From: Dave Hansen We are going to do some calculations in a moment that are based on the size of the virtual address space. __VIRTUAL_MASK is currently unsafe to use on 32-bit since it overflows an unsigned long with its shift. The current version will emit a warning if used at all on 32-bit

[PATCH 6/9] x86, mpx: new directory entry to addr helper

2015-02-02 Thread Dave Hansen
From: Dave Hansen Currently, to get from a bounds directory entry to the virtual address of a bounds table, we simply mask off a few low bits. However, the set of bits we mask off is different for 32 and 64-bit binaries. This breaks the operation out in to a helper function and also adds a

[PATCH 9/9] x86, mpx: allow mixed binaries again

2015-02-02 Thread Dave Hansen
From: Dave Hansen We explicitly disable allowing 32-bit binaries to enable MPX on 64-bit kernels. Re-allow that. Signed-off-by: Dave Hansen --- b/arch/x86/mm/mpx.c |6 -- 1 file changed, 6 deletions(-) diff -puN arch/x86/mm/mpx.c~x86-mpx-allow-mixed-binaries-again

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-02 Thread Julia Lawall
On Mon, 2 Feb 2015, Stephen Boyd wrote: > On 02/01/15 13:24, Mike Turquette wrote: > > Quoting Tomeu Vizoso (2015-01-23 03:03:30) > >> Moves clock state to struct clk_core, but takes care to change as little > >> API as > >> possible. > >> > >> struct clk_hw still has a pointer to a struct

[PATCH 8/9] x86, mpx: support 32bit binaries on 64bit kernel

2015-02-02 Thread Dave Hansen
From: Dave Hansen Right now, the kernel can only switch between 64-bit and 32-bit binaries at compile time. This patch adds support for 32-bit binaries on 64-bit kernels when we support ia32 emulation. We essentially choose which set of table sizes to use when doing arithmetic for the bounds

Re: [PATCH v3 0/2] x86/arm64: add xenconfig

2015-02-02 Thread Luis R. Rodriguez
On Mon, Feb 2, 2015 at 1:13 PM, Michal Marek wrote: > Dne 30.1.2015 v 19:25 Luis R. Rodriguez napsal(a): >> On Fri, Jan 30, 2015 at 2:49 AM, Michal Marek wrote: >>> On 2015-01-29 21:47, Paul Bolle wrote: [Added Michal. Removed Yann.] On Thu, 2015-01-29 at 12:38 -0800, Luis R.

gzip initramfs while only lz4/lzop selected

2015-02-02 Thread Stefan Agner
Hi all, Configuring the kernel without gzip support for initramfs but with LZO/LZ4, while not having LZ4 on the build system, leads to a kernel which is not bootable: ... [0.488232] RPC: Registered udp transport module. [0.493437] RPC: Registered tcp transport module. [0.498693] RPC:

Re: [PATCH 2/2] user_namespaces.7: Update the documention to reflect the fixes for negative groups

2015-02-02 Thread Alban Crequy
Hello, Thanks for updating the man page. On 12 December 2014 at 22:54, Eric W. Biederman wrote: (...) > Furthermore to preserve in some form the useful applications that have > been setting gid_map without privilege the file /proc/[pid]/setgroups > was added to allow disabling setgroups. With

[PATCH 7/9] x86, mpx: do 32-bit-only cmpxchg for 32-bit apps

2015-02-02 Thread Dave Hansen
From: Dave Hansen user_atomic_cmpxchg_inatomic() actually looks at sizeof(*ptr) to figure out how many bytes to copy. If we run it on a 64-bit kernel with a 64-bit pointer, it will copy a 64-bit bounds directory entry. That's fine, except when we have 32-bit programs with 32-bit bounds

[PATCH 1/9] x86: make is_64bit_mm() widely available

2015-02-02 Thread Dave Hansen
From: Dave Hansen The uprobes code has a nice helper, is_64bit_mm(), that consults both the runtime and compile-time flags for 32-bit support. Instead of reinventing the wheel, pull it in to an x86 header so we can use it for MPX. I prefer passing the mm around to test_thread_flag(TIF_IA32)

[PATCH 5/9] x86, mpx: Add temporary variable to reduce masking

2015-02-02 Thread Dave Hansen
From: Dave Hansen When we allocate a bounds table, we call mmap(), then add a "valid" bit to the value before storing it in to the bounds directory. If we fail along the way, we go and mask that valid bit _back_ out. That seems a little silly, and this makes it much more clear when we have a

[PATCH] Documentation: Fix trivial typo in comment.

2015-02-02 Thread Sharon Dvir
Changed 'typee' to 'type' Signed-off-by: Sharon Dvir --- diff --git a/include/linux/debugobjects.h b/include/linux/debugobjects.h index 98ffcbd..0e93996 100644 --- a/include/linux/debugobjects.h +++ b/include/linux/debugobjects.h @@ -35,7 +35,7 @@ struct debug_obj { /** * struct

[PATCH] ata: Delete unnecessary checks before the function call "pci_dev_put"

2015-02-02 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 2 Feb 2015 22:08:29 +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 detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH 3/3] dt: paz00: define nvec as child of i2c bus

2015-02-02 Thread Stephen Warren
On 01/29/2015 12:20 AM, Andrey Danin wrote: NVEC driver was reimplemented to use tegra i2c. Use common i2c bindings for NVEC node. diff --git a/Documentation/devicetree/bindings/nvec/nvidia,nvec.txt b/Documentation/devicetree/bindings/nvec/nvidia,nvec.txt The changes to this file make more

Re: [PATCH v2] net: bluetooth: hci_sock: Use 'const void *' instead of 'void *' for 2nd parameter of hci_test_bit()

2015-02-02 Thread Joe Perches
On Tue, 2015-02-03 at 05:14 +0800, Chen Gang S wrote: > hci_test_bit() does not modify 2nd parameter, so it is better to let it > be constant, or may cause build warning. The related warning (with > allmodconfig under xtensa): [] > diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c

Re: [PATCH 1/2] arm64: adding cpu lookup functionality

2015-02-02 Thread Mathieu Poirier
On 2 February 2015 at 06:50, Will Deacon wrote: > On Fri, Jan 30, 2015 at 10:54:25PM +, mathieu.poir...@linaro.org wrote: >> From: Mathieu Poirier >> >> Adding a lookup function allowing for quick and easy mapping >> between processor HWID (as found, for example) in DT specifications >> and

Re: [PATCH] drm: Kconfig: Let all DRM_GEM_CMA_HELPER related macros depend on HAVE_DMA_ATTRS

2015-02-02 Thread Chen Gang S
After this fixing building patch, xtensa can pass allmodconfig. - There are still several warnings for it (I sent several patches for them, but not for all). - Xtensa gcc5 cross compiler has issues: it causes more than 10 broken areas with allmodconfig (but no issues with

Re: [PATCH v7 1/4] Documentation: dt: add common bindings for hwspinlock

2015-02-02 Thread Suman Anna
On 02/01/2015 05:00 AM, Ohad Ben-Cohen wrote: > On Sat, Jan 31, 2015 at 7:41 AM, Ohad Ben-Cohen wrote: >> On Sat, Jan 31, 2015 at 1:29 AM, Bjorn Andersson wrote: >>> In a system where you have two hwlock blocks lckA and lckB, each >>> consisting of 8 locks and you have dspB that can only access

Re: [PATCH v3 0/2] x86/arm64: add xenconfig

2015-02-02 Thread Michal Marek
Dne 30.1.2015 v 19:25 Luis R. Rodriguez napsal(a): > On Fri, Jan 30, 2015 at 2:49 AM, Michal Marek wrote: >> On 2015-01-29 21:47, Paul Bolle wrote: >>> [Added Michal. Removed Yann.] >>> >>> On Thu, 2015-01-29 at 12:38 -0800, Luis R. Rodriguez wrote: On Tue, Jan 27, 2015 at 12:00 PM, Luis R.

Re: How to fix CDROM/DVD eject mess?

2015-02-02 Thread Maciej W. Rozycki
On Mon, 2 Feb 2015, Kay Sievers wrote: > > All the technical details aside, this is a bold statement -- how do you > > know what the user actually wants? > > By working with people who spent a lot of time with the questions what > the default behavior of user interfaces should be. Buttons,

Re: [PATCH v3 01/10] ARM: tegra: Set the sound card model that alsaucm expects

2015-02-02 Thread Stephen Warren
On 01/28/2015 03:50 AM, Tomeu Vizoso wrote: Patches are on its way to add a config file to alsaucm for the Nyan boards. Use the same card ID that alsaucm will expect. diff --git a/arch/arm/boot/dts/tegra124-nyan-big.dts b/arch/arm/boot/dts/tegra124-nyan-big.dts sound { -

Re: [PATCH v7 1/4] Documentation: dt: add common bindings for hwspinlock

2015-02-02 Thread Suman Anna
On 02/01/2015 11:55 AM, Bjorn Andersson wrote: > On Fri, Jan 30, 2015 at 9:41 PM, Ohad Ben-Cohen wrote: >> On Sat, Jan 31, 2015 at 1:29 AM, Bjorn Andersson wrote: >>> In a system where you have two hwlock blocks lckA and lckB, each >>> consisting of 8 locks and you have dspB that can only access

Re: [PATCH] Add ARCH_MIGHT_HAVE_VGA_CONSOLE

2015-02-02 Thread Geert Uytterhoeven
Hi Sato-san, Your second version looks fine to me, except for this part: On Mon, Feb 2, 2015 at 4:48 PM, Yoshinori Sato wrote: > --- a/arch/um/Kconfig.common > +++ b/arch/um/Kconfig.common > @@ -9,6 +9,7 @@ config UML > select GENERIC_IO > select GENERIC_CLOCKEVENTS >

[PATCH v2] net: bluetooth: hci_sock: Use 'const void *' instead of 'void *' for 2nd parameter of hci_test_bit()

2015-02-02 Thread Chen Gang S
hci_test_bit() does not modify 2nd parameter, so it is better to let it be constant, or may cause build warning. The related warning (with allmodconfig under xtensa): net/bluetooth/hci_sock.c: In function 'hci_sock_sendmsg': net/bluetooth/hci_sock.c:955:8: warning: passing argument 2 of

[PATCH 04/14] cpufreq: exynos4x12: properly put of node

2015-02-02 Thread Eduardo Valentin
Call of_node_put when necessary during init. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin ---

[PATCH 10/14] cpufreq: exynox-cpufreq: pass exynos_dvfs_info to .set_freq callback

2015-02-02 Thread Eduardo Valentin
This change passes the exynos_dvfs_info to the .set_freq callback to avoid using local static variables. Now, the core can use same allocated data structure and child code can work on same data structure. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc:

[PATCH 02/14] cpufreq: exynos4210: iounmap in error path

2015-02-02 Thread Eduardo Valentin
When error occurs, allow systems to release iomapped area. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin ---

[PATCH 13/14] cpufreq: exynos5250: remove unused symbol cpufreq

2015-02-02 Thread Eduardo Valentin
Now that the set_freq call back receives the intended data struct, the global cpufreq variable may be removed. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc:

[PATCH] net: usb: sr9700: Use 'SR_' prefix for the common register macros

2015-02-02 Thread Chen Gang S
The commone register macors (e.g. RSR) is too commont to drivers, it may be conflict with the architectures (e.g. xtensa, sh). The related warnings (with allmodconfig under xtensa): CC [M] drivers/net/usb/sr9700.o In file included from drivers/net/usb/sr9700.c:24:0:

[PATCH 14/14] cpufreq: exynos-cpufreq: release resources by using managed allocation

2015-02-02 Thread Eduardo Valentin
This change allows the proper resource release used by this driver. The resources are now allocated using managed allocation by means of the devm_* helper functions. Those resources that cannot be managed are properly released during the device removal time. The global variables have been removed

[PATCH 11/14] cpufreq: exynos4210: remove unused symbol cpufreq

2015-02-02 Thread Eduardo Valentin
Now that the set_freq call back receives the intended data struct, the global cpufreq variable may be removed. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc:

[PATCH 09/14] cpufreq: exynos5250: use devm_clk_get

2015-02-02 Thread Eduardo Valentin
Switch to managed clk_get to properly release resources when they are not needed. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by:

[PATCH 08/14] cpufreq: exynos5250: iounmap in error path

2015-02-02 Thread Eduardo Valentin
When error occurs, allow systems to release iomapped area. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin ---

[PATCH 06/14] cpufreq: exynos4x12: use devm_clk_get

2015-02-02 Thread Eduardo Valentin
Switch to managed clk_get to properly release resources when they are not needed. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by:

[PATCH 03/14] cpufreq: exynos4210: use devm_clk_get

2015-02-02 Thread Eduardo Valentin
Switch to managed clk_get to properly release resources when they are not needed. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by:

[PATCH 01/14] cpufreq: exynos4210: properly put of node

2015-02-02 Thread Eduardo Valentin
Call of_node_put when necessary during init. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: Kukjin Kim Cc: linux...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-samsung-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin ---

RE: [PATCH RESEND v3 3/3] X-Power AXP288 PMIC Fuel Gauge Driver

2015-02-02 Thread Brandt, Todd E
Hi Dmitry and Sebastian, can we get this driver included for 3.20? Regards Todd Brandt From: Todd Brandt [todd.e.bra...@linux.intel.com] Sent: Monday, February 02, 2015 12:44 PM To: s...@kernel.org; dbarysh...@gmail.com; Woodhouse, David Cc:

Re: How to fix CDROM/DVD eject mess?

2015-02-02 Thread Ondrej Zary
On Monday 02 February 2015 21:02:23 Austin S Hemmelgarn wrote: > On 2015-02-02 14:34, Maciej W. Rozycki wrote: > > On Mon, 2 Feb 2015, Kay Sievers wrote: > >>> I thought that fixing the udev behavior would solve the problem. But > >>> it turned out that I was too naive. A bigger problem is that

Re: [capabilities] Allow normal inheritance for a configurable set of capabilities

2015-02-02 Thread Casey Schaufler
On 2/2/2015 12:37 PM, Andy Lutomirski wrote: > On Mon, Feb 2, 2015 at 10:08 AM, Serge Hallyn wrote: >> Quoting Casey Schaufler (ca...@schaufler-ca.com): >>> I'm game to participate in such an effort. The POSIX scheme >>> is workable, but given that it's 20 years old and hasn't >>> developed real

Altera FPGA programming

2015-02-02 Thread Ran Shalit
Hello, I have found the following link for altera fpga programming driver: http://lwn.net/Articles/421434/ Is there any example or readme how to use the Altera FPGA or how to access it ? Is it the best way for jtag programming available in linux ? I try to use it with some GPIO in chip (not

Re: [PATCH 06/20] staging/lustre: fix comparison between signed and unsigned

2015-02-02 Thread Greg Kroah-Hartman
On Mon, Feb 02, 2015 at 03:25:58PM -0500, Oleg Drokin wrote: > Hello! > > On Feb 2, 2015, at 10:44 AM, Greg Kroah-Hartman wrote: > > > On Mon, Feb 02, 2015 at 04:02:31PM +0300, Dan Carpenter wrote: > >> On Sun, Feb 01, 2015 at 09:52:05PM -0500, gr...@linuxhacker.ru wrote: > >>> From: Dmitry

Re: [PATCH v13 4/6] clk: Add rate constraints to clocks

2015-02-02 Thread Tony Lindgren
k.c:925 > > > clk_disable+0x28/0x34() > > > [ 10.568237] Modules linked in: > > > [ 10.568237] CPU: 0 PID: 1 Comm: swapper/0 Tainted: GW > > > 3.19.0-rc6-next-20150202 #2037 > > > [ 10.568237] Hardware name: Generic OMAP4 (Flattened Device Tree

[PATCH] serial: 8250: Fix UART_BUG_TXEN workaround

2015-02-02 Thread Peter Hurley
UARTs which do not trigger THRE interrupt if the fifo is already empty when the interrupt is enabled need tx primed manually. These UARTs are identified by the UART_BUG_TXEN flag to enable the required workaround. However, the current workaround is broken; if the fifo is already empty but the

Re: [RFC PATCH v4] audit: move the tree pruning to a dedicated thread

2015-02-02 Thread Paul Moore
On Friday, January 30, 2015 03:05:59 PM Imre Palik wrote: > From: "Palik, Imre" > > When file auditing is enabled, during a low memory situation, a memory > allocation with __GFP_FS can lead to pruning the inode cache. Which can, > in turn lead to audit_tree_freeing_mark() being called. This

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-02 Thread Tony Lindgren
* Tero Kristo [150202 11:35]: > On 02/01/2015 11:24 PM, Mike Turquette wrote: > >Quoting Tomeu Vizoso (2015-01-23 03:03:30) > > > >AFAICT this doesn't break anything, but booting on OMAP3+ results in > >noisy WARNs. > > > >I think the correct fix is to replace clk_bypass and clk_ref pointers >

Re: [PATCH] 3.19-rc7: add quirk for 1c28:0122 (rev 14) SATA controller

2015-02-02 Thread Bjorn Helgaas
On Mon, Feb 2, 2015 at 2:15 PM, Tim Sander wrote: > Hi Bjorn > > Am Montag 02 Februar 2015, 08:55:33 schrieb Bjorn Helgaas: >> [+cc Alex] >> >> On Mon, Feb 2, 2015 at 5:29 AM, Tim Sander wrote: >> > The long name for this device is >> > Lite-On IT Corp. / Plextor M6e PCI Express SSD [Marvell

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-02 Thread Stephen Boyd
On 02/01/15 13:24, Mike Turquette wrote: > Quoting Tomeu Vizoso (2015-01-23 03:03:30) >> Moves clock state to struct clk_core, but takes care to change as little API >> as >> possible. >> >> struct clk_hw still has a pointer to a struct clk, which is the >> implementation's per-user clk instance,

Re: [PATCH 0/6] PCI: MMCONFIG clean up

2015-02-02 Thread Bjorn Helgaas
On Wed, Nov 19, 2014 at 05:04:45PM +0100, Tomasz Nowicki wrote: > MMCFG ACPI table has no arch dependencies so it can be used across all > architectures. Currently MMCONFIG related code resides in arch/x86 > directories. > This patch set is goint to isolate non-architecure specific code and make

Re: [PATCH v3 00/13] locks: saner method for managing file locks

2015-02-02 Thread Jeff Layton
On Mon, 2 Feb 2015 15:29:33 -0500 Mike Marshall wrote: > I applied Jeff's patch to my orangefs-3.19-rc5 tree. Orangefs > doesn't yet support the lock callout for file_operations, but > we have been experimenting with some ideas that would allow > Orangefs to honor locks in our distributed

Re: [capabilities] Allow normal inheritance for a configurable set of capabilities

2015-02-02 Thread Andy Lutomirski
On Mon, Feb 2, 2015 at 10:08 AM, Serge Hallyn wrote: > Quoting Casey Schaufler (ca...@schaufler-ca.com): >> I'm game to participate in such an effort. The POSIX scheme >> is workable, but given that it's 20 years old and hasn't >> developed real traction it's hard to call it successful. > > Over

Re: [capabilities] Allow normal inheritance for a configurable set of capabilities

2015-02-02 Thread Casey Schaufler
On 2/2/2015 11:05 AM, Austin S Hemmelgarn wrote: > On 2015-02-02 13:47, Mimi Zohar wrote: >> On Mon, 2015-02-02 at 18:08 +, Serge Hallyn wrote: >>> Quoting Casey Schaufler (ca...@schaufler-ca.com): I'm game to participate in such an effort. The POSIX scheme is workable, but given

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-02-02 Thread Rob Clark
On Mon, Feb 2, 2015 at 11:54 AM, Daniel Vetter wrote: >> My initial thought is for dma-buf to not try to prevent something than >> an exporter can actually do.. I think the scenario you describe could >> be handled by two sg-lists, if the exporter was clever enough. > > That's already needed,

Re: [PATCH v3 00/13] locks: saner method for managing file locks

2015-02-02 Thread Mike Marshall
I applied Jeff's patch to my orangefs-3.19-rc5 tree. Orangefs doesn't yet support the lock callout for file_operations, but we have been experimenting with some ideas that would allow Orangefs to honor locks in our distributed environment: basically posix locks for each kernel client plus meta

Re: [PATCH 06/20] staging/lustre: fix comparison between signed and unsigned

2015-02-02 Thread Oleg Drokin
Hello! On Feb 2, 2015, at 10:44 AM, Greg Kroah-Hartman wrote: > On Mon, Feb 02, 2015 at 04:02:31PM +0300, Dan Carpenter wrote: >> On Sun, Feb 01, 2015 at 09:52:05PM -0500, gr...@linuxhacker.ru wrote: >>> From: Dmitry Eremin >>> >>> Expression if (size != (ssize_t)size) is always false. >>>

Re: [PATCH] spi: fsl-dspi: Remove possible memory leak of 'chip'

2015-02-02 Thread Mark Brown
On Sat, Jan 31, 2015 at 07:46:48PM +0300, Dan Carpenter wrote: > On Sat, Jan 31, 2015 at 10:03:25PM +0530, Bhuvanchandra DV wrote: > > Move the check for spi->bits_per_word > > before allocation, to avoid memory leak. > > Signed-off-by: Dan Carpenter > Normally, you would give me a Reported-by:

Re: [PATCH v2] ARM: pxa: fix pxa interrupts handling in DT

2015-02-02 Thread Robert Jarzmik
Robert Jarzmik writes: > @@ -66,18 +67,20 @@ static inline void __iomem *irq_base(int i) > void pxa_mask_irq(struct irq_data *d) > { > void __iomem *base = irq_data_get_irq_chip_data(d); > + irq_hw_number_t irq = irqd_to_hwirq(d); > uint32_t icmr = __raw_readl(base + ICMR); >

Re: [PATCH] clk: pxa: fix pxa27x_clocks_init scope

2015-02-02 Thread Robert Jarzmik
Stephen Boyd writes: > On 01/31/15 14:37, Robert Jarzmik wrote: >> As pxa27x_clocks_init() is called from early boot stage, it has to be >> reachable from pxa architecture code, as are pxa25x_clocks_init() and >> pxa2xx_clock_init(). >> >> Remove the static declaration, which was introduced

Re: [RFC][PATCH v2] procfs: Always expose /proc//map_files/ and make it readable

2015-02-02 Thread Andy Lutomirski
On Fri, Jan 30, 2015 at 5:58 PM, Calvin Owens wrote: > On Thursday 01/29 at 17:30 -0800, Kees Cook wrote: >> On Tue, Jan 27, 2015 at 8:38 PM, Calvin Owens wrote: >> > On Monday 01/26 at 15:43 -0800, Andrew Morton wrote: >> >> On Tue, 27 Jan 2015 00:00:54 +0300 Cyrill Gorcunov >> >> wrote: >>

Re: [PATCH] 3.19-rc7: add quirk for 1c28:0122 (rev 14) SATA controller

2015-02-02 Thread Tim Sander
Hi Bjorn Am Montag 02 Februar 2015, 08:55:33 schrieb Bjorn Helgaas: > [+cc Alex] > > On Mon, Feb 2, 2015 at 5:29 AM, Tim Sander wrote: > > The long name for this device is > > Lite-On IT Corp. / Plextor M6e PCI Express SSD [Marvell 88SS9183] (rev 14) > > > > Background: the error description

Re: [PATCH 01/13] kdbus: add documentation

2015-02-02 Thread Andy Lutomirski
On Feb 2, 2015 1:34 AM, "Daniel Mack" wrote: > > Hi Andy, > > On 01/29/2015 01:09 PM, Andy Lutomirski wrote: > > On Jan 29, 2015 6:42 AM, "Daniel Mack" wrote: > > >> As we explained before, currently, D-Bus peers do collect the same > >> information already if they need to have them, but they

Re: [PATCH] Add ARCH_MIGHT_HAVE_VGA_CONSOLE

2015-02-02 Thread Arnd Bergmann
On Tuesday 03 February 2015 00:48:20 Yoshinori Sato wrote: > At Mon, 2 Feb 2015 09:10:06 +0100, > Geert Uytterhoeven wrote: > > > > Hi Sato-san, > > > > > > On Mon, Feb 2, 2015 at 8:24 AM, Yoshinori Sato > > wrote: > > > The dependence of VGA_CONSOLE is complicated. > > > We need clean up. > >

Re: [RFC 1/2] clocksource: track usage

2015-02-02 Thread Kevin Hilman
Alexandre Belloni writes: > Track whether the clocksource is enabled or disabled. > > Signed-off-by: Alexandre Belloni > --- > include/linux/clocksource.h | 4 > kernel/time/clocksource.c | 26 ++ > kernel/time/timekeeping.c | 8 +++- > 3 files changed,

Re: [PATCH] regulator: Build sysfs entries with static attribute groups

2015-02-02 Thread Mark Brown
On Fri, Jan 30, 2015 at 08:29:31PM +0100, Takashi Iwai wrote: > Instead of calling device_create_file() manually after the device > registration, put all in attribute groups and filter the unwanted ones > via is_visible callback. This not only simplifies the code but also > avoids the possible

Re: How to fix CDROM/DVD eject mess?

2015-02-02 Thread Austin S Hemmelgarn
On 2015-02-02 14:34, Maciej W. Rozycki wrote: On Mon, 2 Feb 2015, Kay Sievers wrote: I thought that fixing the udev behavior would solve the problem. But it turned out that I was too naive. A bigger problem is that all user-space stuff misinterprets DISK_EVENT_EJECT_REQUEST event: they see

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