[PATCH] spi: sun6i: disable/unprepare clocks on remove

2017-12-07 Thread Tobias Jordan
sun6i_spi_probe() uses sun6i_spi_runtime_resume() to prepare/enable clocks, so sun6i_spi_remove() should use sun6i_spi_runtime_suspend() to disable/unprepare them if we're not suspended. Replacing pm_runtime_disable() by pm_runtime_force_suspend() will ensure that sun6i_spi_runtime_suspend() is cal

[PATCH 4.9 034/109] dax: Avoid page invalidation races and unnecessary radix tree traversals

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara [ Upstream commit e3fce68cdbed297d927e993b3ea7b8b1cee545da ] Currently dax_iomap_rw() takes care of invalidating page tables and evicting hole pages from the radix tree when write(2)

[PATCH 4.9 031/109] kprobes/x86: Disable preemption in ftrace-based jprobes

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Masami Hiramatsu [ Upstream commit 5bb4fc2d8641219732eb2bb654206775a4219aca ] Disable preemption in ftrace-based jprobe handlers as described in Documentation/kprobes.txt: "Probe handlers a

Re: [PATCH v4 2/2] dt-bindings: add eeprom "at24,no-read-rollover" property

2017-12-07 Thread Sven Van Asbroeck
> at24 is not a vendor prefix. Either this is atmel specific and you want > atmel,no-read-rollover or it is for all vendors at24 compatible eeproms > and you want at24-no-read-rollover. Or just drop the at24 if this > binding is in fact for just at24 eeproms as none of the other properties > has at

[PATCH 4.9 028/109] sysrq : fix Show Regs call trace on ARM

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jibin Xu [ Upstream commit b00bebbc301c8e1f74f230dc82282e56b7e7a6db ] When kernel configuration SMP,PREEMPT and DEBUG_PREEMPT are enabled, echo 1 >/proc/sys/kernel/sysrq echo p >/proc/sysrq-tr

[PATCH 4.9 036/109] l2tp: take remote address into account in l2tp_ip and l2tp_ip6 socket lookups

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault [ Upstream commit a9b2dff80be979432484afaf7f8d8e73f9e8838a ] For connected sockets, __l2tp_ip{,6}_bind_lookup() needs to check the remote IP when looking for a matching socket.

[PATCH 4.9 037/109] dmaengine: stm32-dma: Set correct args number for DMA request from DT

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: M'boumba Cedric Madianga [ Upstream commit 7e96304d99477de1f70db42035071e56439da817 ] This patch sets the right number of arguments to be used for DMA clients which request channels from DT.

[PATCH 4.9 013/109] s390/pci: do not require AIS facility

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Christian Borntraeger [ Upstream commit 48070c73058be6de9c0d754d441ed7092dfc8f12 ] As of today QEMU does not provide the AIS facility to its guest. This prevents Linux guests from using PCI d

[PATCH 4.9 021/109] mmc: sdhci-msm: fix issue with power irq

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Subhash Jadavani [ Upstream commit c7ccee224d2d551f712752c4a16947f6529d6506 ] SDCC controller reset (SW_RST) during probe may trigger power irq if previous status of PWRCTL was either BUS_ON o

[PATCH 4.9 020/109] spi: spi-axi: fix potential use-after-free after deregistration

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold [ Upstream commit 4d5e0689dc9d5640ad46cdfbe1896b74d8df1661 ] Take an extra reference to the controller before deregistering it to prevent use-after-free in the interrupt handler i

[PATCH 4.9 018/109] staging: rtl8188eu: avoid a null dereference on pmlmepriv

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Colin Ian King [ Upstream commit 123c0aab0050cd0e07ce18e453389fbbb0a5a425 ] There is a check on pmlmepriv before dereferencing it when vfree'ing pmlmepriv->free_bss_buf however the previous ca

[PATCH 4.9 015/109] staging: greybus: loopback: Fix iteration count on async path

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bryan O'Donoghue [ Upstream commit 44b02da39210e6dd67e39ff1f48d30c56d384240 ] Commit 12927835d211 ("greybus: loopback: Add asynchronous bi-directional support") does what it says on the tin -

[PATCH 4.9 024/109] usb: phy: tahvo: fix error handling in tahvo_usb_probe()

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Alexey Khoroshilov [ Upstream commit ce035409bfa892a2fabb89720b542e1b335c3426 ] If devm_extcon_dev_allocate() fails, we should disable clk before return. Found by Linux Driver Verification pr

[PATCH 4.9 014/109] selftests/x86/ldt_get: Add a few additional tests for limits

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski [ Upstream commit fec8f5ae1715a01c72ad52cb2ecd8aacaf142302 ] We weren't testing the .limit and .limit_in_pages fields very well. Add more tests. This addition seems to trigger

[PATCH 4.9 006/109] mm, oom_reaper: gather each vma to prevent leaking TLB entry

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Wang Nan commit 687cb0884a714ff484d038e9190edc874edcf146 upstream. tlb_gather_mmu(&tlb, mm, 0, -1) means gathering the whole virtual memory space. In this case, tlb->fullmm is true. Some arch

[PATCH v5 net-next] net/tcp: trace all TCP/IP state transition with tcp_set_state tracepoint

