Re: [RFC v0 7/8] Input: ims-pcu: use firmware_stat instead of completion

2016-07-29 Thread Daniel Wagner
On 07/28/2016 09:01 PM, Bjorn Andersson wrote: On Thu 28 Jul 11:33 PDT 2016, Dmitry Torokhov wrote: On Thu, Jul 28, 2016 at 09:55:11AM +0200, Daniel Wagner wrote: From: Daniel Wagner [..] Do not quite like it... I'd rather asynchronous request give out a

Re: [RFC v0 3/8] firmware: Factor out firmware load helpers

2016-07-29 Thread Daniel Wagner
It's somewhat odd to me that the structure is "firmware_stat" but most of the functions are "fw_loading_*". That seems inconsistent for a structure that is (currently) only used by these functions. I agree, my proposal is odd. I would personally do either: a) "struct fw_load_status" and

RE: [PATCH V2 1/1] iio: as6200: add AS6200 temperature sensor driver from ams AG

2016-07-29 Thread Florian Lobmaier
As requested we can also provide a link to the datasheet of the chip: http://ams.com/eng/Products/Environmental-Sensors/Temperature-Sensors We also tried to cover all points (removed all debug msgs, simpler IRQ pin config, etc.). Still all the show/store functions for each configuration bit of

Re: [PATCH] sched/core: add taint on "BUG: sleeping function called from invalid context"

2016-07-29 Thread Vegard Nossum
On 07/29/2016 03:22 AM, Rusty Russell wrote: Vegard Nossum writes: Seeing this, it occurs to me that we should probably add a taint here: Taint has traditionally meant "the user did something unsupported, take the bug report with a grain of salt". Such as force

Re: [RFC v0 3/8] firmware: Factor out firmware load helpers

