Re: [PATCH v2 29/30] dt-bindings: add vendor prefix for bananapi

2017-04-30 Thread Sean Wang
On Fri, 2017-04-28 at 15:37 -0500, Rob Herring wrote: > On Wed, Apr 26, 2017 at 05:26:13PM +0800, sean.w...@mediatek.com wrote: > > From: Sean Wang > > > > Banana Pi team in Sinovoip Co., Limited which are dedicated to > > design and manufacture open hardware product. > > > > Website: http://www

linux-next: Tree for May 1

2017-04-30 Thread Stephen Rothwell
Hi all, Please do not add any v4.13 destined material in your linux-next included branches until after v4.12-rc1 has been released. Changes since 20170428: The spi tree gained a conflict against the pm tree. The rcu tree gained a conflict against the ftrace tree. The staging tree gained a conf

Re: [PATCH v2 02/30] pinctrl: mediatek: reuse pinctrl driver for mt7623

2017-04-30 Thread Sean Wang
On Fri, 2017-04-28 at 10:01 +0200, Linus Walleij wrote: > On Wed, Apr 26, 2017 at 11:25 AM, wrote: > > > From: Sean Wang > > > > mt7623 pinctrl driver can be compatible with mt2701 one, > > so the patch reuses the driver and deletes those redundant > > ones. > > > > Cc: John Crispin > > Signed

I'd like to donate a MacBook Pro

2017-04-30 Thread Alex Henrie
Dear kernel developers, I have a MacBookPro12,1 A1502 with a very annoying problem. Every time it boots, the screen stays black for about 90 seconds, and the keyboard is unresponsive for an additional 40 seconds. Both the internal keyboard and (if present) external USB keyboard are unresponsive. T

Re: [PATCH 1/2] Add support for OneWire (W1) devices family 0x26 (MAX17211/MAX17215)

2017-04-30 Thread Alex A. Mihaylov
Hi! 30.04.17 23:53, Sebastian Reichel wrote:: Slave device provide software layer for access to internal registers MAX17211/MAX17215 chip. Please convert this to regmap.There is no generic w1 handler, but you can provide custom read/write functions. I think regmap be overkill for this driver

Re: [PATCH 2/2] dmaengine: Add STM32 MDMA driver

