[PATCH 5/5] arm: dts: mt2701: Add usb3 device nodes

2017-08-01 Thread Erin Lo
From: Chunfeng Yun Add xhci nodes and usb3 phy nodes for MT2701 Signed-off-by: Chunfeng Yun Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 79 +++ 1 file changed, 79 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/d

[PATCH 0/5] Add some DT nodes for Mediatek MT2701

2017-08-01 Thread Erin Lo
This patch series based on v4.13-rc1, include MT2701 ethernet/disp bls/display/usb3 function DT nodes. Chunfeng Yun (1): arm: dts: mt2701: Add usb3 device nodes Sean Wang (1): arm: dts: mt2701: Add ethernet device node Weiqing Kong (2): arm: dts: mt2701: Add display bls related nodes for

[PATCH 1/5] arm: dts: mt2701: Add ethernet device node

2017-08-01 Thread Erin Lo
From: Sean Wang Add ethernet device node for MT2701 Signed-off-by: Sean Wang Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index f1efdc6..0619

[PATCH 2/5] arm: dts: mt2701: Add display bls related nodes for MT2701

2017-08-01 Thread Erin Lo
From: Weiqing Kong This patch adds the device node of display backlight for MT2701 Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi in

linux-kernel@vger.kernel.org

2017-08-01 Thread janani-sankarababu
This patch is created to solve the coding style issues reported by the checkpatch script. Signed-off-by: Janani Sankara Babu --- drivers/staging/rtl8188eu/core/rtw_ap.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c b/d

[PATCH 3/5] arm: dts: mt2701: Add display bls related nodes for MT2701

2017-08-01 Thread Erin Lo
From: Weiqing Kong This patch adds board related config for backlight Signed-off-by: Weiqing Kong Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701-evb.dts | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/m

[PATCH 4/5] arm: dts: mt2701: Add display subsystem related nodes for MT2701

2017-08-01 Thread Erin Lo
From: YT Shen This patch adds the device nodes for the DISP function blocks for MT2701 Signed-off-by: YT Shen Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 77 +++ 1 file changed, 77 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi

[PATCH] pciehp: Fix infinite interupt handler loop

2017-08-01 Thread Keith Busch
We've encountered a particular platform that under some circumstances always has the power fault detected status raised. The pciehp irq handler would loop forever because it thinks it is handling new events when in fact the power fault is not new. This patch fixes that by masking off the power faul

[PATCH] timers: Fix overflow in get_next_timer_interrupt

2017-08-01 Thread Matija Glavinic Pecotic
For e.g. HZ=100, timer being 430 jiffies in the future, and 32 bit unsigned int, there is an overflow on unsigned int right-hand side of the expression which results with wrong values being returned. Problem was observed on tickless core and with following applied: sched/nohz: add debugfs

Re: [PATCH v2 2/4] can: fixed-transceiver: Add documentation for CAN fixed transceiver bindings

2017-08-01 Thread Kurt Van Dijck
> Hi Kurt, > > On 07/28/2017 09:41 PM, Kurt Van Dijck wrote: > > >>The transceiver is an analog device that needs to support faster > >>switching frequency (FETs) including minimizing delay to support CAN-FD > >>ie higher bitrate. From the transceiver perspective the bits for > >>"arbitration" an

Re: [PATCH] ASoC: codecs: fix wm8524 build error

2017-08-01 Thread Mihai Serban
On Lu, 2017-07-31 at 18:05 +0200, Arnd Bergmann wrote: > When CONFIG_OF is disabled, we run into a build error: > > sound/soc/codecs/wm8524.c:257:21: error: 'wm8524_of_match' undeclared > here (not in a function); did you mean 'wm8524_dai'? > > This removes the unnecessary #ifdef around the match

Re: [PATCH] staging: comedi: comedi_fops: do not call blocking ops when !TASK_RUNNING

2017-08-01 Thread Piotr Gregor
On Fri, Jul 28, 2017 at 04:22:31PM +0100, Ian Abbott wrote: > Comedi's read and write file operation handlers (`comedi_read()` and > `comedi_write()`) currently call `copy_to_user()` or `copy_from_user()` > whilst in the `TASK_INTERRUPTIBLE` state, which falls foul of the > `might_fault()` checks w

Re: [PATCH v2 22/22] fpga: intel: afu: add FPGA_PORT_DMA_MAP/UNMAP ioctls support

2017-08-01 Thread Wu Hao
On Mon, Jul 31, 2017 at 04:41:26PM -0500, Alan Tull wrote: > On Sun, Jun 25, 2017 at 8:52 PM, Wu Hao wrote: Hi Alan Thanks a lot for the code review. :) > > Hi Hao, > > Please run checkpatch.pl --strict on this. Sure, thanks for the suggestion, will run this on all the patches and fix the it

Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels

2017-08-01 Thread Mikael Pettersson
David Miller writes: > From: Anatoly Pugachev > Date: Tue, 1 Aug 2017 01:01:47 +0300 > > > I don't know how to run on a running kernel , but as I understood: > > > > root@v215:strace# gzip -dc /boot/vmlinuz-4.12.0 > vmlinux > > root@v215:strace# gdb -q vmlinux > > Reading symbols from vm

Re: [PATCH] mm/zsmalloc: Change stat type parameter to int

