Re: [PATCH v4 08/11] serial: 8250_lpss: split LPSS driver to separate module

2016-05-04 Thread kbuild test robot
Hi, [auto build test WARNING on next-20160504] [cannot apply to tty/tty-testing v4.6-rc6 v4.6-rc5 v4.6-rc4 v4.6-rc6] [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/Andy-Shevchenko/serial-8250

Re: [PATCH 1/2] Revert "ASoC: rockchip: i2s: remove unused variables"

2016-05-04 Thread Mark Brown
On Wed, May 04, 2016 at 03:54:45PM +0100, John Keeping wrote: > This reverts commit 5938448b99275cba95167c3f9d39ca9225fdad38. > > It turns out that the commit that made these variables unused is wrong > so we're about to revert it. Bring back the variables in prepration. Please submit patches us

Re: [PATCH 08/15] ACPICA: Dispatcher: Update thread ID for recursive method calls

2016-05-04 Thread Prarit Bhargava
On 05/04/2016 01:48 AM, Lv Zheng wrote: > From: Prarit Bhargava > > ACPICA commit 7a3bd2d962f221809f25ddb826c9e551b916eb25 > > Set the mutex owner thread ID. > Original patch from: Prarit Bhargava > > Link: https://github.com/acpica/acpica/commit/7a3bd2d9 > Signed-off-by: Prarit Bhargava >

Re: Kernel docs: muddying the waters a bit

2016-05-04 Thread Daniel Vetter
On Wed, May 04, 2016 at 08:57:13AM -0600, Jonathan Corbet wrote: > On Wed, 4 May 2016 16:18:27 +0200 > Daniel Vetter wrote: > > > > I'd really like to converge on the markup question, so that we can start > > > using all the cool stuff with impunity in gpu documentations. > > > > Aside: If we

Re: Kernel docs: muddying the waters a bit

2016-05-04 Thread Jonathan Corbet
On Wed, 04 May 2016 16:41:50 +0300 Jani Nikula wrote: > On Wed, 04 May 2016, Markus Heiser wrote: > > In reST the directive might look like: > > > > - > > Device Instance and Driver Handling > > === > > > > .. kernel-doc:: drivers/gpu/drm/drm_drv.c > >:d

Re: [PATCH] perf/core / arm_pmu: special-case hetereogeneous CPUs

2016-05-04 Thread Peter Zijlstra
On Wed, May 04, 2016 at 02:44:20PM +0100, Mark Rutland wrote: > > Ok, how about the below? (based on next-20160422). > > Peter, any thoughts? > Right, I have it queued, should hopefully hit tip tomorrow someplace. Thanks!

Re: [PATCH 1/2] Revert "ASoC: rockchip: i2s: remove unused variables"

2016-05-04 Thread Enric Balletbo Serra
Hi John, Thanks for the patches. 2016-05-04 16:54 GMT+02:00 John Keeping : > This reverts commit 5938448b99275cba95167c3f9d39ca9225fdad38. > > It turns out that the commit that made these variables unused is wrong > so we're about to revert it. Bring back the variables in prepration. > > Signed-

Re: [RFC PATCH v2 06/10] spi: add support for ACPI reconfigure notifications

2016-05-04 Thread Octavian Purdila
On Tue, May 3, 2016 at 3:19 PM, Mark Brown wrote: > On Thu, Apr 28, 2016 at 10:37:57PM +0300, Octavian Purdila wrote: >> On Thu, Apr 28, 2016 at 8:42 PM, Mark Brown wrote: > >> > There's more code here now than I remember but this all looks *really* >> > close to the DT code except for the OF_POP

Re: [PATCH 3/3] net/mlx5e: don't build RFS without ethernet

2016-05-04 Thread Saeed Mahameed
On Wed, May 4, 2016 at 5:23 PM, Arnd Bergmann wrote: > On Wednesday 04 May 2016 16:09:16 Saeed Mahameed wrote: >> On Wed, May 4, 2016 at 3:32 PM, Arnd Bergmann wrote: >> > The RFS acceleration support in mlx5 is enabled whenever CONFIG_RFS_ACCEL >> > is in use. However, this fails if a user turns

Re: [PATCH v3 1/2] usb: host: ehci-tegra: Grab the correct UTMI pads reset

2016-05-04 Thread Greg Kroah-Hartman
On Wed, May 04, 2016 at 04:39:59PM +0200, Thierry Reding wrote: > From: Thierry Reding > > There are three EHCI controllers on Tegra SoCs, each with its own reset > line. However, the first controller contains a set of UTMI configuration > registers that are shared with its siblings. These regist

[PATCH 2/2] Revert "ASoC: rockchip: i2s: separate capture and playback"

2016-05-04 Thread John Keeping
This reverts commit eba65d179c1149cf79e68608d452631f33d7f017. This broke audio on Veyron Jerry Chromebooks and I now cannot reproduce the problem I was trying to fix even with this commit reverted, so it seems that this was completely the wrong thing to do. Reported-by: Enric Balletbo Serra Sign

[PATCH 1/2] Revert "ASoC: rockchip: i2s: remove unused variables"

2016-05-04 Thread John Keeping
This reverts commit 5938448b99275cba95167c3f9d39ca9225fdad38. It turns out that the commit that made these variables unused is wrong so we're about to revert it. Bring back the variables in prepration. Signed-off-by: John Keeping --- sound/soc/rockchip/rockchip_i2s.c | 15 +++ 1 fi

Re: klp_task_patch: was: [RFC PATCH v2 17/18] livepatch: change to a per-task consistency model

2016-05-04 Thread Jiri Kosina
On Wed, 4 May 2016, Petr Mladek wrote: > > + > > + if (unlikely(klp_patch_pending(current))) > > + klp_patch_task(current); > > } > > Some more ideas from the world of crazy races. I was shaking my head > if this was safe or not. > > The problem might be if the ta