2016-07-29 Thread Daniel Wagner
On 07/28/2016 07:57 PM, Dmitry Torokhov wrote: On Thu, Jul 28, 2016 at 09:55:07AM +0200, Daniel Wagner wrote: +int __firmware_stat_wait(struct firmware_stat *fwst, + long timeout) +{ + int err; + err = swait_event_interruptible_timeout(fwst->wq, +

Re: [lkp] [blk] ee5c4fef9f: BUG: unable to handle kernel NULL pointer dereference at 0000010b

2016-07-29 Thread Minfei Huang
Hi, Xiaolong. I think it’s the correct behaviour for my patch to handle bio, and there is something wrong with floppy driver. I will post a patch to fix this floppy’s bug soon. Thanks Minfei > On Jul 29, 2016, at 10:21, kernel test robot wrote: > > > FYI, we noticed

[PATCH v2] vcodec: mediatek: Add g/s_selection support for V4L2 Encoder

2016-07-29 Thread Tiffany Lin
Signed-off-by: Tiffany Lin --- drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c | 83 ++-- 1 file changed, 78 insertions(+), 5 deletions(-) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c

[PATCH v2 0/2] ACPI / EC: Tune suspend/resume speed using PM operations

2016-07-29 Thread Lv Zheng
There are 2 improvements can be done to the EC driver to make system suspend/resume faster: 1. Automatically use busy polling mode when noirq is entered 2. Disallow event handling (SCI_EVT/_Qxx) during suspend/resume period This patchset achieves such performance tuning on top of a recent

[PATCH v2 1/2] ACPI / EC: Add PM operations to tune polling mode efficiency

2016-07-29 Thread Lv Zheng
It is reported that on some platforms, resume speed is not fast. The cause is: in noirq stage, EC driver is working in polling mode, and each state machine advancement requires a context switch. The context switch is not necessary to the EC driver's polling mode. This patch implements PM hooks to

[PATCH v2 2/2] ACPI / EC: Add PM operations to block event handling

2016-07-29 Thread Lv Zheng
Originally, EC driver stops handling both events and transactions in acpi_ec_block_transactions(), and restarts to handle transactions in acpi_ec_unblock_transactions_early(), restarts to handle both events and transactions in acpi_ec_unblock_transactions(). Thus, the event handling is actually

Re: [PATCH v5 0/6] Add support for privileged mappings

2016-07-29 Thread Will Deacon
On Wed, Jul 27, 2016 at 04:42:02PM -0700, Mitchel Humpherys wrote: > The following patch to the ARM SMMU driver: > > commit d346180e70b91b3d5a1ae7e5603e65593d4622bc > Author: Robin Murphy > Date: Tue Jan 26 18:06:34 2016 + > > iommu/arm-smmu:

Request for your partnership

2016-07-29 Thread Bun Sam
Good day, I work with one of the major banks in Cambodia as the director of auditor. I have a proposal for you, a very urgent and quick business that will be completed in 12 working days. I have just discovered documents relating to funds belonging to a deceased client of our bank, I went

Request for your partnership

2016-07-29 Thread Bun Sam
Good day, I work with one of the major banks in Cambodia as the director of auditor. I have a proposal for you, a very urgent and quick business that will be completed in 12 working days. I have just discovered documents relating to funds belonging to a deceased client of our bank, I went

[PATCH 1/1] UBSAN: use uppercase K to format a kernel pointer

2016-07-29 Thread Nicolas Iooss
handle_object_size_mismatch() used %pk to format a kernel pointer in pr_err(). This seems to be a misspelling for %pK. Fixes: c6d308534aef ("UBSAN: run-time undefined behavior sanity checker") Signed-off-by: Nicolas Iooss --- lib/ubsan.c | 2 +- 1 file changed, 1

Re: [ANNOUNCE] git-series: track changes to a patch series over time

2016-07-29 Thread Richard Ipsum
On Fri, Jul 29, 2016 at 04:04:26AM -0700, Josh Triplett wrote: [snip] > > These definitely seem like a family of related problems. I'd like to > use git-series as a format for storing iterations on things like GitHub > pull-requests or Gerrit patch versions (in the latter case, overcoming >

Re: [PATCH] 8250: option 'force_polling' for buggy IRQs

2016-07-29 Thread Max Staudt
On 07/29/2016 11:23 AM, One Thousand Gnomes wrote: >> Serial consoles are already polled for output. So nothing should >> care until userspace starts, and the full serial driver initializes. > > At which point it hangs Yep, because the IRQ is never firing. It isn't screaming at all. :) >> So

Re: [PATCH] Kbuild: Move -Wmaybe-uninitialized to W=1

2016-07-29 Thread Arnd Bergmann
On Thursday, July 28, 2016 2:22:02 PM CEST Linus Torvalds wrote: > On Thu, Jul 28, 2016 at 12:03 PM, Linus Torvalds > wrote: > > > > And the new warnings were actually not so much due to new code in 4.7, > > as the fact that in between I did a user-space upgrade,

Re: [PATCH v2 1/5] ethernet: add sun8i-emac driver

2016-07-29 Thread Andre Przywara
Hi, On 25/07/16 20:54, Maxime Ripard wrote: > On Wed, Jul 20, 2016 at 10:03:16AM +0200, LABBE Corentin wrote: >> This patch add support for sun8i-emac ethernet MAC hardware. >> It could be found in Allwinner H3/A83T/A64 SoCs. >> >> It supports 10/100/1000 Mbit/s speed with half/full duplex. >> It

Re: [PATCH] Kbuild: Move -Wmaybe-uninitialized to W=1

2016-07-29 Thread Borislav Petkov
On Fri, Jul 29, 2016 at 12:08:51PM +0200, Arnd Bergmann wrote: > Let me try to get to the bottom of this, maybe we can get the warning > back in the future. It has found a number of actual bugs. The majority > of -Wmaybe-uninitialized warnings that I fixed in linux-next were > false positives

Re: [PATCH] clocksource: arm_arch_timer: Support reading clock rate from a driver

2016-07-29 Thread Marc Zyngier
On 29/07/16 11:18, Mark Rutland wrote: > [adding Marc to Cc] > > On Fri, Jul 29, 2016 at 11:23:11AM +0200, Rafał Miłecki wrote: >> From: Rafał Miłecki >> >> On some devices using arch code for reading clock rate doesn't work. So >> far the only option was to specify

Re: [PATCH] Kbuild: Move -Wmaybe-uninitialized to W=1

2016-07-29 Thread Arnd Bergmann
On Friday, July 29, 2016 12:19:32 PM CEST Borislav Petkov wrote: > On Fri, Jul 29, 2016 at 12:08:51PM +0200, Arnd Bergmann wrote: > > Let me try to get to the bottom of this, maybe we can get the warning > > back in the future. It has found a number of actual bugs. The majority > > of

[GIT PULL] overlayfs update for 4.8

2016-07-29 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-linus First of all, this fixes a regression in overlayfs introduced by the dentry hash salting. I've moved the patch fixing this to the front of the queue, so if (god forbid) something needs

[PATCH 1/1] Bluetooth: add printf format attribute to hci_set_[fh]w_info()

2016-07-29 Thread Nicolas Iooss
Commit 5177a83827cd ("Bluetooth: Add debugfs fields for hardware and firmware info") introduced hci_set_hw_info() and hci_set_fw_info(). These functions use kvasprintf_const() but are not marked with a __printf attribute. Adding such an attribute helps detecting issues related to

Re: [PATCH] block: fix use-after-free in seq file

2016-07-29 Thread Tejun Heo
On Fri, Jul 29, 2016 at 10:40:31AM +0200, Vegard Nossum wrote: > I got a KASAN report of use-after-free: > > == > BUG: KASAN: use-after-free in klist_iter_exit+0x61/0x70 at addr > 8800b6581508 > Read of size 8 by

[PATCH 2/2] i2c: move locking operations to their own struct

2016-07-29 Thread Peter Rosin
This makes it trivial to constify them, so do that. Signed-off-by: Peter Rosin --- drivers/i2c/i2c-core.c | 13 - drivers/i2c/i2c-mux.c | 25 - include/linux/i2c.h| 25 ++--- 3 files changed, 42 insertions(+), 21

[PATCH] Added "Preserve Boot Time Support"

2016-07-29 Thread Bogdan Mirea
This option enables Boot Time Preservation between Bootloader and Linux Kernel. It is based on the idea that the Bootloader (or any other early firmware) will start the HW Timer and Linux Kernel will count the time starting with the cycles elapsed since timer start. Signed-off-by: Bogdan Mirea

Re: [PATCH 2/2] dmi-id: add dmi/id/oem group for exporting oem strings to sysfs

2016-07-29 Thread Allen Hung
On 07/27/2016 05:03 AM, Limonciello, Mario wrote: >> -Original Message- >> From: Limonciello, Mario >> Sent: Tuesday, July 19, 2016 9:48 AM >> To: 'Jean Delvare' ; Hung, Allen >> Cc: Jean Delvare ; linux-kernel@vger.kernel.org >>

Re: [kernel-hardening] Re: [PATCH] [RFC] Introduce mmap randomization

2016-07-29 Thread Daniel Micay
> > In the Project Zero Stagefright post > > (http://googleprojectzero.blogspot.com/2015/09/stagefrightened.html) > > , > > we see that the linear allocation of memory combined with the low > > number of bits in the initial mmap offset resulted in a much more > > predictable layout which aided the

Re: [ANNOUNCE] git-series: track changes to a patch series over time

2016-07-29 Thread Richard Ipsum
On Thu, Jul 28, 2016 at 11:40:55PM -0700, Josh Triplett wrote: [snip] > > I'd welcome any feedback, whether on the interface and workflow, the > internals and collaboration, ideas on presenting diffs of patch series, > or anything else. > This looks awesome! I've been working on some similar

Re: [PATCH] clocksource: arm_arch_timer: Support reading clock rate from a driver

2016-07-29 Thread Mark Rutland
[adding Marc to Cc] On Fri, Jul 29, 2016 at 11:23:11AM +0200, Rafał Miłecki wrote: > From: Rafał Miłecki > > On some devices using arch code for reading clock rate doesn't work. So > far the only option was to specify clock-frequency in a DT. This works > only if a clock

Re: [ANNOUNCE] git-series: track changes to a patch series over time

2016-07-29 Thread Josh Triplett
On Fri, Jul 29, 2016 at 11:10:11AM +0100, Richard Ipsum wrote: > On Thu, Jul 28, 2016 at 11:40:55PM -0700, Josh Triplett wrote: > [snip] > > > > I'd welcome any feedback, whether on the interface and workflow, the > > internals and collaboration, ideas on presenting diffs of patch series, > > or

Re: [PATCH 2/4] x86/platform/UV: Fix problem with bad UV4 EFI System Table causing panic

2016-07-29 Thread Thomas Gleixner
On Wed, 27 Jul 2016, Mike Travis wrote: > Fix a problem that occurs if for some reason the UV4 EFI System Table > is not available, the check inadvertantly can cause a panic. > > Reviewed-by: Dimitri Sivanich > Reviewed-by: Nathan Zimmer > Tested-by: Frank

Re: [PATCH] cxl: replace loop with for_each_child_of_node(), remove unneeded of_node_put()

2016-07-29 Thread Michael Ellerman
Andrew Donnellan writes: > Rewrite the cxl_guest_init_afu() loop in cxl_of_probe() to use > for_each_child_of_node() rather than a hand-coded for loop. > > Remove the useless of_node_put(afu_np) call after the loop, where it's > guaranteed that afu_np == NULL. > >

Re: [PATCH] net/mlx5_core/pagealloc: Remove deprecated create_singlethread_workqueue

2016-07-29 Thread Tejun Heo
Hello, On Thu, Jul 28, 2016 at 12:37:35PM +0300, Leon Romanovsky wrote: > Did you test this patch? Did you notice the memory reclaim path nature > of this work? The conversion uses WQ_MEM_RECLAIM, which is standard for all workqueues which can stall packet processing if stalled. The requirement

[GIT PULL] fuse update for 4.8

2016-07-29 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git for-linus This fixes error propagation from writeback to fsync/close for writeback cache mode as well as adding a missing capability flag to the INIT message. The rest are cleanups. (The commits are

Re: [PATCH] s390/pci: Remove unnecessary if condition

2016-07-29 Thread Sebastian Ott
On Fri, 29 Jul 2016, Julia Lawall wrote: > On Fri, 29 Jul 2016, Sebastian Ott wrote: > > On Fri, 29 Jul 2016, Amitoj Kaur Chawla wrote: > > > Remove unnecessary error handling because the only failure value that > > > can be returned is NULL and so the test can never be true. > > > > > > The

Re: [PATCH 4/5] i2c: i801: do not report an error if FEATURE_HOST_NOTIFY is not set

2016-07-29 Thread Jean Delvare
On Thu, 28 Jul 2016 11:50:42 +0200, Benjamin Tissoires wrote: > we can skip one test when calling i801_enable_host_notify(). Given > that we call it all the time, it's better to consider the fact that > the adapter doesn't support Host Notify as not an error. > > Signed-off-by: Benjamin Tissoires

Re: [PATCH] nbd: fix race in ioctl

2016-07-29 Thread Vegard Nossum
On 05/30/2016 02:58 PM, Markus Pargmann wrote: Hi, On Friday 27 May 2016 12:59:35 Vegard Nossum wrote: Quentin ran into this bug: WARNING: CPU: 64 PID: 10085 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x65/0x80 [...] It seems fairly obvious that device_create_file() is not being protected from

[PATCH 1/1] x86/entry: spell EBX register correctly in documentation

2016-07-29 Thread Nicolas Iooss
As EBS does not mean anything reasonable in the context it is used, it seems like a misspelling for EBX. Signed-off-by: Nicolas Iooss --- arch/x86/entry/entry_64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/entry/entry_64.S

Re: [RFC] net/mlx5_core/en_main: Remove deprecated create_workqueue

2016-07-29 Thread Tejun Heo
Hello, On Fri, Jul 29, 2016 at 01:30:05AM +0300, Saeed Mahameed wrote: > > Are the workitems being used on a memory reclaim path? > > do you mean they need to allocate memory ? It's a bit convoluted. A workqueue needs WQ_MEM_RECLAIM flag to be guaranteed forward progress under memory pressure,

Re: [PATCH v4] arm64: dts: mt8173: add mmsel clocks for 4K support

2016-07-29 Thread Philipp Zabel
Hi Bibby, Am Freitag, den 29.07.2016, 17:09 +0800 schrieb Bibby Hsieh: > To support HDMI 4K resolution, mmsys need clcok > mm_sel to be 400MHz. > > The board .dts file should override the clock rate > property with the higher VENCPLL frequency the board > supports HDMI 4K resolution. > >

[GIT PULL] AVR32 update for 4.8

2016-07-29 Thread Hans-Christian Noren Egtvedt
Hello Linus, please pull git://git.kernel.org/pub/scm/linux/kernel/git/egtvedt/linux-avr32.git for-linus to receive the following AVR32 update for 4.8 Hans-Christian Noren Egtvedt (2): avr32: wire up preadv2 and pwritev2 syscalls avr32: fixup code style in unistd.h and

[PATCH] init/Kconfig - add clarification for out-of-tree modules

2016-07-29 Thread Valdis Kletnieks
It doesn't trim just symbols that are totally unused in-tree - it trims the symbols unused by any in-tree modules actually built. If you've done a 'make localmodconfig' and only build a hundred or so modules, it's pretty likely that your out-of-tree module will come up lacking something...

Re: [PATCH 2/7] drm/mediatek: plane: Remove plane zpos/index

2016-07-29 Thread CK Hu
Hi, Bibby: On Fri, 2016-07-29 at 17:04 +0800, Bibby Hsieh wrote: > From: Daniel Kurtz > > It is not actually useful to a mtk plane to know its zpos/index, so just > remove this field. > > This let's us completely remove struct mtk_drm_plane in a follow up patch. 'let's

Re: [PATCH 3/3] mdacon: replace MDA_ADDR macro by inline function

2016-07-29 Thread Jiri Slaby
On 07/25/2016, 06:04 PM, Joe Perches wrote: > On Mon, 2016-07-25 at 17:24 +0200, Jiri Slaby wrote: >> MDA_ADDR is one of those macros which could be an inline function. So >> convert MDA_ADDR to mda_addr. >> >> Signed-off-by: Jiri Slaby >> --- >> drivers/video/console/mdacon.c |

Re: [RFC PATCH 1/1] i2c: i2c-mux-pca954x: Add interrupt controller support.

2016-07-29 Thread Peter Rosin
On 2016-07-28 04:44, Phil Reid wrote: > G'day Peter, > > Thanks for the feedback. > +linux-kernel@vger.kernel.org > > On 27/07/2016 13:32, Peter Rosin wrote: >> On 2016-07-27 05:05, Phil Reid wrote: >>> +static void pca954x_irq_mask(struct irq_data *idata) >>> +{ >>> + struct i2c_mux_core

Re: [PATCH] usb:serial: Add Fintek F81532/534 driver

2016-07-29 Thread One Thousand Gnomes
O > +static int f81534_set_normal_register(struct usb_device *dev, u16 reg, u8 > data) > +{ > + size_t count = F81534_USB_MAX_RETRY; > + int status; > + u8 *tmp; > + > + tmp = kmalloc(sizeof(u8), GFP_KERNEL); > + if (!tmp) > + return -ENOMEM; You end up doing huge

Re: [PATCH v2 4/4] ARM: OMAP2+: omap_device: fix crash on omap_device removal

2016-07-29 Thread Grygorii Strashko
On 07/29/2016 08:15 AM, Peter Ujfalusi wrote: On 07/28/16 20:50, Grygorii Strashko wrote: Below call chain causes system crash when OMAP device is removed by calling of_platform_depopulate()/device_del(): Should you swap 3 <-> 4 in the series? Currently patch 3 will introduce the crash you

Re: [PATCH 2/6] extcon: Add the support for extcon property according to extcon type

2016-07-29 Thread Chanwoo Choi
Hi Guenter, On 2016년 07월 28일 02:24, Guenter Roeck wrote: > On Tue, Jul 26, 2016 at 5:09 AM, Chanwoo Choi wrote: >> This patch support the extcon property for the external connector >> because each external connector might have the property according to >> the H/W design

Re: [GIT PULL] configfs updates for 4.8

2016-07-29 Thread Christoph Hellwig
On Thu, Jul 28, 2016 at 01:05:13PM -0700, Linus Torvalds wrote: > On Thu, Jul 28, 2016 at 6:30 AM, Christoph Hellwig wrote: > > > > git://git.infradead.org/users/hch/configfs.git tags/configfs-for-4.8 > > > > for you to fetch changes up to

Re: [PATCH] ACPI / button: remove pointer to old lid_sysfs on unbind

2016-07-29 Thread Benjamin Tissoires
On Jul 29 2016 or thereabouts, Zheng, Lv wrote: > Hi, Benjamin > > > From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- > > ow...@vger.kernel.org] On Behalf Of Benjamin Tissoires > > Subject: [PATCH] ACPI / button: remove pointer to old lid_sysfs on unbind > > > > When we removed the

[PATCH] ovl: fix inode in utimes_common on overlayfs.

2016-07-29 Thread zhangaihua1
From: Aihua Zhang the check IS_IMMUTABLE(inode) is invalid in utimes_commmon, the inode should point to upper rather than merge. the patch also fix the error in LTP(utimensat01). Signed-off-by: Aihua Zhang --- fs/utimes.c |3 ++- 1 files

[PATCH net v2 1/3] r8169:fix kernel log spam when set or get hardware wol setting.

2016-07-29 Thread Chunhao Lin
NIC will be put into D3 state during runtime suspend state. When set or get hardware wol setting, driver will write or read hardware registers. If we set or get hardware wol setting in runtime suspend state, because NIC will in D3 state, the hardware registers read by driver will return all 0xff.

[PATCH net v2 3/3] r8169:fix nic may not work after changing mac address.

2016-07-29 Thread Chunhao Lin
When there is no AC power, NIC may not work after changing mac address. Please refer to following link. http://www.spinics.net/lists/netdev/msg356572.html This issue is caused by runtime power management. When there is no AC power, if we put NIC down (ifconfig down), the driver will be in runtime

Re: [PATCH v2 3/4] drivers: net: cpsw: use of_platform_depopulate()

2016-07-29 Thread Mugunthan V N
On Thursday 28 July 2016 11:20 PM, Grygorii Strashko wrote: > Use of_platform_depopulate() in cpsw_remove() instead of > of_device_unregister(), because CSPW child devices will not be > recreated otherwise on next insmod. of_platform_depopulate() is > correct way now as it will ensure that all

[PATCH net v2 0/3] r8169:fix 3 runtime pm related issues.

2016-07-29 Thread Chunhao Lin
v2: use "struct device *d = >pci_dev->dev" instead of "struct pci_dev *pdev = tp->pci_dev" v1: This series of patches fix 3 runtime pm related issues that are listed below. Chunhao Lin (3): r8169:fix kernel log spam when set or get hardware wol setting. r8169:add checking driver's runtime

Re: [PATCH] cxl: replace loop with for_each_child_of_node(), remove unneeded of_node_put()

2016-07-29 Thread Julia Lawall
On Fri, 29 Jul 2016, walter harms wrote: > > > Am 29.07.2016 05:55, schrieb Andrew Donnellan: > > Rewrite the cxl_guest_init_afu() loop in cxl_of_probe() to use > > for_each_child_of_node() rather than a hand-coded for loop. > > > > Remove the useless of_node_put(afu_np) call after the loop,

Re: [PATCH] cxl: replace loop with for_each_child_of_node(), remove unneeded of_node_put()

2016-07-29 Thread walter harms
Am 29.07.2016 05:55, schrieb Andrew Donnellan: > Rewrite the cxl_guest_init_afu() loop in cxl_of_probe() to use > for_each_child_of_node() rather than a hand-coded for loop. > > Remove the useless of_node_put(afu_np) call after the loop, where it's > guaranteed that afu_np == NULL. > >

Re: [PATCH 2/5] i2c: i801: minor formatting issues

2016-07-29 Thread Jean Delvare
On Thu, 28 Jul 2016 11:50:40 +0200, Benjamin Tissoires wrote: > No functional changes, just typos and remove unused #define. > > Signed-off-by: Benjamin Tissoires > --- > drivers/i2c/busses/i2c-i801.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) >

Re: [PATCH 0/5] Add power domain support for dw_mmc/sdhci-of-arasan

2016-07-29 Thread Ulf Hansson
On 29 July 2016 at 06:14, Shawn Lin wrote: > > We need to enable the power domain manually while probing as the > power policy will turn off the pd which is not referenced. Otherwise I assume you are going to use the generic PM domain (genpd)? If so, this statement

[PATCH v2 2/2] dmi-id: add dmi/id/oem group for exporting oem strings to sysfs

2016-07-29 Thread Allen Hung
The oem strings in DMI system identification information of the BIOS have been parsed and stored as dmi devices in dmi_scan.c but they are not exported to userspace via sysfs. The patch intends to export oem strings to sysfs device /sys/class/dmi/id. As the number of oem strings are dynamic, a

Re: [PATCH v3 2/4] mfd: add support for Allwinner SoCs ADC

2016-07-29 Thread Maxime Ripard
Hi Quentin, On Tue, Jul 26, 2016 at 09:43:45AM +0200, Quentin Schulz wrote: > The Allwinner SoCs all have an ADC that can also act as a touchscreen > controller and a thermal sensor. For now, only the ADC and the thermal > sensor drivers are probed by the MFD, the touchscreen controller support >

Re: [PATCH] samples/bpf: fix resource leak on opened file descriptor

2016-07-29 Thread Alexei Starovoitov
On Sun, Jul 24, 2016 at 06:50:47PM +0100, Colin King wrote: > From: Colin Ian King > > file f needs to be closed, fixes resource leak. > > Signed-off-by: Colin Ian King have been travelling. sorry for delay. Acked-by: Alexei Starovoitov

Re: [PATCH] ACPICA: cleanup method properly on error

2016-07-29 Thread Vegard Nossum
On 07/29/2016 06:47 AM, Zheng, Lv wrote: Hi, Vegard From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- ow...@vger.kernel.org] On Behalf Of Vegard Nossum Subject: [PATCH] ACPICA: cleanup method properly on error If the call to acpi_ds_init_aml_walk() fails, then we have to undo the

Re: [PATCH] cxl: replace loop with for_each_child_of_node(), remove unneeded of_node_put()

2016-07-29 Thread Frederic Barrat
Le 29/07/2016 à 05:55, Andrew Donnellan a écrit : Rewrite the cxl_guest_init_afu() loop in cxl_of_probe() to use for_each_child_of_node() rather than a hand-coded for loop. Remove the useless of_node_put(afu_np) call after the loop, where it's guaranteed that afu_np == NULL. Reported-by: SF

Re: [PATCH v14 0/17] Add Analogix Core Display Port Driver

2016-07-29 Thread Tomeu Vizoso
On 5 April 2016 at 04:06, Yakir Yang wrote: > Hi Daniel, > > > On 03/31/2016 06:15 PM, Daniel Vetter wrote: >> >> On Mon, Feb 15, 2016 at 07:08:05PM +0800, Yakir Yang wrote: >>> >>> Hi all, >>> >>>The Samsung Exynos eDP controller and Rockchip RK3288 eDP controller >>>

[PATCH net v2 2/3] r8169:add checking driver's runtime pm status in rtl8169_get_ethtool_stats()

2016-07-29 Thread Chunhao Lin
Not to call rtl8169_update_counters() to dump tally counter when driver is in runtime suspend state. Calling rtl8169_update_counters() in runtime suspend state will produce warning message "rtl_counters_cond == 1 (loop: 1000, delay: 10)". Signed-off-by: Chunhao Lin ---

Re: [Xen-devel] [PATCH linux] xen: change the type of xen_vcpu_id to uint32_t

2016-07-29 Thread Vitaly Kuznetsov
David Vrabel writes: > On 28/07/16 17:24, Vitaly Kuznetsov wrote: >> We pass xen_vcpu_id mapping information to hypercalls which require >> uint32_t type so it would be cleaner to have it as uint32_t. The >> initializer to -1 can be dropped as we always do the mapping

Re: [PATCH 1/5] i2c: i2c-smbus: prevent races on remove when Host Notify is used

2016-07-29 Thread Jean Delvare
Salut Benjamin, On Thu, 28 Jul 2016 11:50:39 +0200, Benjamin Tissoires wrote: > struct host_notify contains its own workqueue, so there is a race when > the adapter gets removed: > - the adapter schedules a notification > - the notification is on hold > - the adapter gets removed and all its

[PATCH] clocksource: arm_arch_timer: Support reading clock rate from a driver

2016-07-29 Thread Rafał Miłecki
From: Rafał Miłecki On some devices using arch code for reading clock rate doesn't work. So far the only option was to specify clock-frequency in a DT. This works only if a clock frequency doesn't have to be calculated on runtime. On BCM53573 SoC (with Cortex-A7) there is ILP

Re: [PATCH] 8250: option 'force_polling' for buggy IRQs

2016-07-29 Thread One Thousand Gnomes
> Serial consoles are already polled for output. So nothing should > care until userspace starts, and the full serial driver initializes. At which point it hangs > So I suspect either "irqfixup" or "irqpoll" would handle this for you. > If not I am certain a small tweak to some of that code

Re: [PATCH 3/5] i2c: i801: use BIT() macro for bits definition

2016-07-29 Thread Jean Delvare
On Thu, 28 Jul 2016 11:50:41 +0200, Benjamin Tissoires wrote: > i801 mixes hexadecimal and decimal values for defining bits. However, > we have a nice BIT() macro for this exact purpose. Looks good to me. But maybe we could convert all the FEATURE_* defines as well? > No functional changes,

[ANNOUNCE] git-series: track changes to a patch series over time

2016-07-29 Thread Josh Triplett
I'd like to announce a project I've been working on for a while: git-series provides a tool for managing patch series with git, tracking the "history of history". git series tracks changes to the patch series over time, including rebases and other non-fast-forwarding changes. git series also

Re: [PATCH v3 4/4] iio: adc: add support for Allwinner SoCs ADC

2016-07-29 Thread Maxime Ripard
On Tue, Jul 26, 2016 at 09:43:47AM +0200, Quentin Schulz wrote: > The Allwinner SoCs all have an ADC that can also act as a touchscreen > controller and a thermal sensor. This patch adds the ADC driver which is > based on the MFD for the same SoCs ADC. > > This also registers the thermal adc

[PATCH v5] net: sched: convert qdisc linked list to hashtable

2016-07-29 Thread Jiri Kosina
From: Jiri Kosina Convert the per-device linked list into a hashtable. The primary motivation for this change is that currently, we're not tracking all the qdiscs in hierarchy (e.g. excluding default qdiscs), as the lookup performed over the linked list by

[v8 PATCH 0/6] Rockchip Type-C and DisplayPort driver

2016-07-29 Thread Chris Zhong
Hi all This series patch is for rockchip Type-C phy and DisplayPort controller driver. The USB Type-C PHY is designed to support the USB3 and DP applications. The PHY basically has two main components: USB3 and DisplyPort. USB3 operates in SuperSpeed mode and the DP can operate at RBR, HBR and

[PATCH v7 0/2] [media] atmel-isc: add driver for Atmel ISC

2016-07-29 Thread Songjun Wu
The Image Sensor Controller driver includes two parts. 1) Driver code to implement the ISC function. 2) Device tree binding documentation, it describes how to add the ISC in device tree. Test result with v4l-utils. v4l2-compliance SHA : not available Driver Info: Driver name :

Re: [PATCH] lpfc: Fix possible NULL pointer dereference

2016-07-29 Thread Johannes Thumshirn
On Thu, Jul 28, 2016 at 09:21:47PM -0400, Martin K . Petersen wrote: > > "James" == James Smart writes: > > James> This patch is good. > > Johannes: You were going to tweak a few things and resubmit. Please do. Oh yes, sorry totally forgot about this one. My bad.

Re: [PATCH v2 3/5] ARM: sun8i: dt: Add DT bindings documentation for Allwinner sun8i-emac

2016-07-29 Thread LABBE Corentin
On Thu, Jul 28, 2016 at 08:49:16PM +0200, Maxime Ripard wrote: > On Thu, Jul 28, 2016 at 03:40:31PM +0200, LABBE Corentin wrote: > > On Thu, Jul 21, 2016 at 09:55:19AM +0200, Maxime Ripard wrote: > > > Hi, > > > > > > On Wed, Jul 20, 2016 at 10:03:18AM +0200, LABBE Corentin wrote: > > > > This

Re: [PATCH][v6] PM / hibernate: Introduce test_resume mode for hibernation

2016-07-29 Thread Chen Yu
On Thu, Jul 28, 2016 at 09:32:06PM +0200, Pavel Machek wrote: > On Fri 2016-07-22 10:30:47, Chen Yu wrote: > > test_resume mode is to verify if the snapshot data > > written to swap device can be successfully restored > > to memory. It is useful to ease the debugging process > > on hibernation,

[PATCH 1/1 linux-next] ipc/msg.c: fix memory leak in do_msgsnd()

2016-07-29 Thread Fabian Frederick
Running LTP msgsnd06 with kmemleak gives the following: cat /sys/kernel/debug/kmemleak unreferenced object 0x88003c0a11f8 (size 8): comm "msgsnd06", pid 1645, jiffies 4294672526 (age 6.549s) hex dump (first 8 bytes): 1b 00 00 00 01 00 00 00

Re: [PATCH v2 1/4] net: ethernet: ti: cpdma: fix lockup in cpdma_ctlr_destroy()

2016-07-29 Thread Mugunthan V N
On Thursday 28 July 2016 11:20 PM, Grygorii Strashko wrote: > Fix deadlock in cpdma_ctlr_destroy() which is triggered now on > cpsw module removal: > cpsw_remove() > - cpdma_ctlr_destroy() >- spin_lock_irqsave(>lock, flags) >- cpdma_ctlr_stop() > - spin_lock_irqsave(>lock, flags); >

Re: [PATCH v3] virtio_blk: Fix a slient kernel panic

2016-07-29 Thread Stefan Hajnoczi
On Tue, Jul 19, 2016 at 5:32 AM, Minfei Huang wrote: > From: Minfei Huang > > We do a lot of memory allocation in function init_vq, and don't handle > the allocation failure properly. Then this function will return 0, > although initialization fails due to

Re: [RESEND PATCH 1/2] ARM: cache-l2x0.c: Replace magic numbers

2016-07-29 Thread Arnd Bergmann
On Thursday, July 28, 2016 5:48:41 PM CEST Andrey Smirnov wrote: > Replace magic numbers used for L310 Prefetch Control Register > > Acked-by: Arnd Bergmann > Signed-off-by: Andrey Smirnov > Please send the two patches the patch tracker at

Re: [PATCH] s390/pci: Remove unnecessary if condition

2016-07-29 Thread Sebastian Ott
On Fri, 29 Jul 2016, Amitoj Kaur Chawla wrote: > Remove unnecessary error handling because the only failure value that > can be returned is NULL and so the test can never be true. > > The Coccinelle semantic patch used to make this change is as follows: > @@ > expression e; > @@ > > e =

[PATCH] block: fix use-after-free in seq file

2016-07-29 Thread Vegard Nossum
I got a KASAN report of use-after-free: == BUG: KASAN: use-after-free in klist_iter_exit+0x61/0x70 at addr 8800b6581508 Read of size 8 by task trinity-c1/315

[PATCH 5/7] drm/mediatek: plane: Merge mtk_plane_enable into mtk_plane_atomic_update

2016-07-29 Thread Bibby Hsieh
From: Daniel Kurtz The mtk_plane_enable is just called once by mtk_plane_atomic_update. So, merge mtk_plane_enable into mtk_plane_atomic_update. While we are here, also clean up the function a bit by using an fb local variables. Signed-off-by: Bibby Hsieh

[PATCH 1/7] drm/mediatek: Remove mtk_drm_crtc_check_flush

2016-07-29 Thread Bibby Hsieh
From: Daniel Kurtz This function no longer exists. Signed-off-by: Daniel Kurtz Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_drm_crtc.h |1 - 1 file changed, 1 deletion(-) diff --git

Re: [PATCH] x86/asm/power: Fix hibernation return address corruption

2016-07-29 Thread Ingo Molnar
* Rafael J. Wysocki wrote: > > Fixes: ef0f3ed5a4ac ("x86/asm/power: Create stack frames in > > hibernate_asm_64.S") > > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=150021 > > Reported-by: > > Tested-by: > > Cc:

[v8 PATCH 4/6] arm64: dts: rockchip: add Type-C phy for RK3399

2016-07-29 Thread Chris Zhong
There are 2 Type-C phy on RK3399, they are almost same, except the address of register. They support USB3.0 Type-C and DisplayPort1.3 Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller and DP controller. Signed-off-by: Chris Zhong Reviewed-by: Guenter Roeck

[v8 PATCH 6/6] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-07-29 Thread Chris Zhong
Add support for cdn DP controller which is embedded in the rk3399 SoCs. The DP is compliant with DisplayPort Specification, Version 1.3, This IP is compatible with the rockchip type-c PHY IP. There is a uCPU in DP controller, it need a firmware to work, please put the firmware file to

[v8 PATCH 5/6] Documentation: bindings: add dt documentation for cdn DP controller

2016-07-29 Thread Chris Zhong
This patch adds a binding that describes the cdn DP controller for rk3399. Signed-off-by: Chris Zhong Acked-by: Rob Herring --- Changes in v8: None Changes in v7: None Changes in v6: - add assigned-clocks and assigned-clock-rates - add power-domains

[v8 PATCH 3/6] phy: Add USB Type-C PHY driver for rk3399

2016-07-29 Thread Chris Zhong
Add a PHY provider driver for the rk3399 SoC Type-c PHY. The USB Type-C PHY is designed to support the USB3 and DP applications. The PHY basically has two main components: USB3 and DisplyPort. USB3 operates in SuperSpeed mode and the DP can operate at RBR, HBR and HBR2 data rates. Signed-off-by:

[v8 PATCH 1/6] extcon: Add EXTCON_DISP_DP and the property for USB Type-C

2016-07-29 Thread Chris Zhong
Add EXTCON_DISP_DP for the Display external connector. For Type-C connector the DisplayPort can work as an Alternate Mode(VESA DisplayPort Alt Mode on USB Type-C Standard). The Type-C support both normal and flipped orientation, so add a property to extcon. Signed-off-by: Chris Zhong

[v8 PATCH 2/6] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-07-29 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong Reviewed-by: Tomasz Figa Reviewed-by: Kever Yang Acked-by: Rob Herring --- Changes in v8: None

Re: [PATCH V6 3/9] irqdomain: Don't set type when mapping an IRQ

2016-07-29 Thread Marc Zyngier
On 29/07/16 04:53, Masahiro Yamada wrote: > Hi. > > > I noticed my board would not work any more > when pulling recent updates. > > > I did "git-bisect" and I found the following commit is it. It would help if you did post the log showing the failure. What if you apply the following patch:

Re: [PATCH V6 3/9] irqdomain: Don't set type when mapping an IRQ

2016-07-29 Thread Jon Hunter
On 29/07/16 04:53, Masahiro Yamada wrote: > Hi. > > I noticed my board would not work any more > when pulling recent updates. > > I did "git-bisect" and I found the following commit is it. > > commit 1e2a7d78499ec8859d2b469051b7b80bad3b08aa > Author: Jon Hunter > Date:

Re: [PATCH v2 2/4] drivers: net: cpsw: fix wrong regs access in cpsw_remove

2016-07-29 Thread Mugunthan V N
On Thursday 28 July 2016 11:20 PM, Grygorii Strashko wrote: > The L3 error will be generated and system will crash during unloading > of CPSW driver if CPSW is used as module and ethX devices are down. > This happens because CPSW can be power off by PM runtime now when ethX > devices are down. >

[PATCH] crypto/testmgr.c: fix !x==y confusion

2016-07-29 Thread yanjiang.jin
From: Yanjiang Jin "if (!ret == template[i].fail)" is confusing to compilers (gcc5): crypto/testmgr.c: In function '__test_aead': crypto/testmgr.c:531:12: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] if (!ret

[PATCH] s390/pci: Remove unnecessary if condition

2016-07-29 Thread Amitoj Kaur Chawla
Remove unnecessary error handling because the only failure value that can be returned is NULL and so the test can never be true. The Coccinelle semantic patch used to make this change is as follows: @@ expression e; @@ e = debugfs_create_file(...); - if(IS_ERR(e)) { e = NULL; } Signed-off-by:

  1   2   3   4   5   6   7   8   9   >