2017-08-01 Thread Sergey Senozhatsky
On (07/31/17 10:50), Matthias Kaehlcke wrote: > zs_stat_inc/dec/get() uses enum zs_stat_type for the stat type, however > some callers pass an enum fullness_group value. Change the type to int > to reflect the actual use of the functions and get rid of > 'enum-conversion' warnings > > Signed-off-b

Re: [PATCH] x86/hpet: Cure interface abuse in the resume path

2017-08-01 Thread Tomi Sarvela
On 31/07/17 23:07, Thomas Gleixner wrote: The HPET resume path abuses irq_domain_[de]activate_irq() to restore the MSI message in the HPET chip for the boot CPU on resume and it relies on an implementation detail of the interrupt core code, which magically makes the HPET unmask call invoked via a

[PATCH v1 2/2] dt-bindings: ata: add DT bindings for MediaTek SATA controller

2017-08-01 Thread Ryder Lee
Add DT bindings for the onboard SATA controller present on the MediaTek SoCs. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/ata/ahci-mtk.txt | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/ata/ahci-mtk.txt diff

[PATCH v1 0/2] Add support for MediaTek AHCI SATA

2017-08-01 Thread Ryder Lee
Hi, This patch series add support for AHCI compatible SATA controller, and it is compliant with the ahci 1.3 and sata 3.0 specification. This driver is slightly different than ahci_platform.c (e.g., reset control, subsystem setting). changes since v1: - update binding text: add missing "specifier

[PATCH v1 1/2] ata: mediatek: add support for MediaTek SATA controller

2017-08-01 Thread Ryder Lee
This adds support the AHCI-compliant Serial ATA controller present on MediaTek SoCs. Signed-off-by: Ryder Lee --- drivers/ata/Kconfig| 10 +++ drivers/ata/Makefile | 1 + drivers/ata/ahci_mtk.c | 196 + 3 files changed, 207 insertions(+)

Re: [Question]: try to fix contention between expire_timers and try_to_del_timer_sync

2017-08-01 Thread qiaozhou
On 2017年07月31日 19:20, qiaozhou wrote: On 2017年07月29日 03:09, Vikram Mulukutla wrote: On 2017-07-28 02:28, Will Deacon wrote: On Thu, Jul 27, 2017 at 06:10:34PM -0700, Vikram Mulukutla wrote: Does bodging cpu_relax to back-off to wfe after a while help? The event stream will wake it up i

Re: [PATCH] printk: Clean up do_syslog() error handling

2017-08-01 Thread Sergey Senozhatsky
On (07/29/17 20:36), Nikitas Angelinas wrote: > The error variable in do_syslog() is preemptively set to the error code > before the error condition is checked, and then set to 0 if the error > condition is not encountered. This is not necessary, as it is likely > simpler to return immediately upon

linux-next: Tree for Aug 1

2017-08-01 Thread Stephen Rothwell
Hi all, Changes since 20170731: The rdma tree lost its build failure. I reverted a commit from the staging tree that was causing overnight build failures. The akpm-current tree gained a build failure for which I applied a patch and another for which I reverted a commit. The akpm tree gained a

Re: [PATCH] x86/hpet: Cure interface abuse in the resume path

2017-08-01 Thread Thomas Gleixner
On Tue, 1 Aug 2017, Tomi Sarvela wrote: > On 31/07/17 23:07, Thomas Gleixner wrote: > > The HPET resume path abuses irq_domain_[de]activate_irq() to restore the > > MSI message in the HPET chip for the boot CPU on resume and it relies on an > > implementation detail of the interrupt core code, whic

Re: [RFC/RFT PATCH 3/3] gpiolib: make gpio irqchip compatible with sparse_irq

2017-08-01 Thread Linus Walleij
On Sun, Jul 9, 2017 at 12:44 AM, Grygorii Strashko wrote: > Now IRQ mappings are always created for all (allowed) GPIOs in gpio irqchip in > gpiochip_irqchip_add_key() which goes against the idea of SPARSE_IRQ and, > as result, leads to: > - increasing of memory consumption because of allocated

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-01 Thread Juergen Gross
On 26/07/17 18:43, Kirill A. Shutemov wrote: > On Wed, Jul 26, 2017 at 09:28:16AM +0200, Juergen Gross wrote: >> On 25/07/17 11:05, Kirill A. Shutemov wrote: >>> On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: Xen PV guests will never run with 5-level-paging enabled. So I guess

Re: [RFC/RFT PATCH 2/3] gpio: pxa: remove gpio_to_irq() from hw irq handlers

2017-08-01 Thread Linus Walleij
On Sun, Jul 9, 2017 at 12:44 AM, Grygorii Strashko wrote: > gpio_to_irq() API expected to be used by GPIO consumers and > not drivers and there are no guarantee that its gpiolib implementation > is irq safe. > > Signed-off-by: Grygorii Strashko Patch applied. This is the right thing to do. PX

Re: [RFC/RFT PATCH 1/3] gpio: tegra: remove gpio_to_irq() from hw irq handlers

2017-08-01 Thread Linus Walleij
On Sun, Jul 9, 2017 at 12:44 AM, Grygorii Strashko wrote: > gpio_to_irq() API expected to be used by GPIO consumers and > not drivers and there are no guarantee that its gpiolib implementation > is irq safe. > > Signed-off-by: Grygorii Strashko Patch applied. This is obviously the right way to

Re: [RFT PATCH v2] gpiolib: allow gpio irqchip to map irqs dynamically

