[PATCH 4.4 36/37] sparc64: Delete now unused user copy assembler helpers.

2016-11-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: "David S. Miller" [ Upstream commit 614da3d9685b67917cab48c8452fd8bf93de0867 ] All of __ret{,l}_mone{_asi,_fp,_asi_fpu} are now unused. Signed-off-by: David S. Miller

[PATCH 4.4 37/37] sparc64: Delete now unused user copy fixup functions.

2016-11-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: "David S. Miller" [ Upstream commit 0fd0ff01d4c3c01e7fe69b762ee1a13236639acc ] Now that all of the user copy routines are converted to return accurate residual lengths

[PATCH 4.4 26/37] sparc64: Handle extremely large kernel TLB range flushes more gracefully.

2016-11-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: "David S. Miller" [ Upstream commit a74ad5e660a9ee1d071665e7e8ad822784a2dc7f ] When the vmalloc area gets fragmented, and because the firmware mapping area sits between

[PATCH 4.4 29/37] sparc64: Convert copy_in_user to accurate exception reporting.

2016-11-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: "David S. Miller" [ Upstream commit 0096ac9f47b1a2e851b3165d44065d18e5f13d58 ] Report the exact number of bytes which have not been successfully copied when an exception

[PATCH 4.4 34/37] sparc64: Convert NG2copy_{from,to}_user to accurate exception reporting.

2016-11-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: "David S. Miller" [ Upstream commit e93704e4464fdc191f73fce35129c18de2ebf95d ] Report the exact number of bytes which have not been successfully copied when an exception

[PATCH 4.4 04/37] bgmac: stop clearing DMA receive control register right after it is set

2016-11-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Andy Gospodarek [ Upstream commit fcdefccac976ee51dd6071832b842d8fb41c479c ] Current bgmac code initializes some DMA settings in the receive control register for some

[PATCH 4.4 08/37] dccp: fix out of bound access in dccp_v4_err()

2016-11-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 6706a97fec963d6cb3f7fc2978ec1427b4651214 ] dccp_v4_err() does not use pskb_may_pull() and might access garbage. We only need 4 bytes at

[PATCH 4.4 01/37] dctcp: avoid bogus doubling of cwnd after loss

2016-11-19 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal [ Upstream commit ce6dd23329b1ee6a794acf5f7e40f8e89b8317ee ] If a congestion control module doesn't provide .undo_cwnd function, tcp_undo_cwnd_reduction()

[PATCH] staging: iio: ad9832:

2016-11-19 Thread Christophe JAILLET
Commit a98461d79ba5 ("staging: iio: ad9832: add DVDD regulator") and commit 43a07e48af44 ("staging: iio: ad9832: clean-up regulator 'reg'") add some dereference of 'st' which is an un-initialized pointer at this point. Re-order code and tweak error handling in order to allocate memory and have

Re: [PATCH v5 7/7] iommu/exynos: Use device dependency links to control runtime pm

2016-11-19 Thread Lukas Wunner
On Tue, Nov 08, 2016 at 08:27:12AM +0100, Marek Szyprowski wrote: > On 2016-11-07 22:47, Luis R. Rodriguez wrote: > > If so > > why? If this issue is present also on systems that only use ACPI is > > this possibly due to an ACPI firmware bug or the lack of some semantics > > in ACPI to express

Re: [PATCH v3 1/6] Documentation: dt-bindings: Document STM32 ADC DT bindings

2016-11-19 Thread Jonathan Cameron
On 16/11/16 15:15, Rob Herring wrote: > On Tue, Nov 15, 2016 at 04:30:56PM +0100, Fabrice Gasnier wrote: >> This patch adds documentation of device tree bindings for the STM32 ADC. >> >> Signed-off-by: Fabrice Gasnier >> --- >>

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-19 Thread Peter Zijlstra
On Sat, Nov 19, 2016 at 07:14:08AM +, Reshetova, Elena wrote: > > Well, if you get to tools (cocci script or whatever) to reliably work > > fork atomic_t, then converting the few atomic_long_t's later should be > > trivial. > > I am using coccinelle to find all occurrences, but I do the

Re: [HMM v13 16/18] mm/hmm/migrate: new memory migration helper for use with device memory

2016-11-19 Thread Aneesh Kumar K.V
Jérôme Glisse writes: > This patch add a new memory migration helpers, which migrate memory > backing a range of virtual address of a process to different memory > (which can be allocated through special allocator). It differs from > numa migration by working on a range of

[PATCH 0/6] ASoC: samsung: Minor cleanup for old machines

2016-11-19 Thread Krzysztof Kozlowski
Hi, Few patches removing dead code (machines not supported). The third patch ([RFT 3/6] ASoC: samsung: smdk_wm8580: Remove machine specific quirks) requires testing. I hope I understood the code correctly. The last ARM patch is independent. I will take it through samsung-soc tree. I put it here

