Re: [PATCH] IB/mlx5: avoid binding a new mpi unit to the same devices repeatedly

2018-07-15 Thread Leon Romanovsky
On Sat, Jul 14, 2018 at 06:57:01PM +0300, Or Gerlitz wrote: > On Sat, Jul 14, 2018 at 2:50 AM, Qing Huang wrote: > > When a CX5 device is configured in dual-port RoCE mode, after creating > > many VFs against port 1, creating the same number of VFs against port 2 > > will flood kernel/syslog with

[PATCH] staging: comedi: comedi_internal.h: Avoid '(' at the end of line

2018-07-15 Thread Nishad Kamdar
Bring function argument 'struct comedi_subdevice *s' to the previous line to avoid ending the line with open parenthesis. Issue found by checkpatch. Signed-off-by: Nishad Kamdar --- drivers/staging/comedi/comedi_internal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: [PATCH] thunderbolt: remove redundant variable 'approved'

2018-07-15 Thread Mika Westerberg
On Fri, Jul 13, 2018 at 09:57:25AM +0100, Colin King wrote: > From: Colin Ian King > > Variable 'approved' is being assigned but is never used hence it is > redundant and can be removed. > > Cleans up clang warning: > warning: variable 'approved' set but not used [-Wunused-but-set-variable] >

Re: [PATCH RT v2] arm64: fpsimd: use a local_lock() in addition to local_bh_disable()

2018-07-15 Thread Mike Galbraith
On Sat, 2018-07-14 at 00:03 +0200, Mike Galbraith wrote: > On Fri, 2018-07-13 at 19:49 +0200, Sebastian Andrzej Siewior wrote: > > In v4.16-RT I noticed a number of warnings from task_fpsimd_load(). The > > code disables BH and expects that it is not preemptible. On -RT the > > task remains

Re: [PATCH v5 5/7] Bluetooth: Extend btuart driver for join more vendor devices

2018-07-15 Thread Sean Wang
On Sat, 2018-07-14 at 18:44 +0200, Marcel Holtmann wrote: > Hi Sean, > > > Adding an independent btuart.h header allows these essential definitions > > can be reused in vendor driver. Also, struct btuart_vnd is extended with > > additional callbacks such as .init initializing vendor data,

Re: [PATCH 11/18] staging: gasket: always allow root open for write

2018-07-15 Thread Dmitry Torokhov
On Sun, Jul 15, 2018 at 12:32 PM Greg Kroah-Hartman wrote: > > On Sun, Jul 15, 2018 at 12:11:47PM +0300, Dmitry Torokhov wrote: > > On Sun, Jul 15, 2018 at 12:05 PM Greg Kroah-Hartman > > wrote: > > > > > > On Fri, Jul 13, 2018 at 10:58:09PM -0700, Todd Poynor wrote: > > > > From: Todd Poynor >

[tip:sched/urgent] stop_machine: Disable preemption when waking two stopper threads

2018-07-15 Thread tip-bot for Isaac J. Manjarres
Commit-ID: 9fb8d5dc4b649dd190e1af4ead670753e71bf907 Gitweb: https://git.kernel.org/tip/9fb8d5dc4b649dd190e1af4ead670753e71bf907 Author: Isaac J. Manjarres AuthorDate: Tue, 3 Jul 2018 15:02:14 -0700 Committer: Thomas Gleixner CommitDate: Sun, 15 Jul 2018 12:12:45 +0200 stop_machine:

Re: [PATCH] mm: avoid bothering interrupted task when charge memcg in softirq

2018-07-15 Thread Shakeel Butt
On Sat, Jul 14, 2018 at 10:26 PM Yafang Shao wrote: > > On Sun, Jul 15, 2018 at 12:25 PM, Shakeel Butt wrote: > > On Sat, Jul 14, 2018 at 7:10 PM Yafang Shao wrote: > >> > >> On Sat, Jul 14, 2018 at 11:38 PM, Shakeel Butt wrote: > >> > On Sat, Jul 14, 2018 at 1:32 AM Yafang Shao wrote: > >>

Re: [PATCH 1/2] Input: atmel_mxt_ts: Add support for optional regulators.

2018-07-15 Thread Dmitry Torokhov
Hi Paweł, On Fri, Jul 13, 2018 at 08:30:07PM +0200, Paweł Chmiel wrote: > This patch adds optional regulators, which can be used to power > up touchscreen. After enabling regulators, we need to wait 150msec. > This value is taken from official driver. > > It was tested on Samsung Galaxy i9000

Re: [PATCH 5/5] iio:adxl372: Add filter bandwidth support

2018-07-15 Thread Lars-Peter Clausen
On 07/15/2018 12:36 PM, Jonathan Cameron wrote: > On Thu, 12 Jul 2018 18:36:58 +0300 > Stefan Popa wrote: > >> This patch adds the option for the user to select the filter bandwidth. The >> user can also read the available bandwidths which are always adjusted to be >> at most half of the

Re: [PATCH v5 2/7] serdev: add dev_pm_domain_attach|detach()

2018-07-15 Thread Johan Hovold
On Mon, Jul 09, 2018 at 11:56:58PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > In order to open up the required power gate before any operation can be > effectively performed over the serial bus between CPU and serdev, it's > clearly essential to add common attach functions for PM

Re: bug-introducing patches

2018-07-15 Thread Greg KH
On Sat, Jul 14, 2018 at 07:38:12PM +0200, Pavel Machek wrote: > Hi! > > > > The way I see it, if a commit can get one or two tested-by, it's a good > > > alternative to a week in -next. > > Pavel, I "love" how you fail to point out that you are responding to a 2 month old thread :( And that