2017-08-01 Thread Linus Walleij
On Fri, Jul 21, 2017 at 6:49 PM, Grygorii Strashko wrote: > Now IRQ mappings are always created for all (allowed) GPIOs in gpiochip in > gpiochip_irqchip_add_key() which goes against the idea of SPARSE_IRQ and, > as result, leads to: > - increasing of memory consumption for IRQ descriptors most

[PATCH v3] staging: octeon: fix line over 80 characters

2017-08-01 Thread catalinnow
From: John Smith ethernet-rx.c: fix WARNING: line over 80 characters The code was restructured a bit, a helper function was added to cvm_oct_poll. Signed-off-by: John Smith --- Changes since version 2: - silenced build warning drivers/staging/octeon/ethernet-rx.c | 79 +++---

Re: Kernel error messages: leds fujitsu::radio_led: Setting an LED's brightness failed

2017-08-01 Thread Harvey
Hi Michał, > A photo would be useful (though please do not attach it to your message, > https://www.notebookcheck.net/fileadmin/_migrated/pics/Fujitsu-LB-E751-Tastatur_1j.jpg That is exactly my laptop (well, except for those ugly windows badges ;)) To be completely sure I have taken two photos

Re: [PATCH] gpio: drop unnecessary includes from include/linux/gpio/driver.h

2017-08-01 Thread Linus Walleij
On Mon, Jul 31, 2017 at 4:04 PM, Andy Shevchenko wrote: > On Mon, 2017-07-31 at 15:48 +0200, Linus Walleij wrote: >> On Tue, Jul 4, 2017 at 12:06 PM, Andy Shevchenko >> wrote: >> > On Tue, 2017-07-04 at 12:53 +0900, Masahiro Yamada wrote: >> > > Some of include directives in include/linux/gpio/dr

Re: [PATCH] gpio: replace __maybe_unused in gpiolib.h with static inline

2017-08-01 Thread Linus Walleij
On Tue, Jul 11, 2017 at 4:41 PM, Masahiro Yamada wrote: > In header files, static inline is more commonly used. > > Signed-off-by: Masahiro Yamada Good point. Patch applied. Yours, Linus Walleij

[PATCH] f2fs: update cur_valid_map_mir together with cur_valid_map

2017-08-01 Thread Yunlong Song
When cur_valid_map passes the f2fs_test_and_set(,clear)_bit test, cur_valid_map_mir update is skipped unlikely, so fix it. Signed-off-by: Yunlong Song --- fs/f2fs/segment.c | 8 1 file changed, 8 insertions(+) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 151968e..6f7731a 10

Re: [PATCH 3/3] mm/sched: memdelay: memory health interface for systems and workloads

2017-08-01 Thread Peter Zijlstra
On Mon, Jul 31, 2017 at 02:41:42PM -0400, Johannes Weiner wrote: > On Mon, Jul 31, 2017 at 10:31:11AM +0200, Peter Zijlstra wrote: > > So could you start by describing what actual statistics we need? Because > > as is the scheduler already does a gazillion stats and why can't re > > repurpose some

Re: [PATCH] pinctrl: rza1: constify gpio_chip structure

2017-08-01 Thread Linus Walleij
On Tue, Jul 11, 2017 at 8:22 PM, Gustavo A. R. Silva wrote: > This structure is only used to copy into other structure, so declare > it as const. > > This issue was detected using Coccinelle and the following semantic patch: > > @r disable optional_qualifier@ > identifier i; > position p; > @@ >

Re: [PATCH] pinctrl: vt8500: wmt: constify gpio_chip structure

2017-08-01 Thread Linus Walleij
On Tue, Jul 11, 2017 at 8:28 PM, Gustavo A. R. Silva wrote: > This structure is only used to copy into other structure, so declare > it as const. > > This issue was detected using Coccinelle and the following semantic patch: > > @r disable optional_qualifier@ > identifier i; > position p; > @@ >

Re: [PATCH] dma-mapping: Reduce dma_mapping_error() inline bloat

2017-08-01 Thread Marek Szyprowski
Hi Robin, On 2017-07-24 19:29, Robin Murphy wrote: Thanks to the nested inlining, all drivers correctly calling dma_mapping_error() after a mapping a page or single buffer generate two calls to get_arch_dma_ops() per callsite, which all adds up to a fair old chunk of useless code, e.g. ~3KB for

Re: [PATCH] pinctrl: nomadik: abx500: constify gpio_chip structure

2017-08-01 Thread Linus Walleij
On Tue, Jul 11, 2017 at 11:29 PM, Gustavo A. R. Silva wrote: > This structure is only used to copy into another structure, so declare > it as const. > > This issue was detected using Coccinelle and the following semantic patch: > > @r disable optional_qualifier@ > identifier i; > position p; > @@

Re: [PATCH] pinctrl: coh901: constify gpio_chip structure

2017-08-01 Thread Linus Walleij
On Tue, Jul 11, 2017 at 11:35 PM, Gustavo A. R. Silva wrote: > This structure is only used to copy into another structure, so declare > it as const. > > This issue was detected using Coccinelle and the following semantic patch: > > @r disable optional_qualifier@ > identifier i; > position p; > @@

Re: [PATCH] pinctrl: qcom: ssbi-gpio: constify gpio_chip structure

2017-08-01 Thread Linus Walleij
On Tue, Jul 11, 2017 at 8:39 PM, Gustavo A. R. Silva wrote: > This structure is only used to copy into other structure, so declare > it as const. > > This issue was detected using Coccinelle and the following semantic patch: > > @r disable optional_qualifier@ > identifier i; > position p; > @@ >

[PATCH v2 4/4] clocksource/arm_arch_timer: Use static_branch_enable_cpuslocked()

2017-08-01 Thread Marc Zyngier
Use the new static_branch_enable_cpuslocked function to switch the workaround static key on the CPU hotplug path. Signed-off-by: Marc Zyngier --- drivers/clocksource/arm_arch_timer.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/arm_arch_timer.c b/

Re: [PATCH] pinctrl: qcom: msm: constify gpio_chip structure

2017-08-01 Thread Linus Walleij
On Tue, Jul 11, 2017 at 8:34 PM, Gustavo A. R. Silva wrote: > This structure is only used to copy into other structure, so declare > it as const. > > This issue was detected using Coccinelle and the following semantic patch: > > @r disable optional_qualifier@ > identifier i; > position p; > @@ >

[PATCH v2 0/4] Working around CPU hotplug and static keys locking

2017-08-01 Thread Marc Zyngier
Since f2545b2d4ce1 ("jump_label: Reorder hotplug lock and jump_label_lock"), it has become impossible to switch a static key from a CPU hotplug notifier: - On the primary CPU, cpu_hotplug_lock is taken by __cpuhp_setup_state(), and then again by static_key_slow_inc(). The lock being taken as a

Re: [RFT PATCH v2] gpiolib: allow gpio irqchip to map irqs dynamically

2017-08-01 Thread Jerome Brunet
On Tue, 2017-08-01 at 09:52 +0200, Linus Walleij wrote: > On Fri, Jul 21, 2017 at 6:49 PM, Grygorii Strashko > wrote: > > > Now IRQ mappings are always created for all (allowed) GPIOs in gpiochip in > > gpiochip_irqchip_add_key() which goes against the idea of SPARSE_IRQ and, > > as result, leads

[PATCH v2 3/4] jump_label: Provide hotplug context variants

2017-08-01 Thread Marc Zyngier
As using the normal static key API under the hotplug lock is pretty much impossible, let's provide a variant of some of them that require the hotplug lock to have already been taken. These function are only meant to be used in CPU hotplug callbacks. Signed-off-by: Marc Zyngier --- Documentation

[PATCH v2 1/4] jump_label: Move cpu hotplug locking

2017-08-01 Thread Marc Zyngier
As we're about to rework the locking, let's move the taking and release of the CPU hotplug lock to locations that will make its reworking completely obvious. Signed-off-by: Marc Zyngier --- kernel/jump_label.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/jump_

[PATCH v2 2/4] jump_label: Split out code under the hotplug lock

2017-08-01 Thread Marc Zyngier
In order to later introduce an "already locked" version of some of the static key funcions, let's split the code into the core stuff (the *_cpuslocked functions) and the usual helpers, which now take/release the hotplug lock and call into the _cpuslocked versions. Signed-off-by: Marc Zyngier ---

[PATCH v6 0/2] add UniPhier thermal support

2017-08-01 Thread Kunihiko Hayashi
This series adds support for CPU temperature monitor modules implemented on UniPhier LD20 and PXs2 SoCs. This driver supports temperature monitoring and alert function on the module. Changes since v5: - replace of_get_property() with of_property_get_u32_array() - get the cariblation value in DT af

Re: [PATCH 1/2] pinctrl: stm32: select IRQ_DOMAIN_HIERARCHY instead of depends on

2017-08-01 Thread Linus Walleij
On Wed, Jul 12, 2017 at 1:11 AM, Masahiro Yamada wrote: > Drivers that need IRQ_DOMAIN_HIERARCHY should "select" it, but > drivers/pinctrl/stm32/Kconfig is the only exception that uses > "depends on" syntax. This prevents GPIO drivers from select'ing > IRQ_DOMAIN_HIERARCHY. > > For example, if I

[PATCH v6 2/2] thermal: uniphier: add UniPhier thermal driver

2017-08-01 Thread Kunihiko Hayashi
Add a thermal driver for on-chip PVT (Process, Voltage and Temperature) monitoring unit implemented on UniPhier SoCs. This driver supports temperature monitoring and alert function. Signed-off-by: Kunihiko Hayashi --- drivers/thermal/Kconfig| 8 + drivers/thermal/Makefile

[PATCH v6 1/2] dt-bindings: thermal: add binding documentation for UniPhier thermal monitor

2017-08-01 Thread Kunihiko Hayashi
Add devicetree binding documentation for thermal monitor implemented on Socionext UniPhier SoCs. Signed-off-by: Kunihiko Hayashi Acked-by: Rob Herring --- .../bindings/thermal/uniphier-thermal.txt | 64 ++ 1 file changed, 64 insertions(+) create mode 100644 Docume

Re: [PATCH 2/2] gpio: xgene-sb: select IRQ_DOMAIN_HIERARCHY

2017-08-01 Thread Linus Walleij
On Wed, Jul 12, 2017 at 1:11 AM, Masahiro Yamada wrote: > This driver calls irq_domain_hierarchy() and irq_chip_*_parent(). > They are available only when CONFIG_IRQ_DOMAIN_HIERARCHY is enabled. > > Signed-off-by: Masahiro Yamada Patch applied for GPIO fixes on top of 1/2. Thanks for the thoro

Re: [PATCH v2] [BUGFIX] gpio: reject invalid gpio before getting gpio_desc

2017-08-01 Thread Linus Walleij
On Mon, Jul 31, 2017 at 3:57 AM, Masami Hiramatsu wrote: > Check user-given gpio number and reject it before > calling gpio_to_desc() because gpio_to_desc() is > for kernel driver and it expects given gpio number > is valid (means 0 to 511). > If given number is invalid, gpio_to_desc() calls > WA

Re: [PATCH 1/6] pinctrl: uniphier: remove unneeded EXPORT_SYMBOL_GPL()

2017-08-01 Thread Linus Walleij
On Mon, Jul 31, 2017 at 8:21 AM, Masahiro Yamada wrote: > All UniPhier pinctrl drivers are built-in. Exporting the symbol > is meaningless. > > Signed-off-by: Masahiro Yamada Patch applied. Yours, Linus Walleij

Re: [PATCH v1 01/15] perf, tools, stat: Fix buffer overflow while freeing events

2017-08-01 Thread Jiri Olsa
On Mon, Jul 24, 2017 at 04:40:01PM -0700, Andi Kleen wrote: SNIP > > The event is allocated with cpus == 1, but freed with cpus == real number > When the evsel close function walks the file descriptors it exceeds the > fd xyarray boundaries and reads random memory. > > Just make sure to always

Re: [linux-sunxi] [PATCH v3 03/12] ASoC: sun4i-i2s: Add regmap config to quirks

2017-08-01 Thread Chen-Yu Tsai
On Sat, Jul 29, 2017 at 10:17 PM, wrote: > From: Marcus Cooper > > The newer SoCs have a larger range than the original SoC that this > driver was developed for. By adding the regmap config to the quirks > then the driver can initialise the managed register map correctly. > > Signed-off-by: Marc

Re: [PATCH 2/6] pinctrl: uniphier: fix pin_config_get() for input-enable

2017-08-01 Thread Linus Walleij
On Mon, Jul 31, 2017 at 8:21 AM, Masahiro Yamada wrote: > For LD11/LD20 SoCs (capable of per-pin input enable), iectrl bits are > located across multiple registers. So, the register offset must be > taken into account. Otherwise, wrong input-enable status is displayed. > > While we here, rename

[PATCH v1.1] drm/rockchip: fix race with kms hotplug and fbdev

2017-08-01 Thread Mark Yao
According to the kerneldoc[0], should do fbdev setup before calling drm_kms_helper_poll_init(), otherwise, Kms hotplug event may race into fbdev helper initial, and fb_helper->dev may be NULL pointer, that would cause the bug: [0.735411] [0200] *pgd=f6ffe003, *pud=f6ffe003,

[PATCH 1/3] phy: rockchip-inno-usb2: add companion grf quirk

2017-08-01 Thread Frank Wang
The registers of usb-phy are distributed in grf and usbgrf on some Rockchip SoCs (e.g RV1108), this patch add a quirk to support this companion grf design. Signed-off-by: Frank Wang --- .../bindings/phy/phy-rockchip-inno-usb2.txt| 4 + drivers/phy/rockchip/phy-rockchip-inno-usb2.c

[PATCH 0/3] add some quirks for Rockchip usb2-phy and add rv1108 SoCs' support

2017-08-01 Thread Frank Wang
These series of patches add companion_grf_quirk and otg_mux_irq_quirk for rockchip usb2-phy. In addition, this change also add rv1108 usb2-phy support. Frank Wang (3): phy: rockchip-inno-usb2: add companion grf quirk phy: rockchip-inno-usb2: add otg mux irq quirk phy: rockchip-inno-usb2: add

[PATCH 3/3] phy: rockchip-inno-usb2: add support of usb2-phy for rv1108 SoCs

2017-08-01 Thread Frank Wang
This adds support usb2-phy for rv1108 SoCs and amend phy Documentation. Signed-off-by: Frank Wang --- .../bindings/phy/phy-rockchip-inno-usb2.txt| 1 + drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 43 ++ 2 files changed, 44 insertions(+) diff --git a/Documen

Re: [RFC PATCH v2] membarrier: expedited private command

2017-08-01 Thread Peter Zijlstra
On Tue, Aug 01, 2017 at 12:00:47PM +1000, Nicholas Piggin wrote: > Thanks for this, I'll take a look. This should be a good start as a stress > test, but I'd also be interested in some application. The reason being that > for example using runqueue locks may give reasonable maximum throughput > num

Re: [PATCH v3 0/5] ARM64: disable irq between breakpoint and step exception

2017-08-01 Thread AKASHI Takahiro
Hi Pratyush, On Mon, Jul 31, 2017 at 04:10:28PM +0530, Pratyush Anand wrote: > v2 -> v3 > - Moved step_needed from uapi structure to kernel only structure > - Re-enable interrupt if stepped instruction faults > - Modified register_wide_hw_breakpoint() to accept step_needed arg > v2 was here: http:

Re: [PATCH 3/6] pinctrl: uniphier: clean up GPIO port muxing

2017-08-01 Thread Linus Walleij
On Mon, Jul 31, 2017 at 8:21 AM, Masahiro Yamada wrote: > There are a bunch of GPIO muxing data, but most of them are actually > unneeded because GPIO-to-pin mapping can be specified by "gpio-ranges" > DT properties. > > Tables that contain a set of GPIO pins are still needed for the named > mapp

[PATCH 2/3] phy: rockchip-inno-usb2: add otg mux irq quirk

2017-08-01 Thread Frank Wang
The otg-id/otg-bvalid/linestate irqs are multiplexed to one irq in otg-port on some Rockchip SoC (e.g RV1108), this patch add a quirk to support this mux irq feature. Signed-off-by: Frank Wang --- .../bindings/phy/phy-rockchip-inno-usb2.txt| 5 ++ drivers/phy/rockchip/phy-rockchip-inno-

Re: [PATCH 4/6] pinctrl: uniphier: omit redundant input enable bit information

2017-08-01 Thread Linus Walleij
On Mon, Jul 31, 2017 at 8:21 AM, Masahiro Yamada wrote: > For LD11/20 SoCs (capable of per-pin input enable), the iectrl bit > number matches its pin number. So, this is redundant information. > Instead, we just need a flag to know if the iectrl gating exists or not. > > With this refactoring, 5

Re: [PATCH 5/6] pinctrl: uniphier: add suspend / resume support

2017-08-01 Thread Linus Walleij
On Mon, Jul 31, 2017 at 8:21 AM, Masahiro Yamada wrote: > Save registers lost in the sleep when suspending, and restore them > when resuming. > > Signed-off-by: Masahiro Yamada Patch applied. Yours, Linus Walleij

Re: [PATCH] timers: Fix overflow in get_next_timer_interrupt

2017-08-01 Thread Alexander Sverdlin
On 01/08/17 09:11, Matija Glavinic Pecotic wrote: > For e.g. HZ=100, timer being 430 jiffies in the future, and 32 bit > unsigned int, there is an overflow on unsigned int right-hand side > of the expression which results with wrong values being returned. > > Problem was observed on tickless core

Re: [PATCH v3 1/5] hw_breakpoint: Add step_needed event attribute

2017-08-01 Thread Peter Zijlstra
On Mon, Jul 31, 2017 at 04:10:29PM +0530, Pratyush Anand wrote: > diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h > index 24a635887f28..7da951f94b47 100644 > --- a/include/linux/perf_event.h > +++ b/include/linux/perf_event.h > @@ -233,6 +233,12 @@ struct hw_perf_event { >

Re: [PATCH 6/6] pinctrl: uniphier: add UniPhier PXs3 pinctrl driver

2017-08-01 Thread Linus Walleij
On Mon, Jul 31, 2017 at 8:21 AM, Masahiro Yamada wrote: > Add pin configuration and pinmux support for UniPhier PXs3 SoC. > > Signed-off-by: Masahiro Yamada Patch applied. Yours, Linus Walleij

Re: [linux-sunxi] [PATCH v3 04/12] ASoC: sun4i-i2s: Add TX FIFO offset to quirks

2017-08-01 Thread Chen-Yu Tsai
On Sat, Jul 29, 2017 at 10:17 PM, wrote: > From: Marcus Cooper > > It has been seen that the newer SoCs have a different TX FIFO > address. Add this to the quirks structure. > > Signed-off-by: Marcus Cooper Reviewed-by: Chen-Yu Tsai

Re: [PATCH 1/2 v2] backlight: gpio: Convert to use GPIO descriptor

2017-08-01 Thread Linus Walleij
On Tue, May 30, 2017 at 1:48 PM, Linus Walleij wrote: > This driver is predominantly used by device tree systems, all > of which can deal with modern GPIO descriptors. The legacy > GPIO API is only used by one SH board so make the GPIO > descriptor the default way to deal with it. > > As an inten

Re: [PATCH 4.12 00/84] 4.12.3-stable review

2017-08-01 Thread Jan Lübbe
On Sat, 2017-07-22 at 08:53 -0700, Kevin Hilman wrote: > > Boot Failures Detected: > > > > arm: > > > > multi_v7_defconfig > > imx6ul-pico-hobbit_rootfs:nfs: 1 failed lab > > > > tegra_defconfig > > tegra124-jetson-tk1_rootfs:nfs: 1 failed lab > > @Jan looks like a c

Re: [PATCH] x86/hpet: Cure interface abuse in the resume path

2017-08-01 Thread Tomi Sarvela
On 01/08/17 10:43, Thomas Gleixner wrote: On Tue, 1 Aug 2017, Tomi Sarvela wrote: On 31/07/17 23:07, Thomas Gleixner wrote: The HPET resume path abuses irq_domain_[de]activate_irq() to restore the MSI message in the HPET chip for the boot CPU on resume and it relies on an implementation detail

[PATCH] usb: xhci: fix call_kern.cocci warnings

2017-08-01 Thread Julia Lawall
GFP_KERNEL used when a lock is held. Convert to GFP_ATOMIC to avoid the possibility of deadlock. Fixes: 725d53536473 ("usb: xhci: Add DbC support in xHCI driver") Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- I don't have access to any more of the context than what is shown so I

Re: linux-next: build failure in the staging tree (Was: kisskb: FAILED linux-next/s390-allmodconfig/s390x Mon Jul 31, 17:24)

2017-08-01 Thread Laurentiu Tudor
On 07/31/2017 06:58 PM, Greg KH wrote: > On Mon, Jul 31, 2017 at 09:55:14AM +, Laurentiu Tudor wrote: >> Hi Stephen, >> >> That's because the fsl-mc driver selects GENERIC_MSI_IRQ_DOMAIN and not >> all arches implement the support for the option. I can submit a patch >> that adds explicit dep

Re: [RFC] KVM: optimize the kvm_vcpu_on_spin

2017-08-01 Thread Paolo Bonzini
On 01/08/2017 05:26, Longpeng (Mike) wrote: > > > On 2017/7/31 21:20, Paolo Bonzini wrote: > >> On 31/07/2017 14:27, David Hildenbrand wrote: I'm not sure whether the operation of get the vcpu's priority-level is expensive on all architectures, so I record it in kvm_sched_out() for >>>

Re: [PATCH v3 0/5] ARM64: disable irq between breakpoint and step exception

2017-08-01 Thread Pratyush Anand
Hi Takahiro, On Tuesday 01 August 2017 01:44 PM, AKASHI Takahiro wrote: Hi Pratyush, On Mon, Jul 31, 2017 at 04:10:28PM +0530, Pratyush Anand wrote: v2 -> v3 - Moved step_needed from uapi structure to kernel only structure - Re-enable interrupt if stepped instruction faults - Modified register

Re: [linux-sunxi] [PATCH v3 05/12] ASoC: sun4i-i2s: Add regmap fields for channels

2017-08-01 Thread Chen-Yu Tsai
On Sat, Jul 29, 2017 at 10:17 PM, wrote: > From: Marcus Cooper > > On the original i2s block the channel mapping and selection were > configured for stereo audio by default: This is not the case with > the newer SoCs and they are also located at different offsets. > > To support the newer SoC th

Re: [PATCH v2] [BUGFIX] gpio: reject invalid gpio before getting gpio_desc

2017-08-01 Thread Masami Hiramatsu
On Tue, 1 Aug 2017 10:09:09 +0200 Linus Walleij wrote: > On Mon, Jul 31, 2017 at 3:57 AM, Masami Hiramatsu wrote: > > > Check user-given gpio number and reject it before > > calling gpio_to_desc() because gpio_to_desc() is > > for kernel driver and it expects given gpio number > > is valid (mea

Re: [PATCH 1/2] gpio: gpio-mxc: Fix: higher 16 GPIOs usable as wake source

2017-08-01 Thread Linus Walleij
On Wed, Jul 12, 2017 at 10:36 AM, Philipp Rosenberger wrote: > In the function gpio_set_wake_irq(), port->irq_high is only checked for > zero. As platform_get_irq() returns a value less then zero if no interrupt > was found, any gpio >= 16 was handled like an irq_high interrupt was > available. O

Re: [PATCH] sched: fix NULL pointer issue in pick_next_entity()

2017-08-01 Thread Peter Zijlstra
On Tue, Aug 01, 2017 at 06:01:56PM +0800, Yafang Shao wrote: > When we select CFQ as the scheduler, in function pick_next_task_fair CFS, CFQ is a block IO scheduler. > it will pass NULL as the 2nd argument to pick_next_entity: > pick_next_entity(cfs_rq, NULL); > > And once __pick_first_entit

Re: [PATCH 2/2] gpio: gpio-mxc: gpio_set_wake_irq() use proper return values

2017-08-01 Thread Linus Walleij
On Wed, Jul 12, 2017 at 10:36 AM, Philipp Rosenberger wrote: > Errors from enable_irq_wake() in gpio_set_wake_irq() were silently ignored. > Thus led to the problem that gpio_set_wake_irq() always returned > successfully, even if enable_irq_wake() returned an error. > > Signed-off-by: Philipp Ros

[PATCH V5 0/2] timer: add imx tpm timer support

2017-08-01 Thread Dong Aisheng
The Timer/PWM Module (TPM) supports input capture, output compare, and the generation of PWM signals to control electric motor and power management applications. The counter, compare and capture registers are clocked by an asynchronous clock that can remain enabled in low power modes. TPM can suppo

[PATCH V5 1/2] dt-bindings: timer: add nxp tpm timer binding doc

2017-08-01 Thread Dong Aisheng
Adding NXP Low Power Timer/Pulse Width Modulation Module (TPM) binding doc. Cc: Mark Rutland Cc: devicet...@vger.kernel.org Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Shawn Guo Cc: Bai Ping Acked-by: Rob Herring Signed-off-by: Dong Aisheng --- ChangeLog: v1->v5: * No changes --- .../dev

[PATCH V5 2/2] clocksource/drivers/imx-tpm: add imx tpm timer support

2017-08-01 Thread Dong Aisheng
IMX Timer/PWM Module (TPM) supports both timer and pwm function while this patch only adds the timer support. PWM would be added later. The TPM counter, compare and capture registers are clocked by an asynchronous clock that can remain enabled in low power modes. NOTE: We observed in a very small

Re: [alsa-devel] [PATCH v2 2/2] drm/bridge: adv7511: restrict audio sample sizes

2017-08-01 Thread Arnaud Pouliquen
Hello Srinivas, On 08/01/2017 12:49 AM, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > ADV7533 only supports audio samples word width from 16-24 bits. > This patch restricts the audio sample sizes to the supported ones, > so that sound card does not report wrong list of su

Re: [PATCH 0/3] PINCTRL: Mediatek pinctrl driver for mt2712

2017-08-01 Thread Yingjoe Chen
On Mon, 2017-07-31 at 16:22 +0800, Zhiyong Tao wrote: > This series includes three patches: > 1.Add mt2712 compatible node in binding document. > 2.Add mt2712 pinctrl device node. > 3.Add mt2712 pinctrl driver. > > Zhiyong Tao (3): > dt-bindings: pinctrl: mt2712: add binding document > arm64:

Re: [linux-sunxi] [PATCH v3 06/12] ASoC: sun4i-i2s: Add changes for wss and sr

2017-08-01 Thread Chen-Yu Tsai
On Sat, Jul 29, 2017 at 10:17 PM, wrote: > From: Marcus Cooper > > On newer SoCs the location of the slot width select and sample > resolution are different and also there is a bigger range of > support. There is enough space to not use acronyms in the commit subject line. ASoC: sun4i-i2s:

Re: [PATCH v2 02/22] fpga: add FPGA device framework

2017-08-01 Thread Wu Hao
On Mon, Jul 31, 2017 at 04:40:16PM -0500, Alan Tull wrote: > On Thu, Jul 27, 2017 at 2:10 PM, Rob Herring wrote: > > On Thu, Jul 27, 2017 at 11:35 AM, Alan Tull wrote: > >> On Sun, Jun 25, 2017 at 8:51 PM, Wu Hao wrote: > >> > >> Hi Rob, > >> > >> I was hoping to pick your brain a bit on a DT qu

Re: [PATCH v5 2/2] arm64: dts: Add Mediatek SoC MT2712 and evaluation board dts and Makefile

2017-08-01 Thread Yingjoe Chen
On Fri, 2017-07-28 at 19:37 +0800, YT Shen wrote: > diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi > b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi > new file mode 100644 > index 000..1e135af > --- /dev/null > +++ b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi <...> > + timer { > +

Re: [PATCH 2/4] mailbox: pcc: Drop uninformative output during boot

2017-08-01 Thread Punit Agrawal
"Rafael J. Wysocki" writes: > On 7/31/2017 7:47 PM, Alexey Klimov wrote: >> (keeping Rafael in c/c per Jassi suggestion) >> >> On Thu, Jul 20, 2017 at 12:04 PM, Punit Agrawal >> wrote: >>> When booting on an ACPI enabled system that does not provide the >>> Platform Communications Channel Table

Re: [PATCH 1/3] mm:hugetlb: Define system call hugetlb size encodings in single file

2017-08-01 Thread Michal Hocko
On Mon 31-07-17 11:56:24, Mike Kravetz wrote: > If hugetlb pages are requested in mmap or shmget system calls, a huge > page size other than default can be requested. This is accomplished by > encoding the log2 of the huge page size in the upper bits of the flag > argument. asm-generic and arch

Re: [PATCH] sched: fix NULL pointer issue in pick_next_entity()

2017-08-01 Thread Yafang Shao
Hi Peter, Thanks for your response! > CFS, CFQ is a block IO scheduler. Sorry for the mistake. It should be CFS. > And how would that happen? We only call pick_next_entity(.curr=NULL) > when we _know_ cfs_rq->nr_running. It crashed my machine when I did hadoop test, and after I made this chang

Re: [PATCH 2/3] mm: arch: Consolidate mmap hugetlb size encodings

2017-08-01 Thread Michal Hocko
On Mon 31-07-17 11:56:25, Mike Kravetz wrote: > A non-default huge page size can be encoded in the flags argument > of the mmap system call. The definitions for these encodings are > in arch specific header files. However, all architectures use the > same values. > > Consolidate all the definiti

Re: [PATCH 3/3] mm:shm: Use new hugetlb size encoding definitions

2017-08-01 Thread Michal Hocko
On Mon 31-07-17 11:56:26, Mike Kravetz wrote: > Use the common definitions from hugetlb_encode.h header file for > encoding hugetlb size definitions in shmget system call flags. > > In addition, move these definitions from the internal (kernel) to > user (uapi) header file. > > Suggested-by: Matt

Re: [RFC][PATCH v3]: documentation,atomic: Add new documents

2017-08-01 Thread Peter Zijlstra
On Mon, Jul 31, 2017 at 10:43:45AM -0700, Paul E. McKenney wrote: > Why wouldn't the following have ACQUIRE semantics? > > atomic_inc(&var); > smp_mb__after_atomic(); > > Is the issue that there is no actual value returned or some such? Yes, so that the inc is a load-store, and thus

[PATCH] sysfs: replace WARN() with pr_debug in sysfs_remove_group()

2017-08-01 Thread Ethan Zhao
There is no enough error handling in block device adding/registration path, for example, device_add_disk() blk_register_queue() When kernel returns from device_add_disk(), no return value to tell us it was successful or not --- that suggests it would always succeed, and according to this assump

Re: [PATCH] mm: remove optimizations based on i_size in mapping writeback waits

2017-08-01 Thread Jan Kara
On Mon 31-07-17 11:29:46, Jeff Layton wrote: > From: Jeff Layton > > Marcelo added this i_size based optimization with a patch in 2004 > (commit 765dad09b4ac in the linux-history tree): > > commit 765dad09b4ac101a32d87af2bb793c3060497d3c > Author: Marcelo Tosatti > Date: Tue Sep 7

[PATCH 2/2] staging:rtl8188eu:core Fix Avoid CamelCase

2017-08-01 Thread janani-sankarababu
This patch is created to solve CamelCase issue. The members 'IEs' and 'IELength' of struct wlan_bssid_ex are modified to 'ies' and 'ielength' to solve CamelCase. And all the places where these variables are referenced inside rtl8188eu driver are also changed. --- drivers/staging/rtl8188eu/core/rtw

  1   2   3   4   5   6   7   8   9   10   >