[PATCH 2/6] ASoC: samsung: smdk_wm8580: Remove old platforms and drop mach-types usage

2016-11-19 Thread Krzysztof Kozlowski
MACH_SMDKC100, MACH_SMDKV210 and MACH_SMDKC110 are no longer supported so drop the dead code. Signed-off-by: Krzysztof Kozlowski --- sound/soc/samsung/smdk_wm8580.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git

[PATCH 1/6] ASoC: samsung: Remove non-existing MACH dependencies

2016-11-19 Thread Krzysztof Kozlowski
MACH_SMDKC100 was removed in commit b8529ec1c1b0 ("ARM: S5PC100: no more support S5PC100 SoC"). MACH_SMDKV210 and MACH_SMDKC110 in commit 28c8331d386 ("ARM: S5PV210: Remove support for board files"). Signed-off-by: Krzysztof Kozlowski --- sound/soc/samsung/Kconfig | 2 +- 1

[RFT 3/6] ASoC: samsung: smdk_wm8580: Remove machine specific quirks

2016-11-19 Thread Krzysztof Kozlowski
The driver no longer differentiates between machines (S3C24xx machines are not supported by it) so there is no need to override I2S device id in cpu_dai_name. Signed-off-by: Krzysztof Kozlowski --- Not tested. The driver did not override .platform_name which looks suspicious

[PATCH 5/6] ASoC: samsung: Enable COMPILE_TEST for entire Samsung ASoc

2016-11-19 Thread Krzysztof Kozlowski
Instead of build time, Samsung ASoC drivers have rather runtime dependency on Exynos or other Samsung platforms. For building they require Common Clock Framework. If it is provided they could be compile tested to increase build coverage. Signed-off-by: Krzysztof Kozlowski ---

[PATCH 6/6] ARM: s5pv210_defconfig: Remove old MACHs

2016-11-19 Thread Krzysztof Kozlowski
Remove non-existing MACH symbols from S5PV210 defconfig. Signed-off-by: Krzysztof Kozlowski --- arch/arm/configs/s5pv210_defconfig | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/configs/s5pv210_defconfig b/arch/arm/configs/s5pv210_defconfig index

[PATCH 4/6] ASoC: samsung: Enable COMPILE_TEST for SmartQ and WM8580

2016-11-19 Thread Krzysztof Kozlowski
The I2S sound drivers for SmartQ board and WM8580 codec can be compile tested to increase build coverage. Signed-off-by: Krzysztof Kozlowski --- sound/soc/samsung/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/samsung/Kconfig

Re: [HMM v13 00/18] HMM (Heterogeneous Memory Management) v13

2016-11-19 Thread Aneesh Kumar K.V
John Hubbard writes: > On Fri, 18 Nov 2016, Jérôme Glisse wrote: > >> Cliff note: HMM offers 2 things (each standing on its own). First >> it allows to use device memory transparently inside any process >> without any modifications to process program code. Second it allows

[PATCH RFC] user-namespaced file capabilities - now with even more magic

2016-11-19 Thread Serge E. Hallyn
Root in a user ns cannot be trusted to write a traditional security.capability xattr. If it were allowed to do so, then any unprivileged user on the host could map his own uid to root in a namespace, write the xattr, and execute the file with privilege on the host. This patch introduces v3 of

Re: [RFC PATCH v2 1/7] dt-bindings: document devicetree bindings for mux-gpio

2016-11-19 Thread Jonathan Cameron
On 18/11/16 16:59, Peter Rosin wrote: > On 2016-11-18 16:35, Rob Herring wrote: >> On Thu, Nov 17, 2016 at 10:48:03PM +0100, Peter Rosin wrote: >>> --- >>> .../devicetree/bindings/misc/mux-gpio.txt | 79 >>> ++ >>> 1 file changed, 79 insertions(+) >>> create mode

Re: [PATCH] net: macb: add check for dma mapping error in start_xmit()

2016-11-19 Thread David Miller
From: Alexey Khoroshilov Date: Sat, 19 Nov 2016 01:40:10 +0300 > at91ether_start_xmit() does not check for dma mapping errors. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov Applied,

Re: [RFC PATCH v2 2/7] misc: minimal mux subsystem and gpio-based mux controller

2016-11-19 Thread Jonathan Cameron
On 17/11/16 21:48, Peter Rosin wrote: > When both the iio subsystem and the i2c subsystem wants to update > the same mux, there needs to be some coordination. Invent a new > minimal "mux" subsystem that handles this. I'd probably put something more general in the description. Lots of things may

Re: [RFC PATCH v2 3/7] iio: inkern: api for manipulating ext_info of iio channels

2016-11-19 Thread Jonathan Cameron
On 17/11/16 21:48, Peter Rosin wrote: > Extend the inkern api with functions for reading and writing ext_info > of iio channels. I'd like Lars' feedback on this one. Superficially looks fine to me but I am not as familiar with this interface as Lars is ;) (he wrote it IIRC:) > --- >