Re: [PATCH v3] iio: chemical: Add support for Bosch BME680 sensor

2018-07-15 Thread Jonathan Cameron
On Sat, 14 Jul 2018 13:03:42 +0530 Himanshu Jha wrote: > Hi David, > > On Fri, Jul 13, 2018 at 01:42:35PM -0700, David Frey wrote: > > Hi Himanshu Jha, > > > > First a bit of background. I'm working on a device which will contain a > > bme680 sensor. A colleague of mine started work on a

Re: [PATCH] Input: pxrc - fix leak of usb_device

2018-07-15 Thread Greg Kroah-Hartman
On Sun, Jul 15, 2018 at 01:06:32PM +0300, Dmitry Torokhov wrote: > On Sun, Jul 15, 2018 at 10:42 AM Marcus Folkesson > wrote: > > > > On Sat, Jul 14, 2018 at 08:51:09AM +, Dmitry Torokhov wrote: > > > On Sat, Jul 14, 2018 at 10:09:20AM +0200, Marcus Folkesson wrote: > > > > Hi Alexey, > > > >

Re: [PATCH 5/5] iio:adxl372: Add filter bandwidth support

2018-07-15 Thread Jonathan Cameron
On Thu, 12 Jul 2018 18:36:58 +0300 Stefan Popa wrote: > This patch adds the option for the user to select the filter bandwidth. The > user can also read the available bandwidths which are always adjusted to be > at most half of the sampling frequency. Furthermore, the currently selected >

[GIT PULL] ARM: SoC fixes

2018-07-15 Thread Olof Johansson
Hi Linus, The following changes since commit f0463f3619fd10e0cbaa5195bf2bc264a77a586d: Merge tag 'omap-for-v4.18/fixes-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes (2018-07-05 14:59:20 -0700) are available in the git repository at:

Re: REGRESSION: [RESEND PATCH v3 1/4] backlight: pwm_bl: linear interpolation between brightness-levels

2018-07-15 Thread Daniel Thompson
On Sat, Jul 14, 2018 at 03:08:17PM +, Marcel Ziswiler wrote: > On Mon, 2018-04-09 at 10:33 +0200, Enric Balletbo i Serra wrote: > > diff --git a/drivers/video/backlight/pwm_bl.c > > b/drivers/video/backlight/pwm_bl.c > > index 8e3f1245f5c5..f0a108ab570a 100644 > > ---

Re: [PATCH 11/18] staging: gasket: always allow root open for write

2018-07-15 Thread Greg Kroah-Hartman
On Fri, Jul 13, 2018 at 10:58:09PM -0700, Todd Poynor wrote: > From: Todd Poynor > > Always allow root to open device for writing. > > Drop special-casing of ioctl permissions for root vs. owner. > > Reported-by: Dmitry Torokhov > Signed-off-by: Zhongze Hu > Signed-off-by: Todd Poynor > ---

[PATCH 1/2] drivers: clk: st: warn on iomap failure

2018-07-15 Thread Nicholas Mc Guire
While the return value of clkgen_get_register_base() is being checked at the call site, there is no indication of failure cause thus making diagnosis of the issues hard. The WARN_ON() allows to determine the cause of failure. Signed-off-by: Nicholas Mc Guire --- Problem found by an

[PATCH 2/2] drivers: clk: st: address sparse warnings

2018-07-15 Thread Nicholas Mc Guire
Refactoring of code to make it more readable and at the same time make sparse happy again. Signed-off-by: Nicholas Mc Guire --- sparse complained about: drivers/clk/st/clkgen-pll.c:225:12: warning: context imbalance in 'clkgen_pll_enable' - different lock contexts for basic block

Re: [PATCH] livepatch: Remove reliable stacktrace check in klp_try_switch_task()

2018-07-15 Thread Kamalesh Babulal
On Saturday 14 July 2018 12:07 AM, Josh Poimboeuf wrote: We bail out during patch registration for architectures, those don't support reliable stack trace. Does anybody know if that change was intentional? I thought the plan was to allow non-consistency-model arches to still use livepatch,

Re: [PATCH] Input: pxrc - fix leak of usb_device

2018-07-15 Thread Marcus Folkesson
On Sat, Jul 14, 2018 at 08:51:09AM +, Dmitry Torokhov wrote: > On Sat, Jul 14, 2018 at 10:09:20AM +0200, Marcus Folkesson wrote: > > Hi Alexey, > > > > Good catch! > > > > On Fri, Jul 13, 2018 at 11:07:57PM +0300, Alexey Khoroshilov wrote: > > > pxrc_probe() calls usb_get_dev(), but there is

Re: [PATCH 11/18] staging: gasket: always allow root open for write

2018-07-15 Thread Dmitry Torokhov
On Sun, Jul 15, 2018 at 12:05 PM Greg Kroah-Hartman wrote: > > On Fri, Jul 13, 2018 at 10:58:09PM -0700, Todd Poynor wrote: > > From: Todd Poynor > > > > Always allow root to open device for writing. > > > > Drop special-casing of ioctl permissions for root vs. owner. > > > > Reported-by: Dmitry

Re: [PATCH v3] iio: chemical: Add support for Bosch BME680 sensor

2018-07-15 Thread Himanshu Jha
Hi Jonathan, On Sun, Jul 15, 2018 at 10:10:36AM +0100, Jonathan Cameron wrote: > On Sat, 14 Jul 2018 13:03:42 +0530 > Himanshu Jha wrote: > > > Hi David, > > > > On Fri, Jul 13, 2018 at 01:42:35PM -0700, David Frey wrote: > > > Hi Himanshu Jha, > > > > > > First a bit of background. I'm