2017-12-07 Thread Yafang Shao
The TCP/IP transition from TCP_LISTEN to TCP_SYN_RECV and some other transitions are not traced with tcp_set_state tracepoint. In order to trace the whole tcp lifespans, two helpers are introduced, void sk_set_state(struct sock *sk, int state); void sk_state_store(struct sock *sk, int newstate);

[PATCH 4.9 007/109] uas: Always apply US_FL_NO_ATA_1X quirk to Seagate devices

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede commit 7fee72d5e8f1e7b8d8212e28291b1a0243ecf2f1 upstream. We've been adding this as a quirk on a per device basis hoping that newer disk enclosures would do better, but that has n

[PATCH][next] ASoC: pcm186x: make pcm186x_dai_ops and pcm186x_adc_input_channel_sel_value static

2017-12-07 Thread Colin King
From: Colin Ian King pcm186x_dai_ops and pcm186x_adc_input_channel_sel_value are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'pcm186x_dai_ops' was not declared. Should it be static? symbol 'pcm186x_adc_input_channel_sel_value'

Re: [RFC PATCH] mm: unclutter THP migration

2017-12-07 Thread Zi Yan
Hi Michal, Thanks for sending this out. Michal Hocko wrote: > From: Michal Hocko > > THP migration is hacked into the generic migration with rather > surprising semantic. The migration allocation callback is supposed to > check whether the THP can be migrated at once and if that is not the > ca

[PATCH 4.9 012/109] ima: fix hash algorithm initialization

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Boshi Wang [ Upstream commit ebe7c0a7be92bbd34c6ff5b55810546a0ee05bee ] The hash_setup function always sets the hash_setup_done flag, even when the hash algorithm is invalid. This prevents th

[PATCH 4.9 002/109] bcache: recover data from backing when data is clean

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Rui Hua commit e393aa2446150536929140739f09c6ecbcbea7f0 upstream. When we send a read request and hit the clean data in cache device, there is a situation called cache read race in bcache(see t

[PATCH 4.9 011/109] USB: serial: option: add Quectel BG96 id

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Sjoholm commit c654b21ede93845863597de9ad774fd30db5f2ab upstream. Quectel BG96 is an Qualcomm MDM9206 based IoT modem, supporting both CAT-M and NB-IoT. Tested hardware is BG96 mounte

[PATCH 4.9 010/109] s390/runtime instrumentation: simplify task exit handling

2017-12-07 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Heiko Carstens commit 8d9047f8b967ce6181fd824ae922978e1b055cc0 upstream. Free data structures required for runtime instrumentation from arch_release_task_struct(). This allows to simplify the c

[PATCH] drm/i915: add FTRACE dependency for DRM_I915_TRACE_GEM

2017-12-07 Thread Arnd Bergmann
The new trace option gratuitously added a 'select TRACING' statement, which now causes build failures in other code that assumed tracepoints were only available with FTRACE: ERROR: "__tracepoint_ucsi_command" [drivers/usb/typec/ucsi/typec_ucsi.ko] undefined! ERROR: "__tracepoint_ucsi_register_por

Re: [PATCH v3 2/6] cpufreq: schedutil: ensure max frequency while running RT/DL tasks

2017-12-07 Thread Patrick Bellasi
On 07-Dec 10:35, Viresh Kumar wrote: > On 30-11-17, 11:47, Patrick Bellasi wrote: > > diff --git a/kernel/sched/cpufreq_schedutil.c > > b/kernel/sched/cpufreq_schedutil.c > > index 67339ccb5595..448f49de5335 100644 > > --- a/kernel/sched/cpufreq_schedutil.c > > +++ b/kernel/sched/cpufreq_schedutil

[PATCH] clk: qcom: gcc-msm8996: always enable aggre0_noc gdsc

2017-12-07 Thread srinivas . kandagatla
From: Srinivas Kandagatla bus clks which depend on this gdsc are marked as critical, so this patch flags this gdsc ALWAYS_ON so that bus clks status does not get stuck at on or off. Signed-off-by: Srinivas Kandagatla --- drivers/clk/qcom/gcc-msm8996.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v3 3/6] cpufreq: schedutil: update CFS util only if used

2017-12-07 Thread Patrick Bellasi
On 07-Dec 10:45, Viresh Kumar wrote: > On 30-11-17, 15:57, Patrick Bellasi wrote: > > Yes, that's a pretty trivial update with a confusing changelog. > > > > If we think it's worth to keep (and correct as well) I'll update the > > commit message. > > We also need to update the commit log based on

Re: [PATCH 0/1] About MIPS/Loongson maintainance

2017-12-07 Thread James Hogan
On Thu, Dec 07, 2017 at 09:10:10PM +0800, Jiaxun Yang wrote: > On 2017-12-07 Thu 11:05 +,James Hogan Wrote: > > On Thu, Dec 07, 2017 at 07:57:59AM +0100, Greg Kroah-Hartman wrote: > > > On Thu, Dec 07, 2017 at 02:31:07PM +0800, Huacai Chen wrote: > > > > Hi, Linus, Stephen, Greg, Ralf and James