Re: kmap_atomic and preemption

2016-05-04 Thread Peter Zijlstra
On Wed, May 04, 2016 at 02:16:11PM +, Vineet Gupta wrote: > > static inline void *kmap_atomic(struct page *page) > > { > > preempt_disable(); > > pagefault_disable(); > > if (!PageHighMem(page)) > > return page_address(page); > > > > return __kmap_atomic(page); > > }

Re: [PATCH net] bridge: fix igmp / mld query parsing

2016-05-04 Thread Linus Lüssing
On Tue, May 03, 2016 at 01:26:23PM -0700, Stephen Hemminger wrote: > On Tue, 3 May 2016 22:18:54 +0200 > Linus Lüssing wrote: > > > diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c > > index 03661d9..7105cdf 100644 > > --- a/net/bridge/br_multicast.c > > +++ b/net/bridge/br_mul

Re: [PATCH v3 09/11] serial: 8250_lpss: move Quark code from PCI driver

2016-05-04 Thread Andy Shevchenko
On Wed, 2016-05-04 at 15:37 +0100, Bryan O'Donoghue wrote: > On Wed, 2016-05-04 at 14:20 +0300, Andy Shevchenko wrote: > > > > On Wed, 2016-05-04 at 12:01 +0100, Bryan O'Donoghue wrote: > > > > > > On Wed, 2016-05-04 at 13:03 +0300, Andy Shevchenko wrote: > > > > > > > > > > > > On Wed, May 4,

Re: Kernel docs: muddying the waters a bit

2016-05-04 Thread Jonathan Corbet
On Wed, 4 May 2016 16:18:27 +0200 Daniel Vetter wrote: > > I'd really like to converge on the markup question, so that we can start > > using all the cool stuff with impunity in gpu documentations. > > Aside: If we decide this now I could send in a pull request for the > rst/sphinx kernel-doc

Re: [PATCH 12/14] mm, oom: protect !costly allocations some more