2017-04-30 Thread Vinod Koul
On Wed, Apr 26, 2017 at 12:35:46PM +, Pierre Yves MORDRET wrote: > On 04/06/2017 09:08 AM, Vinod Koul wrote: > >> +static int stm32_mdma_get_width(struct stm32_mdma_chan *chan, > >> + enum dma_slave_buswidth width) > >> +{ > >> + switch (width) { > >> + case DMA_SLAVE

Re: [PATCH 2/5] dmaengine: Add STM32 DMAMUX driver

2017-04-30 Thread Vinod Koul
On Wed, Apr 26, 2017 at 09:17:37AM +, Pierre Yves MORDRET wrote: > >> + > >> + ret = of_property_read_u32(node, "dma-channels", > >> + &dmamux->dmamux_channels); > > > > can we have property_xxx calls alone, that way driver is not strictly > > dependent on of > > C

[GIT PULL] hwmon updates for v4.12

2017-04-30 Thread Guenter Roeck
Hi Linus, Please pull hwmon updates for Linux v4.12 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus-v4.12 Thanks, Guenter -- The following changes since commit c02ed2e75ef4c74e41e421acb4ef1494671585e8: Linux 4.11-rc4 (2017-03-2

Re: [PATCH] Allow to use DMA_CTRL_REUSE flag for all channel types

2017-04-30 Thread Vinod Koul
On Fri, Apr 28, 2017 at 04:37:46PM +0300, Eugeniy Paltsev wrote: > In the current implementation dma_get_slave_caps is used to check > state of descriptor_reuse option. But dma_get_slave_caps includes > check if the channel supports slave transactions. > So DMA_CTRL_REUSE flag can be set (even for

[PATCH man-pages 1/5] ioctl_userfaultfd.2: update description of shared memory areas

2017-04-30 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- man2/ioctl_userfaultfd.2 | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index 889feb9..6edd396 100644 --- a/man2/ioctl_userfaultfd.2 +++ b/man2/ioctl_userfaultfd.2 @@ -181,8 +1

[PATCH man-pages 3/5] ioctl_userfaultfd.2: add BUGS section

2017-04-30 Thread Mike Rapoport
The features handshake is not quite convenient. Elaborate about it in the BUGS section. Signed-off-by: Mike Rapoport --- man2/ioctl_userfaultfd.2 | 9 + 1 file changed, 9 insertions(+) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index e12b9de..50316de 100644 --- a/m

[PATCH man-pages 5/5] userfaultfd.2: update VERSIONS section with 4.11 chanegs

2017-04-30 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- man2/userfaultfd.2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2 index f177bba..07a69f1 100644 --- a/man2/userfaultfd.2 +++ b/man2/userfaultfd.2 @@ -404,6 +404,9 @@ Insufficient kernel memory was available. The .B

[PATCH man-pages 2/5] ioctl_userfaultfd.2: UFFDIO_COPY: add ENOENT and ENOSPC description

2017-04-30 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- man2/ioctl_userfaultfd.2 | 13 + 1 file changed, 13 insertions(+) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index 6edd396..e12b9de 100644 --- a/man2/ioctl_userfaultfd.2 +++ b/man2/ioctl_userfaultfd.2 @@ -481,6 +481,19 @@ was inv

[PATCH man-pages 0/5] {ioctl_}userfaultfd.2: yet another update

2017-04-30 Thread Mike Rapoport
Hi Michael, These updates pretty much complete the coverage of 4.11 additions, IMHO. Mike Rapoport (5): ioctl_userfaultfd.2: update description of shared memory areas ioctl_userfaultfd.2: UFFDIO_COPY: add ENOENT and ENOSPC description ioctl_userfaultfd.2: add BUGS section userfaultfd.2: a

[PATCH man-pages 4/5] userfaultfd.2: add note about asynchronios events delivery

2017-04-30 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- man2/userfaultfd.2 | 12 1 file changed, 12 insertions(+) diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2 index 8b89162..f177bba 100644 --- a/man2/userfaultfd.2 +++ b/man2/userfaultfd.2 @@ -112,6 +112,18 @@ created for the child process, which

Re: [PATCH 0/3] TI-SoC-thermal: Fine-tuning for two functions

2017-04-30 Thread Keerthy
On Thursday 27 April 2017 09:50 PM, Eduardo Valentin wrote: > On Wed, Apr 26, 2017 at 05:33:10PM +0200, SF Markus Elfring wrote: >> From: Markus Elfring >> Date: Wed, 26 Apr 2017 17:24:56 +0200 >> >> Three update suggestions were taken into account >> from static source code analysis. >> >> Mark

Re: new ...at() flag: AT_NO_JUMPS

2017-04-30 Thread Al Viro
On Sun, Apr 30, 2017 at 09:52:37PM -0700, Andy Lutomirski wrote: > On Sun, Apr 30, 2017 at 9:10 AM, Al Viro wrote: > > On Sat, Apr 29, 2017 at 09:38:22PM -0700, Matthew Wilcox wrote: > > > >> It sounds more like AT_NO_ESCAPE ... or AT_BELOW, or something. > > > > I considered AT_ROACH_MOTEL at one

Re: [PATCH 02/11] blk: make the bioset rescue_workqueue optional.

2017-04-30 Thread NeilBrown
On Mon, Apr 24 2017, Christoph Hellwig wrote: > On Mon, Apr 24, 2017 at 11:51:01AM +1000, NeilBrown wrote: >> >> I was following the existing practice exemplified by >> bioset_create_nobvec(). > > Which is pretty ugly to start with.. That is a matter of personal taste. As such, it is up to the m

Re: [PATCH v7] Input: psxpad-spi - Add PlayStation 1/2 joypads via SPI interface Driver

2017-04-30 Thread Tomohiro Yoshidomi
Mr.Torokhov I fixed source, and sent PATCH v7 to you. I'm sorry to occars warnings. * In function 'psxpad_spi_probe', removed uninitialized value 'err' in dev_err(). * 'psxpad_spi_resume' restored. Regards. -- Tomohiro

linux-next: build warning after merge of the cgroup tree

2017-04-30 Thread Stephen Rothwell
Hi Tejun, After merging the cgroup tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: kernel/cgroup/cgroup.c:439:13: warning: 'cgroup_get' defined but not used [-Wunused-function] static void cgroup_get(struct cgroup *cgrp) ^ Introduced by commit a59

Re: [PATCH 0/2] arm64: Workaround for Thunder KVM hang issues.

2017-04-30 Thread Jon Masters
On 04/24/2017 02:42 PM, David Daney wrote: > We have discovered in rare circumstances, guest execution may result > in host not receiving one or more interrupts. This does not otherwise > affect guest or host execution and/or isolation. Thanks David. I have tested these and can confirm that a 4.1

Re: new ...at() flag: AT_NO_JUMPS

2017-04-30 Thread Andy Lutomirski
On Sun, Apr 30, 2017 at 9:10 AM, Al Viro wrote: > On Sat, Apr 29, 2017 at 09:38:22PM -0700, Matthew Wilcox wrote: > >> It sounds more like AT_NO_ESCAPE ... or AT_BELOW, or something. > > I considered AT_ROACH_MOTEL at one point... Another interesting > question is whether EXDEV would've been bett

linux-next: build failure after merge of the staging tree

2017-04-30 Thread Stephen Rothwell
Hi Greg, After merging the staging tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c: In function 'rtw_cfg80211_indicate_connect': drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:552:6: error: passing argument 2 of 'cfg802

[GIT PULL] EDAC queue for 4.12

2017-04-30 Thread Borislav Petkov
Hi Linus, here's the EDAC pile for 4.12. Please pull, thanks. -- The following changes since commit 819f60fb7db169d851186d04e571e9bca27321e8: EDAC, pnd2_edac: Fix reported DIMM number (2017-03-26 09:36:28 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/ke

linux-next: manual merge of the staging tree with the usb tree

2017-04-30 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got a conflict in: drivers/staging/Makefile between commit: f0690a25a140 ("staging: typec: USB Type-C Port Manager (tcpm)") from the usb tree and commit: 051420a997a5 ("staging: bcm2835-audio: Move driver under vc04_services") abef

Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference

2017-04-30 Thread Logan Gunthorpe
On 30/04/17 05:14 PM, Jerome Glisse wrote: > HMM ZONE_DEVICE pages are use like other pages (anonymous or file back page) > in _any_ vma. So i need to know when a page is freed ie either as result of > unmap, exit or migration or anything that would free the memory. For zone > device a page is fr

[git pull] uaccess-related bits of vfs.git

2017-04-30 Thread Al Viro
uaccess unification pile. It's _not_ the end of uaccess work, but the next batch of that will go into the next cycle. This one mostly takes copy_from_user() and friends out of arch/* and gets the zero-padding behaviour in sync for all architectures. Dealing with the nocache/writet

linux-next: manual merge of the rcu tree with the ftrace tree

2017-04-30 Thread Stephen Rothwell
Hi Paul, Today's linux-next merge of the rcu tree got a conflict in: kernel/rcu/tree.c between commit: a278d4718988 ("rcu: Fix dyntick-idle tracing") from the ftrace tree and commit: e83d58dc7de2 ("rcu: Add lockdep_assert_held() teeth to tree.c") from the rcu tree. I fixed it up (see

Linux 4.11

2017-04-30 Thread Linus Torvalds
So after that extra week with an rc8, things were pretty calm, and I'm much happier releasing a final 4.11 now. We still had various smaller fixes the last week, but nothing that made me go "hmm..". Shortlog appended for people who want to peruse the details, but it's a mix all over, with about ha

Re: [PATCH v2] powerpc/mm: Only read faulting instruction when necessary in do_page_fault()

2017-04-30 Thread Nicholas Piggin
On Fri, 28 Apr 2017 08:13:01 +0200 (CEST) Christophe Leroy wrote: > Commit a7a9dcd882a67 ("powerpc: Avoid taking a data miss on every > userspace instruction miss") has shown that limiting the read of > faulting instruction to likely cases improves performance. > > This patch goes further into t

Re: [PATCH] net: phy: Allow BCM5481x PHYs to setup internal TX/RX clock delay

2017-04-30 Thread David Miller
From: Abhishek Shah Date: Sun, 30 Apr 2017 11:04:21 +0530 > This patch allows users to enable/disable internal TX and/or RX > clock delay for BCM5481x series PHYs so as to satisfy RGMII timing > specifications. > > On a particular platform, whether TX and/or RX clock delay is required > depends

Re: [PATCH] net: sunhme: fix spelling mistakes: "ParityErro" -> "ParityError"

2017-04-30 Thread David Miller
From: Colin King Date: Sat, 29 Apr 2017 22:38:57 +0100 > From: Colin Ian King > > trivial fix to spelling mistakes in printk message. > > Signed-off-by: Colin Ian King Applied.

Re: [PATCH v2] iov_iter: don't revert iov buffer if csum error

2017-04-30 Thread David Miller
From: Al Viro Date: Sat, 29 Apr 2017 21:48:23 +0100 > On Sat, Apr 29, 2017 at 05:37:38PM +0800, Ding Tianhong wrote: > >> Looks good, if so, we don't need the csum_error any more, > > Acked-by: Al Viro > > Dave, I could put that through my tree, but I think it would be better off > in net.git

linux-next: manual merge of the spi tree with the pm tree

2017-04-30 Thread Stephen Rothwell
Hi Mark, Today's linux-next merge of the spi tree got a conflict in: drivers/acpi/acpi_apd.c between commit: 6e14cf361a0c ("ACPI / APD: Add clock frequency for Hisilicon Hip07/08 I2C controller") from the pm tree and commit: 251831bd4f49 ("spi: xlp: update for ARCH_VULCAN2") from the

Re: [PATCH v3 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360.

2017-04-30 Thread David Miller
From: Eric Anholt Date: Fri, 28 Apr 2017 15:22:03 -0700 > Cygnus is a small family of SoCs, of which we currently have > devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the > same as 58xx, just requiring a tiny bit of setup that was previously > missing. > > v2: Reorder the entr

Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference

2017-04-30 Thread Dan Williams
On Sat, Apr 29, 2017 at 7:18 AM, Ingo Molnar wrote: > > * Dan Williams wrote: > >> Kirill points out that the calls to {get,put}_dev_pagemap() can be >> removed from the mm fast path if we take a single get_dev_pagemap() >> reference to signify that the page is alive and use the final put of the

Re: [PATCH 2/3] mm/slub: wrap cpu_slab->partial in CONFIG_SLUB_CPU_PARTIAL

2017-04-30 Thread Matthew Wilcox
On Sun, Apr 30, 2017 at 07:31:51PM +0800, Wei Yang wrote: > @@ -2302,7 +2302,11 @@ static bool has_cpu_slab(int cpu, void *info) > struct kmem_cache *s = info; > struct kmem_cache_cpu *c = per_cpu_ptr(s->cpu_slab, cpu); > > - return c->page || c->partial; > + return c->page >

Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference

2017-04-30 Thread Dan Williams
On Sun, Apr 30, 2017 at 6:54 PM, Jerome Glisse wrote: > On Sun, Apr 30, 2017 at 06:42:02PM -0700, Dan Williams wrote: >> On Sun, Apr 30, 2017 at 4:14 PM, Jerome Glisse wrote: >> > On Sat, Apr 29, 2017 at 01:17:26PM +0300, Kirill A. Shutemov wrote: >> >> On Fri, Apr 28, 2017 at 03:33:07PM -0400, J

Re: [PATCH] drivers:net:ethernet:emulex:benet: Use time_before_eq for time comparison

2017-04-30 Thread David Miller
From: Karim Eshapa Date: Fri, 28 Apr 2017 03:48:59 +0200 > Use time_before_eq for time comparison more safe and dealing > with timer wrapping to be future-proof. > > Signed-off-by: Karim Eshapa Subject line has way too many subsystem prefixes, simply "benet: " is sufficient. And in situations

Re: [PATCH net-next] net: Initialise init_net.count to 1

2017-04-30 Thread David Miller
From: David Howells Date: Thu, 27 Apr 2017 22:40:23 +0100 > Initialise init_net.count to 1 for its pointer from init_nsproxy lest > someone tries to do a get_net() and a put_net() in a process in which > current->ns_proxy->net_ns points to the initial network namespace. > > Signed-off-by: David

Re: [PATCH] net: macb: fix phy interrupt parsing

2017-04-30 Thread David Miller
From: Alexandre Belloni Date: Wed, 26 Apr 2017 12:06:28 +0200 > Since 83a77e9ec415, the phydev irq is explicitly set to PHY_POLL when > there is no pdata. It doesn't work on DT enabled platforms because the > phydev irq is already set by libphy before. > > Fixes: 83a77e9ec415 ("net: macb: Added

Re: RFC: i2c designware gpio recovery

2017-04-30 Thread Phil Reid
On 28/04/2017 23:43, Tim Sander wrote: Hi G'day Tim, Given a couple of days I can test this on some flack i2c hardware I have with a Cyclone-V SOC. I'm interested in the functionality as well. For i2c that are connected to the dedicated HPS pins it should be possible to reconfigure the pin m

Re: Q. drm/i915 shrinker, synchronize_rcu_expedited() from handlers

2017-04-30 Thread J. R. Okajima
Thanx for the reply. Andrea Arcangeli: > Yes I already reported this, my original fix was way more efficient > (and also safer considering the above) than what landed upstream. My > feedback was ignored though. > > https://lists.freedesktop.org/archives/intel-gfx/2017-April/125414.html I see. Act

Re: RFC: i2c designware gpio recovery

2017-04-30 Thread Phil Reid
G'day Tim, On 29/04/2017 00:14, Tim Sander wrote: Hi After sending this mail i just found out how i could reset the i2c-1 controller manually with devmem 0xffd05014 32 0x2000 devmem 0xffd05014 32 0 So i took a look into the device tree file socfpga.dtsi and found that the reset lines where

Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference

2017-04-30 Thread Jerome Glisse
On Sun, Apr 30, 2017 at 06:42:02PM -0700, Dan Williams wrote: > On Sun, Apr 30, 2017 at 4:14 PM, Jerome Glisse wrote: > > On Sat, Apr 29, 2017 at 01:17:26PM +0300, Kirill A. Shutemov wrote: > >> On Fri, Apr 28, 2017 at 03:33:07PM -0400, Jerome Glisse wrote: > >> > On Fri, Apr 28, 2017 at 12:22:24P

Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference

2017-04-30 Thread Dan Williams
On Sun, Apr 30, 2017 at 4:14 PM, Jerome Glisse wrote: > On Sat, Apr 29, 2017 at 01:17:26PM +0300, Kirill A. Shutemov wrote: >> On Fri, Apr 28, 2017 at 03:33:07PM -0400, Jerome Glisse wrote: >> > On Fri, Apr 28, 2017 at 12:22:24PM -0700, Dan Williams wrote: >> > > Are you sure about needing to hook

Re: [PATCH] net: phy: Allow BCM5481x PHYs to setup internal TX/RX clock delay

2017-04-30 Thread Florian Fainelli
On 04/29/2017 10:34 PM, Abhishek Shah wrote: > This patch allows users to enable/disable internal TX and/or RX > clock delay for BCM5481x series PHYs so as to satisfy RGMII timing > specifications. > > On a particular platform, whether TX and/or RX clock delay is required > depends on how PHY co

Re: [PATCH v2 4/4] iio: accel: adxl345: Add support for triggered buffer

2017-04-30 Thread Jonathan Cameron
On 29/04/17 08:49, Eva Rachel Retuya wrote: > Previously, the only way to capture data is to read the exposed sysfs > files in_accel_[x/y/z]_raw and applying the scale from in_accel_scale. > Provide a way for continuous data capture that allows multiple data > channels to be read at once by setting

Re: [PATCH v2 3/4] iio: accel: adxl345: Setup DATA_READY trigger

2017-04-30 Thread Jonathan Cameron
On 29/04/17 08:49, Eva Rachel Retuya wrote: > The ADXL345 provides a DATA_READY interrupt function to signal > availability of new data. This interrupt function is latched and can be > cleared by reading the data registers. The polarity is set to active > high by default. > > Support this function

Re: [PATCH v2 2/4] iio: accel: adxl345_core: Introduce set_mode and data_ready functions

2017-04-30 Thread Jonathan Cameron
On 29/04/17 08:48, Eva Rachel Retuya wrote: > Move code that enables measurement/standby mode into its own function > and call that function when appropriate. Previously, we set the sensor > to measurement in probe and back to standby during remove. Change it > here to only enter measurement mode w

[PATCH 5/6] Drivers: hv: vmbus: Fix rescind handling

2017-04-30 Thread kys
From: K. Y. Srinivasan Fix the rescind handling. This patch addresses the following rescind scenario that is currently not handled correctly: If a rescind were to be received while the offer is still being peocessed, we will be blocked indefinitely since the rescind message is handled on the sam

[PATCH 4/6] Drivers: hv: util: Make hv_poll_channel() a little more efficient

2017-04-30 Thread kys
From: K. Y. Srinivasan The current code unconditionally sends an IPI. If we are running on the correct CPU and are in interrupt level, we don't need an IPI. Make this adjustment. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hyperv_vmbus.h |4 1 files changed, 4 insertions(+), 0 dele

[PATCH 3/6] Drivers: hv: vmbus: Fix error code returned by vmbus_post_msg()

2017-04-30 Thread kys
From: K. Y. Srinivasan ENOBUFS is a more approrpiate error code to be returned when the hypervisor cannot post the message because of insufficient buffers. Make the adjustment. Signed-off-by: K. Y. Srinivasan --- drivers/hv/connection.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(

Re: [PATCH v1] LSM: Enable multiple calls to security_add_hooks() for the same LSM

2017-04-30 Thread James Morris
On Sat, 29 Apr 2017, Mickaël Salaün wrote: > Check if the registering LSM already registered hooks just before. This > enable to split hook declarations into multiple files without > registering multiple time the same LSM name, starting from commit > d69dece5f5b6 ("LSM: Add /sys/kernel/security/ls

[PATCH 6/6] HV: properly delay KVP packets when negotiation is in progress

2017-04-30 Thread kys
From: Long Li The host may send multiple negotiation packets (due to timeout) before the KVP user-mode daemon is connected. KVP user-mode daemon is connected. We need to defer processing those packets until the daemon is negotiated and connected. It's okay for guest to respond to all negotiation

[PATCH 2/6] tools: hv: properly handle long paths

2017-04-30 Thread kys
From: Vitaly Kuznetsov Paths can be up to PATH_MAX long and PATH_MAX is usually greater than 256. While on it, simplify path reconstruction to a simple snprintf(), define and reuse KVP_NET_DIR. Suggested-by: Tomas Hozza Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- tool

[PATCH 1/6] Tools: hv: vss: Thaw the filesystem and continue if freeze call has timed out

2017-04-30 Thread kys
From: Alex Ng If a FREEZE operation takes too long, the driver may time out and move on to another operation. The daemon is unaware of this and attempts to notify the driver that the FREEZE succeeded. This results in an error from the driver and the daemon leaves the filesystem in frozen state.

[PATCH 0/6] Drivers: hv: Miscellaneous fixes

2017-04-30 Thread kys
From: K. Y. Srinivasan Miscellaneous fixes to vmbus and util drivers. Alex Ng (1): Tools: hv: vss: Thaw the filesystem and continue if freeze call has timed out K. Y. Srinivasan (3): Drivers: hv: vmbus: Fix error code returned by vmbus_post_msg() Drivers: hv: util: Make hv_poll_channe

Re: [PATCH v2] mm, zone_device: replace {get, put}_zone_device_page() with a single reference

2017-04-30 Thread Jerome Glisse
On Sat, Apr 29, 2017 at 01:17:26PM +0300, Kirill A. Shutemov wrote: > On Fri, Apr 28, 2017 at 03:33:07PM -0400, Jerome Glisse wrote: > > On Fri, Apr 28, 2017 at 12:22:24PM -0700, Dan Williams wrote: > > > Are you sure about needing to hook the 2 -> 1 transition? Could we > > > change ZONE_DEVICE pa

Re: [patch] autogain support for bayer10 format (was Re: [patch] propagating controls in libv4l2)

2017-04-30 Thread Pavel Machek
On Wed 2017-04-26 15:23:37, Pavel Machek wrote: > Hi! > > > > > I don't see why it would be hard to open files or have threads inside > > > > a library. There are several libraries that do that already, specially > > > > the ones designed to be used on multimidia apps. > > > > > > Well, This is

Re: [patch] timer: Fix timers_update_migration(), and call it in tmigr_init()

2017-04-30 Thread Paul E. McKenney
On Sat, Apr 29, 2017 at 09:36:37PM -0700, Paul E. McKenney wrote: > On Sun, Apr 30, 2017 at 06:20:15AM +0200, Mike Galbraith wrote: > > On Sat, 2017-04-29 at 20:43 -0700, Paul E. McKenney wrote: > > > On Sun, Apr 30, 2017 at 03:21:58AM +0200, Mike Galbraith wrote: > > > > On Sat, 2017-04-29 at 14:4

Re: [RFC/PATCH] perf: Add sizeof operator support

2017-04-30 Thread Jon Masters
Hi Jeremy, On 06/14/2016 12:38 PM, Jeremy Linton wrote: > There are a fair number of tracepoints in the kernel making > use of the sizeof operator. Allow perf to understand some of > those cases, and report a more informative error message for > the ones it cannot understand. What's the status o

[PATCH] scsi: fas216: Add __printf validation, fix fallout

2017-04-30 Thread Joe Perches
__printf makes the compiler check format and arguments. Fix fallout. Miscellanea: o Convert formats to const char * o Use vsprintf extension %pV instead of a static buffer. o Add newline to logging and remove now unnecessary printk("\n") o Use pr_cont where appropriate Signed-off-by: Joe Perche

Re: [PATCH] SPCR: check bit width for the 16550 UART

2017-04-30 Thread Jon Masters
On 12/13/2016 01:20 AM, Jon Masters wrote: > On 12/07/2016 10:23 AM, Mark Salter wrote: >> If you specify a baudrate with earlycon=, the driver tries to set that >> baudrate and if you have an 8250 with some non-standard baud clock, then >> it will fail. Perhaps SPCR shouldn't pass baud option to

[PATCH 3/3] led: ledtrig-transient: add support for hrtimer

2017-04-30 Thread David Lin
This patch adds a hrtimer to ledtrig-transient so that when driver is registered with LED_BRIGHTNESS_FAST, the hrtimer is used for the better time accuracy in handling the duration. Signed-off-by: David Lin --- drivers/leds/trigger/ledtrig-transient.c | 59 +--- 1 fil

[PATCH 2/3] leds: Add the LED_BRIGHTNESS_FAST flag

2017-04-30 Thread David Lin
This patch adds the LED_BRIGHTNESS_FAST flag to allow the driver to indicate that the brightness_set() callback is implemented on a fastpath so that the LED core may choose to for example use a hrtimer to implement the duration of a trigger for better timing accuracy. Suggested-by: Jacek Anaszewsk

[PATCH 1/3] leds: Replace flags bit shift with BIT() macros

2017-04-30 Thread David Lin
This is for readability as well as to avoid checkpatch warnings when adding new bit flag information in the future. Signed-off-by: David Lin --- include/linux/leds.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/leds.h b/include/linux/leds.h index

[PATCH 0/3] led: ledtrig-transient: add support for hrtimer

2017-04-30 Thread David Lin
Hi, These patch series add the LED_BRIGHTNESS_FAST flag support for ledtrig-transient to use hrtimer so that platforms with high-resolution timer support can have better accuracy in the trigger duration timing. The need for this support is driven by the fact that Android has removed the timed_oupu

Re: [RFC 1/6] mm, page_alloc: fix more premature OOM due to race with cpuset update

2017-04-30 Thread Christoph Lameter
On Wed, 26 Apr 2017, Vlastimil Babka wrote: > > Such an application typically already has such logic and executes a > > binding after discovering its numa node configuration on startup. It would > > have to be modified to redo that action when it gets some sort of a signal > > from the script tell

Re: [PATCH 0/3] try to save some memory for kmem_cache in some cases

2017-04-30 Thread Christoph Lameter
On Sun, 30 Apr 2017, Wei Yang wrote: > kmem_cache is a frequently used data in kernel. During the code reading, I > found maybe we could save some space in some cases. > > 1. On 64bit arch, type int will occupy a word if it doesn't sit well. > 2. cpu_slab->partial is just used when CONFIG_SLUB_CPU

Re: [PATCH 1/3] ARM: dts: rockchip: Move cros-ec-sbs to rk3288-veyron-chromebook-sbs

2017-04-30 Thread Paul Kocialkowski
Le dimanche 30 avril 2017 à 22:37 +0200, Heiko Stuebner a écrit : > Hi Paul, > > Am Sonntag, 30. April 2017, 20:30:52 CEST schrieb Paul Kocialkowski: > > This moves the cros-ec-sbs dtsi to a new rk3288-veyron-chromebook-sbs > > dtsi since it only concerns rk3288 veyron Chromebooks. > > > > Other

Re: [PATCH 1/2] Add support for OneWire (W1) devices family 0x26 (MAX17211/MAX17215)

2017-04-30 Thread Sebastian Reichel
Hi, On Sun, Apr 30, 2017 at 08:21:51AM +0300, Alex A. Mihaylov wrote: > > > Slave device provide software layer for access to internal registers > > > MAX17211/MAX17215 chip. > > Please convert this to regmap.There is no generic w1 handler, but you can > > provide custom > > read/write functions.

Re: [PATCH v3 1/4] of: remove *phandle properties from expanded device tree

2017-04-30 Thread Frank Rowand
On 04/29/17 17:22, kbuild test robot wrote: > Hi Frank, > > [auto build test ERROR on robh/for-next] > [also build test ERROR on v4.11-rc8 next-20170428] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-

[PATCH] of: undeclared variable when CONFIG_DEBUG_LOCK_ALLOC

2017-04-30 Thread frowand . list
From: Frank Rowand An undeclared variable was used in a macro that evaluates to nothing when CONFIG_DEBUG_LOCK_ALLOC is not defined. Change to use the correct variable that does exist. --- reported by kbuild test robot on on robh/for-next https://lkml.org/lkml/2017/4/29/134 drivers/of/b

Re: [PATCH 2/2] Add driver for MAX17211/MAX17215 fuel gauge

2017-04-30 Thread Sebastian Reichel
Hi, On Sun, Apr 30, 2017 at 08:32:10PM +0300, Михайлов Алексей Анатольевич wrote: > > IIRC we already had problems with small THERMAL_NAME_LENGTH before. > > I suggest to add another patch, that increases THERMAL_NAME_LENGTH > > (don't forget to Cc/To the thermal subsystem people). > May be rename

Re: [PATCH 1/3] ARM: dts: rockchip: Move cros-ec-sbs to rk3288-veyron-chromebook-sbs

2017-04-30 Thread Heiko Stuebner
Hi Paul, Am Sonntag, 30. April 2017, 20:30:52 CEST schrieb Paul Kocialkowski: > This moves the cros-ec-sbs dtsi to a new rk3288-veyron-chromebook-sbs > dtsi since it only concerns rk3288 veyron Chromebooks. > > Other Chromebooks (such as the tegra124 nyans) also have sbs batteries > and don't use

[PATCH] README: Find more sane first words we have to say about Linux

2017-04-30 Thread Martin Kepplinger
Imagine you're completely new to Linux, just real quick, ok? What do you do? Wouldn't having a look at README be under first if no *the* first thing? Ah there it is: README. "Linux kernel". nice! So what's that? "This file was moved to .. Please notice that there are several". Wtf!? Why? Ca

Re: [PATCH] staging: iio: isl29028: add isl29030 support

2017-04-30 Thread Sebastian Reichel
Hi, On Sun, Apr 30, 2017 at 05:27:07PM +0100, Jonathan Cameron wrote: > On 28/04/17 17:17, Brian Masney wrote: > > On Fri, Apr 28, 2017 at 05:55:58PM +0200, Sebastian Reichel wrote: > >> isl29030 is basically the same chip. The only difference > >> is the chip's first pin. For isl29028 its named A

[PATCH 2/2 v2] input: touchscreen: ar1021_i2c: use BIT to check for a bit

2017-04-30 Thread Martin Kepplinger
The MSB for the first byte of touch data transmission is always 1. Make it a little more obvious we're testing this bit by using BIT(7). Signed-off-by: Martin Kepplinger --- I'd still use the definition :) but otherwise I'd write the following. It really doesn't matter though. thanks for the qu

[PATCH v4] fpga manager: Add Altera CvP driver

2017-04-30 Thread Anatolij Gustschin
Add FPGA manager driver for loading Arria-V/Cyclone-V/Stratix-V and Arria-10 FPGAs via CvP. Signed-off-by: Anatolij Gustschin --- Changes in v4: - Update description about supported FPGA models in Kconfig and commit log - use writel() for iomem accesses - factor out dummy write code

Re: [PATCH] staging: rtl8723bs: declare private function as static

2017-04-30 Thread Hans de Goede
Hi, On 23-04-17 19:37, Kenneth Hsu wrote: This fixes a sparse warning regarding an undeclared symbol. Since the function is private to rtw_recv.c, it should be declared as static. Signed-off-by: Kenneth Hsu Looks good to me: Reviewed-by: Hans de Goede Regards, Hans --- drivers/stagi

Re: [PATCH 1/7] hwmon: twl4030-madc: drop driver

2017-04-30 Thread Guenter Roeck
On 04/30/2017 09:41 AM, Jonathan Cameron wrote: On 27/04/17 17:51, Guenter Roeck wrote: On Thu, Apr 27, 2017 at 05:30:06PM +0200, Sebastian Reichel wrote: This driver is no longer needed: * It has no mainline users * It has no DT support and OMAP is DT only * iio-hwmon can be used for madc,

[PATCH 2/3] ARM: dts: rockchip: List charger as power supply for sbs battery

2017-04-30 Thread Paul Kocialkowski
This lists the GPIO charger node as power supply for the battery, which in turns allows receiving external power notifications and synchronizing the charging state as soon as possible. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/rk3288-veyron-chromebook-sbs.dtsi | 1 + arch/arm/boot/d

[PATCH 3/3] ARM: dts: rockchip: List charger as power supply for minnie

2017-04-30 Thread Paul Kocialkowski
This lists the GPIO charger node as power supply for the battery, which in turns allows receiving external power notifications and synchronizing the charging state as soon as possible. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/rk3288-veyron-minnie.dts | 1 + 1 file changed, 1 insert

[PATCH 1/3] ARM: dts: rockchip: Move cros-ec-sbs to rk3288-veyron-chromebook-sbs

2017-04-30 Thread Paul Kocialkowski
This moves the cros-ec-sbs dtsi to a new rk3288-veyron-chromebook-sbs dtsi since it only concerns rk3288 veyron Chromebooks. Other Chromebooks (such as the tegra124 nyans) also have sbs batteries and don't use this dtsi, that only makes sense when used with rk3288-veyron-chromebook anyway. Signed

[PATCH] staging: media: atomisp: use logical AND, not bitwise

2017-04-30 Thread Guru Das Srinagesh
Fixes sparse warning "dubious: x & !y" in logical expression. Signed-off-by: Guru Das Srinagesh --- .../media/atomisp/pci/atomisp2/css2400/runtime/binary/src/binary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/runt

[PATCH 3/5] power: supply: bq27xxx: Rename work structure member to poll_work

2017-04-30 Thread Paul Kocialkowski
This renames the work structure member to poll_work, in anticipation of the introduction of a status_work member used to detect status changes. Signed-off-by: Paul Kocialkowski --- drivers/power/supply/bq27xxx_battery.c | 20 ++-- drivers/power/supply/bq27xxx_battery_i2c.c |

[PATCH 5/5] power: supply: bq27xxx: Correct supply status with current draw

2017-04-30 Thread Paul Kocialkowski
The status reported directly by the battery controller is not always reliable and should be corrected based on the current draw information. This implements such a correction with a dedicated function, called when retrieving the supply status. Signed-off-by: Paul Kocialkowski --- drivers/power/

[PATCH 4/5] power: supply: bq27xxx: Look for status change on external power change

2017-04-30 Thread Paul Kocialkowski
This introduces a dedicated status change work to look for power status change. It is triggered by external power change notifications and periodically retries detecting a power status change for 5 seconds. This is largely inspired by a similar mechanism from the sbs-battery driver. Signed-off-by

[PATCH 2/5] power: supply: bq27xxx: Register power supply with devm

2017-04-30 Thread Paul Kocialkowski
This uses the managed devices resources version of the power_supply_register_no_ws function to register the power supply. Signed-off-by: Paul Kocialkowski --- drivers/power/supply/bq27xxx_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/bq27xxx_b

[PATCH 1/5] power: supply: bq27xxx: Pass of_node along to allow device-tree supply

2017-04-30 Thread Paul Kocialkowski
This passes the of_node from the bq27xxx i2c battery driver to the common code, so that it can be registered and provide external supplies linked with device-tree. Signed-off-by: Paul Kocialkowski --- drivers/power/supply/bq27xxx_battery.c | 5 - drivers/power/supply/bq27xxx_battery_i2c.

Re: [PATCH v1] selftests: Make test_harness.h more generally available

2017-04-30 Thread Will Drewry
On Sun, Apr 30, 2017 at 12:39 PM, Kees Cook wrote: > > On Sun, Apr 30, 2017 at 5:26 AM, Mickaël Salaün wrote: > > The seccomp/test_harness.h file contains useful helpers to build tests. > > Moving it to the selftest directory should benefit to other test > > components. > > Unless Shuah thinks th

Re: [PATCH v1] selftests: Make test_harness.h more generally available

2017-04-30 Thread Kees Cook
On Sun, Apr 30, 2017 at 5:26 AM, Mickaël Salaün wrote: > The seccomp/test_harness.h file contains useful helpers to build tests. > Moving it to the selftest directory should benefit to other test > components. Unless Shuah thinks this should live in a new include/ directory, this looks fine to me

Re: perf report warnings on tracepoint events hidden by ui

2017-04-30 Thread David Carrillo-Cisneros
>> >> An appears to be correctly parsed by event_read_print in >> tools/lib/tracevent/event-parse.c . Has anyone seen this before? > > What kernel are you running? > > I just built and booted v4.11-rc8 with a v4.11-rc8 perf: I was running an internal version. I found the bug in an internal commit.

Re: perf report warnings on tracepoint events hidden by ui

2017-04-30 Thread David Carrillo-Cisneros
> > But I don't see any warning when I run it with --stdio. Could you > show me the format file of sys_enter_mmap? I found the problem. The kernel version I was testing on fails to initialize some fields in the tracepoint structure, so my format looked like: # cat /sys/kernel/debug/tracing/event

Re: [PATCH 2/2] Add driver for MAX17211/MAX17215 fuel gauge

2017-04-30 Thread Михайлов Алексей Анатольевич
Hi! [...] +* FixMe: +* Device without no_thermal = true not register (err -22) +* Len of platform device name "max17211-battery.X.auto" +* more than 20 chars limit in THERMAL_NAME_LENGTH from +* include/uapi/linux/thermal.h +*/ IIRC we already h

Re: [v6 PATCH 06/21] x86/insn-eval: Add utility functions to get segment selector

2017-04-30 Thread Borislav Petkov
On Wed, Apr 26, 2017 at 01:44:43PM -0700, Ricardo Neri wrote: > I regard that the role of this function is to obtain the the segment > selector from either of the prefixes or inferred from the operands. It > is the role of caller to determine if the segment selector should be > ignored. No, this i

Re: [PATCH] iio: stm32 trigger: Add support for TRGO2 triggers

2017-04-30 Thread Jonathan Cameron
On 28/04/17 15:52, Fabrice Gasnier wrote: > On 04/27/2017 07:49 AM, Jonathan Cameron wrote: >> On 26/04/17 09:55, Benjamin Gaignard wrote: >>> 2017-04-26 10:17 GMT+02:00 Fabrice Gasnier : Add support for TRGO2 trigger that can be found on STM32F7. Add additional master modes supported by

Re: [PATCH] iio: st_pressure: st_accel: Initialise sensor platform data properly

2017-04-30 Thread Jonathan Cameron
On 28/04/17 05:11, Shrirang Bagul wrote: > On Wed, 2017-04-26 at 06:37 +0100, Jonathan Cameron wrote: >> On 19/04/17 15:05, Shrirang Bagul wrote: >>> This patch fixes the sensor platform data initialisation for st_pressure >>> and st_accel device drivers. Without this patch, the driver fails to >>>

Re: uvcvideo logging kernel warnings on device disconnect

2017-04-30 Thread Greg KH
On Sun, Apr 30, 2017 at 06:19:59PM +0200, Greg KH wrote: > On Sun, Apr 16, 2017 at 02:11:31PM +0300, Laurent Pinchart wrote: > > Hi Greg, > > > > On Wednesday 21 Dec 2016 10:59:54 Greg KH wrote: > > > On Tue, Dec 20, 2016 at 11:19:23AM +, Dave Stevenson wrote: > > > > On 09/12/16 09:43, Greg K

  1   2   >