[PATCH] objtool: Fix Makefile to properly see if libelf is supported

2016-04-20 Thread Steven Rostedt
When doing a make allmodconfig, I hit the following compile error: In file included from builtin-check.c:32:0: elf.h:22:18: fatal error: gelf.h: No such file or directory compilation terminated. In file included from special.h:22:0, from special.c:26: elf.h:22:18: fatal error: gel

[PATCH 7/8] drm/qxl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now be deferred in the same way that mmap damage is, instead of being flushed directly. This patch has only been compile tested. Signed-off-by: Noralf Trønnes --- drivers/gp

[PATCH 5/8] fbdev: fb_defio: Export fb_deferred_io_mmap

2016-04-20 Thread Noralf Trønnes
Export fb_deferred_io_mmap so drivers can change vma->vm_page_prot. When the framebuffer memory is allocated using dma_alloc_writecombine() instead of vmalloc(), I get cache syncing problems. This solves it: static int drm_fbdev_cma_deferred_io_mmap(struct fb_info *info,

[PATCH 3/8] drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-20 Thread Noralf Trønnes
Now that drm_fb_helper gets deferred io support, the drm_fb_helper_sys_{fillrect,copyarea,imageblit} functions will schedule the worker that calls the deferred_io callback. This will break this driver so use the sys_{fillrect,copyarea,imageblit} functions directly. Signed-off-by: Noralf Trønnes -

[PATCH 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-20 Thread Noralf Trønnes
Add some utility functions for struct drm_clip_rect. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_rect.c | 67 include/drm/drm_rect.h | 69 ++ 2 files changed, 136 insertions(+) diff --git a/dr

[PATCH 6/8] drm/fb-cma-helper: Add fb_deferred_io support

2016-04-20 Thread Noralf Trønnes
This adds fbdev deferred io support if CONFIG_FB_DEFERRED_IO is enabled. The driver has to provide a (struct drm_framebuffer_funcs *)->dirty() callback to get notification of fbdev framebuffer changes. If the dirty() hook is set, then fb_deferred_io is set up automatically by the helper. Two funct

[PATCH 8/8] drm/udl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now be deferred in the same way that mmap damage is, instead of being flushed directly. The deferred mmap functionality is kept disabled by default, because of the list corrupt

[PATCH 0/8] drm: Add fbdev deferred io support to helpers

2016-04-20 Thread Noralf Trønnes
This patchset adds fbdev deferred io support to drm_fb_helper and drm_fb_cma_helper. It defers fbdev mmap and fb_{write,fillrect,copyarea,imageblit} damage and channels it through the (struct drm_framebuffer_funcs)->dirty callback on the fb_helper framebuffer which will always run in process conte

Re: [PATCH] devpts: Make each mount of devpts an independent filesystem.

2016-04-20 Thread Konstantin Khlebnikov
On Wed, Apr 20, 2016 at 5:55 PM, Eric W. Biederman wrote: > Linus Torvalds writes: > >> On Tue, Apr 19, 2016 at 9:36 PM, Konstantin Khlebnikov >> wrote: >>> On Wed, Apr 20, 2016 at 6:04 AM, Eric W. Biederman The kernel.pty.reserve sysctl is neutered with no way currently implemen

Re: [PATCH v8 3/4] perf config: Prepare all default configs

2016-04-20 Thread Taeung Song
Hi, Arnaldo :-) On 04/20/2016 10:22 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Apr 20, 2016 at 09:44:38PM +0900, Namhyung Kim escreveu: On Mon, Apr 18, 2016 at 11:55:18PM +0900, Taeung Song wrote: On 04/15/2016 01:42 AM, Taeung Song wrote: On 04/14/2016 09:19 PM, Arnaldo Carvalho de Melo wro

RE: [PATCH 11/14] staging: fsl-mc: add quirk handling for dpseci objects < 4.0

2016-04-20 Thread Stuart Yoder
> -Original Message- > From: Horia Ioan Geanta Neag > Sent: Wednesday, April 20, 2016 6:42 AM > To: Stuart Yoder ; Jose Rivera > Cc: gre...@linuxfoundation.org; de...@driverdev.osuosl.org; > linux-kernel@vger.kernel.org; > ag...@suse.de; a...@arndb.de; Yang-Leo Li > Subject: Re: [PATCH

[PATCH v7 07/24] i2c: i2c-mux-reg: convert to use an explicit i2c mux core

2016-04-20 Thread Peter Rosin
Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-reg.c | 69 +++-- 1 file changed

RE: [PATCH 1/1] perf/x86/intel/uncore: Add support for Intel SKL client uncore

2016-04-20 Thread Liang, Kan
> On Wed, 20 Apr 2016, Liang, Kan wrote: > > > The stop of the box1 events disables the whole machinery on that > > > node and therefor the box0 event is wreckaged as well. Hmm? > > > > > Right. How about check the SKL_UNC_PERF_GLOBAL_CTL in enable_event? > > If it's cleared, we can reset it ther

[PATCH v2] KVM: remove buggy vcpu id check on vcpu creation

2016-04-20 Thread Greg Kurz
Commit 338c7dbadd26 ("KVM: Improve create VCPU parameter (CVE-2013-4587)") introduced a check to prevent potential kernel memory corruption in case the vcpu id is too great. Unfortunately this check assumes vcpu ids grow in sequence with a common difference of 1, which is wrong: archs are free to

[PATCH v7 09/24] [media] m88ds3103: convert to use an explicit i2c mux core

2016-04-20 Thread Peter Rosin
Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select op to be in terms of the i2c mux core instead of the child adapter. Reviewed-by: Antti Palosaari Signed-off-by: Peter Rosin --- drivers/media/dvb-frontends/m88ds3103.c | 19 +++ dri

[PATCH v2] drivers/idle: make intel_idle.c driver more explicitly non-modular

2016-04-20 Thread Paul Gortmaker
The Kconfig for this driver is currently declared with: config INTEL_IDLE bool "Cpuidle Driver for Intel Processors" ...meaning that it currently is not being built as a module by anyone. This was done in commit 6ce9cd8669fa1195fdc21643370e34523c7ac988 ("intel_idle: disable module suppor

[PATCH v7 13/24] [media] cx231xx: convert to use an explicit i2c mux core

2016-04-20 Thread Peter Rosin
Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select op to be in terms of the i2c mux core instead of the child adapter. Signed-off-by: Peter Rosin --- drivers/media/usb/cx231xx/cx231xx-core.c | 6 ++-- drivers/media/usb/cx231xx/cx231xx-i2c.c | 47 ++

[PATCH v7 17/24] i2c: muxes always lock the parent adapter

2016-04-20 Thread Peter Rosin
Instead of checking for i2c parent adapters for every lock/unlock, simply override the locking for muxes to always lock/unlock the parent adapter directly. Signed-off-by: Peter Rosin --- drivers/i2c/i2c-core.c | 21 +++-- drivers/i2c/i2c-mux.c | 27 +++ 2

[PATCH v7 14/24] of/unittest: convert to use an explicit i2c mux core

2016-04-20 Thread Peter Rosin
Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select op to be in terms of the i2c mux core instead of the child adapter. Acked-by: Rob Herring Signed-off-by: Peter Rosin --- drivers/of/unittest.c | 37 - 1 file changed,

[PATCH v7 12/24] [media] si2168: convert to use an explicit i2c mux core

2016-04-20 Thread Peter Rosin
Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Reviewed-by: Antti Palosaari Signed-off-by: Peter Rosin --- drivers/media/dvb-frontends/si2168.c | 25 +++--

Re: [PATCH] SCSI: LIBSCSI: Fixed codeing style errors

2016-04-20 Thread Douglas Gilbert
On 16-04-20 03:51 AM, Bob Stlt wrote: Fixed codeing style formatting errors. Signed-off-by: Bob Stlt --- drivers/scsi/libiscsi.c | 90 - 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libi

[PATCH v7 20/24] iio: imu: inv_mpu6050: change the i2c gate to be mux-locked

2016-04-20 Thread Peter Rosin
The root i2c adapter lock is then no longer held by the i2c mux during accesses behind the i2c gate, and such accesses need to take that lock just like any other ordinary i2c accesses do. So, declare the i2c gate mux-locked, and zap the code that makes the unlocked i2c accesses and just use ordina

Re: [PATCH 1/5] regulator: core: Resolve supply earlier

2016-04-20 Thread Mark Brown
On Tue, Apr 19, 2016 at 05:09:59PM +0100, Jon Hunter wrote: > On 19/04/16 16:40, Mark Brown wrote: > > This is *really* weird. Why would we need the list lock to do a > > device_register()? > So I did not think that we would want someone to be able to > look-up the regulator via of_find_regul

Re: [PATCH] KVM: remove buggy vcpu id check on vcpu creation

2016-04-20 Thread kbuild test robot
Hi, [auto build test WARNING on kvm/linux-next] [also build test WARNING on v4.6-rc4 next-20160420] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Greg-Kurz/KVM-remove-buggy-vcpu-id-check-on

[PATCH v7 23/24] [media] rtl2832_sdr: get rid of empty regmap wrappers

2016-04-20 Thread Peter Rosin
Reviewed-by: Antti Palosaari Signed-off-by: Peter Rosin --- drivers/media/dvb-frontends/rtl2832_sdr.c | 302 +- 1 file changed, 132 insertions(+), 170 deletions(-) diff --git a/drivers/media/dvb-frontends/rtl2832_sdr.c b/drivers/media/dvb-frontends/rtl2832_sdr.c ind

[PATCH v7 21/24] [media] si2168: change the i2c gate to be mux-locked

2016-04-20 Thread Peter Rosin
From: Antti Palosaari The root i2c adapter lock is then no longer held by the i2c mux during accesses behind the i2c gate, and such accesses need to take that lock just like any other ordinary i2c accesses do. So, declare the i2c gate mux-locked, and zap the code that makes the i2c accesses unlo

[PATCH v7 24/24] [media] rtl2832: regmap is aware of lockdep, drop local locking hack

2016-04-20 Thread Peter Rosin
Reviewed-by: Antti Palosaari Signed-off-by: Peter Rosin --- drivers/media/dvb-frontends/rtl2832.c | 30 -- drivers/media/dvb-frontends/rtl2832_priv.h | 1 - 2 files changed, 31 deletions(-) diff --git a/drivers/media/dvb-frontends/rtl2832.c b/drivers/media/dvb

[PATCH v7 10/24] [media] rtl2830: convert to use an explicit i2c mux core

2016-04-20 Thread Peter Rosin
Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select op to be in terms of the i2c mux core instead of the child adapter. Reviewed-by: Antti Palosaari Signed-off-by: Peter Rosin --- drivers/media/dvb-frontends/rtl2830.c | 20 driv

Re: [PATCH] KVM: remove buggy vcpu id check on vcpu creation

2016-04-20 Thread Greg Kurz
On Wed, 20 Apr 2016 16:12:46 +0100 James Hogan wrote: > Hi Greg, > > On Wed, Apr 20, 2016 at 05:07:58PM +0200, Greg Kurz wrote: > > Commit 338c7dbadd26 ("KVM: Improve create VCPU parameter (CVE-2013-4587)") > > introduced a check to prevent potential kernel memory corruption in case > > the vcpu

[PATCH v7 15/24] i2c-mux: drop old unused i2c-mux api

2016-04-20 Thread Peter Rosin
All i2c mux users are using an explicit i2c mux core, drop support for implicit i2c mux cores. Signed-off-by: Peter Rosin --- drivers/i2c/i2c-mux.c | 63 - include/linux/i2c-mux.h | 15 2 files changed, 78 deletions(-) diff --git a/

[PATCH v7 19/24] i2c-mux: document i2c muxes and elaborate on parent-/mux-locked muxes

2016-04-20 Thread Peter Rosin
Signed-off-by: Peter Rosin --- Documentation/i2c/i2c-topology | 370 + MAINTAINERS| 1 + 2 files changed, 371 insertions(+) create mode 100644 Documentation/i2c/i2c-topology diff --git a/Documentation/i2c/i2c-topology b/Documentation

[PATCH v7 11/24] [media] rtl2832: convert to use an explicit i2c mux core

2016-04-20 Thread Peter Rosin
Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Reviewed-by: Antti Palosaari Signed-off-by: Peter Rosin --- drivers/media/dvb-frontends/rtl2832.c | 25 ++--

[PATCH v7 16/24] i2c: allow adapter drivers to override the adapter locking

2016-04-20 Thread Peter Rosin
Add i2c_lock_bus() and i2c_unlock_bus(), which call the new lock_bus and unlock_bus ops in the adapter. These funcs/ops take an additional flags argument that indicates for what purpose the adapter is locked. There are two flags, I2C_LOCK_ADAPTER and I2C_LOCK_SEGMENT, but they are both implemented

[PATCH v7 18/24] i2c-mux: relax locking of the top i2c adapter during mux-locked muxing

2016-04-20 Thread Peter Rosin
With a i2c topology like the following GPIO ---| -- BAT1 | v / I2C -+--+ MUX | \ EEPROM -- BAT2 there is a locking problem with the GPIO controller since it i

[PATCH v7 22/24] [media] rtl2832: change the i2c gate to be mux-locked

2016-04-20 Thread Peter Rosin
The root i2c adapter lock is then no longer held by the i2c mux during accesses behind the i2c gate, and such accesses need to take that lock just like any other ordinary i2c accesses do. So, declare the i2c gate mux-locked, and zap the regmap overrides that makes the i2c accesses unlocked and use

[PATCH v7 06/24] i2c: i2c-mux-pca954x: convert to use an explicit i2c mux core

2016-04-20 Thread Peter Rosin
Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Add a mask to handle the case where not all child adapters should cause a mux deselect to happen, now that there is a common de

[PATCH v7 03/24] i2c: i2c-mux-pinctrl: convert to use an explicit i2c mux core

2016-04-20 Thread Peter Rosin
Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pinctrl.c | 83 ++--- 1 file changed

[PATCH v7 08/24] iio: imu: inv_mpu6050: convert to use an explicit i2c mux core

2016-04-20 Thread Peter Rosin
Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Acked-by: Jonathan Cameron Signed-off-by: Peter Rosin --- drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c | 2 +- drivers/iio/im

[PATCH v7 01/24] i2c-mux: add common data for every i2c-mux instance

2016-04-20 Thread Peter Rosin
All i2c-muxes have a parent adapter and one or many child adapters. A mux also has some means of selection. Previously, this was stored per child adapter, but it is only needed to keep track of this per mux. Add an i2c mux core, that keeps track of this consistently. Also add some glue for users

[PATCH v7 05/24] i2c: i2c-mux-pca9541: convert to use an explicit i2c mux core

2016-04-20 Thread Peter Rosin
Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca9541.c | 58 + 1 file changed

[PATCH v7 04/24] i2c: i2c-arb-gpio-challenge: convert to use an explicit i2c mux core

2016-04-20 Thread Peter Rosin
Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-arb-gpio-challenge.c | 47 +- 1 file changed

[PATCH v7 02/24] i2c: i2c-mux-gpio: convert to use an explicit i2c mux core

2016-04-20 Thread Peter Rosin
Allocate an explicit i2c mux core to handle parent and child adapters etc. Update the select/deselect ops to be in terms of the i2c mux core instead of the child adapter. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-gpio.c | 55 1 file changed

[PATCH v7 00/24] i2c mux cleanup and locking update

2016-04-20 Thread Peter Rosin
Hi! I have a pair of boards with this i2c topology: GPIO ---| -- BAT1 | v / I2C -+--B---+ MUX | \ EEPROM -- BAT2 (B denotes the boundary between the boar

[PATCH 1/2] mfd: twl6040: Disable and unprepare clk32k in twl6040_power() error path

2016-04-20 Thread Javier Martinez Canillas
The clk32k clock is prepared and enabled in twl6040_power() but the clock is left enabled in case of an error while it should be disable/unprepared. Signed-off-by: Javier Martinez Canillas --- drivers/mfd/twl6040.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/twl6040.c b/dr

[PATCH 2/2] mfd: twl6040: Check clk_prepare_enable() return value in twl6040_power()

2016-04-20 Thread Javier Martinez Canillas
The clk_prepare_enable() function can fail so check the return value and propagate the error in case of a failure. Signed-off-by: Javier Martinez Canillas --- drivers/mfd/twl6040.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/twl6040.c b/drivers/mfd/twl6

Re: [PATCH v11 3/3] printk: make printk.synchronous param rw

2016-04-20 Thread Jan Kara
On Fri 08-04-16 02:31:47, Sergey Senozhatsky wrote: > Change `synchronous' printk param to be RW, so user space > can change printk mode back and forth to/from sync mode > (which is considered to be more reliable). > > Signed-off-by: Sergey Senozhatsky I finally found time to have a look. The pa

[PATCH v2 0/1] Revert "Prevent NUll pointer dereference with two PHYs"

2016-04-20 Thread Andrew Goodbody
Revert this patch as not only did it use an unitialised member of a struct but there is also a pre-existing patch that does it better. V2 add signoff Andrew Goodbody (1): Revert "Prevent NUll pointer dereference with two PHYs on cpsw" drivers/net/ethernet/ti/cpsw.c | 31 +++---

[PATCH v2 1/1] Revert "Prevent NUll pointer dereference with two PHYs on cpsw"

2016-04-20 Thread Andrew Goodbody
This reverts commit cfe255600154f0072d4a8695590dbd194dfd1aeb This can result in a "Unable to handle kernel paging request" during boot. This was due to using an uninitialised struct member, data->slaves. Signed-off-by: Andrew Goodbody Tested-by: Tony Lindgren --- v2 No code change, added signo

Re: [PATCH] KVM: remove buggy vcpu id check on vcpu creation

2016-04-20 Thread James Hogan
Hi Greg, On Wed, Apr 20, 2016 at 05:07:58PM +0200, Greg Kurz wrote: > Commit 338c7dbadd26 ("KVM: Improve create VCPU parameter (CVE-2013-4587)") > introduced a check to prevent potential kernel memory corruption in case > the vcpu id is too great. > > Unfortunately this check assumes vcpu ids gro

Re: [PATCH v8 3/4] perf config: Prepare all default configs

2016-04-20 Thread Taeung Song
Hi, Namhyung On 04/20/2016 09:44 PM, Namhyung Kim wrote: Hi Taeung, On Mon, Apr 18, 2016 at 11:55:18PM +0900, Taeung Song wrote: Hi, Namhyung On 04/15/2016 01:42 AM, Taeung Song wrote: Hi, Arnaldo On 04/14/2016 09:19 PM, Arnaldo Carvalho de Melo wrote: Em Thu, Apr 14, 2016 at 04:53:20PM +0

[PATCH] KVM: remove buggy vcpu id check on vcpu creation

2016-04-20 Thread Greg Kurz
Commit 338c7dbadd26 ("KVM: Improve create VCPU parameter (CVE-2013-4587)") introduced a check to prevent potential kernel memory corruption in case the vcpu id is too great. Unfortunately this check assumes vcpu ids grow in sequence with a common difference of 1, which is wrong: archs are free to

RE: [PATCH V3] rtc: zynqmp: Update seconds time programming logic

2016-04-20 Thread Anurag Kumar Vulisha
Hi all, Made a small typo mistake , Please ignore this patch. Sorry for the inconvenience caused. Thanks, Anurag Kumar V > -Original Message- > From: Anurag Kumar Vulisha [mailto:anurag.kumar.vuli...@xilinx.com] > Sent: Wednesday, April 20, 2016 8:29 PM > To: Alessandro Zummo ; Alex

Re: [PATCH] devpts: Make each mount of devpts an independent filesystem.

2016-04-20 Thread Eric W. Biederman
Linus Torvalds writes: > On Tue, Apr 19, 2016 at 9:36 PM, Konstantin Khlebnikov > wrote: >> On Wed, Apr 20, 2016 at 6:04 AM, Eric W. Biederman >>> >>> The kernel.pty.reserve sysctl is neutered with no way currently >>> implemented to be able to use the reserved ptys. >> >> I think we could conv

[Question] Missing data after DMA read transfer

2016-04-20 Thread Nicolas Morey-Chaisemartin
Hi everyone, Short version: I'm having an issue with direct DMA transfer from a device to host memory. It seems some of the data is not transferring to the appropriate page. Some more details: I'm debugging a home made PCI driver for our board (Kalray), attached to a x86_64 host running centos7

Re: [PATCH v2] locking/pvqspinlock: Add lock holder CPU argument to pv_wait()

2016-04-20 Thread Pan Xinhui
On 2016年04月20日 22:18, Peter Zijlstra wrote: > On Wed, Apr 20, 2016 at 10:15:09PM +0800, Pan Xinhui wrote: +static struct pv_node *pv_lookup_hash(struct qspinlock *lock) +{ + unsigned long offset, hash = hash_ptr(lock, pv_lock_hash_bits); + struct pv_hash_entry *he; + >>

Re: [PATCH V5 0/4] Introduce CoreSight STM support

2016-04-20 Thread Mathieu Poirier
On 6 April 2016 at 20:51, Chunyan Zhang wrote: > This patchset adds support for the CoreSight STM IP block. This has been out there long enough - I'm picking this up. Alex, I'll have 1/4 go through my tree. Get back to me if you want to proceed differently. Thanks, Mathieu > > Changes from V4

Re: [PATCH 1/1] Revert "Prevent NUll pointer dereference with two PHYs on cpsw"

2016-04-20 Thread Tony Lindgren
* Andrew Goodbody [160420 07:51]: > This reverts commit cfe255600154f0072d4a8695590dbd194dfd1aeb > > This can result in a "Unable to handle kernel paging request" > during boot. This was due to using an uninitialised struct member, > data->slaves. Missing Signed-off-by? This gets cpsw boards wo

Re: [PATCH 2/2] mcb: Delete num_cells variable which is not required

2016-04-20 Thread Johannes Thumshirn
On Wed, Apr 20, 2016 at 03:18:15PM +0200, Andreas Werner wrote: > The num_cells variable is only used in the dev_dbg print, > but we can directly use the ret variable which also includes the same > value. > > Signed-off-by: Andreas Werner > --- > drivers/mcb/mcb-pci.c | 4 +--- > 1 file changed,

Re: [PATCH 1/2] mcb: Replace ioremap and request_region with the devm version

2016-04-20 Thread Johannes Thumshirn
On Wed, Apr 20, 2016 at 03:17:55PM +0200, Andreas Werner wrote: > Replaced ioremap with devm_ioremap and request_mem_region with > devm_request_mem_region. This makes the code much more cleaner. > > Signed-off-by: Andreas Werner > --- > drivers/mcb/mcb-pci.c | 19 +++ > 1 file ch

Re: [PATCH v2 2/2] dmaengine: vdma: Add clock support

2016-04-20 Thread Sören Brinkmann
On Wed, 2016-04-20 at 17:13:19 +0530, Kedareswara rao Appana wrote: > Added basic clock support. The clocks are requested at probe > and released at remove. > > Signed-off-by: Kedareswara rao Appana > --- > Changes for v2: > --> None. > > drivers/dma/xilinx/xilinx_vdma.c | 56 > +++

[PATCH V3] rtc: zynqmp: Update seconds time programming logic

2016-04-20 Thread Anurag Kumar Vulisha
We programe RTC time using SET_TIME_WRITE register and read the RTC current time using CURRENT_TIME register. When we set the time by writing into SET_TIME_WRITE Register and immediately try to read the rtc time from CURRENT_TIME register, the previous old value is returned instead of the new loade

Re: [PATCH 8/8] gpio: stmpe: configure GPIO as output by default

2016-04-20 Thread Linus Walleij
On Tue, Apr 19, 2016 at 2:18 PM, wrote: > From: Patrice Chotard > > Configures all GPIOs as output, in order to minimize power > consumption when GPIOs are unused. > > Signed-off-by: Amelie DELAUNAY > Signed-off-by: Patrice Chotard Not only do you set them all to outout but also: > +

RE: [PATCH 1/1] perf/x86/intel/uncore: Add support for Intel SKL client uncore

2016-04-20 Thread Thomas Gleixner
On Wed, 20 Apr 2016, Liang, Kan wrote: > > The stop of the box1 events disables the whole machinery on that node and > > therefor the box0 event is wreckaged as well. Hmm? > > > Right. How about check the SKL_UNC_PERF_GLOBAL_CTL in enable_event? If it's > cleared, we can reset it there. The drawb

Re: [PATCH v2 0/1] drivers: net: cpsw: Fix NULL pointer dereference with two slave PHYs

2016-04-20 Thread David Miller
From: Andrew Goodbody Date: Wed, 20 Apr 2016 08:49:34 + > Sorry, I had no notification that this had happened. However I > thought that the plan was to revert v1 and go with David Rivshin's > patch instead. I'll see if I can create a revert in a little while. Yes, that's fine.

RE: [PATCH v2 2/2] dmaengine: vdma: Add clock support

2016-04-20 Thread Appana Durga Kedareswara Rao
Hi Soren, > -Original Message- > From: Sören Brinkmann [mailto:soren.brinkm...@xilinx.com] > Sent: Wednesday, April 20, 2016 8:06 PM > To: Appana Durga Kedareswara Rao > Cc: robh...@kernel.org; pawel.m...@arm.com; mark.rutl...@arm.com; > ijc+devicet...@hellion.org.uk; ga...@codeaurora.org

Re: [PATCH] Bluetooth: vhci: Fix race at creating hci device

2016-04-20 Thread Takashi Iwai
On Wed, 20 Apr 2016 16:32:24 +0200, Marcel Holtmann wrote: > > Hi Takashi, > > > hci_vhci driver creates a hci device object dynamically upon each > > HCI_VENDOR_PKT write. Although it checks the already created object > > and returns an error, it's still racy and may build multiple hci_dev > >

Re: [PATCH 7/8] gpio: stmpe: Add STMPE1600 support

2016-04-20 Thread Linus Walleij
On Tue, Apr 19, 2016 at 2:18 PM, wrote: > From: Patrice Chotard > > The particularities of this variant are: > - GPIO_XXX_LSB and GPIO_XXX_MSB memory locations are inverted compared > to other variants. > - There is no Edge detection, Rising Edge and Falling Edge registers. > - IRQ flags are

Re: [1/3] rtc: mc13xxx: remove UIE signaling

2016-04-20 Thread Wolfram Sang
On Wed, Apr 20, 2016 at 04:37:51PM +0200, Alexandre Belloni wrote: > On 04/05/2011 at 17:31:26 +0200, Wolfram Sang wrote : > > The RTC core handles it since 6610e08 (RTC: Rework RTC code to use > > timerqueue for events). So far, only the callbacks to the RTC core have > > been removed, but not the

RE: [PATCH v2 1/2] Documentation: DT: vdma: Add clock support for vdma

2016-04-20 Thread Appana Durga Kedareswara Rao
Hi Soren, > -Original Message- > From: Sören Brinkmann [mailto:soren.brinkm...@xilinx.com] > Sent: Wednesday, April 20, 2016 7:58 PM > To: Appana Durga Kedareswara Rao > Cc: robh...@kernel.org; pawel.m...@arm.com; mark.rutl...@arm.com; > ijc+devicet...@hellion.org.uk; ga...@codeaur

Re: [3/3] rtc: mxc: remove UIE signaling

2016-04-20 Thread Alexandre Belloni
On 04/05/2011 at 17:31:28 +0200, Wolfram Sang wrote : > The RTC core handles it since 6610e08 (RTC: Rework RTC code to use > timerqueue for events). > > Signed-off-by: Wolfram Sang > --- > drivers/rtc/rtc-mxc.c |3 --- > 1 files changed, 0 insertions(+), 3 deletions(-) > Applied, thanks. -

Re: [PATCH 5/8] Documentation: dt: add stmpe1600 compatible string to stmpe mfd

2016-04-20 Thread Linus Walleij
On Tue, Apr 19, 2016 at 2:18 PM, wrote: > From: Patrice Chotard > > This patch adds a new compatible string for stmpe mfd to support > stmpe1600 variant. > > Signed-off-by: Amelie DELAUNAY Acked-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH 4/8] gpio: stmpe: write int status register only when needed

2016-04-20 Thread Linus Walleij
On Tue, Apr 19, 2016 at 2:18 PM, wrote: > From: Patrice Chotard > > On STMPE801/1801 datasheets, it's mentionned writing > in interrupt status register has no effect, bits are > cleared when reading. > > Signed-off-by: Amelie DELAUNAY > Signed-off-by: Patrice Chotard Reviewed-by: Linus Walle

Re: [PATCH net-next] net: dsa: remove tag_protocol from dsa_switch

2016-04-20 Thread Andrew Lunn
On Mon, Apr 18, 2016 at 06:24:04PM -0400, Vivien Didelot wrote: > Having the tag protocol in dsa_switch_driver for setup time and in > dsa_switch_tree for runtime is enough. Remove dsa_switch's one. > > Signed-off-by: Vivien Didelot I had to think about this one for a minute. At the moment it is

Re: [RESEND PATCH v2 00/13] eeprom: support for at24cs and at24mac

2016-04-20 Thread Bartosz Golaszewski
2016-04-16 23:17 GMT+02:00 Wolfram Sang : > Hi, > > On Mon, Apr 11, 2016 at 11:57:16AM -0700, Bartosz Golaszewski wrote: >> Chips from the at24cs EEPROM series have an additional read-only >> memory area containing a factory pre-programmed serial number. In >> order to access it, a dummy write must

Re: [PATCH v2] mm: SLAB freelist randomization

2016-04-20 Thread Thomas Garnier
On Wed, Apr 20, 2016 at 1:08 AM, Joonsoo Kim wrote: > On Tue, Apr 19, 2016 at 09:44:54AM -0700, Thomas Garnier wrote: >> On Tue, Apr 19, 2016 at 12:15 AM, Joonsoo Kim wrote: >> > On Mon, Apr 18, 2016 at 10:14:39AM -0700, Thomas Garnier wrote: >> >> Provides an optional config (CONFIG_FREELIST_RAN

Re: [PATCH v6 00/17] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms

2016-04-20 Thread Tony Lindgren
* Boris Brezillon [160419 13:13]: > On Tue, 19 Apr 2016 15:46:19 +0300 > Roger Quadros wrote: > > > > > After all the changes we discussed in [1] I was able to test > > nand/next-with-gpmc-rework > > and it worked fine. > > > > [1] - > > http://thread.gmane.org/gmane.comp.hardware.netbook.ar

Re: preempt_count overflow in CONFIG_PREEMPT

2016-04-20 Thread Peter Zijlstra
On Tue, Apr 19, 2016 at 03:58:43PM +0900, Minchan Kim wrote: > migration trial A page to B page. > B is newly allocated page so it's empty. > > 1. freeze every objects in A page >for object in a page >bit_spin_lock(object) > > 2. memcpy(B, A, PAGE_SIZE); > > 3. unfreeze every o

Re: [PATCH 6/8] mfd: Add STMPE1600 support

2016-04-20 Thread Linus Walleij
On Tue, Apr 19, 2016 at 2:18 PM, wrote: > From: Patrice Chotard > > STMPE1600 is a 16-bit port expander. > Datasheet is available here : > http://www2.st.com/content/st_com/en/products/interfaces-and-transceivers/ > i-o-expanders-and-level-translators/i-o-expanders/stmpe1600.html > > As STMPE16

[PATCH 1/1] Revert "Prevent NUll pointer dereference with two PHYs on cpsw"

2016-04-20 Thread Andrew Goodbody
This reverts commit cfe255600154f0072d4a8695590dbd194dfd1aeb This can result in a "Unable to handle kernel paging request" during boot. This was due to using an uninitialised struct member, data->slaves. --- drivers/net/ethernet/ti/cpsw.c | 31 +++ 1 file changed, 15 i

[PATCH 0/1] Revert "Prevent NUll pointer dereference with two PHYs"

2016-04-20 Thread Andrew Goodbody
Revert this patch as not only did it use an unitialised member of a struct but there is also a pre-existing patch that does it better. Andrew Goodbody (1): Revert "Prevent NUll pointer dereference with two PHYs on cpsw" drivers/net/ethernet/ti/cpsw.c | 31 +++ 1 fil

Re: [PATCH v7] Bluetooth: hci_uart: Support firmware download for Marvell

2016-04-20 Thread Marcel Holtmann
Hi Amitkumar, > Thanks for your review. > We will address these comments in updated version. > >>> + >>> +/* Receive data */ >>> +static int mrvl_recv(struct hci_uart *hu, const void *data, int >>> +count) { >>> + struct mrvl_data *mrvl = hu->priv; >>> + >>> + if (test_bit(HCI_UART_DNLD_FW, &

Re: [1/3] rtc: mc13xxx: remove UIE signaling

2016-04-20 Thread Alexandre Belloni
On 04/05/2011 at 17:31:26 +0200, Wolfram Sang wrote : > The RTC core handles it since 6610e08 (RTC: Rework RTC code to use > timerqueue for events). So far, only the callbacks to the RTC core have > been removed, but not the handlers. Do this now. > > Signed-off-by: Wolfram Sang > --- > drivers/

[PATCH v2 2/2] i2c: s3c2410: Check clk_prepare_enable() return value

2016-04-20 Thread Javier Martinez Canillas
The clk_prepare_enable() function can fail so check the return value and propagate the error in case of a failure. Signed-off-by: Javier Martinez Canillas --- Changes in v2: - Don't print the errno code since that's already printed by the core when probe fails. Suggested by Krzysztof Kozlowsk

Re: [PATCH v2] locking/pvqspinlock: Add lock holder CPU argument to pv_wait()

2016-04-20 Thread Pan Xinhui
On 2016年04月20日 22:19, Peter Zijlstra wrote: > On Wed, Apr 20, 2016 at 10:15:09PM +0800, Pan Xinhui wrote: >> So there is such case that we search the whole hashtable and the lock is not >> found. :( >> Waiman assume that if l = null, the lock is not stored. however the lock >> might be there ac

[PATCH v2 1/2] i2c: s3c2410: Print errno code in error logs

2016-04-20 Thread Javier Martinez Canillas
The driver not always prints the error code in case of a failure but this information can be very useful for debugging. So let's print if available. Signed-off-by: Javier Martinez Canillas --- Hello, This patch and 2/2 were only build tested because I don't have access to a board using this IP

Re: [PATCH 3/8] gpio: stmpe: fix edge and rising/falling edge detection

2016-04-20 Thread Linus Walleij
On Tue, Apr 19, 2016 at 2:18 PM, wrote: > From: Patrice Chotard > > By cross-checking STMPE 610/801/811/1601/2401/2403 datasheets, > it appears that edge detection and rising/falling edge detection > is not supported by all STMPE variant: > >GPIO GPIO > Edge detec

Re: [PATCH 1/3 v6] drm: Introduce drm_connector_register_all() helper

2016-04-20 Thread Alexey Brodkin
Hi Daniel, On Wed, 2016-04-20 at 13:28 +0200, Daniel Vetter wrote: > On Tue, Apr 19, 2016 at 03:24:51PM +0300, Alexey Brodkin wrote: > > > > As a pair to already existing drm_connector_unregister_all() we're adding > > generic implementation of what is already done in some drivers. > > > > Once

Re: [PATCH 2/8] mfd: stmpe: Add reset support for all STMPE variant

2016-04-20 Thread Linus Walleij
On Tue, Apr 19, 2016 at 2:18 PM, wrote: > From: Patrice Chotard > > Reset was only implemented for STMPE1801 variant despite > all variant have a SOFT_RESET bit. > > For STMPE2401/2403/801/1601/1801 SOFT_RESET bit is bit 7 > of SYS_CTRL register. > For STMPE610/811 (which have the same variant

RE: [PATCH v7] Bluetooth: hci_uart: Support firmware download for Marvell

2016-04-20 Thread Amitkumar Karwar
Hi Marcel, Thanks for your review. We will address these comments in updated version. > > + > > +/* Receive data */ > > +static int mrvl_recv(struct hci_uart *hu, const void *data, int > > +count) { > > + struct mrvl_data *mrvl = hu->priv; > > + > > + if (test_bit(HCI_UART_DNLD_FW, &mrvl->fla

Re: linux-next: error when fetching the c6x tree

2016-04-20 Thread Mark Salter
On Wed, 2016-04-20 at 07:36 +1000, Stephen Rothwell wrote: > Hi Mark, > > Attempting to fetch the c6x tree > (git://linux-c6x.org/git/projects/linux-c6x-upstreaming.git#for-linux-next) > produced this error: > > fatal: Could not read from remote repository. > > Please make sure you have the corr

Re: [PATCH 1/2] drm/rockchip: vop: Do check if an update is pending during disable

2016-04-20 Thread Tomeu Vizoso
On 11 April 2016 at 03:15, Mark yao wrote: > On 2016年04月08日 18:54, Tomeu Vizoso wrote: >> >> On 8 April 2016 at 03:07, Mark yao wrote: >>> >>> On 2016年04月06日 18:14, Tomeu Vizoso wrote: >>> >>> When a plane is being disabled but it's still enabled, do check if the >>> previous update has been comp

Re: [PATCH] Bluetooth: vhci: Fix race at creating hci device

2016-04-20 Thread Marcel Holtmann
Hi Takashi, > hci_vhci driver creates a hci device object dynamically upon each > HCI_VENDOR_PKT write. Although it checks the already created object > and returns an error, it's still racy and may build multiple hci_dev > objects concurrently when parallel writes are performed, as the device > t

Re: [PATCH] MAINTAINERS: net: add entry for TI Ethernet Switch drivers

2016-04-20 Thread Tony Lindgren
* Grygorii Strashko [160420 04:26]: > Add record for TI Ethernet Switch Driver CPSW/CPDMA/MDIO HW > (am33/am43/am57/dr7/davinci) to ensure that related patches > will go through dedicated linux-omap list. > > Also add Mugunthan as maintainer and myself as the reviewer. > > Cc: "David S. Miller"

Re: [PATCH 1/8] mfd: stmpe: Add STMPE_IDX_SYS_CTRL/2 enum

2016-04-20 Thread Linus Walleij
On Tue, Apr 19, 2016 at 2:18 PM, wrote: > From: Patrice Chotard > > As STMPE1801/1601/24xx has a SYS_CTRL register and > STMPE1601/2403 has even a SYS_CTRL2 register, add > STMPE_IDX_SYS_CTRL/2 and update driver code accordingly > > This update prepares the ground for not yet supported STMPE160

Re: [PATCH v2 1/2] Documentation: DT: vdma: Add clock support for vdma

2016-04-20 Thread Sören Brinkmann
On Wed, 2016-04-20 at 17:13:18 +0530, Kedareswara rao Appana wrote: > This patch updates the binding doc with clock description > for vdma. > > Signed-off-by: Kedareswara rao Appana > --- > Changes for v2: > --> Listed down all the clocks supported by the h/w > as suggested by the Datta. > --

Re: [PATCH next v2 2/2] PCI: keystone: remove unnecessary goto statement

2016-04-20 Thread Murali Karicheri
On 04/19/2016 09:06 PM, Bjorn Helgaas wrote: > Hi Murali, > > On Mon, Apr 11, 2016 at 10:50:31AM -0400, Murali Karicheri wrote: >> Fix the misuse of goto statement in ks_pcie_get_irq_controller_info() >> as simple return is more appropriate for this function. While at >> it add an error log for ab

Re: [PATCH V3] powerpc: Implement {cmp}xchg for u8 and u16

2016-04-20 Thread Peter Zijlstra
On Wed, Apr 20, 2016 at 09:24:00PM +0800, Pan Xinhui wrote: > +#define __XCHG_GEN(cmp, type, sfx, skip, v) \ > +static __always_inline unsigned long \ > +__cmpxchg_u32##sfx(v unsigned int *p, unsigned long old, \ > +

Re: [PATCH 0/8] STMPE fixes/rework and add STMPE1600 support

2016-04-20 Thread Linus Walleij
On Tue, Apr 19, 2016 at 5:53 PM, Stephen Warren wrote: > On 04/19/2016 06:18 AM, patrice.chot...@st.com wrote: >> For TEGRA ARCHITECTURE SUPPORT >> _ Stephen Warren >> _ Thierry Reding >> _ Alexandre Courbot > > I don't know what STMPE is, ST Microelectronics Multi-Pur

RE: [PATCH V2] rtc: zynqmp: Update seconds time programming logic

2016-04-20 Thread Anurag Kumar Vulisha
Hi Alexandre, > -Original Message- > From: Alexandre Belloni [mailto:alexandre.bell...@free-electrons.com] > Sent: Wednesday, April 20, 2016 7:33 PM > To: Anurag Kumar Vulisha > Cc: Alessandro Zummo ; Soren Brinkmann > ; Michal Simek ; rtc- > li...@googlegroups.com; linux-arm-ker...@lists

Re: [PATCH v2] locking/pvqspinlock: Add lock holder CPU argument to pv_wait()

2016-04-20 Thread Peter Zijlstra
On Wed, Apr 20, 2016 at 10:15:09PM +0800, Pan Xinhui wrote: > So there is such case that we search the whole hashtable and the lock is not > found. :( > Waiman assume that if l = null, the lock is not stored. however the lock > might be there actually. > But to avoid the worst case I just mention

<    1   2   3   4   5   6   7   8   9   >