Re: [PATCH v3] leds: trigger: Introduce a NETDEV trigger

2017-12-07 Thread Ben Whitten
Philippe, On 7 December 2017 at 13:01, Philippe Ombredanne wrote: > Ben, > > On Thu, Dec 7, 2017 at 12:46 PM, Ben Whitten wrote: >> From: Ben Whitten >> >> This commit introduces a NETDEV trigger for named device >> activity. Available triggers are link, rx, and tx. >> >> Signed-off-by: Ben Whi

Re: [PATCH v4 2/2] dt-bindings: add eeprom "at24,no-read-rollover" property

2017-12-07 Thread Bartosz Golaszewski
2017-12-07 15:06 GMT+01:00 Sven Van Asbroeck : >> at24 is not a vendor prefix. Either this is atmel specific and you want >> atmel,no-read-rollover or it is for all vendors at24 compatible eeproms >> and you want at24-no-read-rollover. Or just drop the at24 if this >> binding is in fact for just at

Re: ath10k: use 64-bit crash dump timestamps

2017-12-07 Thread Kalle Valo
Arnd Bergmann wrote: > The dump format uses 64-bit timestamps already, but calling > getnstimeofday() only returns a 32-bit number on 32-bit architectures, > so that will overflow in y2038. > > This changes it to use ktime_get_real_ts64() instead. > > Signed-off-by: Arnd Bergmann > Signed-off-

Re: PI futexes + lock stealing woes

2017-12-07 Thread Peter Zijlstra
On Thu, Dec 07, 2017 at 11:45:16AM +0100, Peter Zijlstra wrote: > diff --git a/kernel/futex.c b/kernel/futex.c > index 76ed5921117a..8ad5221fbd84 100644 > --- a/kernel/futex.c > +++ b/kernel/futex.c > @@ -2303,14 +2303,35 @@ static void unqueue_me_pi(struct futex_q *q) > static int fixup_pi_state_

[PATCH net-next v2 8/8] net: phy: meson-gxl: join the authors

2017-12-07 Thread Jerome Brunet
Following previous changes, join the other authors of this driver and take the blame with them Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index 861b021b9758..4cd5b2622a

Re: [RFC v3 PATCH 0/2] Introduce Security Version to EFI Stub

2017-12-07 Thread Alan Cox
On Tue, 5 Dec 2017 18:01:46 +0800 Gary Lin wrote: > The series of patches introduce Security Version to EFI stub. > > Security Version is a monotonically increasing number and designed to > prevent the user from loading an insecure kernel accidentally. The > bootloader maintains a list of secur

[PATCH net-next v2 2/8] net: phy: meson-gxl: define control registers

2017-12-07 Thread Jerome Brunet
Define registers and bits in meson-gxl PHY driver to make a bit more human friendly. No functional change. Signed-off-by: Neil Armstrong Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 64 - 1 file changed, 51 insertions(+), 13 deletion

[PATCH net-next v2 7/8] net: phy: meson-gxl: add interrupt support

2017-12-07 Thread Jerome Brunet
Enable interrupt support in meson-gxl PHY driver Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index 5325940fe899..86

[PATCH net-next v2 6/8] net: phy: meson-gxl: leave CONFIG_A6 untouched

2017-12-07 Thread Jerome Brunet
The PHY performs just as well when left in its default configuration and it makes senses because this poke gets reset just after init. According to the documentation, all registers in the Analog/DSP bank are reset when there is a mode switch from 10BT to 100BT. In the end, we have used the defaul

Re: [PATCH v4 6/8] staging: octeon: Remove USE_ASYNC_IOBDMA macro.

2017-12-07 Thread Greg Kroah-Hartman
On Tue, Nov 28, 2017 at 04:55:38PM -0800, David Daney wrote: > Previous patch sets USE_ASYNC_IOBDMA to 1 unconditionally. Remove > USE_ASYNC_IOBDMA from all if statements. Remove dead code caused by > the change. > > Signed-off-by: David Daney Acked-by: Greg Kroah-Hartman

[PATCH net-next v2 1/8] net: phy: meson-gxl: check phy_write return value

2017-12-07 Thread Jerome Brunet
Always check phy_write return values. Better to be safe than sorry Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 50 ++--- 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-

[PATCH net-next v2 3/8] net: phy: meson-gxl: add read and write helpers for bank registers

2017-12-07 Thread Jerome Brunet
Add read and write helpers to manipulate banked registers on this PHY This helps clarify the settings applied to these registers in the init function and upcoming changes. Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 103 1 file chan

[PATCH net-next v2 5/8] net: phy: meson-gxl: detect LPA corruption

2017-12-07 Thread Jerome Brunet
The purpose of this change is to fix the incorrect detection of the link partner (LP) advertised capabilities which sometimes happens with this PHY (roughly 1 time in a dozen) This issue may cause the link to be negotiated at 10Mbps/Full or 10Mbps/Half when 100MBps/Full is actually possible. In so

[PATCH net-next v2 4/8] net: phy: meson-gxl: use genphy_config_init

2017-12-07 Thread Jerome Brunet
Use the generic init function to populate some of the phydev structure fields Signed-off-by: Jerome Brunet --- drivers/net/phy/meson-gxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index 05054770aefb..2e8c40df33c

