Re: [PATCH V2 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-20 Thread Leon Romanovsky
On Fri, Aug 18, 2017 at 05:57:59PM +0100, Salil Mehta wrote: > This patch adds the following support to the HNS3 driver: > 1. Support to change the Maximum Transmission Unit of a >of a port in the HNS NIC hardware . Extra space before dot. > 2. Initializes the supported MTU range for the netd

Re: [PATCH] mfd: Add support for RTS5250S power saving

2017-08-20 Thread kbuild test robot
-support-for-RTS5250S-power-saving/20170820-102051 base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next config: i386-allyesconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree

Re: [RFC 2/3] rtc: Add Realtek RTD1295

2017-08-20 Thread Alexandre Belloni
Hi, On 20/08/2017 at 03:36:30 +0200, Andreas Färber wrote: > +static int rtd119x_rtc_read_time(struct device *dev, struct rtc_time *tm) > +{ > + struct rtd119x_rtc *data = dev_get_drvdata(dev); > + time64_t t; > + u32 day; > + > + day = readl_relaxed(data->base + RTD_RTCDATE_LOW);

[tip:irq/urgent] genirq/ipi: Fixup checks against nr_cpu_ids

2017-08-20 Thread tip-bot for Alexey Dobriyan
Commit-ID: 8fbbe2d7cc478d1544f41f2271787c993c23a4f6 Gitweb: http://git.kernel.org/tip/8fbbe2d7cc478d1544f41f2271787c993c23a4f6 Author: Alexey Dobriyan AuthorDate: Sat, 19 Aug 2017 12:57:51 +0300 Committer: Thomas Gleixner CommitDate: Sun, 20 Aug 2017 10:49:05 +0200 genirq/ipi: Fixup ch

[GIT pull] core fix for 4.13

2017-08-20 Thread Thomas Gleixner
Linus, please pull the latest core-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-urgent-for-linus A fix for the hardlockup watchdog to prevent false positives with extreme Turbo-Modes which make the perf/NMI watchdog fire faster than the hrtim

[GIT pull] irq fixes for 4.13

2017-08-20 Thread Thomas Gleixner
Linus, please pull the latest irq-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus A pile of smallish changes all over the place: - Add a missing ISB in the GIC V1 driver - Remove an ACPI version check in the GIC V3 ITS dr

Re: [PATCH 3/3] iio: light: tsl2583: constify i2c_device_id

2017-08-20 Thread Jonathan Cameron
On Sun, 20 Aug 2017 00:17:38 +0530 Arvind Yadav wrote: > i2c_device_id are not supposed to change at runtime. All functions > working with i2c_device_id provided by work with > const i2c_device_id. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Applied. Thanks, Jonat

Re: [PATCH 2/3] iio: light: apds9300: constify i2c_device_id

2017-08-20 Thread Jonathan Cameron
On Sun, 20 Aug 2017 00:17:37 +0530 Arvind Yadav wrote: > i2c_device_id are not supposed to change at runtime. All functions > working with i2c_device_id provided by work with > const i2c_device_id. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Applied. Thanks, Jonat

[GIT pull] perf fixes for 4.13

2017-08-20 Thread Thomas Gleixner
Linus, please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus Two fixes for the perf subsystem: - Fix an inconsistency of RDPMC mm struct tagging across exec() which causes RDPMC to fault. - Correct t

Re: [PATCH 1/3] iio: accel: bma180: constify i2c_device_id

2017-08-20 Thread Jonathan Cameron
On Sun, 20 Aug 2017 00:17:36 +0530 Arvind Yadav wrote: > i2c_device_id are not supposed to change at runtime. All functions > working with i2c_device_id provided by work with > const i2c_device_id. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Applied to the togreg br

[PATCH] input/keyboard: fix platform_no_drv_owner.cocci warnings

2017-08-20 Thread Julia Lawall
No need to set .owner here. The core will do it. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Fixes: 52cf590518d7 ("input/keyboard: Add support for Dollar Cove TI power button") Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- dc_ti_pwrbtn.c |1 - 1 file ch

Re: [PATCH V7 net-next 00/22] Huawei HiNIC Ethernet Driver

2017-08-20 Thread Aviad Krawczyk
Got it On 8/17/2017 10:33 PM, David Miller wrote: > > You've posted this series 3 times today. > > That's way too fast. > > You must wait at least one full day for more feedback to come > your way. > > If you just repsin your series for every little small change nobody is > going to perform a

Re: [PATCH 3.16 124/134] net/mlx4_en: Avoid adding steering rules with invalid ring

2017-08-20 Thread Tariq Toukan
On 18/08/2017 4:13 PM, Ben Hutchings wrote: 3.16.47-rc1 review patch. If anyone has any objections, please let me know. Please notice that there's a fix for this patch, here: 6dc06c08bef1 net/mlx4: Fix the check in attaching steering rules -- From: Talat Batheesh commit

Re: [PATCH V5 net-next 01/21] net-next/hinic: Initialize hw interface

2017-08-20 Thread Aviad Krawczyk
We will remove all the casting from void *. Thanks On 8/18/2017 8:03 AM, David Miller wrote: > From: Stephen Hemminger > Date: Thu, 17 Aug 2017 17:45:40 -0700 > >> On Thu, 17 Aug 2017 19:52:42 +0800 >> Aviad Krawczyk wrote: >> >>> + nic_dev = (struct hinic_dev *)netdev_priv(netdev); >> >> Si

[GIT pull] timer fixes for 4.13

2017-08-20 Thread Thomas Gleixner
Linus, please pull the latest timers-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-for-linus A few small fixes for timer drivers: - Prevent infinite recursion in the arm architected timer driver with ftrace - Propagate error co

[PATCH 0/2] start using spin primitives in sched and locking

2017-08-20 Thread Nicholas Piggin
Nicholas Piggin (2): locking: Use spin primitives for busy loops sched/idle: Use spin loop primitives for polling idle include/linux/bit_spinlock.h| 5 ++--- include/linux/seqlock.h | 9 - kernel/locking/mcs_spinlock.h | 6 ++ kernel/locking/mutex.c

[PATCH 1/2] locking: Use spin primitives for busy loops

2017-08-20 Thread Nicholas Piggin
Commit fd851a3cdc ("spin loop primitives for busy waiting") introduced a begin/relax/end sequence for busy loops, to improve behaviour with some architectures. Convert most of the generic locking primitives over to use these spin primitives. Signed-off-by: Nicholas Piggin --- include/linux/bit_

[PATCH 2/2] sched/idle: Use spin loop primitives for polling idle

2017-08-20 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- kernel/sched/idle.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/sched/idle.c b/kernel/sched/idle.c index 6c23e30c0e5c..b884980da8ef 100644 --- a/kernel/sched/idle.c +++ b/kernel/sched/idle.c @@ -11,6 +11,7 @@ #include #inc

[GIT pull] x86 fixes for 4.13

2017-08-20 Thread Thomas Gleixner
Linus, please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus Another pile of small fixes and updates for x86: - Plug a hole in the SMAP implementation which misses to clear AC on NMI entry - Fix the no

Re: [PATCH v8 0/7] genirq/gpio: Add driver for ThunderX and OCTEON-TX SoCs

2017-08-20 Thread Thomas Gleixner
On Fri, 18 Aug 2017, David Daney wrote: > On 08/18/2017 02:24 AM, Thomas Gleixner wrote: > > On Thu, 17 Aug 2017, David Daney wrote: > > > > > The ThunderX/OCTEON-TX GPIO hardware looks like a PCIe device, with > > > the interrupt signal from each GPIO line being routed to a dedicated > > > MSI-X.

[PATCH 2/4] arm: dts: mt7623: update pio, usb and crypto nodes

2017-08-20 Thread Ryder Lee
This patch updates pio, usb and crypto nodes to make them be consistent with the binding documents. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 52 ++- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/arch/arm/boot/dts/mt762

[PATCH 4/4] arm: dts: mt7623: add PCIe related nodes

2017-08-20 Thread Ryder Lee
This patch adds devices nodes and updates pinmux setting for the PICe function block. Just note that PCIe port2 PHY is shared with U3 port. Signed-off-by: Ryder Lee --- arch/arm/boot/dts/mt7623.dtsi | 108 ++ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts |

[PATCH 3/4] arm: dts: mt7623: add display related nodes

2017-08-20 Thread Ryder Lee
This patch adds the device nodes for the display function block. Also, we add some missing pin macros in mt7623-pinfunc.h. Signed-off-by: Ryder Lee CC: Linus Walleij --- arch/arm/boot/dts/mt7623.dtsi | 210 ++ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts

[PATCH 1/4] arm: dts: mediatek: update audio node for mt2701 and mt7623

2017-08-20 Thread Ryder Lee
This patch adds interrupt-names property in audio node so that binding can be agnostic of the IRQ order [1][2]. Signed-off-by: Ryder Lee CC: Garlic Tseng CC: Erin Lo CC: Sean Wang --- [1]https://patchwork.kernel.org/patch/9901225/ [2]https://lkml.org/lkml/2017/8/18/292 --- --- arch/arm/boot/d

[tip:timers/core] posix-cpu-timers: Use dedicated helper to access rlimit values

2017-08-20 Thread tip-bot for Krzysztof Opasiak
Commit-ID: 3cf294962df8fcde710eb5e762e0929e2ba49947 Gitweb: http://git.kernel.org/tip/3cf294962df8fcde710eb5e762e0929e2ba49947 Author: Krzysztof Opasiak AuthorDate: Wed, 5 Jul 2017 19:25:48 +0200 Committer: Thomas Gleixner CommitDate: Fri, 18 Aug 2017 12:44:42 +0200 posix-cpu-timers: U

[PATCH v3 net 2/2 RESEND] net: ixgbe: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-08-20 Thread Ding Tianhong
The ixgbe driver use the compile check to determine if it can send TLPs to Root Port with the Relaxed Ordering Attribute set, this is too inconvenient, now the new flag PCI_DEV_FLAGS_NO_RELAXED_ORDERING has been added to the kernel and we could check the bit4 in the PCIe Device Control register to

[PATCH v3 net 1/2 RESEND] Revert commit 1a8b6d76dc5b ("net:add one common config...")

2017-08-20 Thread Ding Tianhong
The new flag PCI_DEV_FLAGS_NO_RELAXED_ORDERING has been added to indicate that Relaxed Ordering Attributes (RO) should not be used for Transaction Layer Packets (TLP) targeted toward these affected Root Port, it will clear the bit4 in the PCIe Device Control register, so the PCIe device drivers cou

[PATCH v3 net 0/2 RESEND] net: ixgbe: Use new flag to disable Relaxed Ordering

2017-08-20 Thread Ding Tianhong
The new flag PCI_DEV_FLAGS_NO_RELAXED_ORDERING has been added to indicate that Relaxed Ordering Attributes (RO) should not be used for Transaction Layer Packets (TLP) targeted toward these affected Root Port, it will clear the bit4 in the PCIe Device Control register, so the PCIe device drivers cou

Re: [RFC PATCH v4 0/6] i2c: document DMA handling and add helpers for it

2017-08-20 Thread Jonathan Cameron
On Thu, 17 Aug 2017 16:14:43 +0200 Wolfram Sang wrote: > So, after revisiting old mail threads, taking part in a similar discussion on > the USB list, and implementing a not-convincing solution before, here is what > I > cooked up to document and ease DMA handling for I2C within Linux. Please ha

Re: Possible race in mlx5_ib.ko

2017-08-20 Thread Leon Romanovsky
On Fri, Aug 18, 2017 at 06:17:15PM +0300, Anton Volkov wrote: > Hello. > > While searching for races in the Linux kernel I've come across > "drivers/infiniband/hw/mlx5/mlx5_ib.ko" module. Here are questions that I > came up with while analyzing results. Lines are given using the info from > Linux v

[PATCH v2] phy: qcom-usb-hsic: Fix error handling

2017-08-20 Thread Christophe JAILLET
According to error handling in this function, it is likely that going to 'err_ulpi' was expected here. Fixes: 605b8652f7f0 ("phy: Add support for Qualcomm's USB HSIC phy") Signed-off-by: Christophe JAILLET Reviewed-by: Stephen Boyd --- v2: rebase after commit 0b56e9a7e835 which has moved from

[PATCH v2 0/2] cleanup {COMPAT_,}SET_PERSONALITY

2017-08-20 Thread Yury Norov
This patchset is the result of discussion: https://lkml.org/lkml/2017/7/31/454 First patch introduces MMCF flags for mm_context_t ->flags to separate it from TIF ones. And second patch moves personality-related setup code from SET_PERSONALITY() to the helper. Yury Norov (2): arm64: introduce se

[PATCH 1/2] arm64: introduce separated bits for mm_context_t flags

2017-08-20 Thread Yury Norov
Currently mm->context.flags field uses thread_info flags which is not the best idea for many reasons. For example, mm_context_t doesn't need most of thread_info flags. And it would be difficult to add new mm-related flag if needed because it may easily interfere with TIF ones. To deal with it, the

[PATCH 2/2] arm64: cleanup {COMPAT_,}SET_PERSONALITY() macro

2017-08-20 Thread Yury Norov
There is some work that should be done after setting the personality. Currently it's done in the macro, which is not the best idea. In this patch new arch_setup_new_exec() routine is introduced, and all setup code is moved there, as suggested by Catalin: https://lkml.org/lkml/2017/8/4/494 v2: -

Re: [PATCH 2/5] iio: Add support for LMP92001 ADC

2017-08-20 Thread Jonathan Cameron
On Fri, 18 Aug 2017 14:42:59 +0700 Abhisit Sangjan wrote: > Hi Jmondi, > > After I removed those cases, I got warnings "no handled in switch". > > On Fri, Aug 18, 2017 at 10:15 AM, Abhisit Sangjan > wrote: > > > Hi Jmondi, > > > > On Fri, Aug 18, 2017 at 9:58 AM, jmondi wrote: > > > >> Hi

Re: [PATCH] iio: accel: mma8452: code improvements to handle more than one event

2017-08-20 Thread Jonathan Cameron
On Fri, 18 Aug 2017 22:08:10 -0400 Harinath Nampally wrote: > This driver supports multiple devices like mma8653, mma8652, mma8452, mma8453 > and > fxls8471. Almost all these devices have more than one event. Current driver > design > hardcodes the event specific information, so only one event

Re: [PATCH v6 0/7] Add support for IPQ8074 PCIe phy and controller

2017-08-20 Thread Kishon Vijay Abraham I
On Friday 04 August 2017 04:37 AM, Bjorn Helgaas wrote: > On Wed, Aug 02, 2017 at 10:38:21AM +0530, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Monday 31 July 2017 12:04 PM, Varadarajan Narayanan wrote: >>> v6: >>> Added 'Reviewed-by: Vivek Gautam ' and fixed >>> white space issues as menti

Re: [RFC PATCH 6/7] mmc: sdhci-omap: Add OMAP SDHCI driver

2017-08-20 Thread Kishon Vijay Abraham I
Adrian, On Thursday 17 August 2017 01:53 PM, Adrian Hunter wrote: > On 17/08/17 10:59, Kishon Vijay Abraham I wrote: >> Hi Adrian, >> >> On Thursday 17 August 2017 12:13 PM, Adrian Hunter wrote: >>> On 17/08/17 08:57, Kishon Vijay Abraham I wrote: Hi Adrian, On Tuesday 15 August 201

Re: [PATCH 032/102] iio: dac: stm32-dac-core: explicitly request exclusive reset control

2017-08-20 Thread Jonathan Cameron
On Wed, 19 Jul 2017 17:25:36 +0200 Philipp Zabel wrote: > Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting > reset lines") started to transition the reset control request API calls > to explicitly state whether the driver needs exclusive or shared reset > control behavior.

Re: [PATCH 031/102] iio: adc: rockchip_saradc: explicitly request exclusive reset control

2017-08-20 Thread Jonathan Cameron
On Wed, 19 Jul 2017 17:25:35 +0200 Philipp Zabel wrote: > Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting > reset lines") started to transition the reset control request API calls > to explicitly state whether the driver needs exclusive or shared reset > control behavior.

[PATCH 1/2] um: link vmlinux with -no-pie

2017-08-20 Thread Thomas Meyer
Debian's gcc defaults to pie. The global Makefile already defines the -fno-pie option. Link UML dynamic kernel image also with -no-pie to fix the build. Signed-off-by: Thomas Meyer --- arch/um/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/Makefile b/arch/u

[PATCH 2/2] um: Use relative modversions with LD_SCRIPT_DYN

2017-08-20 Thread Thomas Meyer
When building a dynamic kernel image use relative symbols with MODVERSIONS. Signed-off-by: Thomas Meyer --- arch/um/Kconfig.um | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/um/Kconfig.um b/arch/um/Kconfig.um index 4b2ed5858b2e..e26376ab5452 100644 --- a/arch/um/Kconfig.um +++ b/arch/u

[PATCH] tools/perf: really install manpages by make install-man

2017-08-20 Thread Konstantin Khlebnikov
Target install-man builds them but forget to install. Signed-off-by: Konstantin Khlebnikov --- tools/perf/Documentation/Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Documentation/Makefile b/tools/perf/Documentation/Makefile index 098cfb9ca8f0..db114

[PATCH] tools/perf: fix static linking with libunwind

2017-08-20 Thread Konstantin Khlebnikov
* libunwind-x86_64 must be linked before libunwind * libunwind requires liblzma * static libunwind conflicts with static libgcc_eh Signed-off-by: Konstantin Khlebnikov --- tools/perf/Makefile.config |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/perf/Makefile.c

[PATCH] tools/perf: fix static linking with libdw from elfutils

2017-08-20 Thread Konstantin Khlebnikov
Fix feature test for static libdw: link required dependencies. Backends of libebl are not statically linked thus libdl is required. In Debian/Ubuntu libdw-dev includes libebl.a starting from 0.166-1. Signed-off-by: Konstantin Khlebnikov --- tools/perf/Makefile.config | 10 +- 1 file c

[PATCH] tools/perf: fix documentation for sysctls perf_event_paranoid and perf_event_mlock_kb

2017-08-20 Thread Konstantin Khlebnikov
Fix misprint CAP_IOC_LOCK -> CAP_IPC_LOCK. This capability have nothing to do with raw tracepoints. This part is about bypassing mlock limits. Sysctl kernel.perf_event_paranoid = -1 allows raw and ftrace function tracepoints without CAP_SYS_ADMIN. Signed-off-by: Konstantin Khlebnikov --- Docume

Re: [PATCH 01/15] EDAC: make device_type const

2017-08-20 Thread Borislav Petkov
On Sat, Aug 19, 2017 at 01:52:12PM +0530, Bhumika Goyal wrote: > Make these const as they are only stored in the type field of a device > structure, which is const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal > --- > drivers/edac/edac_mc_sysfs.c | 8 > drivers/edac/i7core_

Re: [PATCH v2 14/20] mm: Provide speculative fault infrastructure

2017-08-20 Thread Sergey Senozhatsky
On (08/18/17 00:05), Laurent Dufour wrote: [..] > + /* > + * MPOL_INTERLEAVE implies additional check in mpol_misplaced() which > + * are not compatible with the speculative page fault processing. > + */ > + pol = __get_vma_policy(vma, address); > + if (!pol) > +

[v9] wlcore: add missing nvs file name info for wilink8

2017-08-20 Thread Reizer, Eyal
The following commits: commit c815fdebef44 ("wlcore: spi: Populate config firmware data") commit d776fc86b82f ("wlcore: sdio: Populate config firmware data") Populated the nvs entry for wilink6 and wilink7 only while it is still needed for wilink8 as well. This broke user space backward compatibil

Re: [PATCH v2] Kbuild: use -fshort-wchar globally

2017-08-20 Thread Masahiro Yamada
Hi Arnd, This patch was picked up for linux-next (I assume it was queued up for 4.14-rc1) but I see this warning in Linus' tree. If we are not comfortable with this warning in the 4.13 release, shall I include this patch in the kbuild/fixes pull request? (planned this week) Please let me know yo

Re: [PATCH v2] Makefile: add kselftest-clean to PHONY target list

2017-08-20 Thread Masahiro Yamada
2017-08-19 6:54 GMT+09:00 Shuah Khan : > kselftest-clean isn't in the PHONY target list. Add it. > > Signed-off-by: Shuah Khan > --- Applied to linux-kbuild/fixes. Thanks! -- Best Regards Masahiro Yamada

Re: [PATCH v2] Makefile: add kselftest-clean to PHONY target list

2017-08-20 Thread Masahiro Yamada
2017-08-19 6:54 GMT+09:00 Shuah Khan : > kselftest-clean isn't in the PHONY target list. Add it. > > Signed-off-by: Shuah Khan > --- Applied to linux-kbuild/fixes. Thanks! -- Best Regards Masahiro Yamada

[PATCH] HID: asus: Add support for Fn keys on Asus ROG G752

2017-08-20 Thread Maxime Bellengé
This patch adds support for Fn keys on Asus ROG G752 laptop. The report descriptor is broken so I fixed it. Tested on an Asus G752VT. Signed-off-by: Maxime Bellengé --- drivers/hid/hid-asus.c | 29 + drivers/hid/hid-core.c | 2 +- drivers/hid/hid-ids.h | 1 + 3 fi

Re: [PATCH] selftests: timers: Fix run_destructive_tests target to handle skipped tests

2017-08-20 Thread Benjamin Gaignard
2017-08-19 2:36 GMT+02:00 John Stultz : > On Thu, Aug 17, 2017 at 3:48 PM, Shuah Khan wrote: >> When a test exits with skip exit code of 4, "make run_destructive_tests" >> halts testing. Fix run_destructive_tests target to handle error exit codes. >> >> Reported-by: John Stultz >> Signed-off-by:

Re: + kbuild-disable-wformat-truncation-warnings-by-default.patch added to -mm tree

2017-08-20 Thread Masahiro Yamada
Hi Arnd, 2017-07-20 16:24 GMT+09:00 Arnd Bergmann : > On Wed, Jul 19, 2017 at 11:50 PM, wrote: >> -- >> From: Arnd Bergmann >> Subject: kbuild: disable -Wformat-truncation warnings by default >> >> With x86 allmodconfig, we currently get 233

Re: [PATCH] cpufreq: ti: Fix 'of_node_put' being called twice in error handling path

2017-08-20 Thread Viresh Kumar
On 19-08-17, 22:22, Christophe JAILLET wrote: > If 'dev_pm_opp_set_supported_hw()' fails, 'opp_data->opp_node' refcount > will be decremented 2 times. > One, just a few lines above, and another one in the error handling path. > > Fix it by simply moving the 'of_node_put' call of the normal path. >

Re: [PATCH v3 3/4] net: stmmac: register parent MDIO node for sun8i-h3-emac

2017-08-20 Thread Andrew Lunn
> I think we cannot use mdio-mux-mmioreg since the register for doing > the switch is in middle of the "System Control" and shared with > other functions. This is why we use a sycon/regmap for selecting > the MDIO. You could add a mdio-mux-regmap.c. However, it probably need restructuring of the

RE: [PATCH V2 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-20 Thread Salil Mehta
Hi Leon > -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Sunday, August 20, 2017 8:05 AM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; linux-r

[PATCH] iio: accel: mma8452: code improvements to handle more than one event

2017-08-20 Thread Harinath Nampally
This driver supports multiple devices like mma8653, mma8652, mma8452, mma8453 and fxls8471. Almost all these devices have more than one event. Current driver design hardcodes the event specific information, so only one event can be supported by this driver at any given time

Re: [PATCH v3 5/5] kernel: tracepoints: add support for relative references

2017-08-20 Thread Steven Rostedt
On Sat, 19 Aug 2017 19:10:35 +0100 Ard Biesheuvel wrote: > To avoid the need for relocating absolute references to tracepoint > structures at boot time when running relocatable kernels (which may > take a disproportionate amount of space), add the option to emit > these tables as relative referen

Re: [PATCH] iio: accel: mma8452: code improvements to handle more than one event

2017-08-20 Thread Jonathan Cameron
On Sun, 20 Aug 2017 10:42:54 -0400 Harinath Nampally wrote: [PATCH V3]... (I think, I've lost track - but this needs to be in the patch title so we know which is latest. > This driver supports multiple devices like mma8653, > mma8652, mma8452, mma8453 and fxls8471. Almost all > these

Re: [PATCH] iio: accel: mma8452: code improvements to handle more than one event

2017-08-20 Thread Harinath Nampally
[PATCH V3]... (I think, I've lost track - but this needs to be in the patch title so we know which is latest. ok I will resend it with patch version and change history. This just missed my pull request for today anyway. There may be time for another pull towards the end of this week, depending

Re: [RFC 2/3] rtc: Add Realtek RTD1295

2017-08-20 Thread Andrew Lunn
> +static void rtd119x_rtc_set_enabled(struct device *dev, bool enable) > +{ > + struct rtd119x_rtc *data = dev_get_drvdata(dev); > + u32 val; > + > + val = readl_relaxed(data->base + RTD_RTCEN); > + dev_info(dev, "%s: rtcen = 0x%08x\n", __func__, val); dev_dbg()? > +static int rt

[PATCH 1/2] soc/fsl/qe: Fix a potential NULL pointer dereference in an error handling path

2017-08-20 Thread Christophe JAILLET
If 'of_find_device_by_node()' fails at line 153, a NULL pointer dereference (pdev) will occur in the error handling path. Just remove the 'devm_iounmap()' call from the error handling path. The corresponding is managed, there is no need to release explicitly here. Fixes: 35ef1c20fdb2 ("fsl/qe: Ad

[PATCH 2/2] soc/fsl/qe: Slighly simplify code

2017-08-20 Thread Christophe JAILLET
Return 0 instead of 'ret' (which is 0 at this point) to make the code more explicit. Also avoid a useless initialization of 'ret'. Signed-off-by: Christophe JAILLET --- drivers/soc/fsl/qe/qe_tdm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/fsl/qe/qe_tdm.c

Re: [PATCH 0/3] devicetree: cleanup and improve DT cross-arch reference

2017-08-20 Thread Masahiro Yamada
Hi Rob, DT developers, Any comments for this series? Thanks. 2017-07-25 11:23 GMT+09:00 Masahiro Yamada : > > Masahiro Yamada (3): > of: remove drivers/of/testcase-data from include search path for CPP > of: remove arch/$(SRCARCH)/boot/dts from include search path for CPP > of: search scr

[PATCH v4] iio: accel: mma8452: improvements to handle multiple events

2017-08-20 Thread Harinath Nampally
This driver supports multiple devices like mma8653, mma8652, mma8452, mma8453 and fxls8471. Almost all these devices have more than one event. Current driver design hardcodes the event specific information, so only one event can be supported by this driver at any given time

Re: [PATCH V2 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-20 Thread Leon Romanovsky
On Sun, Aug 20, 2017 at 02:35:58PM +, Salil Mehta wrote: > Hi Leon > > > -Original Message- > > From: Leon Romanovsky [mailto:l...@kernel.org] > > Sent: Sunday, August 20, 2017 8:05 AM > > To: Salil Mehta > > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y); > > mehta.salil

Re: [PATCH net-next v3] arm: eBPF JIT compiler

2017-08-20 Thread Shubham Bansal
> Acked-by: Alexei Starovoitov David, Russell, Kees and Daniel, Anything from your side? Is this patch ready to land in net-next?

[PATCH 0/2] PM: docs: High-level update of PM part of admin-guide

2017-08-20 Thread Rafael J. Wysocki
Hi, This is a relatively high-level update of the PM part of admin-guide adding a description of PM strategies supported by the kernel and system sleep states. The old system sleep states document is removed. Thanks, Rafael

[PATCH 1/2] PM: docs: Describe high-level PM strategies and sleep states

2017-08-20 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Reorganize the power management part of admin-guide by adding a description of major power management strategies supported by the kernel (system-wide and working-state power management) to it and dividing the rest of the material into the system-wide PM and working-state P

[PATCH 2/2] PM: docs: Delete the obsolete states.txt document

2017-08-20 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The Documentation/power/states.txt document is now redundant and sonewhat outdated, so delete it. Signed-off-by: Rafael J. Wysocki --- Documentation/power/states.txt | 127 - 1 file changed, 127 deletions(-) Index: linux-pm/Docu

Re: [PATCH 1/4] gpu: host1x: Enable Tegra186 syncpoint protection

2017-08-20 Thread Dmitry Osipenko
On 18.08.2017 19:15, Mikko Perttunen wrote: > Since Tegra186 the Host1x hardware allows syncpoints to be assigned to > specific channels, preventing any other channels from incrementing > them. > > Enable this feature where available and assign syncpoints to channels > when submitting a job. Syncp

Re: [PATCH 2/4] gpu: host1x: Enable gather filter

2017-08-20 Thread Dmitry Osipenko
On 18.08.2017 19:15, Mikko Perttunen wrote: > The gather filter is a feature present on Tegra124 and newer where the > hardware prevents GATHERed command buffers from executing commands > normally reserved for the CDMA pushbuffer which is maintained by the > kernel driver. > > This commit enables

[PATCH] ieee802154: ca8210: Fix a potential NULL pointer dereference

2017-08-20 Thread Christophe JAILLET
'spi' is known to be NULL, so we dereference a NULL pointer here. Use 'pr_crit()' instead of 'dev_crit()' to report the message. Signed-off-by: Christophe JAILLET --- drivers/net/ieee802154/ca8210.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/ieee802154/ca

Re: [PATCH] input/keyboard: fix platform_no_drv_owner.cocci warnings

2017-08-20 Thread Dmitry Torokhov
On Sun, Aug 20, 2017 at 11:19:38AM +0200, Julia Lawall wrote: > No need to set .owner here. The core will do it. > > Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci > > Fixes: 52cf590518d7 ("input/keyboard: Add support for Dollar Cove TI power > button") > Signed-off-by: Julia L

Re: [PATCH 00/30] constify input serio_device_id

2017-08-20 Thread Dmitry Torokhov
On Thu, Aug 17, 2017 at 05:08:01PM +0530, Arvind Yadav wrote: > serio_device_id are not supposed to change at runtime. All functions > working with serio_device_id provided by work with > const serio_device_id. So mark the non-const structs as const. Applied the lot, thank you. > > Arvind Yadav

[PATCH 0/8] CIFS: Adjustments for several function implementations

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 18:24:56 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (8): Delete 11 error messages for a failed memory allocation Improve 27 size determinations One function call less in cifs_lookup() af

[PATCH 1/8] CIFS: Delete 11 error messages for a failed memory allocation

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 14:35:36 +0200 Omit extra messages for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- fs/cifs/connect.c | 17 - fs/cifs/sess.c

[PATCH 2/8] CIFS: Improve 27 size determinations

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 15:40:55 +0200 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was detec

[PATCH 3/8] CIFS: One function call less in cifs_lookup() after error detection

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 16:26:44 +0200 The kfree() function was called in up to two cases by the cifs_lookup() function during error handling even if the passed variable contained a null pointer. * Adjust a jump target according to the Linux coding style convention. * Delete

[PATCH 4/8] CIFS: Use common error handling code in cifs_mknod()

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 16:30:06 +0200 Add a jump target so that a bit of exception handling can be better reused in this function. Signed-off-by: Markus Elfring --- fs/cifs/dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/cifs/dir.c b/fs/c

[PATCH 5/8] CIFS: Less function calls in cifs_mknod() after error detection

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 16:56:18 +0200 The kfree() function was called in a few cases by the cifs_mknod() function during error handling even if the passed variable contained a null pointer. * Adjust jump targets according to the Linux coding style convention. * Delete an in

[PATCH 6/8] CIFS: Return directly after a failed build_path_from_dentry() in cifs_do_create()

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 17:17:30 +0200 Return directly after a call of the function "build_path_from_dentry" failed at the beginning. Signed-off-by: Markus Elfring --- fs/cifs/dir.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/cifs/dir.c b/fs

[PATCH 7/8] CIFS: Delete an unnecessary variable initialisation in cifs_do_create()

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 17:20:36 +0200 The local variable "full_path" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- fs/cifs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH 8/8] CIFS: One function call less in cifs_do_create() after error detection

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 17:47:44 +0200 The kfree() function was called in a few cases by the cifs_do_create() function during error handling even if the passed variable contained a null pointer. Add a jump target according to the Linux coding style convention. Signed-off-by:

Re: [PATCH] input/keyboard: fix platform_no_drv_owner.cocci warnings

2017-08-20 Thread Julia Lawall
On Sun, 20 Aug 2017, Dmitry Torokhov wrote: > On Sun, Aug 20, 2017 at 11:19:38AM +0200, Julia Lawall wrote: > > No need to set .owner here. The core will do it. > > > > Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci > > > > Fixes: 52cf590518d7 ("input/keyboard: Add support for

Re: [PATCH 2/4] gpu: host1x: Enable gather filter

2017-08-20 Thread Dmitry Osipenko
On 20.08.2017 19:24, Dmitry Osipenko wrote: > On 18.08.2017 19:15, Mikko Perttunen wrote: >> The gather filter is a feature present on Tegra124 and newer where the >> hardware prevents GATHERed command buffers from executing commands >> normally reserved for the CDMA pushbuffer which is maintained

Re: [PATCH 1/4] gpu: host1x: Enable Tegra186 syncpoint protection

2017-08-20 Thread Dmitry Osipenko
On 18.08.2017 19:15, Mikko Perttunen wrote: > Since Tegra186 the Host1x hardware allows syncpoints to be assigned to > specific channels, preventing any other channels from incrementing > them. > > Enable this feature where available and assign syncpoints to channels > when submitting a job. Syncp

Re: [PATCH 2/4] gpu: host1x: Enable gather filter

2017-08-20 Thread Dmitry Osipenko
On 20.08.2017 19:44, Dmitry Osipenko wrote: > On 20.08.2017 19:24, Dmitry Osipenko wrote: >> On 18.08.2017 19:15, Mikko Perttunen wrote: >>> The gather filter is a feature present on Tegra124 and newer where the >>> hardware prevents GATHERed command buffers from executing commands >>> normally res

[PATCH v3 2/2] serial: 8250: of: Add new port type for MediaTek BTIF controller on MT7622/23 SoC

2017-08-20 Thread sean.wang
From: Sean Wang MediaTek BTIF controller is the serial interface similar to UART but it works only as the digital device which is mainly used to communicate with the connectivity module called CONNSYS inside the SoC which could be mostly found on those MediaTek SoCs with Bluetooth feature such as

[PATCH v3 0/2] serial: 8250: add support for MediaTek BTIF controller

2017-08-20 Thread sean.wang
From: Sean Wang Since v3: - enhancing the definition of the compatible strings in dt-bindings Since v2: - reusing 8250_of since the original driver has almost the same logic This patchset introduces the support for MediaTek BTIF controller. MediaTek BTIF controller is the serial interface sim

[PATCH v3 1/2] dt-bindings: serial: 8250: Add MediaTek BTIF controller bindings

2017-08-20 Thread sean.wang
From: Sean Wang Document the devicetree bindings in 8250.txt for MediaTek BTIF controller which could be found on MT7622 and MT7623 SoC. Signed-off-by: Sean Wang --- Documentation/devicetree/bindings/serial/8250.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree

Re: [PATCH v6] irqchip: Add support for tango interrupt router

2017-08-20 Thread Mason
On 07/08/2017 14:47, Marc Zyngier wrote: > On 01/08/17 17:56, Mason wrote: > >> +/* >> + * This controller maps IRQ_MAX input lines to SPI_MAX output lines. >> + * The output lines are routed to GIC SPI 0 to 23. >> + * This driver muxes LEVEL_HIGH IRQs onto output line 0, >> + * and gives every ED

[PATCH] video: fbdev: annotate fb_fix_screeninfo with const and __initconst

2017-08-20 Thread Bhumika Goyal
Make these const as they are only used during a copy operation. Some structures are used as a copy operation inside __init functions, so make them const and replace __initdata with __initconst to avoid section conflict error. Signed-off-by: Bhumika Goyal --- drivers/video/fbdev/68328fb.c | 2

Re: [PATCH] staging:wlan-ng Fix Multiple line dereference

2017-08-20 Thread Greg KH
On Fri, Aug 18, 2017 at 06:16:39PM +0530, Janani S wrote: > This patch fixes multiple line dereference warning reported > by checkpatch script. > > Signed-off-by: Janani S > --- > drivers/staging/wlan-ng/hfa384x_usb.c | 12 > 1 file changed, 4 insertions(+), 8 deletions(-) > > diff

Re: [PATCH] staging: rtl8192e: Change fixed function names with "%s: ", __func__

2017-08-20 Thread Greg Kroah-Hartman
On Fri, Aug 18, 2017 at 11:53:41PM +0800, 张树荣 wrote: > From: Shurong Zhang > > Replace hard-coded function names in strings with "%s", __func__ > in the dot11d.c file. Issue found by checkpatch.pl. > > Signed-off-by: Shurong Zhang > --- > drivers/staging/rtl8192e/dot11d.c | 4 ++-- > 1 fil

Re: [PATCH 1/4] gpu: host1x: Enable Tegra186 syncpoint protection

2017-08-20 Thread Dmitry Osipenko
On 18.08.2017 19:15, Mikko Perttunen wrote: > Since Tegra186 the Host1x hardware allows syncpoints to be assigned to > specific channels, preventing any other channels from incrementing > them. > > Enable this feature where available and assign syncpoints to channels > when submitting a job. Syncp

Re: [PATCH 1/2] PM: docs: Describe high-level PM strategies and sleep states

2017-08-20 Thread Lukas Wunner
On Sun, Aug 20, 2017 at 06:05:05PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Reorganize the power management part of admin-guide by adding a > description of major power management strategies supported by the > kernel (system-wide and working-state power management) to it and

[PATCH] gpio: zevio: make gpio_chip const

2017-08-20 Thread Bhumika Goyal
Make this const as it is only used as a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/gpio/gpio-zevio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-zevio.c b/drivers/gpio/gpio-zevio.c index e23ef7b..3926ce9 100644 --- a/

  1   2   3   >