Re: [PATCH v3 0/2] Ajust lockdep static allocations for sparc

2016-11-19 Thread Peter Zijlstra
On Fri, Nov 18, 2016 at 02:34:07PM -0500, David Miller wrote: > From: Babu Moger > Date: Tue, 27 Sep 2016 12:33:26 -0700 > > > These patches limit the static allocations for lockdep data structures > > used for debugging locking correctness. For sparc, all the kernel's

Re: [PATCH v3 2/6] iio: adc: Add support for STM32 ADC core

2016-11-19 Thread Jonathan Cameron
On 15/11/16 15:30, Fabrice Gasnier wrote: > Add core driver for STMicroelectronics STM32 ADC (Analog to Digital > Converter). STM32 ADC can be composed of up to 3 ADCs with shared > resources like clock prescaler, common interrupt line and analog > reference voltage. > This core driver basically

Re: [char-misc-next 4/4 V2] mei: bus: enable non-blocking RX

2016-11-19 Thread Greg Kroah-Hartman
On Sat, Nov 19, 2016 at 02:16:11PM +0200, Tomas Winkler wrote: > From: Alexander Usyskin > > Enable non-blocking receive for drivers on mei bus, this allows checking > for data availability by mei client drivers. This is most effective for > fixed address clients,

Re: [PATCH v3 4/6] ARM: configs: stm32: enable ADC driver

2016-11-19 Thread Jonathan Cameron
On 15/11/16 15:30, Fabrice Gasnier wrote: > Signed-off-by: Fabrice Gasnier The driver is now on it's way in. I'm assuming this and the two device tree patches will go via the relevant route to arm-soc. Thanks, Jonathan > --- > arch/arm/configs/stm32_defconfig | 3 +++

Re: [PATCH v4] staging: slicoss: fix different address space warnings

2016-11-19 Thread Greg KH
On Fri, Nov 18, 2016 at 06:57:18PM +0100, Sergio Paracuellos wrote: > Remove incorrect __iomem annotation. > > This patch fix the following sparse warnings in slicoss driver: > warning: incorrect type in assignment (different address spaces) > > Signed-off-by: Sergio Paracuellos

[patch 5/8] x86/tsc: Sync test only for the first cpu in a package

2016-11-19 Thread Thomas Gleixner
If the TSC_ADJUST MSR is available all CPUs in a package are forced to the same value. So TSCs cannot be out of sync when the first CPU in the package was in sync. That allows to skip the sync test for all CPUs except the first starting CPU in a package. Signed-off-by: Thomas Gleixner

[patch 3/8] x86/tsc: Store and check TSC ADJUST MSR

2016-11-19 Thread Thomas Gleixner
The TSC_ADJUST MSR shows whether the TSC has been modified. This is helpful in a two aspects: 1) It allows to detect BIOS wreckage, where SMM code tries to 'hide' the cycles spent by storing the TSC value at SMM entry and restoring it at SMM exit. On affected machines the TSCs run slowly

[patch 7/8] x86/tsc: Prepare warp test for TSC adjustment

2016-11-19 Thread Thomas Gleixner
To allow TSC compensation cross nodes its necessary to know in which direction the TSC warp was observed. Return the maximum observed value on the calling CPU so the caller can determine the direction later. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/tsc_sync.c |

[patch 8/8] x86/tsc: Try to adjust TSC if sync test fails

2016-11-19 Thread Thomas Gleixner
If the first CPU of a package comes online, it is necessary to test whether the TSC is in sync with a CPU on some other package. When a deviation is observed (time going backward between the two CPUs) the TSC is marked unstable, which is a problem on large machines as they have to fall back to the

Re: Synopsys Ethernet QoS Driver

2016-11-19 Thread Rabin Vincent
On Fri, Nov 18, 2016 at 02:20:27PM +, Joao Pinto wrote: > For now we are interesting in improving the synopsys QoS driver under > /nect/ethernet/synopsys. For now the driver structure consists of a single > file > called dwc_eth_qos.c, containing synopsys ethernet qos common ops and platform

Re: [PATCH] staging: iio: ad9832:

2016-11-19 Thread Eva Rachel Retuya
On Sat, Nov 19, 2016 at 12:08:34PM +0100, Christophe JAILLET wrote: > Commit a98461d79ba5 ("staging: iio: ad9832: add DVDD regulator") and > commit 43a07e48af44 ("staging: iio: ad9832: clean-up regulator 'reg'") add > some dereference of 'st' which is an un-initialized pointer at this point. > >

Re: [PATCH v3 3/6] iio: adc: Add support for STM32 ADC

2016-11-19 Thread Jonathan Cameron
On 15/11/16 15:30, Fabrice Gasnier wrote: > This patch adds support for STMicroelectronics STM32 MCU's analog to > digital converter. > > Signed-off-by: Fabrice Gasnier Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it.