[tip:x86/pti] x86/events/intel/ds: Fix bts_interrupt_threshold alignment

2018-07-15 Thread tip-bot for Hugh Dickins
Commit-ID: 2c991e408df6a407476dbc453d725e1e975479e7 Gitweb: https://git.kernel.org/tip/2c991e408df6a407476dbc453d725e1e975479e7 Author: Hugh Dickins AuthorDate: Sat, 14 Jul 2018 12:58:07 -0700 Committer: Thomas Gleixner CommitDate: Sun, 15 Jul 2018 11:38:44 +0200 x86/events/intel/ds:

Re: [PATCH 11/18] staging: gasket: always allow root open for write

2018-07-15 Thread Greg Kroah-Hartman
On Sun, Jul 15, 2018 at 12:53:09PM +0300, Dmitry Torokhov wrote: > > I can't wait for people to just realize this whole "new" subsystem can > > be replaced with UIO, but that's a topic for a different thread... > > Yes, that is true and that is why I am not sure why we are going > through all

Re: [PATCH] Input: pxrc - fix leak of usb_device

2018-07-15 Thread Dmitry Torokhov
On Sun, Jul 15, 2018 at 12:12:44PM +0200, Greg Kroah-Hartman wrote: > On Sun, Jul 15, 2018 at 01:06:32PM +0300, Dmitry Torokhov wrote: > > On Sun, Jul 15, 2018 at 10:42 AM Marcus Folkesson > > wrote: > > > > > > On Sat, Jul 14, 2018 at 08:51:09AM +, Dmitry Torokhov wrote: > > > > On Sat, Jul

Re: [PATCH 05/18] iio: change strncpy+truncation to strlcpy

2018-07-15 Thread Jonathan Cameron
On Fri, 13 Jul 2018 03:25:34 +0200 Dominique Martinet wrote: > Generated by scripts/coccinelle/misc/strncpy_truncation.cocci > > Signed-off-by: Dominique Martinet Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- >

Re: [PATCH] staging: comedi: comedi_internal.h: Avoid '(' at the end of line

2018-07-15 Thread Greg Kroah-Hartman
On Sun, Jul 15, 2018 at 12:19:18PM +0530, Nishad Kamdar wrote: > Bring function argument 'struct comedi_subdevice *s' to the > previous line to avoid ending the line with open parenthesis. > Issue found by checkpatch. But now the code has another checkpatch violation, too long of a line. You can

Re: [PATCH] mm: avoid bothering interrupted task when charge memcg in softirq

2018-07-15 Thread Yafang Shao
On Sun, Jul 15, 2018 at 2:34 PM, Shakeel Butt wrote: > On Sat, Jul 14, 2018 at 10:26 PM Yafang Shao wrote: >> >> On Sun, Jul 15, 2018 at 12:25 PM, Shakeel Butt wrote: >> > On Sat, Jul 14, 2018 at 7:10 PM Yafang Shao wrote: >> >> >> >> On Sat, Jul 14, 2018 at 11:38 PM, Shakeel Butt >> >>

Re: [PATCH 1/3] iio: imu: mpu6050: add support for 6515 variant

2018-07-15 Thread Jonathan Cameron
On Thu, 12 Jul 2018 15:47:38 +0100 Jonathan Cameron wrote: > On Tue, 10 Jul 2018 21:09:30 -0400 > Brian Masney wrote: > > > This patch adds support for the MPU 6515 variant. Confirmed that the > > driver functions correctly on a LG Nexus 5 (hammerhead) phone. > > > > Signed-off-by: Brian

Re: [PATCH v5 3/3] iio: hx711: fix spurious unit-address in example

2018-07-15 Thread Jonathan Cameron
On Wed, 11 Jul 2018 07:54:32 -0600 Rob Herring wrote: > On Tue, Jul 10, 2018 at 08:19:37PM +0200, Andreas Klinger wrote: > > Device tree compiler (dtc) gives a warning if a device node has "@" with a > > following number as it's name but no reg property. > > > > Fix the example in the

Re: [PATCH] iio: pressure: bmp280: remove unused options from device tree documentation

2018-07-15 Thread Jonathan Cameron
On Tue, 10 Jul 2018 21:33:45 -0400 Brian Masney wrote: > There are several options in the device tree documentation that are > no longer relevant for the current in-kernel bmp280 driver so this patch > removes them. > > Signed-off-by: Brian Masney Fair enough I guess - though this may confuse

[PATCH] driver core: remove unnecessary function extern declare

2018-07-15 Thread Shaokun Zhang
device_private_init is called only in core.c, extern declare is unnecessary and make it static. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Signed-off-by: Shaokun Zhang --- drivers/base/base.h | 2 -- drivers/base/core.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [PATCH 3/5] iio:adxl372: Add FIFO and interrupts support

2018-07-15 Thread Jonathan Cameron
On Thu, 12 Jul 2018 18:36:00 +0300 Stefan Popa wrote: > This patch adds support for the adxl372 FIFO. In order to accomplish this, > triggered buffers were used. > > The number of FIFO samples which trigger the watermark interrupt can be > configured by using the buffer watermark, while the

Re: [PATCH v5 2/3] iio: hx711: add delay until DOUT is ready

2018-07-15 Thread Jonathan Cameron
On Tue, 10 Jul 2018 20:19:03 +0200 Andreas Klinger wrote: > On a system with parasitic capacitance it turned out that DOUT is not ready > after 100 ns after PD_SCK has raised. A measurement showed almost 1000 ns > until DOUT has reached its correct value. > > With this patch its now possible to