2016-05-04 Thread Joonsoo Kim
2016-05-04 17:56 GMT+09:00 Michal Hocko : > On Wed 04-05-16 15:31:12, Joonsoo Kim wrote: >> On Wed, May 04, 2016 at 03:01:24PM +0900, Joonsoo Kim wrote: >> > On Wed, Apr 20, 2016 at 03:47:25PM -0400, Michal Hocko wrote: > [...] >> > > @@ -3408,6 +3456,17 @@ __alloc_pages_slowpath(gfp_t gfp_mask, un

[PATCH v7 5/9] i2c: rk3x: Change SoC data to not use array

2016-05-04 Thread David Wu
Signed-off-by: David Wu --- drivers/i2c/busses/i2c-rk3x.c | 38 ++ 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c index 0838fcf..9686c81 100644 --- a/drivers/i2c/busses/i2c-rk3x.c +++

[PATCH v4 04/11] dmaengine: dw: override LLP support if asked in platform data

2016-05-04 Thread Andy Shevchenko
There is at least one known device, i.e. UART on Intel Galileo, that works unreliably in case of use of multi block transfer support in DMA mode. Override autodetection by user provided data. Signed-off-by: Andy Shevchenko --- drivers/dma/dw/core.c| 10 +++--- include/linux/

[PATCH v3 2/2] usb: host: ehci-tegra: Avoid getting the same reset twice

2016-05-04 Thread Thierry Reding
From: Thierry Reding Starting with commit 0b52297f2288 ("reset: Add support for shared reset controls") there is a reference count for reset control assertions. The goal is to allow resets to be shared by multiple devices and an assert will take effect only when all instances have asserted the re

Re: [PATCH v3 09/11] serial: 8250_lpss: move Quark code from PCI driver

2016-05-04 Thread Bryan O'Donoghue
On Wed, 2016-05-04 at 14:20 +0300, Andy Shevchenko wrote: > > To move away from a valid/standard PCI probe routine into a new > > special > > LPSS/PCI shim (which the hardware doesn't actually mandate) I do > > think > > you should to setup the dependency CONFIG_8250_PCI => > > CONFIG_8250_LPSS. >

klp_task_patch: was: [RFC PATCH v2 17/18] livepatch: change to a per-task consistency model

2016-05-04 Thread Petr Mladek
On Thu 2016-04-28 15:44:48, Josh Poimboeuf wrote: > Change livepatch to use a basic per-task consistency model. This is the > foundation which will eventually enable us to patch those ~10% of > security patches which change function or data semantics. This is the > biggest remaining piece needed

[PATCH 1/9] staging: lustre: nfs: don't panic NFS server if MDS fails to find FID

2016-05-04 Thread James Simmons
From: Bobi Jam When MDS fails to retrive the parent's fid, we'd handle it without crashing the NFS server. Signed-off-by: Bobi Jam Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3952 Reviewed-on: http://review.whamcloud.com/8459 Reviewed-by: Fan Yong Reviewed-by: wangdi Reviewed-by: Oleg

[RFC v2 PATCH 1/8] VFS: add CLONE_MNTNS_SHIFT_UIDGID flag to allow mounts to shift their UIDs/GIDs

2016-05-04 Thread Djalal Harouni
Add CLONE_MNTNS_SHIFT_UIDGID flag which is a mount namespace flag when set mount points on filesystems that support UID/GID shifts will have their UIDs and GIDs shifted by the VFS. The UID and GID mapping rules are per mount namespace, they follow the rules of the user namespace of the containing m

[RFC v2 PATCH 0/8] VFS:userns: support portable root filesystems

2016-05-04 Thread Djalal Harouni
This is version 2 of the VFS:userns support portable root filesystems RFC. Changes since version 1: * Update documentation and remove some ambiguity about the feature. Based on Josh Triplett comments. * Use a new email address to send the RFC :-) This RFC tries to explore how to support filesy

[PATCH 4/9] staging: lustre: mdt: extra checking for getattr RPC.

2016-05-04 Thread James Simmons
From: wang di Check whether getattr RPC can hold layout MD(RMF_MDT_MD), in case the client sends some invalid RPC, which can cause panic on MDT. Client will retrieve cl_max_md_size/cl_default_md_size from MDS during mount process, so it will initialize cl_max_md_size/cl_default_md_size before se

Re: [PATCHv2] musb_host: fix lockup on rxcsr_h_error

2016-05-04 Thread Yegor Yefremov
On Tue, May 3, 2016 at 4:35 PM, Bin Liu wrote: > Hi, > > On Tue, May 03, 2016 at 04:25:58PM +0200, Yegor Yefremov wrote: >> On Tue, May 3, 2016 at 3:48 PM, Bin Liu wrote: >> > Hi, >> > >> > On Tue, May 03, 2016 at 12:03:52PM +0200, Yegor Yefremov wrote: >> >> On Thu, Apr 28, 2016 at 4:37 PM, Bin

Re: [PATCH] usb: host: ehci-tegra: Avoid getting the same reset twice

2016-05-04 Thread Thierry Reding
On Tue, May 03, 2016 at 03:16:56PM -0400, Alan Stern wrote: > On Tue, 3 May 2016, Thierry Reding wrote: > > > From: Thierry Reding > > > > Starting with commit 0b52297f2288 ("reset: Add support for shared reset > > controls") there is a reference count for reset control assertions. The > > goal

[PATCH 0/9] staging: lustre: bug fixes from the lustre 2.5.[54-55] release

2016-05-04 Thread James Simmons
Here is the next batch of fixes and cleanups that went into Lustre versions 2.5.54 and 2.5.55 except for the work done for LU-3531. The changes for LU-3531 are large so they belong in their own special patch set. Most of the patches here are minor fixes and some removal of dead or obsolete code. A

[PATCH 2/9] staging: lustre: osc: Allow lock to be canceled at ENQ time

2016-05-04 Thread James Simmons
From: Alexander Boyko A cl_lock can be canceled when it's in CLS_ENQUEUED state. We can't unuse this kind of lock in lov_lock_unuse() because it will bring this lock into CLS_NEW state and then confuse osc_lock_upcall(). Add a regression test case by Alexander Boyko. Signed-off-by: Jinshan Xion

[PATCH 6/9] staging: lustre: debug: clean up console messages

2016-05-04 Thread James Simmons
From: Andreas Dilger Clean up overly verbose console error messages, improve others. Signed-off-by: Andreas Dilger Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-1095 Reviewed-on: http://review.whamcloud.com/8617 Reviewed-by: Faccini Bruno Reviewed-by: Bob Glossman Reviewed-by: Oleg Drok

Re: [PATCH 1/3] iio: bmi160: Fix output data rate for accel

2016-05-04 Thread Jonathan Cameron
On 01/05/16 20:00, Jonathan Cameron wrote: > On 29/04/16 12:42, Daniel Baluta wrote: >> Format is INT_PLUS_MICRO and micro odr part of ODR should >> be parts of a micro. >> >> Also s/8000/800 this is obviously a typo. >> >> Fixes: 77c4ad2d6a9 ("iio: imu: Add initial support for Bosch BMI160") >> Si

Re: [PATCH 01/13] iio: health/afe440x: Fix kernel-doc format

2016-05-04 Thread Jonathan Cameron
On 01/05/16 21:36, Andrew F. Davis wrote: > Fix kernel-doc formatting for structs, and while we are making little > fixes, clarify the module description and update the copywrite. > > Signed-off-by: Andrew F. Davis Applied to the togreg branch of iio.git - to be pushed out in a day or two as test

Re: [PATCH 06/13] iio: health/afe440x: Remove unneeded offset handling

2016-05-04 Thread Jonathan Cameron
On 01/05/16 21:36, Andrew F. Davis wrote: > No channel in the afe4403 driver has IIO_CHAN_INFO_OFFSET set so > remove the handlers for this. > > Signed-off-by: Andrew F. Davis Oops :) Applied. > --- > drivers/iio/health/afe4403.c | 17 - > 1 file changed, 17 deletions(-) > > di

[PATCH v3 1/2] usb: host: ehci-tegra: Grab the correct UTMI pads reset

2016-05-04 Thread Thierry Reding
From: Thierry Reding There are three EHCI controllers on Tegra SoCs, each with its own reset line. However, the first controller contains a set of UTMI configuration registers that are shared with its siblings. These registers will only be reset as part of the first controller's reset. For proper

Re: [PATCH 08/13] iio: health/afe440x: Remove channel names