Re: [PATCH 1/2] staging: iio: ad7606: replace range/range_available with corresponding scale

2016-11-19 Thread Jonathan Cameron
On 14/11/16 23:12, Linus Walleij wrote: > On Mon, Nov 14, 2016 at 7:53 PM, Lars-Peter Clausen wrote: > >> It's about figuring out the setting of a "GPIO" that can't be changed from >> software. >> >> Devices sometimes, instead of a configuration bus like I2C or SPI, use >>

Hopefully

2016-11-19 Thread Rita Micheal
Hi friend I am a banker in ADB BANK. I want to transfer an abandoned $25.5Million to your Bank account. 40/percent will be your share. No risks involved but keep it as secret. Contact me for more details And also acknowledge receipt of this message in acceptance of my mutual business Endeavour by

Re: [PATCH v2] iio: magnetometer: separate the values of attributes based on their usage type for HID compass sensor

2016-11-19 Thread Jonathan Cameron
On 16/11/16 09:43, Ooi, Joyce wrote: > There are 2 usage types (Magnetic Flux and Heading data field) for HID > compass sensor, thus the values of offset, scale, and sensitivity should > be separated according to their respective usage type. The changes made > are as below: > 1. Hysteresis: A

[PATCH 1/2] rtc: imxdi: (trivial) fix a typo

2016-11-19 Thread Martin Kaiser
Signed-off-by: Martin Kaiser --- drivers/rtc/rtc-imxdi.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c index 8d8049bd..67b56b8 100644 --- a/drivers/rtc/rtc-imxdi.c +++ b/drivers/rtc/rtc-imxdi.c @@ -67,7

[PATCH 2/2] rtc: imxdi: use the security violation interrupt

2016-11-19 Thread Martin Kaiser
The DryIce chipset has a dedicated security violation interrupt that is triggered for security violations (if configured to do so). According to the publicly available imx258 reference manual, irq 56 is used for this interrupt. Install a handler for the security violation interrupt. Move the code

[PATCH] fs: xfs: xfs_icreate_item: constify xfs_item_ops structure

2016-11-19 Thread Bhumika Goyal
Declare the structure xfs_item_ops as const as it is only passed as an argument to the function xfs_log_item_init. As this argument is of type const struct xfs_item_ops *, so xfs_item_ops structures having this property can be declared as const. Done using Coccinelle: @r1 disable

[PATCH] i2c: i2c-mux-pca954x: fix deselect enabling for device-tree

2016-11-19 Thread Peter Rosin
From: Alex Hemme Deselect functionality can be ignored for device-trees with "i2c-mux-idle-disconnect" entries if no platform_data is available. By enabling the deselect functionality outside the platform_data block the logic works as it did in previous kernels. Fixes:

[patch 1/8] x86/tsc: Use X86_FEATURE_TSC_ADJUST in detect_art()

2016-11-19 Thread Thomas Gleixner
The art detection uses rdmsrl_safe() to detect the availablity of the TSC_ADJUST MSR. That's pointless because we have a feature bit for this. Use it. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/tsc.c | 14 -- 1 file changed, 8 insertions(+), 6

[patch 4/8] x86/tsc: Verify TSC_ADJUST from idle

2016-11-19 Thread Thomas Gleixner
When entering idle, it's a good oportunity to verify that the TSC_ADJUST MSR has not been tampered with (BIOS hiding SMM cycles). If tampering is detected, emit a warning and restore it to the previous value. This is especially important for machines, which mark the TSC reliable because there is

[patch 6/8] x86/tsc: Move sync cleanup to a safe place

2016-11-19 Thread Thomas Gleixner
Cleaning up the stop marker on the control CPU is wrong when we want to add retry support. Move the cleanup to the starting CPU. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/tsc_sync.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) ---

[patch 0/8] x86/tsc: Utilize TSC_ADJUST MSR

2016-11-19 Thread Thomas Gleixner
The TSC_ADJUST MSR shows whether the TSC has been modified. This is helpful in two aspects: 1) It allows to detect BIOS wreckage, where SMM code tries to 'hide' the cycles spent by storing the TSC value at SMM entry and restoring it at SMM exit. On affected machines the TSCs run slowly out

[patch 2/8] x86/tsc: Detect random warps

2016-11-19 Thread Thomas Gleixner
If time warps can be observed then they should only ever be observed on one CPU. If they are observed on both CPUs then the system is completely hosed. Add a check for this condition and notify if it happens. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/tsc_sync.c |

Re: [HMM v13 16/18] mm/hmm/migrate: new memory migration helper for use with device memory