Re: [PATCH v5 1/3] iio: hx711: add clock-frequency property in DT

2018-07-15 Thread Jonathan Cameron
On Wed, 11 Jul 2018 07:54:00 -0600 Rob Herring wrote: > On Tue, Jul 10, 2018 at 08:18:31PM +0200, Andreas Klinger wrote: > > Add clock-frequency property for hx711 ADC. This is the frequency of > > PD_SCK. > > > > After PD_SCK goes high DOUT is read just before PD_SCK goes down again. > > This

Re: [PATCH 11/18] staging: gasket: always allow root open for write

2018-07-15 Thread Greg Kroah-Hartman
On Sun, Jul 15, 2018 at 12:11:47PM +0300, Dmitry Torokhov wrote: > On Sun, Jul 15, 2018 at 12:05 PM Greg Kroah-Hartman > wrote: > > > > On Fri, Jul 13, 2018 at 10:58:09PM -0700, Todd Poynor wrote: > > > From: Todd Poynor > > > > > > Always allow root to open device for writing. > > > > > > Drop

Re: [PATCH 1/5] iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer

2018-07-15 Thread Jonathan Cameron
On Thu, 12 Jul 2018 18:34:23 +0300 Stefan Popa wrote: > This patch adds basic support for Analog Devices ADXL372 SPI-Bus > Three-Axis Digital Accelerometer. > > The device is probed and configured the with some initial default > values. With this basic driver, it is possible to read raw

Re: [PATCH] Input: pxrc - fix leak of usb_device

2018-07-15 Thread Dmitry Torokhov
On Sun, Jul 15, 2018 at 10:42 AM Marcus Folkesson wrote: > > On Sat, Jul 14, 2018 at 08:51:09AM +, Dmitry Torokhov wrote: > > On Sat, Jul 14, 2018 at 10:09:20AM +0200, Marcus Folkesson wrote: > > > Hi Alexey, > > > > > > Good catch! > > > > > > On Fri, Jul 13, 2018 at 11:07:57PM +0300, Alexey

Re: [PATCH 1/4] perf tools: Fix struct comm_str removal crash