Re: [PATCH 2/2] i2c: fix piix4 aux port number

2017-12-07 Thread Jean Delvare
Hi Andrew, On Thu, 23 Nov 2017 13:09:38 +1000, Andrew Cooks wrote: > Let the aux port use port number one (not zero), to match the AMD > documentation and enable mapping ACPI _ADR to port number. > > This fixes ACPI-based enumeration of I2C slave peripherals that are > defined for the aux SMBus p

Re: [PATCH 1/3] ath9k: remove stray backslash in Makefile

2017-12-07 Thread Kalle Valo
Jakub Kicinski writes: > On Mon, 27 Nov 2017 18:56:21 +0100, Matthias Schiffer wrote: >> Signed-off-by: Matthias Schiffer >> --- >> drivers/net/wireless/ath/ath9k/Makefile | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/net/wireless/ath/ath9k/Makefile >> b/

Re: [PATCH v6 3/3] drm/rockchip: Add ROCKCHIP DW MIPI DSI controller driver

2017-12-07 Thread Philippe CORNU
Hi Brian, On 12/06/2017 10:52 PM, Brian Norris wrote: > Hi Nickey, others, > > I just want to highlight a thing or two here. Otherwise, my > 'Reviewed-by' still basically stands (FWIW). > > On Wed, Dec 06, 2017 at 05:08:21PM +0800, Nickey Yang wrote: >> Add the ROCKCHIP DSI controller driver th

[PATCH net-next v2 0/8] phy: net: meson-gxl: clean-up and improvements

2017-12-07 Thread Jerome Brunet
The patchset is a v2 of the previous single clean-up patch [0] which was part of larger series. I initially to send these patches separately but adding helper function without using them did not make much sense after all. So, here is the complete patchset. This patchset add defines for the control

Re: [RFC PATCH 1/6] drm: Add Content Protection property

2017-12-07 Thread Alan Cox
> If you want to actually lock down a machine to implement content > protection, then you need secure boot without unlockable boot-loader and a > pile more bits in userspace. So let me take my Intel hat off for a moment. The upstream policy has always been that we don't merge things which don't

Re: [RFC PATCH 1/6] drm: Add Content Protection property

2017-12-07 Thread Alan Cox
> How about for sensitive video streams in government offices where you > want to avoid a spy potentially tapping the cable to see the video > stream? Last time I checked HDCP did not meet government security requirements - which is hardly surprising since you can buy $10 boxes from China to de-hd

Re: [2/3] ath9k: move spectral scan support under a separate config symbol

2017-12-07 Thread Kalle Valo
Matthias Schiffer wrote: > At the moment, spectral scan support, and with it RELAY, is always enabled > with ATH9K[_HTC]_DEBUGFS. Spectral scan support is currently the only user > of RELAY in ath9k, and it unconditionally reserves a relay channel. > > Having debugfs support in ath9k is often us

Re: [PATCH RESEND] arm64: fault: avoid send SIGBUS two times