2016-11-19 Thread Jerome Glisse
On Sat, Nov 19, 2016 at 08:02:26PM +0530, Aneesh Kumar K.V wrote: > Jérôme Glisse writes: > > > This patch add a new memory migration helpers, which migrate memory > > backing a range of virtual address of a process to different memory > > (which can be allocated through

Re: [RFC,2/2] hwmon: adt7411: add min, max and alarm attributes

2016-11-19 Thread Guenter Roeck
Hi Michael, On Fri, Oct 14, 2016 at 11:43:35AM +0200, Michael Walle wrote: > This patch adds support for the min, max and alarm attributes of the > voltage and temperature channels. Additionally, the temp2_fault attribute > is supported which indicates a fault of the external temperature diode. >

Re: [RFC PATCH v3 12/20] x86: Decrypt trampoline area if memory encryption is active

2016-11-19 Thread Tom Lendacky
On 11/17/2016 12:09 PM, Borislav Petkov wrote: > On Wed, Nov 09, 2016 at 06:37:08PM -0600, Tom Lendacky wrote: >> When Secure Memory Encryption is enabled, the trampoline area must not >> be encrypted. A CPU running in real mode will not be able to decrypt >> memory that has been encrypted because

[PULL REQUEST] i2c for 4.9

2016-11-19 Thread Wolfram Sang
Linus, here are some I2C driver bugfixes (and one documentation fix) for you. Please pull. Note that I currently need to use a different email address until the problems with my main mail provider are settled. Thanks, Wolfram The following changes since commit

Re: [05/20] hwmon/via-cputemp: Remove pointless CPU check on each CPU

2016-11-19 Thread Sebastian Andrzej Siewior
On 2016-11-19 09:23:31 [-0800], Guenter Roeck wrote: > Applied to -next. Thanks. Since you took that one, could you also please consider to apply |[PATCH 06/20 v2] hwmon/via-cputemp: Convert to hotplug state machine ? It depends on the 5th patch from the series which applied. > Thanks, > Guenter

[PATCH] x86/boot: Fail the boot if !M486 and CPUID is missing

2016-11-19 Thread Andy Lutomirski
Linux will have all kinds of sporadic problems on systems that don't have the CPUID instruction unless CONFIG_M486=y. In particular, sync_core() will explode. I believe that these kernels had a better chance of working before commit 05fb3c199bb0 ("x86/boot: Initialize FPU and X86_FEATURE_ALWAYS

Re: [RFC,1/2] hwmon: adt7411: update to new hwmon registration API

2016-11-19 Thread Guenter Roeck
On Fri, Oct 14, 2016 at 11:43:34AM +0200, Michael Walle wrote: > This is also a preparation for to support more properties like min, max and > alarm. > > Signed-off-by: Michael Walle Passed my unit test. Applied to -next. Thanks, Guenter

Re: [PATCH] doc: Document the new inline struct member kernel-doc style

2016-11-19 Thread Jonathan Corbet
On Thu, 17 Nov 2016 11:19:43 +0100 Daniel Vetter wrote: > We don't just need better doc toolchains, we also need better docs for > our doc toolchain! Indeed. Applied, thanks. jon

[PATCH] [SCSI] dpt_i2o: Add a missing call to kfree

2016-11-19 Thread Quentin Lambert
Most error branches following the call to kzalloc contain a call to kfree. This patch add these calls where they are missing. This issue was found with Hector. Signed-off-by: Quentin Lambert --- drivers/scsi/dpt_i2o.c |4 +++- 1 file changed, 3 insertions(+), 1

[PATCH] coresight: perf: Add a missing call to etm_free_aux

2016-11-19 Thread Quentin Lambert
Most error branches following the call to alloc_event_data contain a call to etm_free_aux. This patch add a call to etm_free_aux to an error branch that does not call it. This issue was found with Hector. Signed-off-by: Quentin Lambert ---

Re: [PATCH v6 4/8] drivers:input:tsc2007: add iio interface to read external ADC input and temperature

2016-11-19 Thread Dmitry Torokhov
Hi Nikolaus, On Thu, Oct 27, 2016 at 10:44:17AM +0200, H. Nikolaus Schaller wrote: > The tsc2007 chip not only has a resistive touch screen controller but > also an external AUX adc imput which can be used for an ambient > light sensor, battery voltage monitoring or any general purpose. > >

Re: [PATCH v2] mtd: nand: nandsim: fix error check

2016-11-19 Thread Boris Brezillon
On Wed, 16 Nov 2016 08:02:55 + Sudip Mukherjee wrote: > debugfs_create_dir() and debugfs_create_file() returns NULL on error or > a pointer on success. They do not return the error value with ERR_PTR. > So we should not check the return with IS_ERR_OR_NULL,

Re: [PATCH] [v9]Input: evdev: fix bug of dropping valid packet after syn_dropped event

2016-11-19 Thread Dmitry Torokhov
Hi Anoroop, On Wed, Oct 05, 2016 at 12:42:56AM +0530, Aniroop Mathur wrote: > If last event dropped in the old queue was EV_SYN/SYN_REPORT, then lets > generate EV_SYN/SYN_REPORT immediately after queing EV_SYN/SYN_DROPPED > so that clients would not ignore next valid full packet events. > >

[PATCH v2 1/5] staging: speakup: synth.c Spaces around operators

2016-11-19 Thread Walt Feasel
Make suggested checkpatch modification for CHECK: spaces preferred around that '+,|,-,/' Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/speakup/synth.c | 12 ++-- 1 file changed, 6 insertions(+), 6

[PATCH v2 0/5] staging: speakup: synth.c checkpatch modifications

2016-11-19 Thread Walt Feasel
Make Linux kernel coding style modifications for XGI_main_26.c to include: Spaces around operators Blank lines before } Logical continuation Comment modifications Align on parenthesis Walt Feasel (5): staging: speakup: synth.c Spaces around operators staging: speakup: synth.c Blank line