2018-07-15 Thread Namhyung Kim
Hi Jiri, On Thu, Jul 12, 2018 at 04:20:20PM +0200, Jiri Olsa wrote: > We occasionaly hit following assert failure in perf top, > when processing the /proc info in multiple threads. > > perf: ...include/linux/refcount.h:109: refcount_inc: > Assertion `!(!refcount_inc_not_zero(r))'

Re: [PATCH v4 2/5] dt-bindings: clock: Add S700 support for Actions Semi Soc's

2018-07-15 Thread Andreas Färber
Hi, Am 15.07.2018 um 16:38 schrieb Manivannan Sadhasivam: > On Sun, Jul 15, 2018 at 02:31:42PM +0200, Saravanan Sekar wrote: >> diff --git a/include/dt-bindings/clock/actions,s700-cmu.h >> b/include/dt-bindings/clock/actions,s700-cmu.h >> new file mode 100644 >> index ..905808bf335b

[PATCH resend] staging: gasket: fix class create bug handling

2018-07-15 Thread Todd Poynor
From: Todd Poynor class_create() never returns NULL, and this driver should never return PTR_ERR(NULL) anyway. Reported-by: Dmitry Torokhov Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH resend] staging: gasket: gasket_open use container_of()

2018-07-15 Thread Todd Poynor
From: Todd Poynor Use container_of(), drop unnecessary NULL check. Reported-by: Dmitry Torokhov Signed-off-by: Zhongze Hu Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_core.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git

Re: [PATCH] Input: pxrc - fix leak of usb_device

2018-07-15 Thread Alexey Khoroshilov
Dear Marcus, On 15.07.2018 10:42, Marcus Folkesson wrote: > On Sat, Jul 14, 2018 at 08:51:09AM +, Dmitry Torokhov wrote: >> On Sat, Jul 14, 2018 at 10:09:20AM +0200, Marcus Folkesson wrote: >>> Hi Alexey, >>> >>> Good catch! >>> >>> On Fri, Jul 13, 2018 at 11:07:57PM +0300, Alexey Khoroshilov

[PATCH v8 00/11] Introduce the Counter subsystem

2018-07-15 Thread William Breathitt Gray
Changes in v8: - Add counter_enum.h file - Simplify COUNTER Kconfig option help text - Rename generic-counter.c to the more straightforward counter.c - Update copyright and license boilerplate (use recommended SPDX line) - Replace EXPORT_SYMBOL lines with respective EXPORT_SYMBOL_GPL lines -

[PATCH v8 01/11] counter: Introduce the Generic Counter interface

2018-07-15 Thread William Breathitt Gray
This patch introduces the Generic Counter interface for supporting counter devices. In the context of the Generic Counter interface, a counter is defined as a device that reports one or more "counts" based on the state changes of one or more "signals" as evaluated by a defined "count function."

WARNING: kernel stack regs has bad value (2)

2018-07-15 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:c31496dbacc2 Merge tag 'for-linus-4.18-rc5-tag' of git://g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16a07b7040 kernel config: https://syzkaller.appspot.com/x/.config?x=25856fac4e580aa7

Re: [PATCH] x86/kvm/nVMX: set exit_qualification correctly when nested_vmx_load_msr() fails

2018-07-15 Thread Paolo Bonzini
On 12/07/2018 18:57, Vitaly Kuznetsov wrote: > Jim Mattson writes: > >> This looks similar to my "[PATCH] kvm: nVMX: Restore exit qual for >> VM-entry failure due to MSR loading" >> > > ... which is still not in kvm/queue. Missed that, sorry! Let this one just > be a gentle ping then :-) > I

Re: FAT: Operating on broken FAT FS causes the write syscall to return negative number not equal to -1

2018-07-15 Thread Al Viro
On Sun, Jul 15, 2018 at 11:20:06PM +0900, OGAWA Hirofumi wrote: > +static inline bool fat_valid_entry(struct msdos_sb_info *sbi, int entry) > +{ > + if (entry < FAT_START_ENT || sbi->max_cluster <= entry) > + return false; > + return true; > +} Pet peeve: if (...) return

Re: [PATCH 11/18] staging: gasket: always allow root open for write

2018-07-15 Thread Greg Kroah-Hartman
On Sun, Jul 15, 2018 at 11:15:26AM -0700, Todd Poynor wrote: > On Sun, Jul 15, 2018 at 3:03 AM, Greg Kroah-Hartman > wrote: > > On Sun, Jul 15, 2018 at 12:53:09PM +0300, Dmitry Torokhov wrote: > >> > I can't wait for people to just realize this whole "new" subsystem can > >> > be replaced with

Re: [PATCH] kernel.h: Avoid that sparse complains about using sizeof(void)

2018-07-15 Thread Luc Van Oostenryck
On Sat, Jul 14, 2018 at 06:57:57PM -0700, Linus Torvalds wrote: > On Sat, Jul 14, 2018 at 6:49 PM Kees Cook wrote: > > > > I'm fine with this; it'll only activate for sparse. I'd like to get > > Linus's eyes on it, though, since this macro caused us SO much pain > > that I'm nervous to change it

Re:reply ok.....

2018-07-15 Thread Ethan
Hello, I am Mr.Ethan Mbuya the Chief Operating Officer in Accounting Unit of Standard Bank of South Africa (SBSA) This message might meet you in utmost surprise. However, it's just my urgent need for a foreign partner that made me to contact you for this transaction. An account was opened in

Re: [PATCH v2] mmc: dw_mmc: fix card threshold control configuration

2018-07-15 Thread Linus Torvalds
On Tue, Jul 3, 2018 at 2:00 AM Ulf Hansson wrote: > > On 3 July 2018 at 09:06, Qing Xia wrote: > > From: x00270170 > > > > Card write threshold control is supposed to be set since controller >> [..] > > Signed-off-by: Qing Xia > > Thanks, applied/moved to fixes for 4.18! .. and during making

[PATCH v8 05/11] counter: 104-quad-8: Add Generic Counter interface support

2018-07-15 Thread William Breathitt Gray
This patch adds support for the Generic Counter interface to the 104-QUAD-8 driver. The existing 104-QUAD-8 device interface should not be affected by this patch; all changes are intended as supplemental additions as perceived by the user. Generic Counter Counts are created for the eight

[PATCH v8 04/11] iio: 104-quad-8: Update license boilerplate

2018-07-15 Thread William Breathitt Gray
This patch simplifies the boilerplate license text by making use of a SPDX license identifier line. Signed-off-by: William Breathitt Gray --- drivers/iio/counter/104-quad-8.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/iio/counter/104-quad-8.c

[PATCH v8 03/11] docs: Add Generic Counter interface documentation

2018-07-15 Thread William Breathitt Gray
This patch adds high-level documentation about the Generic Counter interface. Reviewed-by: Jonathan Cameron Signed-off-by: William Breathitt Gray --- Documentation/driver-api/generic-counter.rst | 342 +++ Documentation/driver-api/index.rst | 1 + MAINTAINERS

[PATCH v8 02/11] counter: Documentation: Add Generic Counter sysfs documentation

2018-07-15 Thread William Breathitt Gray
This patch adds standard documentation for the userspace sysfs attributes of the Generic Counter interface. Reviewed-by: Jonathan Cameron Signed-off-by: William Breathitt Gray --- Documentation/ABI/testing/sysfs-bus-counter | 230 MAINTAINERS

[PATCH v8 06/11] counter: 104-quad-8: Documentation: Add Generic Counter sysfs documentation

2018-07-15 Thread William Breathitt Gray
This patch adds standard documentation for the Generic Counter interface userspace sysfs attributes of the 104-QUAD-8 driver. Acked-by: Jonathan Cameron Signed-off-by: William Breathitt Gray --- .../ABI/testing/sysfs-bus-counter-104-quad-8 | 36 +++ MAINTAINERS

Re: [PATCH v6 3/8] interconnect: Add debugfs support

2018-07-15 Thread Greg KH
On Mon, Jul 09, 2018 at 06:50:59PM +0300, Georgi Djakov wrote: > +static int __init icc_debugfs_init(void) > +{ > + struct dentry *file; > + > + icc_debugfs_dir = debugfs_create_dir("interconnect", NULL); > + if (!icc_debugfs_dir) { > + pr_err("interconnect: error creating

Re: [PATCH v4 2/5] dt-bindings: clock: Add S700 support for Actions Semi Soc's

2018-07-15 Thread Manivannan Sadhasivam
Hi Saravanan, On Sun, Jul 15, 2018 at 02:31:42PM +0200, Saravanan Sekar wrote: > Add clock bindings constants for action S700 > Maintain common clock dt-bindings for Actions Semi SoC's > S700 and S900. > > Signed-off-by: Parthiban Nallathambi > Signed-off-by: Saravanan Sekar > --- >

[PATCH] checkpatch: Fix macro argument reuse test

2018-07-15 Thread Joe Perches
Multiple line macro definitions where the arguments are separated by line continuations can cause checkpatch to emit invalid syntax regex tests. This can occur when a single argument is modified in a part of a patch. For example: (to not add a diff in the commit message) $

[PATCH resend] staging: gasket: remove X86 Kconfig restriction

2018-07-15 Thread Todd Poynor
From: Todd Poynor The gasket and apex drivers are to be used on other architectures besides X86. Signed-off-by: Todd Poynor --- drivers/staging/gasket/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gasket/Kconfig b/drivers/staging/gasket/Kconfig

[PATCH v5 4/5] arm64: dts: actions: Add Clock Management Unit for S700

2018-07-15 Thread Saravanan Sekar
Add Clock Management Unit for Actions Semi S700 SoC. Signed-off-by: Parthiban Nallathambi Signed-off-by: Saravanan Sekar --- arch/arm64/boot/dts/actions/s700.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s700.dtsi

[PATCH v5 1/5] clk: actions: Fix the missing REGMAP_MMIO dependency

2018-07-15 Thread Saravanan Sekar
Add REGMAP_MMIO as dependency to avoid undefined reference to regmap symbols. Signed-off-by: Saravanan Sekar --- drivers/clk/actions/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/actions/Kconfig b/drivers/clk/actions/Kconfig index 8854adb37847..39491154abbf 100644 ---

[PATCH v5 3/5] clk: actions: Add S700 SoC clock support

2018-07-15 Thread Saravanan Sekar
Add Actions Semi S700 SoC clock support Signed-off-by: Parthiban Nallathambi Signed-off-by: Saravanan Sekar --- drivers/clk/actions/Kconfig| 6 + drivers/clk/actions/Makefile | 1 + drivers/clk/actions/owl-s700.c | 606 + 3 files changed, 613

[PATCH v5 5/5] arm64: dts: actions: Set UART clock reference from CMU

2018-07-15 Thread Saravanan Sekar
Signed-off-by: Parthiban Nallathambi Signed-off-by: Saravanan Sekar --- arch/arm64/boot/dts/actions/s700-cubieboard7.dts | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts

[PATCH v5 0/5] Add clock driver for Actions S700 SoC

2018-07-15 Thread Saravanan Sekar
This patchset adds clock support for Actions Semi Owl series S700 SoC with relevant clock bindings and device tree info. Changed the UART clock using CMU instance and changes are tested in cubieboard7 Changelog v5: - Commit message corrections - Removed MMC_OWL_CLK_NANDPLL option, as no active

[PATCH v5 2/5] dt-bindings: clock: Add S700 support for Actions Semi Soc's

2018-07-15 Thread Saravanan Sekar
Add clock bindings constants for action S700 Maintain common clock dt-bindings for Actions Semi SoC's S700 and S900. Signed-off-by: Parthiban Nallathambi Signed-off-by: Saravanan Sekar --- ...tions,s900-cmu.txt => actions,owl-cmu.txt} | 20 +-- include/dt-bindings/clock/actions,s700-cmu.h |

Re: Vibrations on Droid 4?

2018-07-15 Thread Pavel Machek
On Wed 2018-07-11 06:27:39, Tony Lindgren wrote: > * Pavel Machek [180711 08:05]: > > Hi! > > > > > > Its parent is gpio@4805d000 , and that one seems to be present. > > > > > > > > user@devuan:/sys/bus/platform/devices$ ls 4805d000.gpio > > > > driver

Re: [PATCH v5 1/5] clk: actions: Fix the missing REGMAP_MMIO dependency

2018-07-15 Thread Andreas Färber
Am 15.07.2018 um 22:01 schrieb Saravanan Sekar: > Add REGMAP_MMIO as dependency to avoid undefined > reference to regmap symbols. > > Signed-off-by: Saravanan Sekar Still no Fixes: header. Please read SubmittingPatches. Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg,

Linux 4.18-rc5

2018-07-15 Thread Linus Torvalds
For some reason this week actually felt very busy, but the rc5 numbers show otherwise. It's all small and calm, and things are progressing nicely. I think the "it felt busy" was partly due to me stressing out over a nasty VM bug that turned out to have a trivial two-liner fix. But there were also

[PATCH v8 07/11] counter: Add STM32 Timer quadrature encoder

2018-07-15 Thread William Breathitt Gray
From: Benjamin Gaignard Implement counter part of the STM32 timer hardware block by using counter API. Hardware only supports X2 and X4 quadrature modes. A ceiling value can be set to define the maximum value reachable by the counter. Signed-off-by: Benjamin Gaignard Co-authored-by: Fabrice

[PATCH v8 09/11] counter: stm32-lptimer: add counter device

2018-07-15 Thread William Breathitt Gray
From: Fabrice Gasnier Add support for new counter device to stm32-lptimer. Signed-off-by: Fabrice Gasnier Reviewed-by: Jonathan Cameron Signed-off-by: William Breathitt Gray --- drivers/counter/Kconfig | 10 + drivers/counter/Makefile | 1 +

[PATCH v8 10/11] dt-bindings: counter: Adjust dt-bindings for STM32 lptimer move

2018-07-15 Thread William Breathitt Gray
From: Fabrice Gasnier The STM32 LP Timer counter driver now resides under the Counter subsystem. This patch adjusts dt-bindings to account for the STM32 lptimer driver move. Cc: Mark Rutland Signed-off-by: Fabrice Gasnier Acked-by: Rob Herring Signed-off-by: William Breathitt Gray ---

[PATCH v8 11/11] iio: counter: Add deprecation markings for IIO Counter attributes

2018-07-15 Thread William Breathitt Gray
The IIO counter subdirectory is now superceded by the Counter subsystem. This patch adds deprecation warnings to the documentation of the relevant IIO Counter sysfs attributes. Acked-by: Jonathan Cameron Signed-off-by: William Breathitt Gray --- Documentation/ABI/testing/sysfs-bus-iio

[PATCH v8 08/11] dt-bindings: counter: Document stm32 quadrature encoder

2018-07-15 Thread William Breathitt Gray
From: Benjamin Gaignard Add bindings for STM32 Timer quadrature encoder. It is a sub-node of STM32 Timer which implement the quadratic encoder part of the hardware. Cc: Mark Rutland Signed-off-by: Benjamin Gaignard Acked-by: Rob Herring Signed-off-by: William Breathitt Gray ---

Do I need "CONFIG_KEYBOARD_ATKBD=y" at a headless server?

2018-07-15 Thread Toralf Förster
IIRC in the past I couldn't boot a remote system if that kernel config were unset. But I do wonder if I do need that option nowadays? -- Toralf PGP C4EACDDE 0076E94E

Re: FAT: Operating on broken FAT FS causes the write syscall to return negative number not equal to -1

2018-07-15 Thread Anatoly Trosinenko
Thank you! > This patch returns better error (-EIO) for me. This works for me likewise. > (But note, the corrupted FS image doesn't guarantee POSIX behavior.) Oops, I was just doing some testing and thought that correct behavior for crafted FS is to return arbitrary valid error code (like

[PATCH v2] Re: FAT: Operating on broken FAT FS causes the write syscall to return negative number not equal to -1

2018-07-15 Thread OGAWA Hirofumi
Al Viro writes: > On Sun, Jul 15, 2018 at 11:20:06PM +0900, OGAWA Hirofumi wrote: >> +static inline bool fat_valid_entry(struct msdos_sb_info *sbi, int entry) >> +{ >> +if (entry < FAT_START_ENT || sbi->max_cluster <= entry) >> +return false; >> +return true; >> +} > > Pet

Re: [PATCH V2] KVM/Eventfd: Avoid crash when assign and deassign specific eventfd in parallel.

2018-07-15 Thread Paolo Bonzini
On 22/12/2017 03:10, Lan Tianyu wrote: > Syzroot reports crash in kvm_irqfd_assign() is caused by use-after-free. > Because kvm_irqfd_assign() and kvm_irqfd_deassign() can't run in parallel > for one specific eventfd. When assign path hasn't been finished after irqfd > has been added to

Re: [PATCH 12/18] staging: gasket: annotate ioctl arg with __user

2018-07-15 Thread Todd Poynor
Yes you're right, I see the entry now. Thanks -- Todd On Sun, Jul 15, 2018 at 2:00 AM, Greg Kroah-Hartman wrote: > On Sat, Jul 14, 2018 at 12:20:51PM -0700, Todd Poynor wrote: >> >> I think I'm following >> >> http://www.kroah.com/log/linux/linux-staging-update.html, >> >> but if I'm off in

Re: [PATCH resend] staging: gasket: remove X86 Kconfig restriction

2018-07-15 Thread Greg Kroah-Hartman
On Sun, Jul 15, 2018 at 11:25:45AM -0700, Todd Poynor wrote: > From: Todd Poynor > > The gasket and apex drivers are to be used on other architectures > besides X86. > > Signed-off-by: Todd Poynor > --- > drivers/staging/gasket/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH resend] staging: gasket: don't release coherent mappings

2018-07-15 Thread Greg Kroah-Hartman
On Sun, Jul 15, 2018 at 11:24:41AM -0700, Todd Poynor wrote: > From: Todd Poynor > > coherent address mappings aren't backed by a struct page, don't need to > be released, and don't count as an active page in the page table > bookkeeping. > > Signed-off-by: Simon Que > Signed-off-by: Todd

[PATCH] ARM: dts: pxa: change serial node names

2018-07-15 Thread Robert Jarzmik
Change from xxuart to serial to normalize the devicetree pxa serial support. Signed-off-by: Robert Jarzmik --- arch/arm/boot/dts/pxa2xx.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/pxa2xx.dtsi b/arch/arm/boot/dts/pxa2xx.dtsi index

Re: 4.18-rc* regression: x86-32 troubles (with timers?)

2018-07-15 Thread Arnd Bergmann
On Sun, Jul 15, 2018 at 5:05 PM, Meelis Roos wrote: >> > > I then tried multiple other machines. All x86-64 machines seem >> > > unaffected, some x86-32 machines are affected (Athlon with AMD750 >> > > chipset, Fujitsu RX100-S2 with P4-3.4, and P4 with Intel 865 chipset), >> > > some very

Re: [PATCH v7 00/29] FPGA Device Feature List (DFL) Device Drivers

2018-07-15 Thread Greg Kroah-Hartman
On Mon, Jul 09, 2018 at 11:34:20AM -0500, Alan Tull wrote: > On Fri, Jun 29, 2018 at 7:53 PM, Wu Hao wrote: > > Hi All, > > > > Here is v7 patch-series adding drivers for FPGA DFL devices. > > Hi Greg, > > Could you please take this v7 patchset for 4.19? All now queued up, thanks. greg k-h

Re: [PATCH v4 1/5] clk: actions: Add REGMAP as dependency

2018-07-15 Thread Andreas Färber
Hi, Am 15.07.2018 um 14:31 schrieb Saravanan Sekar: > Add REGMAP as dependency to avoid undefined reference to regmap symbol Is this a bugfix for S900? Then please add a Fixes: line. If not, why is it a separate patch and not in 3/5? Also, the subject is fine as is, but please add a full stop

[PATCH 2/3] tty: fix termios input-speed encoding when using BOTHER

2018-07-15 Thread Johan Hovold
When the termios CIBAUD bits are left unset (i.e. B0), we use the same output and input speed and should leave CIBAUD unchanged. When the user requests a rate using BOTHER and c_ospeed which the driver cannot set exactly, the driver can report back the actual baud rate using

[PATCH 3/3] tty: support CIBAUD without BOTHER

2018-07-15 Thread Johan Hovold
Since commit edc6afc54968 ("[PATCH] tty: switch to ktermios and new framework") arbitrary baud rates can be requested using BOTHER and input rates can be requested using the termios CIBAUD bits (CBAUD shifted IBSHIFT bits). This functionality has been conditionally compiled depending on whether

[PATCH 0/3] tty: fix input-speed handling

2018-07-15 Thread Johan Hovold
Turns out we had some long-standing bugs in how we handle termios input speeds. Specifically, we could end up setting the CIBAUD bits despite the user leaving them cleared (i.e. B0, which means that we use the same input and output rate). And once any of these bits were set we failed to clear them

[PATCH 1/3] tty: fix termios input-speed encoding

2018-07-15 Thread Johan Hovold
Make sure to clear the CIBAUD bits before OR-ing the new mask when encoding the termios input baud rate. This could otherwise lead to an incorrect input rate being reported back and incidentally set on subsequent termios updates. Fixes: edc6afc54968 ("[PATCH] tty: switch to ktermios and new

Re: [PATCH v4 1/5] clk: actions: Add REGMAP as dependency

2018-07-15 Thread Manivannan Sadhasivam
Hi, On Sun, Jul 15, 2018 at 02:35:53PM +0200, Andreas Färber wrote: > Hi, > > Am 15.07.2018 um 14:31 schrieb Saravanan Sekar: > > Add REGMAP as dependency to avoid undefined reference to regmap symbol > > Is this a bugfix for S900? Then please add a Fixes: line. If not, why is > it a separate

Re: FAT: Operating on broken FAT FS causes the write syscall to return negative number not equal to -1

2018-07-15 Thread OGAWA Hirofumi
Anatoly Trosinenko writes: > How to reproduce: > 1) Compile v4.18-rc4 kernel with the attached config > 1) Unpack the attached FS image (128 Mb) and mount it as vfat to /mnt > 2) Compile and run vfat-bug.c > > What is expected: > `write` returns either -1 or small positive number. > > What

Re: [PATCH v4 0/5] Add clock driver for Actions S700 SoC

2018-07-15 Thread Manivannan Sadhasivam
Hi Saravanan, On Sun, Jul 15, 2018 at 02:31:40PM +0200, Saravanan Sekar wrote: > Changelog v4: > - dt-bindings use absolute numbering for clocks > - Patch re-oredering > > Changelog v3: > - Splitted uart clock DTS changes into separate patch > - Splitted REGMAP Kconfig selection into separate

Re: [PATCH v4 3/5] clk: actions: Add S700 SoC clock support

2018-07-15 Thread Manivannan Sadhasivam
Hi, On Sun, Jul 15, 2018 at 02:31:43PM +0200, Saravanan Sekar wrote: > Add Actions Semi S700 SoC clock support > > Signed-off-by: Parthiban Nallathambi > Signed-off-by: Saravanan Sekar > --- > drivers/clk/actions/Kconfig| 13 + > drivers/clk/actions/Makefile | 1 + >

Re: 4.18-rc* regression: x86-32 troubles (with timers?)

2018-07-15 Thread Meelis Roos
> > > I tried 4.18.0-rc1-00023-g9ffc59d57228 and now > > > 4.18.0-rc3-00113-gfc36def997cf on a 32-bit server and then some other > > > 32-bit machines, and got half-failed bootup - kernel and userspace come > > > up but some services fail to start, including network and > > > systemd-journald: > >

Re: [PATCH] mm: avoid bothering interrupted task when charge memcg in softirq

2018-07-15 Thread Shakeel Butt
On Sun, Jul 15, 2018 at 1:02 AM Yafang Shao wrote: > > On Sun, Jul 15, 2018 at 2:34 PM, Shakeel Butt wrote: > > On Sat, Jul 14, 2018 at 10:26 PM Yafang Shao wrote: > >> > >> On Sun, Jul 15, 2018 at 12:25 PM, Shakeel Butt wrote: > >> > On Sat, Jul 14, 2018 at 7:10 PM Yafang Shao wrote: > >> >>

Re: [PATCH v2 2/2] pinctrl: meson-g12a: add pinctrl driver support

2018-07-15 Thread Jerome Brunet
On Sat, 2018-07-14 at 23:27 +, Yixun Lan wrote: > Add the pinctrl driver for Meson-G12A SoC which share the similar IP as > the previous Meson-AXG SoC. > > Starting from Meson-AXG SoC, the pinctrl controller block use 4 > continues register bits to specific the pin mux function, while

[PATCH] sysfs.h: fix non-kernel-doc comment

2018-07-15 Thread Randy Dunlap
From: Randy Dunlap Don't use "/**" to begin this comment block since it is not a kernel-doc comment block. Also adjust comment line to fit in 80 characters. Signed-off-by: Randy Dunlap --- include/linux/sysfs.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---

  1   2   3   4   5   >