2016-05-04 Thread Jonathan Cameron
On 01/05/16 21:36, Andrew F. Davis wrote: > These AFEs have 4 ADC mesuring stages (called LED2, ALED2, LED1, and > ALED1 in the datasheet), we map these as channels, these stages can serve > different purposes depending on the application. For instance the AFE4404 > has an additional LED (LED3), th

Re: [PATCH 05/13] iio: health/afe440x: Fix scan_index assignment

2016-05-04 Thread Jonathan Cameron
On 01/05/16 21:36, Andrew F. Davis wrote: > The LED channels are not scannable and so scan_index should > be negative, fix this here. > > Signed-off-by: Andrew F. Davis Good point. I've applied this to the togreg branch, but if you want me to push this one out as a fix it definitely qualifies.

Re: [PATCH 02/13] iio: health/afe440x: Remove of_match_ptr and ifdefs

2016-05-04 Thread Jonathan Cameron
On 01/05/16 21:36, Andrew F. Davis wrote: > The drivers DT tables are not built-in when OF is not enabled, this does > not save us enough to justify ugly ifdefs. Clean this up. > > Signed-off-by: Andrew F. Davis Can't argue with that. Applied. Jonathan > --- > drivers/iio/health/afe4403.c | 4

Re: [PATCH] efi/capsule: Make efi_capsule_pending() lockless

2016-05-04 Thread Matt Fleming
On Wed, 04 May, at 02:20:42PM, Borislav Petkov wrote: > > Blergh. Wilson, Bryan, what kind of rollback support does the Intel Quark have if its firmware update is interrupted? The interruption could be for a number of reasons including power loss, or the example in this case, rebooting due to pa

[PATCH v7 7/9] dt-bindings: i2c: rk3x: add support for rk3399

2016-05-04 Thread David Wu
The bus clock and function clock are separated at rk3399, and others use one clock as the bus clock and function clock. Signed-off-by: David Wu --- Documentation/devicetree/bindings/i2c/i2c-rk3x.txt | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Documentati

Re: [PATCH 07/13] iio: health/afe4404: Remove LED3 input channel

2016-05-04 Thread Jonathan Cameron
On 01/05/16 21:36, Andrew F. Davis wrote: > Input channel LED3 is only an alias for stage ALED2, this virtual channel > does nothing for us, remove this channel. > > Signed-off-by: Andrew F. Davis Again, abi change, but I doubt anyone will notice *fingers crossed* ;) Jonathan > --- > drivers/ii

RE: [PATCH v9 3/3] Bluetooth: hci_uart: Support firmware download for Marvell