[PATCH v2 2/5] staging: speakup: synth.c Blank line before }

2016-11-19 Thread Walt Feasel
Make suggested checkpatch modification for CHECK: Blank lines aren't necessary before a close brace '}' Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/speakup/synth.c | 1 - 1 file changed, 1 deletion(-) diff

[PATCH v2 3/5] staging: speakup: synth.c Logical continuation

2016-11-19 Thread Walt Feasel
Make suggested checkpatch modification for CHECK: Logical continuations should be on the previous line Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/speakup/synth.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v2 5/5] staging: speakup: synth.c Align parenthesis

2016-11-19 Thread Walt Feasel
Make suggested checkpatch modification for CHECK: Alignment should match open parenthesis Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/speakup/synth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v2 4/5] staging: speakup: synth.c Comment modifications

2016-11-19 Thread Walt Feasel
Make modifications to comment style Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/speakup/synth.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/speakup/synth.c

Re: [Ksummit-discuss] Including images on Sphinx documents

2016-11-19 Thread Bart Van Assche
On 11/19/16 09:15, Jonathan Corbet wrote: > Might there be a tool or an extension out there that would allow us > to express these diagrams in a text-friendly, editable form? How about using the graphviz languages for generating diagrams that can be described easily in one of the graphviz

Re: [RFC PATCH v3 09/20] x86: Insure that boot memory areas are mapped properly

2016-11-19 Thread Tom Lendacky
On 11/17/2016 6:20 AM, Borislav Petkov wrote: > On Wed, Nov 09, 2016 at 06:36:20PM -0600, Tom Lendacky wrote: >> The boot data and command line data are present in memory in an >> un-encrypted state and are copied early in the boot process. The early >> page fault support will map these areas as

Re: [PATCH v6 2/8] drivers:input:tsc2007: send pendown and penup only once like ads7846(+tsc2046) driver does

2016-11-19 Thread Dmitry Torokhov
On Thu, Oct 27, 2016 at 10:44:15AM +0200, H. Nikolaus Schaller wrote: > this should reduce unnecessary input events. The duplicates will be filtered out by the input core anyway. I like to keep the drivers simple. Thanks. > > Signed-off-by: H. Nikolaus Schaller > --- >

[PATCH 0/3] usb: xhci: Add broken port disable quirk

2016-11-19 Thread Roger Quadros
Hi, Some XHCI controllers e.g. dwc3 based have a broken Port disable [1]. If the attached high-speed device is misbehaving, the USB stack typically disables the port using the PED bit in PORTSC. For the controllers that have broken port disable, the port fails to detect further attach/detach

Re: [PATCH v6 7/8] drivers:input:ads7846(+tsc2046): fix spi module table

2016-11-19 Thread Dmitry Torokhov
On Thu, Oct 27, 2016 at 10:44:20AM +0200, H. Nikolaus Schaller wrote: > Fix module table so that the driver is loaded if compiled > as module and requested by DT. We really need to fix it between spi/i23c core and module utils instead of keeping adding duplicate IDs all over drivers. We already

Re: [PATCH v7 4/9] drivers:input:tsc2007: add iio interface to read external ADC input and temperature

2016-11-19 Thread Dmitry Torokhov
On Sat, Nov 12, 2016 at 02:19:30PM +, Jonathan Cameron wrote: > On 12/11/16 14:04, Jonathan Cameron wrote: > > On 11/11/16 19:02, H. Nikolaus Schaller wrote: > >> The tsc2007 chip not only has a resistive touch screen controller but > >> also an external AUX adc imput which can be used for an

Re: [REVIEW][PATCH 0/3] Fixing ptrace vs exec vs userns interactions

2016-11-19 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > Willy Tarreau writes: > >> Hi Eric, >> >> On Thu, Nov 17, 2016 at 11:02:47AM -0600, Eric W. Biederman wrote: >>> >>> With everyone heading to Kernel Summit and Plumbers I put this set of >>> patches down temporarily. Now is the

Re: [PATCH] coresight: perf: Add a missing call to etm_free_aux