2017-12-07 Thread James Morse
Hi gengdongjiu, Will, On 07/12/17 05:55, gengdongjiu wrote: > On 2017/12/7 0:15, Will Deacon wrote: >>> --- a/arch/arm64/mm/fault.c >>> +++ b/arch/arm64/mm/fault.c >>> @@ -570,7 +570,6 @@ static int do_sea(unsigned long addr, unsigned int esr, >>> struct pt_regs *regs) >>> { >>> struct sigin

Re: [RFC PATCH] mm: unclutter THP migration

2017-12-07 Thread Michal Hocko
On Thu 07-12-17 22:10:47, Zi Yan wrote: > Hi Michal, > > Thanks for sending this out. > > Michal Hocko wrote: > > From: Michal Hocko > > > > THP migration is hacked into the generic migration with rather > > surprising semantic. The migration allocation callback is supposed to > > check whether

Re: [PATCH] mm: terminate shrink_slab loop if signal is pending

2017-12-07 Thread Tetsuo Handa
On 2017/12/07 17:34, Michal Hocko wrote: > On Wed 06-12-17 11:20:26, Suren Baghdasaryan wrote: >> Slab shrinkers can be quite time consuming and when signal >> is pending they can delay handling of the signal. If fatal >> signal is pending there is no point in shrinking that process >> since it wil

Re: [PATCH] integrity: get rid of unneeded initializations in integrity_iint_cache entries

2017-12-07 Thread Mimi Zohar
On Thu, 2017-12-07 at 07:01 -0500, Jeff Layton wrote: > On Thu, 2017-07-06 at 15:43 -0400, Mimi Zohar wrote: > > On Thu, 2017-07-06 at 10:04 -0500, Serge E. Hallyn wrote: > > > Quoting Jeff Layton (jlay...@kernel.org): > > > > From: Jeff Layton > > > > > > > > The init_once routine memsets the wh

[PATCH v5 0/2] at24: support eeproms that do not auto-rollover reads.

2017-12-07 Thread Sven Van Asbroeck
v5: at Rob Herring's request, renamed devicetree property: at24,no-read-rollover -> no-read-rollover v4: renamed devicetree property: no-read-rollover -> at24,no-read-rollover dt-bindings update now a separate patch v3: rebased again

[PATCH v5 2/2] dt-bindings: add eeprom "no-read-rollover" property

2017-12-07 Thread Sven Van Asbroeck
Adds an optional property for at24 eeproms. This parameterless property indicates that the multi-address eeprom does not automatically roll over reads to the next slave address. Signed-off-by: Sven Van Asbroeck --- Documentation/devicetree/bindings/eeprom/eeprom.txt | 5 + 1 file changed, 5

[PATCH v5 1/2] at24: support eeproms that do not auto-rollover reads.

2017-12-07 Thread Sven Van Asbroeck
Some multi-address eeproms in the at24 family may not automatically roll-over reads to the next slave address. On those eeproms, reads that straddle slave boundaries will not work correctly. Solution: Mark such eeproms with a flag that prevents reads straddling slave boundaries. Add the AT24_FLAG_

Re: [PATCH 1/2] i2c: add ACPI support for i2c-piix4

2017-12-07 Thread Jean Delvare
Hi Andrew, On Thu, 23 Nov 2017 13:09:37 +1000, Andrew Cooks wrote: > This enables the i2c-piix4 SMBus controller driver to enumerate I2C > slave devices using ACPI. It builds on the related I2C mux device work > in commit 8eb5c87a92c0 ("i2c: add ACPI support for I2C mux ports") > > Signed-off-by:

Re: [PATCH 1/6] staging: pi433: Split rf69_set_crc_enabled into two functions

2017-12-07 Thread Greg KH
On Wed, Dec 06, 2017 at 09:42:19PM +0100, Simon Sandström wrote: > Splits rf69_set_crc_enabled(dev, enabled) into > rf69_enable_crc(dev) and rf69_disable_crc(dev). > > Signed-off-by: Simon Sandström > --- > drivers/staging/pi433/pi433_if.c | 22 -- > drivers/staging/pi433/rf6

[PATCH net-next v4 1/4] phylib: Add device reset delay support

2017-12-07 Thread Richard Leitner
From: Richard Leitner Some PHYs need a minimum time after the reset gpio was asserted and/or deasserted. To ensure we meet these timing requirements add two new optional devicetree parameters for the phy: reset-delay-us and reset-post-delay-us. Signed-off-by: Richard Leitner Reviewed-by: Geert

Re: [PATCH] watchdog: core: make sure the watchdog_worker always works

2017-12-07 Thread Guenter Roeck
On 12/07/2017 02:38 AM, Christophe Leroy wrote: When running a command like 'chrt -f 99 dd if=/dev/zero of=/dev/null', the watchdog_worker fails to service the HW watchdog and the HW watchdog fires long before the watchdog soft timeout. At the moment, the watchdog_worker is invoked as a delayed

Re: [PATCH v3] serial: 8250: convert to threaded IRQ

2017-12-07 Thread Alan Cox
On Mon, 4 Dec 2017 17:26:27 +0200 Denys Zagorui wrote: > During using virtualization it is common to see > many "too much work for irq*" messages. Your emulator is buggy. NAK You are adding a ton of overhead to an absolutely performance critical path on real hardware. We absolutely cannot hav

Re: [PATCH v2] ARM: omap2: hide omap3_save_secure_ram on non-OMAP3 builds

2017-12-07 Thread Arnd Bergmann
On Wed, Dec 6, 2017 at 11:04 PM, Tony Lindgren wrote: > * Arnd Bergmann [171206 21:52]: >> In configurations without CONFIG_OMAP3 but with secure RAM support, >> we now run into a link failure: >> >> arch/arm/mach-omap2/omap-secure.o: In function `omap3_save_secure_ram': >> omap-secure.c:(.text+0

Re: [PATCH V6 4/7] OF: properties: Implement get_match_data() callback

2017-12-07 Thread Sinan Kaya
On 12/7/2017 8:10 AM, Lothar Waßmann wrote: >> +void *of_fwnode_get_match_data(const struct fwnode_handle *fwnode, >> + struct device *dev) > Shouldn't this be 'const void *of_fwnode_get_match_data OF keeps the driver data as a (const void*) internally. ACPI keeps the dri

Re: [PATCH v1 0/2] PCI/ASPM: Refine L1 PM Substates support

2017-12-07 Thread Bjorn Helgaas
On Wed, Dec 06, 2017 at 01:55:37AM +, Chen, Kenji wrote: > https://pcisig.com/sites/default/files/specification_documents/ECN_L1_PM_Substates_with_CLKREQ_31_May_2013_Rev10a.pdf With all due respect, this doesn't seem to add any new information. For example, the L1 PM Substates Control 1 regist

[PATCH net-next v4 2/4] phylib: add reset after clk enable support

2017-12-07 Thread Richard Leitner
From: Richard Leitner Some PHYs need the refclk to be a continuous clock. Therefore they don't allow turning it off and on again during operation. Nonetheless such a clock switching is performed by some ETH drivers (namely FEC [1]) for power saving reasons. An example for an affected PHY is the S

[PATCH net-next v4 4/4] net: fec: add phy_reset_after_clk_enable() support

2017-12-07 Thread Richard Leitner
From: Richard Leitner Some PHYs (for example the SMSC LAN8710/LAN8720) doesn't allow turning the refclk on and off again during operation (according to their datasheet). Nonetheless exactly this behaviour was introduced for power saving reasons by commit e8fcfcd5684a ("net: fec: optimize the cloc

[PATCH net-next v4 0/4] net: fec: fix refclk enable for SMSC LAN8710/20

2017-12-07 Thread Richard Leitner
From: Richard Leitner This patch series fixes the use of the SMSC LAN8710/20 with a Freescale ETH when the refclk is generated by the FSL. This patchset depends on the "phylib: Add device reset GPIO support" patch submitted by Geert Uytterhoeven/Sergei Shtylyov, which was merged to net-next as c

[PATCH net-next v4 3/4] net: phy: smsc: LAN8710/20: add PHY_RST_AFTER_CLK_EN flag

2017-12-07 Thread Richard Leitner
From: Richard Leitner The Microchip/SMSC LAN8710/LAN8720 PHYs need (according to their datasheet [1]) a continuous REF_CLK when configured to "REF_CLK In Mode". Therefore set the PHY_RST_AFTER_CLK_EN flag for those PHYs to let the ETH driver reset them after the REF_CLK is enabled. [1] http://ww

[PATCH v2 2/2] uio: Introduce UIO driver dt-binding documentation

2017-12-07 Thread Andrey Zhizhikin
Create Documentation portion of UIO driver with Generic Interrupt Handler. This patch creates a dt-binding documentation portion of the UIO Driver. In addition to definition of standard required properties, new optional property defined: - no-threaded-irq: when present, request_irq() is called wi

[PATCH v2 0/2] uio: Allow to take irq bottom-half into irq_handler with additional dt-binding

2017-12-07 Thread Andrey Zhizhikin
This patch series aimed to introduce additional feature for UIO driver with generic interrupt handler to allow IRQ bottom half to be executed in irq_handler context rather than as threaded IRQ. Andrey Zhizhikin (2): uio: Allow to take irq bottom-half into irq_handler with additional dt-bindi

[PATCH v2 1/2] uio: Allow to take irq bottom-half into irq_handler with additional dt-binding

2017-12-07 Thread Andrey Zhizhikin
Certain Kernel preemption models are using threaded interrupt handlers, which is in general quite beneficial. However, threaded handlers introducing additional scheduler overhead, when the bottom-half thread should be woken up and scheduled for execution. This can result is additional latency, whic

Re: [PATCH] kconfig: Warn if choice default is not in choice

2017-12-07 Thread Masahiro Yamada
2017-10-04 8:25 GMT+09:00 Ulf Magnusson : > This will catch mistakes like in the following real-world example, where > a "CONFIG_" prefix snuck in, making an undefined symbol the default: > > choice > prompt "Compiler optimization level" > default CONFIG_CC_O

Re: [PATCH] ACPI / GED: unregister interrupts during shutdown

2017-12-07 Thread Sinan Kaya
Rafael, On 12/7/2017 8:00 AM, Rafael J. Wysocki wrote: >> Just don't use devm_request_threaded_irq()? :) >> >> Seriously, those are just "helper" functions if your code happens to >> follow the pattern they provide, if not, then don't use them, it's not >> that hard to provide the correct code to

Re: [PATCH net-next v4 1/4] phylib: Add device reset delay support

2017-12-07 Thread Geert Uytterhoeven
Hi Richard, On Thu, Dec 7, 2017 at 3:43 PM, Richard Leitner wrote: > --- a/drivers/net/phy/mdio_device.c > +++ b/drivers/net/phy/mdio_device.c > @@ -24,6 +24,7 @@ > #include > #include > #include > +#include > > void mdio_device_free(struct mdio_device *mdiodev) > { > @@ -118,8 +119,16 @

Re: [PATCH v1 1/6] ARM: davinci: clean up map_io functions

2017-12-07 Thread Sekhar Nori
On Saturday 02 December 2017 08:04 AM, David Lechner wrote: > This cleans up the map_io functions in the board init files for > mach-davinci. > > Most of the boards had a wrapper function around _init(). This > wrapper is removed and the function is used directly. Additionally, the > _init() funct

Re: [PATCH] media: s5p-jpeg: Fix off-by-one problem

2017-12-07 Thread Andrzej Pietrasiewicz
W dniu 06.12.2017 o 17:37, Flavio Ceolin pisze: s5p_jpeg_runtime_resume() does not call clk_disable_unprepare() for jpeg->clocks[0] when one of the clk_prepare_enable() fails. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Flavio Ceolin Acked-by: Andrzej Pietra

Re: [PATCH] kconfig: Document the 'menu' struct

2017-12-07 Thread Masahiro Yamada
2017-10-04 12:37 GMT+09:00 Ulf Magnusson : > Understanding what it represents helps a lot when reading the code, and > it's not obvious, so document it. > > The ROOT_MENU flag is only set and tested by the gconf and qconf front > ends, so leave it undocumented here. The obvious guess for what it me

Re: [PATCH] kconfig: Document the 'symbol' struct

2017-12-07 Thread Masahiro Yamada
2017-10-04 14:48 GMT+09:00 Ulf Magnusson : > Visibility and choices in particular might be a bit tricky to figure > out. > > Also fix existing comment to point out that P_MENU is also used for > menus. > > Signed-off-by: Ulf Magnusson Applied to linux-kbuild/kconfig. Thanks! -- Best Regards M

[PATCH] drivers/scsi/qla2xxx: fix double free bug after firmware timeout

2017-12-07 Thread Max Kellermann
When the qla2xxx firmware is unavailable, eventually qla2x00_sp_timeout() is reached, which calls the timeout function and frees the srb_t instance. The timeout function always resolves to qla2x00_async_iocb_timeout(), which invokes another callback function called "done". All of these qla2x00_*_

RE: [intel-sgx-kernel-dev] [PATCH v7 4/8] intel_sgx: driver for Intel Software Guard Extensions

2017-12-07 Thread Christopherson, Sean J
Jarkko Sakkinen wrote: > +static void sgx_ewb(struct sgx_encl *encl, struct sgx_encl_page *entry) > +{ > + struct sgx_va_page *va_page; > + unsigned int va_offset; > + int ret; > + int i; > + > + for (i = 0; i < 2; i++) { > + va_page = list_first_entry(&encl->va_pag

Re: [PATCH 1/6] staging: pi433: Split rf69_set_crc_enabled into two functions

2017-12-07 Thread Simon Sandström
On Thu, Dec 07, 2017 at 03:38:57PM +0100, Greg KH wrote: > On Wed, Dec 06, 2017 at 09:42:19PM +0100, Simon Sandström wrote: > > Splits rf69_set_crc_enabled(dev, enabled) into > > rf69_enable_crc(dev) and rf69_disable_crc(dev). > > > > Signed-off-by: Simon Sandström > > --- > > drivers/staging/pi

Re: [PATCH] kthread: finer-grained lockdep/cross-release completion

2017-12-07 Thread Daniel Vetter
On Thu, Dec 07, 2017 at 01:22:56PM +0100, Peter Zijlstra wrote: > On Thu, Dec 07, 2017 at 11:08:49AM +0100, Daniel Vetter wrote: > > Since -rc1 we're hitting a bunch of lockdep splats using the new > > cross-release stuff around the 2 kthread completions. In all cases > > they are because totally i

Re: PI futexes + lock stealing woes

2017-12-07 Thread Gratian Crisan
Peter Zijlstra writes: > The below compiles and boots, but is otherwise untested. Could you give > it a spin? Thank you! Yes, I'll start a test now. -Gratian > --- > kernel/futex.c | 83 > + > kernel/locking/rtmutex.c| 26 ++

Re: [PATCH] Makefile: .PHONY is not a variable, but PHONY is

2017-12-07 Thread Masahiro Yamada
Hi Ulf, 2015-09-02 22:11 GMT+09:00 : > From: Ulf Magnusson > > .PHONY is a target, not a variable. > > Signed-off-by: Ulf Magnusson > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 24c9e3d..4835d24 100644 > --- a/Makefile

Re: Timer refuses to expire

2017-12-07 Thread Paul E. McKenney
On Thu, Dec 07, 2017 at 03:03:50PM +0800, Boqun Feng wrote: > Hi Paul, > > On Wed, Dec 06, 2017 at 02:04:21PM -0800, Paul E. McKenney wrote: > > On Tue, Dec 05, 2017 at 03:37:44PM -0800, Paul E. McKenney wrote: > > > On Mon, Dec 04, 2017 at 09:42:08AM -0800, Paul E. McKenney wrote: > > > > On Fri,

Re: linux-next: build warnings after merge of the gpio tree

2017-12-07 Thread Arnd Bergmann
On Wed, Dec 6, 2017 at 9:51 PM, Rob Herring wrote: > On Tue, Dec 5, 2017 at 4:48 PM, Stephen Rothwell > wrote: > These 2 aren't in -next and seem to have been missed: > > arm: dts: qcom: fix missing #phy-cells for apq8064 Apparently this is a subsect of 3191b5b332f8 ("ARM: dts: qcom-apq8064: Fi

RE: [PATCH v1 0/2] PCI/ASPM: Refine L1 PM Substates support

2017-12-07 Thread Chen, Kenji
For Intel Broadwell, SKylake, and KabyLake PCIe Root Port, the threshold is recommended as it is in the commit. If the BIOS/Coreboot porting between platforms is taken into consideration, using a build definition or variables from somewhere of customizable zone is preferred. Let Coreboot guys ma

Re: [PATCH] btrfs: tree-checker: use %zu format string for size_t

2017-12-07 Thread David Sterba
On Thu, Dec 07, 2017 at 08:32:04AM +0800, Qu Wenruo wrote: > > > On 2017年12月06日 22:18, Arnd Bergmann wrote: > > The return value of sizeof() is of type size_t, so we must print it > > using the %z format modifier rather than %l to avoid this warning > > on some architectures: > > > > fs/btrfs/tr

Re: [PATCH net-next v4 1/4] phylib: Add device reset delay support

2017-12-07 Thread Richard Leitner
Hi Geert, On 12/07/2017 03:52 PM, Geert Uytterhoeven wrote: > Hi Richard, > > On Thu, Dec 7, 2017 at 3:43 PM, Richard Leitner wrote: >> --- a/drivers/net/phy/mdio_device.c >> +++ b/drivers/net/phy/mdio_device.c >> @@ -24,6 +24,7 @@ >> #include >> #include >> #include >> +#include >> >> v

Re: USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer()

2017-12-07 Thread Alan Stern
On Thu, 7 Dec 2017, Geert Uytterhoeven wrote: > Hi Alan, > > On Wed, Dec 6, 2017 at 11:02 PM, Alan Stern wrote: > > On Wed, 6 Dec 2017, SF Markus Elfring wrote: > >> >>> Does the existing memory allocation error message include the > >> >>> &udev->dev device name and driver name? If it doesn't,

Re: [PATCH] integrity: get rid of unneeded initializations in integrity_iint_cache entries

2017-12-07 Thread Jeff Layton
On Thu, 2017-12-07 at 09:35 -0500, Mimi Zohar wrote: > On Thu, 2017-12-07 at 07:01 -0500, Jeff Layton wrote: > > On Thu, 2017-07-06 at 15:43 -0400, Mimi Zohar wrote: > > > On Thu, 2017-07-06 at 10:04 -0500, Serge E. Hallyn wrote: > > > > Quoting Jeff Layton (jlay...@kernel.org): > > > > > From: Jef

[PATCH v2 02/10] arm64: dts: qcom: msm8916-pins: remove assignments to bias-disable

2017-12-07 Thread Damien Riegel
Drop assignments to bias-disable as the documentation [1] states that this property doesn't take a value. Other occurrences of this property respect that. [1] Documentation/devicetree/bindings/pinctrl/qcom,msm8916-pinctrl.txt Signed-off-by: Damien Riegel Reviewed-by: Bjorn Andersson --- Changes

[PATCH v2 05/10] arm64: dts: qcom: apq8016-sbc: sort nodes alphabetically

2017-12-07 Thread Damien Riegel
Also, it was using whitespaces for indentation on some lines, fix that while moving it. Signed-off-by: Damien Riegel --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arc

[PATCH v2 08/10] arm64: dts: qcom: msm8916-pins: move sdhc2 cd node with its siblings

2017-12-07 Thread Damien Riegel
Nodes relative to the first sdhc node were interlaced with node of the second sdhc. Move sdhc2_cd_pin with its siblings to prevent that. Also rename the grouping node from sdhc2_cd_pin to pmx_sdc2_cd_pin, as "pmx_sdc" is the prefix used by other nodes. Signed-off-by: Damien Riegel --- arch/arm64

[PATCH v2 07/10] arm64: dts: qcom: msm8916: drop remaining unused pinconfs

2017-12-07 Thread Damien Riegel
This commit drops pin configs that cannot be moved to board files as no boards use them. Signed-off-by: Damien Riegel --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 33 -- 1 file changed, 33 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916-pins.dtsi b/ar

Re: [PATCH V6 4/7] OF: properties: Implement get_match_data() callback

2017-12-07 Thread Lothar Waßmann
Hi, On Thu, 7 Dec 2017 09:45:31 -0500 Sinan Kaya wrote: > On 12/7/2017 8:10 AM, Lothar Waßmann wrote: > >> +void *of_fwnode_get_match_data(const struct fwnode_handle *fwnode, > >> + struct device *dev) > > Shouldn't this be 'const void *of_fwnode_get_match_data > > OF keep

[PATCH v2 00/10] arm64: dts: qcom: dts improvements

2017-12-07 Thread Damien Riegel
The goal of this series was to add missing I2C bindings for BLSP_I2C1, BLSP_I2C3, and BLSP_I2C5. But while working on this, I noticed some styling issues and decided to tackle them in the same patchset, mostly because they touch the same files and the same people will be involved for the review. I

[PATCH v2 01/10] arm64: dts: qcom: pm8916: fix wcd_codec indentation

2017-12-07 Thread Damien Riegel
Indentation did not respect kernel standards, so fix that for the usual indent with tabs, align with spaces. While at it, remove some empty lines before and after the closing parenthesis of this block. Signed-off-by: Damien Riegel Reviewed-by: Bjorn Andersson --- Changes in v2: - Added Reviewed

Re: [PATCH] mm/huge_memory: fix comment in __split_huge_pmd_locked

2017-12-07 Thread Kirill A. Shutemov
On Thu, Dec 07, 2017 at 01:49:05PM +0800, Yisheng Xie wrote: > pmd_trans_splitting has been remove after THP refcounting redesign, > therefore related comment should be updated. > > Signed-off-by: Yisheng Xie Looks good to me. Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov

[PATCH v2 09/10] arm64: dts: qcom: msm8916: normalize I2C and SPI nodes

2017-12-07 Thread Damien Riegel
The QUP core can be used either for I2C or SPI, so the same IP is mapped by a driver or the other. SPI bindings use a leading 0 for the start address and a size of 0x600, I2C bindings don't have the leading 0 and have a size 0x1000. To make them more similar, add the leading 0 to I2C bindings and

<    2   3   4   5   6   7   8   9   10   11   >