2016-05-04 Thread Amitkumar Karwar
Hi Marcel, Thanks for your comments. We are working to resolve them. > > + > > +/* 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->flags)) { > > +

Re: [PATCH 13/13] iio: health/afe4404: ENSEPGAIN is part of CONTROL2 register

2016-05-04 Thread Jonathan Cameron
On 01/05/16 21:37, Andrew F. Davis wrote: > Rename this definition, no functional changes. > > Signed-off-by: Andrew F. Davis Applied. > --- > drivers/iio/health/afe4404.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/iio/health/afe4404.c b/drivers/iio/h

Re: [PATCH] iio: mma8452: add support for oversampling ratio

2016-05-04 Thread Jonathan Cameron
On 25/04/16 13:08, Martin Kepplinger wrote: > This adds the following sysfs files according to the iio ABI: > > -rw-r--r--4096 in_accel_oversampling_ratio > -r--r--r--4096 in_accel_oversampling_ratio_available > > Internally, the device knows about 4 different power modes that differ > in

Re: [PATCH 1/3] random: replace non-blocking pool with a Chacha20-based CRNG

2016-05-04 Thread Jeffrey Walton
> +static inline u32 rotl32(u32 v, u8 n) > +{ > + return (v << n) | (v >> (sizeof(v) * 8 - n)); > +} That's undefined behavior when n=0. I think the portable way to do a rotate that avoids UB is the following. GCC, Clang and ICC recognize the pattern, and emit a rotate instruction. sta

Re: [patch] iio: dac: ad5592r: Off by one bug in ad5592r_alloc_channels()

2016-05-04 Thread Jonathan Cameron
On 01/05/16 20:04, Jonathan Cameron wrote: > On 29/04/16 10:03, Dan Carpenter wrote: >> The > here should be >= or we go beyond the end for the array. >> >> Signed-off-by: Dan Carpenter > Good spot - marked it to pick up when I am back on the internet soonish > (though perhaps not when I my co

Re: [PATCH 2/3] iio: bmi160: Fix ODR setting

2016-05-04 Thread Jonathan Cameron
On 29/04/16 12:42, Daniel Baluta wrote: > mask and val parameters of regmap_update_bits were reveresed. > > Fixes: 77c4ad2d6a9 ("iio: imu: Add initial support for Bosch BMI160") > Signed-off-by: Daniel Baluta Applied to the fixes-togreg-post-rc1 branch of iio.git. Not pushed out as anything at a

Re: [PATCH 12/14] mm, oom: protect !costly allocations some more

2016-05-04 Thread Joonsoo Kim
2016-05-04 17:53 GMT+09:00 Michal Hocko : > On Wed 04-05-16 15:01:24, Joonsoo Kim wrote: >> On Wed, Apr 20, 2016 at 03:47:25PM -0400, Michal Hocko wrote: > [...] > > Please try to trim your responses it makes it much easier to follow the > discussion Okay. >> > +static inline bool >> > +should_co

Re: [PATCH 11/13] iio: health/afe440x: Match LED currents to stages

2016-05-04 Thread Jonathan Cameron
On 01/05/16 21:37, Andrew F. Davis wrote: > The current channel number for the LEDs should match the stage > number that they are active during, fix this here. > > Signed-off-by: Andrew F. Davis Applied. > --- > drivers/iio/health/afe4403.c | 10 -- > drivers/iio/health/afe4404.c | 15 ++

Re: [PATCH 00/13] Rework for AFE440x drivers to prepare for AFE4405

2016-05-04 Thread Jonathan Cameron
On 01/05/16 21:36, Andrew F. Davis wrote: > Hello all, > > I will be posting a driver for the AFE4405 soon and in preparation > for this I have made some changes to the existing drivers to better > align them with the new part. Some of these changes are trivial, others > change the sysfs entries,

Re: [PATCH 03/13] iio: health/afe440x: Remove unneeded initializers

2016-05-04 Thread Jonathan Cameron
On 01/05/16 21:36, Andrew F. Davis wrote: > The drivers set some register values during initialization that can be > set at runtime, these defaults were used in testing but are not > necessary, remove these. > > Signed-off-by: Andrew F. Davis Fair enough - applied. > --- > drivers/iio/health/afe

Re: [PATCH 12/13] iio: health/afe440x: Remove unused definitions

2016-05-04 Thread Jonathan Cameron
On 01/05/16 21:37, Andrew F. Davis wrote: > These definitions are not currently used and if the functionality > they represent is needed the values should be added back to a table > for easy userspace use. > > Signed-off-by: Andrew F. Davis Applied. > --- > drivers/iio/health/afe4403.c | 37

Re: [PATCH 3/3] imu: bmi160: Add avail frequency and scale attributes

2016-05-04 Thread Jonathan Cameron
On 01/05/16 20:01, Jonathan Cameron wrote: > On 29/04/16 12:42, Daniel Baluta wrote: >> Signed-off-by: Daniel Baluta > These are not strictly 'required' so will have to be next cycle now... > > Again, poke me if I haven't picked this up in a week or so... > Jonathan Applied to the togreg branch

Re: [RFT PATCH] iio: magn: Add support for BMM150 magnetometer

2016-05-04 Thread Jonathan Cameron
On 27/04/16 15:55, Lucas De Marchi wrote: > On Tue, Apr 26, 2016 at 9:39 AM, Daniel Baluta > wrote: >> BMM150 is register compatible with magnetometer part of >> BMC156. >> >> Datasheet is at: >> http://www.mouser.com/ds/2/783/BST-BMM150-DS001-01-786480.pdf >> >> Signed-off-by: Daniel Baluta >>

Re: [PATCH 10/13] iio: health/afe440x: Make gain settings a modifier for the stages

2016-05-04 Thread Jonathan Cameron
On 01/05/16 21:37, Andrew F. Davis wrote: > Currently the TIA gain settings are exported to userspace as sysfs > entries that do not clearly represent their internal relation to the > sampling stages. The gain settings are enabled on a per-stage basis, > this can be seen in figure 24 of the current

Re: [PATCH 04/13] iio: health/afe440x: Always use separate gain values

2016-05-04 Thread Jonathan Cameron
On 01/05/16 21:36, Andrew F. Davis wrote: > Locking the two gain stages to the same setting adds no value for us, > so initialize them as unlocked and remove the sysfs for unlocking them. > This also allows us to greatly simplify showing and setting the gain > registers. > > Signed-off-by: Andrew

Re: [PATCH v3] iio: accel: Add support for Freescale MMA7660FC

2016-05-04 Thread Jonathan Cameron
On 01/05/16 19:20, Jonathan Cameron wrote: > On 29/04/16 14:08, Martin Kepplinger wrote: >> Am 2016-04-29 um 14:19 schrieb Constantin Musca: >>> Minimal implementation of an IIO driver for the Freescale >>> MMA7660FC 3-axis accelerometer. Datasheet: >>> http://www.freescale.com.cn/files/sensors/doc

Re: [PATCH 09/13] iio: health/afe440x: Use regmap fields

2016-05-04 Thread Jonathan Cameron
On 01/05/16 21:36, Andrew F. Davis wrote: > These drivers can use regmap fields to access fields in registers, this > allows us to remove some macros/defines and simplify code, do this here. > > Signed-off-by: Andrew F. Davis This could almost be a poster boy for why regmap field stuff is good ;)

Re: [PATCH v2 0/3] Introduce support for creating IIO devices via configfs

2016-05-04 Thread Jonathan Cameron
On 25/04/16 14:15, Daniel Baluta wrote: > For testing purposes is nice to have a quick way of creating IIO devices. > This patch series introduces support for creating IIO devices via configs > (patch 1), allowing users to register "device types". For the moment we > support "dummy" device type (pa

[PATCH v7 6/9] i2c: rk3x: Move spec timing data to "static const" structs

2016-05-04 Thread David Wu
Signed-off-by: David Wu --- drivers/i2c/busses/i2c-rk3x.c | 100 ++ 1 file changed, 72 insertions(+), 28 deletions(-) diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c index 9686c81..408f9ab 100644 --- a/drivers/i2c/busses/i2c-rk3x

[PATCH v4 03/11] dmaengine: dw: set polarity of handshake interface

2016-05-04 Thread Andy Shevchenko
Intel Quark UART uses DesignWare DMA IP. Though the DMA IP is connected in such way that handshake interface uses inverted polarity. We have to provide a possibility to set this in the DMA driver when configuring a channel. Introduce a new member of custom slave configuration called 'polarity' and

Re: [PATCH 0.14] oom detection rework v6

2016-05-04 Thread Joonsoo Kim
2016-05-04 17:47 GMT+09:00 Michal Hocko : > On Wed 04-05-16 14:45:02, Joonsoo Kim wrote: >> On Wed, Apr 20, 2016 at 03:47:13PM -0400, Michal Hocko wrote: >> > Hi, >> > >> > This is v6 of the series. The previous version was posted [1]. The >> > code hasn't changed much since then. I have found one

[RFC v2 PATCH 2/8] VFS:uidshift: add flags and helpers to shift UIDs and GIDs to virtual view

2016-05-04 Thread Djalal Harouni
Add helpers to allow the VFS to shift UIDs and GIDs according to the user namespace of the containing mount namespace. All decisions are taken by VFS. In this regard, to allow the shift of UID and GID filesystems when mounted must set "vfs_shift_uids" and "vfs_shift_gids" options, therefore add th

[RFC v2 PATCH 5/8] VFS:userns: add helpers to shift UIDs and GIDs into on-disk view

2016-05-04 Thread Djalal Harouni
Add helpers to allow the VFS to shift UIDs and GIDs into on-disk view according to the user namespace of the containing mount namespace. All decisions are taken by VFS. This is a preparation patch for the next one where we convert kuid and kgid to be written into disk. To allow the shift of UID an

[PATCH v2 2/2] usb: host: ehci-tegra: Avoid getting the same reset twice

2016-05-04 Thread Thierry Reding
From: Thierry Reding Starting with commit 0b52297f2288 ("reset: Add support for shared reset controls") there is a reference count for reset control assertions. The goal is to allow resets to be shared by multiple devices and an assert will take effect only when all instances have asserted the re

Re: [PATCH v2 2/2] usb: host: ehci-tegra: Avoid getting the same reset twice

2016-05-04 Thread Thierry Reding
On Wed, May 04, 2016 at 04:22:02PM +0200, Thierry Reding wrote: > From: Thierry Reding > > Starting with commit 0b52297f2288 ("reset: Add support for shared reset > controls") there is a reference count for reset control assertions. The > goal is to allow resets to be shared by multiple devices a

[PATCH v2 1/2] usb: host: ehci-tegra: Grab the correct UTMI pads reset

2016-05-04 Thread Thierry Reding
From: Thierry Reding There are three EHCI controllers on Tegra SoCs, each with its own reset line. However, the first controller contains a set of UTMI configuration registers that are shared with its siblings. These registers will only be reset as part of the first controller's reset. For proper

[RFC v2 PATCH 3/8] fs: Treat foreign mounts as nosuid

2016-05-04 Thread Djalal Harouni
If a process gets access to a mount from a different user namespace, that process should not be able to take advantage of setuid files or selinux entrypoints from that filesystem. Prevent this by treating mounts from other mount namespaces and those not owned by current_user_ns() or an ancestor as

[RFC v2 PATCH 8/8] btrfs: add support for vfs_shift_uids and vfs_shift_gids mount options

2016-05-04 Thread Djalal Harouni
Make btrfs able to parse vfs_shift_uids and vfs_shift_gids options and set the appropriate flags into the super_block structure. vfs_shift_uids and vfs_shift_gids allow mounts that show up in a mount namespace that supports VFS UID/GID shifts on inodes to perform translation from in kernel virtual

[PATCH 8/9] staging: lustre: fid: init FID client for OSP on MDT.

2016-05-04 Thread James Simmons
From: wang di Initialize FID client for OSP on MDT. Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3529 Reviewed-on: http://review.whamcloud.com/7158 Reviewed-by: John L. Hammond Reviewed-by: Alex Zhuravlev Reviewed-by: Oleg Drokin Signed-off-by: James Simmons --

Re: [PATCH v3 09/11] serial: 8250_lpss: move Quark code from PCI driver

2016-05-04 Thread Bryan O'Donoghue
On Wed, 2016-05-04 at 14:20 +0300, Andy Shevchenko wrote: > On Wed, 2016-05-04 at 12:01 +0100, Bryan O'Donoghue wrote: > > On Wed, 2016-05-04 at 13:03 +0300, Andy Shevchenko wrote: > > > > > > On Wed, May 4, 2016 at 12:51 PM, Bryan O'Donoghue > > > wrote: > > > > > > > > The default may be set t

Re: [PATCHv2] iio: Fix error handling in iio_trigger_attach_poll_func

2016-05-04 Thread Jonathan Cameron
On 03/05/16 13:27, Crestez Dan Leonard wrote: > When attaching a pollfunc iio_trigger_attach_poll_func will allocate a > virtual irq and call the driver's set_trigger_state function. Fix error > handling to undo previous steps if any fails. > > In particular this fixes handling errors from a drive

[PATCH v4 10/11] serial: 8250_lpss: enable MSI for Intel Quark

2016-05-04 Thread Andy Shevchenko
Intel Quark SoC supports MSI for LPSS, in particular for UART. Enable MSI for Intel Quark. Signed-off-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_lpss.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/tty/serial/8250/8250_lpss.c b/drivers/tty/serial/8250/8250_

Re: [PATCH v3] iio: accel: Add support for Freescale MMA7660FC

2016-05-04 Thread Jonathan Cameron
On 03/05/16 11:55, Daniel Baluta wrote: > On Tue, May 3, 2016 at 1:43 PM, Jonathan Cameron > wrote: >> >> >> On 3 May 2016 09:29:26 CEST, Daniel Baluta wrote: >>> On Sun, May 1, 2016 at 9:56 PM, Jonathan Cameron >>> wrote: On 29/04/16 13:19, Constantin Musca wrote: > Minimal implementat

[PATCH v7 9/9] i2c: rk3x: support fast-mode plus for rk3399

2016-05-04 Thread David Wu
Signed-off-by: David Wu --- drivers/i2c/busses/i2c-rk3x.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c index 47368c4..c66cc39 100644 --- a/drivers/i2c/busses/i2c-rk3x.c +++ b/drivers/i2c/bu

Re: [PATCH] i2c: designware: do not disable adapter after transfer

2016-05-04 Thread Lucas De Marchi
Hi Christian, On Mon, May 2, 2016 at 7:11 AM, Christian Ruppert wrote: > Dear Lucas, > > On 22.04.2016 17:19, Lucas De Marchi wrote: >> CC'ing Christian. >> >> On Fri, Apr 22, 2016 at 12:08 PM, Lucas De Marchi >> wrote: >>> Disabling the adapter after each transfer is pretty bad for sensors and

[PATCH v7 8/9] i2c: rk3x: add i2c support for rk3399 soc

2016-05-04 Thread David Wu
- new method to caculate i2c timings for rk3399: There was an timing issue about "repeated start" time at the I2C controller of version0, controller appears to drop SDA at .875x (7/8) programmed clk high. On version 1 of the controller, the rule(.875x) isn't enough to meet tSU;STA require

Re: [PATCH 6/7] iio: inv_mpu6050: Check channel configuration on preenable

2016-05-04 Thread Jonathan Cameron
On 03/05/16 14:01, Crestez Dan Leonard wrote: > On 05/01/2016 08:34 PM, Jonathan Cameron wrote: >> On 29/04/16 20:02, Crestez Dan Leonard wrote: >>> Right now it is possible to only enable some of the x/y/z channels, for >>> example you can enable accel_z without x or y. If you actually do that >>>

[PATCH v4 08/11] serial: 8250_lpss: split LPSS driver to separate module

2016-05-04 Thread Andy Shevchenko
The SoCs, such as Intel Braswell, have DesignWare UART IP. Split out the support of such chips to a separate module which also will be used for Intel Quark later. The rationale to have the separate driver to be existing: - Do not contaminate 8250_pci.c anymore with LPSS related quirks - All of the

[PATCH v4 01/11] dmaengine: dw: keep copy of custom slave config in dwc

2016-05-04 Thread Andy Shevchenko
It seems we need to extend custom slave configuration by one more member to support Intel Quart UART. It becomes a burden to manage all members of struct dw_dma_slave one-by-one. Replace set of fields by embedding struct dw_dma_slave into struct dw_dma_chan. Signed-off-by: Andy Shevchenko --- d

Re: [RFC PATCH] livepatch: allow removal of a disabled patch

2016-05-04 Thread Miroslav Benes
On Wed, 4 May 2016, Josh Poimboeuf wrote: > On Wed, May 04, 2016 at 01:58:47PM +0200, Miroslav Benes wrote: > > On Tue, 3 May 2016, Josh Poimboeuf wrote: > > > > > On Tue, May 03, 2016 at 09:39:48PM -0500, Josh Poimboeuf wrote: > > > > On Wed, May 04, 2016 at 12:31:12AM +0200, Jiri Kosina wrote:

[RFC v2 PATCH 7/8] ext4: add support for vfs_shift_uids and vfs_shift_gids mount options

2016-05-04 Thread Djalal Harouni
Make ext4 able to parse vfs_shift_uids and vfs_shift_gids options and set the appropriate flags into the super_block structure. vfs_shift_uids and vfs_shift_gids allow mounts that show up in a mount namespace that supports VFS UID/GID shifts on inodes to perform translation from in kernel virtual

[PATCH 7/9] staging: lustre: ptlrpc: fix nrs cleanup

2016-05-04 Thread James Simmons
From: Niu Yawei When service start failed due to short of memory, the cleanup code could operate on uninitialized structure and cause crash at the end. This patch fix the nrs_svcpt_cleanup_locked() to perform cleanup only on the nrs which has been properly initialized. Signed-off-by: Niu Yawei

[RFC v2 PATCH 4/8] VFS:userns: shift UID/GID to virtual view during permission access

2016-05-04 Thread Djalal Harouni
If both the mount namespace and the mount point support UID/GID shifts, then before doing any permission check, translate inode->{i_uid|i_gid} into the kernel virtual view, then use the result to do the permission checks. If there is no support for UID/GID shifts, we fallback to inode->{i_uid|i_gid

[PATCH 3/9] staging: lustre: lov: remove lov and lod stuff from obd.h

2016-05-04 Thread James Simmons
From: "John L. Hammond" Remove QOS related data structures from obd.h to the lov_internal.h. Remove the declarations of several functions that no longer exist. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on: http://review.whamcloud.com/8687 R

[PATCH] mm, page_alloc: Restore the original nodemask if the fast path allocation failed

2016-05-04 Thread Mel Gorman
(Andrew, this is on top of the pagealloc optimisation series in mmotm. It could be classed as a fix-up but it's subtle enough that it deserves its own changelog. "Clever" fixes had other consequences.) The page allocator fast path uses either the requested nodemask or cpuset_current_mems_allowed

[PATCH v4 05/11] serial: 8250_dma: switch to new dmaengine_terminate_* API

2016-05-04 Thread Andy Shevchenko
Convert dmaengine_terminate_all() calls to synchronous and asynchronous versions where appropriate. Reviewed-by: Peter Hurley Reviewed-by: Heikki Krogerus Signed-off-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_dma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --g

[RFC v2 PATCH 6/8] VFS:userns: shift UID/GID to on-disk view before any write to disk

2016-05-04 Thread Djalal Harouni
If both the mount namespace and the mount point support UID/GID shifts, then during inode creation or during a chown call on an inode, make sure that kuid and kgid that will be used to set inode->{i_uid|i_gid} are in on-disk view. Perform the shift to on-disk view during inode initialization or du

[PATCH 5/9] staging: lustre: fid: packing ost_idx in IDIF

2016-05-04 Thread James Simmons
From: Fan Yong For a normal FID, we can know on which target the related object is allocated via querying FLDB; but it is not true for an IDIF. To locate the OST via the given IDIF, when the IDIF is generated, we pack the OST index in it. Then for any given FID, in spite of t is a normal FID or

[PATCH 9/9] staging: lustre: lov: remove unused lov obd functions

2016-05-04 Thread James Simmons
From: "John L. Hammond" Remove the unused lov functions lov_get_reqset, lov_check_index_in_pool, and lov_find_pool functions. Remove unused data structures. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on: http://review.whamcloud.com/5581 Revi

[PATCH v4 06/11] serial: 8250_dma: adjust DMA address of the UART

2016-05-04 Thread Andy Shevchenko
Some UARTs, e.g. one is used in Intel Quark, have a different address base for DMA operations. Introduce an additional field (per RX and TX DMA channels) in struct uart_8250_dma to cover those cases. Reviewed-by: Heikki Krogerus Signed-off-by: Andy Shevchenko --- drivers/tty/serial/8250/8250.h

[PATCH v4 02/11] dmaengine: dw: provide probe(), remove() stubs for users

2016-05-04 Thread Andy Shevchenko
Some users consider DMA optional, thus when driver is not compiled we shouldn't prevent compilation of the users. Add stubs for dw_dma_probe() and dw_dma_remove(). Signed-off-by: Andy Shevchenko --- include/linux/dma/dw.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/dma

[PATCH v4 09/11] serial: 8250_lpss: move Quark code from PCI driver

2016-05-04 Thread Andy Shevchenko
Intel Quark has DesignWare UART. Move the code from 8250_pci to 8250_lpss. Reviewed-by: Bryan O'Donoghue Signed-off-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_lpss.c | 11 +++ drivers/tty/serial/8250/8250_pci.c | 15 +-- 2 files changed, 12 insertions(+), 14 delet

[PATCH v4 11/11] serial: 8250_lpss: enable DMA on Intel Quark UART

2016-05-04 Thread Andy Shevchenko
DMA on Intel Quark SoC is a part of UART IP block. Enable it. Signed-off-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_lpss.c | 61 +++-- 1 file changed, 58 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/8250/8250_lpss.c b/drivers/tty/seria

[PATCH v4 07/11] serial: 8250: enable AFE on ports where FIFO is 16 bytes

2016-05-04 Thread Andy Shevchenko
Intel Quark has 16550A compatible UART with autoflow feature enabled. It has only 16 bytes of FIFO. Currently serial8250_do_set_termios() prevents to enable autoflow since the minimum requirement of 32 bytes of FIFO size. Drop a FIFO size limitation to allow autoflow control be enabled on such UAR

[PATCH v4 00/11] serial: 8250: split LPSS to 8250_lpss, enable DMA on Quark

2016-05-04 Thread Andy Shevchenko
This is combined series of two things: - split out the Intel LPSS specific driver from 8250_pci into 8250_lpss - enable DMA support on Intel Quark UART The patch has been tested on few Intel SoCs / platforms. In any case I would like to ask Bryan to do independent test. This is targeting serial s

Re: [PATCH net-next v2] block/drbd: use nla_put_u64_64bit()

2016-05-04 Thread Eric Dumazet
On Wed, 2016-05-04 at 14:49 +0200, Nicolas Dichtel wrote: > Le 04/05/2016 11:05, Lars Ellenberg a écrit : > [snip] > > We don't have an "alignment problem" there, btw. > > Last time I checked, we did work fine without this alignment magic, > > we already take care of that, yes, even on affected arc

[PATCH v7 0/9] add i2c driver supported for rk3399

2016-05-04 Thread David Wu
There are two points differert from others: - new method to caculate i2c timings for rk3399 - pclk and function clk are separated at rk3399 David Wu (9): i2c: rk3x: add documentation to fields in "struct rk3x_i2c" i2c: rk3x: use struct "rk3x_i2c_calced_timings" i2c: rk3x: Remove redundant

Re: [PATCH 3/3] net/mlx5e: don't build RFS without ethernet

2016-05-04 Thread Arnd Bergmann
On Wednesday 04 May 2016 16:09:16 Saeed Mahameed wrote: > On Wed, May 4, 2016 at 3:32 PM, Arnd Bergmann wrote: > > The RFS acceleration support in mlx5 is enabled whenever CONFIG_RFS_ACCEL > > is in use. However, this fails if a user turns off CONFIG_MLX5_CORE_EN, > > because the rfs code now call

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