2016-11-19 Thread Quentin Lambert
On 11/19/2016 07:22 PM, Quentin Lambert wrote: On 11/19/2016 06:41 PM, Quentin Lambert wrote: Most error branches following the call to alloc_event_data contain a call to etm_free_aux. This patch add a call to etm_free_aux to an error branch that does not call it. This issue was found with

Re: [REVIEW][PATCH 0/3] Fixing ptrace vs exec vs userns interactions

2016-11-19 Thread Eric W. Biederman
Willy Tarreau writes: > On Sat, Nov 19, 2016 at 08:17:00AM +0100, Willy Tarreau wrote: >> Hi Eric, >> >> On Thu, Nov 17, 2016 at 11:02:47AM -0600, Eric W. Biederman wrote: >> > >> > With everyone heading to Kernel Summit and Plumbers I put this set of >> > patches down

[PATCH] dmaengine: qcom_hidma: autoload while probing ACPI

2016-11-19 Thread Sinan Kaya
MODULE_DEVICE_TABLE is used by the kernel to determine which device driver should be loaded for which platform device. MODULE_DEVICE_TABLE has been only defined for the device-tree based platforms in the current code. Defining it also for ACPI based platforms. Signed-off-by: Sinan Kaya

Re: [PULL REQUEST] Please pull rdma.git

2016-11-19 Thread Or Gerlitz
On Fri, Nov 18, 2016 at 4:01 AM, Doug Ledford wrote: > On 11/17/2016 5:24 PM, Or Gerlitz wrote: [...] > I agree with you. It doesn't fix your patch. The commit message can > still be fixed up. >> Please do not send it to Linus and wait for them to respond. I >> disagree

[PATCH] drivers/usb: use READ_ONCE instead of deprecated ACCESS_ONCE

2016-11-19 Thread Davidlohr Bueso
With the new standardized functions, we can replace all ACCESS_ONCE() calls across relevant drivers/usb/. ACCESS_ONCE() does not work reliably on non-scalar types. For example gcc 4.6 and 4.7 might remove the volatile tag for such accesses during the SRA (scalar replacement of aggregates) step:

[PATCH] drivers/base: use READ_ONCE instead of deprecated ACCESS_ONCE

2016-11-19 Thread Davidlohr Bueso
With the new standardized functions, we can replace all ACCESS_ONCE() calls across relevant drivers/base/. ACCESS_ONCE() does not work reliably on non-scalar types. For example gcc 4.6 and 4.7 might remove the volatile tag for such accesses during the SRA (scalar replacement of aggregates) step:

Re: [PATCH] ufs: qcom: Properly clear hba priv on failure

2016-11-19 Thread Subhash Jadavani
On 2016-11-18 12:55, Bjorn Andersson wrote: In the case where we fail to acquire the phy the hba priv will be set already, so during cleanup ufs_qcom_setup_clocks() will dereference the now free, but still "valid looking" pointer "host". host (ufs_qcom_host) was allocated with devm_kzalloc()

Re: [PATCH] i2c: i2c-mux-pca954x: fix deselect enabling for device-tree

2016-11-19 Thread Wolfram Sang
On Sat, Nov 19, 2016 at 10:48:38AM +0100, Peter Rosin wrote: > From: Alex Hemme > > Deselect functionality can be ignored for device-trees with > "i2c-mux-idle-disconnect" entries if no platform_data is available. > By enabling the deselect functionality outside the

Re: [PULL REQUEST] Please pull rdma.git

2016-11-19 Thread Doug Ledford
On 11/19/2016 2:46 PM, Or Gerlitz wrote: > On Fri, Nov 18, 2016 at 4:01 AM, Doug Ledford wrote: >> On 11/17/2016 5:24 PM, Or Gerlitz wrote: > > [...] > >> I agree with you. It doesn't fix your patch. The commit message can >> still be fixed up. > >>> Please do not send

Re: [PATCH v4] media: Driver for Toshiba et8ek8 5MP sensor

2016-11-19 Thread Sakari Ailus
Hi Pavel, Just a few more comments... Please check my other review as well. I believe you may have missed the comments in between in that one. On Sun, Oct 23, 2016 at 10:03:55PM +0200, Pavel Machek wrote: > > Add driver for et8ek8 sensor, found in Nokia N900 main camera. Can be > used for

Re: [05/20] hwmon/via-cputemp: Remove pointless CPU check on each CPU

2016-11-19 Thread Guenter Roeck
On Thu, Nov 17, 2016 at 07:35:26PM +0100, Sebastian Andrzej Siewior wrote: > From: Thomas Gleixner > > The check loop for the cpu type is pointless as we already have a cpu model > match before that. The only thing which is not covered by that check would > be a smp system

Re: [Ksummit-discuss] Including images on Sphinx documents

2016-11-19 Thread Andrew Lunn
> Rather than beating our heads against the wall trying to convert between > various image formats, maybe we need to take a step back. We're trying > to build better documentation, and there is certainly a place for > diagrams and such in that documentation. Johannes was asking about it > for

Re: [PATCH] Change the document about iowait

2016-11-19 Thread Jonathan Corbet
On Mon, 14 Nov 2016 11:42:41 +0800 Chao Fan wrote: > >Sorry for the delay on this. Life has been...challenging... > > > >> Signed-off-by: Cao Jin > >> Signed-off-by: Chao Fan > > > >What does this signoff chain

Re: [PATCH v6 0/9] tpm: cleanup/fixes in existing event log support

2016-11-19 Thread Jason Gunthorpe
On Tue, Nov 15, 2016 at 10:54:53AM -0800, Jarkko Sakkinen wrote: > On Tue, Nov 15, 2016 at 11:06:10AM -0700, Jason Gunthorpe wrote: > > On Tue, Nov 15, 2016 at 09:40:12AM -0800, Jarkko Sakkinen wrote: > > > > > I applied fix from Colin. I for OF specific patches in this patch set > > > I do not

Re: [REVIEW][PATCH 0/3] Fixing ptrace vs exec vs userns interactions

2016-11-19 Thread Eric W. Biederman
Willy Tarreau writes: > Hi Eric, > > On Thu, Nov 17, 2016 at 11:02:47AM -0600, Eric W. Biederman wrote: >> >> With everyone heading to Kernel Summit and Plumbers I put this set of >> patches down temporarily. Now is the time to take it back up and to >> make certain I am not

Re: [tip:locking/core] locking/mutex, drm: Introduce mutex_trylock_recursive()

2016-11-19 Thread Rob Clark
On Wed, Nov 16, 2016 at 3:37 AM, tip-bot for Peter Zijlstra wrote: > Commit-ID: 0f5225b024d4bffd682aab008c35862e8fdc1865 > Gitweb: http://git.kernel.org/tip/0f5225b024d4bffd682aab008c35862e8fdc1865 > Author: Peter Zijlstra > AuthorDate: Fri, 7 Oct

Re: [PATCH] kvm: kvmclock: let KVM_GET_CLOCK return whether the master clock is in use

2016-11-19 Thread Radim Krčmář
2016-11-09 17:48+0100, Paolo Bonzini: > Userspace can read the exact value of kvmclock by reading the TSC > and fetching the timekeeping parameters out of guest memory. This > however is brittle and not necessary anymore with KVM 4.11. Provide > a mechanism that lets userspace know if the new

[PATCH v3 1/5] staging: speakup: synth.c Spaces around operators

2016-11-19 Thread Walt Feasel
Make suggested checkpatch modification for CHECK: spaces preferred around that '|,+,-,/' Signed-off-by: Walt Feasel --- v3 fixes erroneous w added in v2 drivers/staging/speakup/synth.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

Re: [PATCH] x86/dumpstack: make stack name tags more comprehensible

2016-11-19 Thread Josh Poimboeuf
On Fri, Nov 18, 2016 at 11:46:23AM -0600, Josh Poimboeuf wrote: > NMI stack dumps are bracked by the following tags: s/bracked/bracketed/ -- Josh

Re: [RFC,2/2] hwmon: adt7411: add min, max and alarm attributes

2016-11-19 Thread Guenter Roeck
On Fri, Oct 14, 2016 at 11:43:35AM +0200, Michael Walle wrote: > This patch adds support for the min, max and alarm attributes of the > voltage and temperature channels. Additionally, the temp2_fault attribute > is supported which indicates a fault of the external temperature diode. > >

Re: [Ksummit-discuss] Including images on Sphinx documents

2016-11-19 Thread Mauro Carvalho Chehab
Em Sat, 19 Nov 2016 10:15:43 -0700 Jonathan Corbet escreveu: > On Thu, 17 Nov 2016 08:02:50 -0800 > Linus Torvalds wrote: > > > We have makefiles, but more importantly, few enough people actually > > *generate* the documentation, that I think if

Re: [PATCH v2 3/3] staging: speakup: TODO Correct email

2016-11-19 Thread Chris Brannon
Walt Feasel writes: > Make email correction for k...@reisers.ca > > Signed-off-by: Walt Feasel Acked-by: Chris Brannon > --- > v2 makes changes to correct for email format patch submission > > drivers/staging/speakup/TODO |

[PATCH v2 0/2] staging: speakup: thread.c checkpatch modifications

2016-11-19 Thread Walt Feasel
Make Linux kernel style modifications for speakup to include comment style modifications align parenthesis Walt Feasel (2): staging: speakup: thread.c Comment modifications staging: speakup: thread.c align on parenthesis drivers/staging/speakup/thread.c | 5 +++-- 1 file changed, 3

[PATCH v2 1/2] staging: speakup: thread.c Comment modifications

2016-11-19 Thread Walt Feasel
Make comment style modifications Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/speakup/thread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/speakup/thread.c

<    1   2   3   4   5   6   7   >