RE: [PATCH] arm: kernel: utilize hrtimer based broadcast

2015-12-27 Thread Huan Wang
Hi, Arnd, Could you help to review the following patch? Thanks. Best Regards, Alison Wang > On Fri, Jul 17, 2015 at 10:11:52AM +0100, Alison Wang wrote: > > Hrtimer based broadcast is used on ARM platform. It can be registered > > as the tick broadcast device in the absence of a real

Re: [PATCH 1/4] net: ethernet: arc: Probe emac after set RMII clock

2015-12-27 Thread Xing Zheng
Hi David, Sorry, I missed the cover letter. I have added it and resent the patchset. Thanks. - Xing Zheng On 2015年12月28日 13:14, David Miller wrote: I only see 3 patches in this series. Furthermore, you failed to provide a proper "[PATCH 0/4] xxx" posting providing a high level description of

[RESEND PATCH v1 0/4] Add support emac for the RK3036 SoC platform

2015-12-27 Thread Xing Zheng
Hi, We have supported the emac for RK3066/RK3188, but the RK3036 have some configuration different with them. We should let the driver of emac_rockchip compatible with other Rockchip SoCs. Xing Zheng (4): net: ethernet: arc: Probe emac after set RMII clock net: ethernet: arc: Keep emac

[RESEND PATCH v1 2/4] net: ethernet: arc: Keep emac compatibility for more Rockchip SoCs

2015-12-27 Thread Xing Zheng
On the RK3066/RK3188, there was fixed GRF offset configuration to set emac and fixed DIV2 mac TX/RX clock. So, we need to easily set and fit to other SoCs (RK3036) which maybe have different GRF offset, and need adjust mac TX/RX clock. Signed-off-by: Xing Zheng ---

[RESEND PATCH v1 4/4] ARM: dts: rockchip: Add support emac for RK3036

2015-12-27 Thread Xing Zheng
This patch describe the emac, and we need to let mac clock under the APLL which is able to provide the accurate 50MHz what mac_ref need. Signed-off-by: Xing Zheng --- arch/arm/boot/dts/rk3036-evb.dts | 25 + arch/arm/boot/dts/rk3036-kylin.dts | 23

[RESEND PATCH v1 1/4] net: ethernet: arc: Probe emac after set RMII clock

2015-12-27 Thread Xing Zheng
After enter arc_emac_probe, emac will get_phy_id, phy_poll_reset and other connecting PHY via mdiobus_read, so we need to set correct ref clock rate for emac before probe emac. Signed-off-by: Xing Zheng --- drivers/net/ethernet/arc/emac_rockchip.c | 11 +++ 1 file changed, 7

[RESEND PATCH v1 3/4] net: ethernet: arc: Add support emac for RK3036

2015-12-27 Thread Xing Zheng
The RK3036's GRFs offset are different with RK3066/RK3188, and need to set mac TX/RX clock before probe emac. Signed-off-by: Xing Zheng --- drivers/net/ethernet/arc/Kconfig |4 ++-- drivers/net/ethernet/arc/emac_rockchip.c |9 +++-- 2 files changed, 9 insertions(+), 4

[PATCH v3 5/5] arm: dts: Add pinctrl/GPIO/EINT node for mt2701

2015-12-27 Thread Biao Huang
Add pinctrl and GPIO node to mt2701.dtsi Signed-off-by: Biao Huang Acked-by: Linus Walleij --- arch/arm/boot/dts/mt2701.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index dc02f76..bd88ae9 100644

[PATCH v3 3/5] pinctrl: dt bindings: Add pinfunc header file for mt2701

2015-12-27 Thread Biao Huang
Add pinfunc header file, mt2701 related dts will include it Signed-off-by: Biao Huang Acked-by: Linus Walleij --- arch/arm/boot/dts/mt2701-pinfunc.h | 735 1 file changed, 735 insertions(+) create mode 100644 arch/arm/boot/dts/mt2701-pinfunc.h diff --git

[PATCH v3 1/5] ARM: mediatek: Add MT2701 config options for mediatek SoCs.

2015-12-27 Thread Biao Huang
From: Erin Lo The upcoming MTK pinctrl driver have a big pin table for each SoC and we don't want to bloat the kernel binary if we don't need it. Add config options so we can build for one SoC only. Add MT2701. Signed-off-by: Erin Lo Acked-by: Linus Walleij --- arch/arm/mach-mediatek/Kconfig

[PATCH v3 4/5] pinctrl: mediatek: Add Pinctrl/GPIO/EINT driver for mt2701

2015-12-27 Thread Biao Huang
Add mt2701 support using mediatek common pinctrl driver. MT2701 have some special pins need an extra setting register than other ICs, so adding this support to common code. Signed-off-by: Biao Huang Acked-by: Yingjoe Chen --- drivers/pinctrl/mediatek/Kconfig |6 +

[PATCH v3 2/5] dt-bindings: mediatek: Modify pinctrl bindings for mt2701

2015-12-27 Thread Biao Huang
Signed-off-by: Biao Huang --- .../devicetree/bindings/pinctrl/pinctrl-mt65xx.txt |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt index

[PATCH v3 0/5] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701

2015-12-27 Thread Biao Huang
Change in v3: 1. convert to arch_initcall. 2. set direction to input when do input-enable/disable and input-schmitt-enable/disable properties. Change in v2: 1. add special pinmux setting for some pins. 2. fix mt2701 direction control issue. 3. resort dt-bindings. Biao Huang (4): dt-bindings:

[RFC] arm: change to use generic sign_extend32() function

2015-12-27 Thread yalin wang
change to use generic sign_extend32() to caaculate branch_displacement. Signed-off-by: yalin wang --- arch/arm/probes/decode-arm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/probes/decode-arm.c b/arch/arm/probes/decode-arm.c index f72c33a..ff794c0 100644

[PATCH v2] usb: gadget: fix double mem free for usb_request caused by wild pointers

2015-12-27 Thread changbin . du
From: "Du, Changbin" acm, ecm, hid, ncm, phonet, rndis and uvc functions all have double memory free issue. Set pointers to NULL after freed to avoid this. Here explain how it happen on acm function, others has analogical case. If acm_bind fails before allocate notification and acm->notify_req

Re: [PATCH 2/2] kexec: Provide arch_kexec_protect(unprotect)_crashkres()

2015-12-27 Thread Xunlei Pang
On 12/24/2015 at 02:44 PM, Xunlei Pang wrote: > On 12/24/2015 at 02:16 PM, Dave Young wrote: >> Hi, Xunlei >> >> On 12/24/15 at 02:05pm, Xunlei Pang wrote: >>> On 12/24/2015 at 01:54 PM, Dave Young wrote: Ccing Vivek On 12/23/15 at 07:12pm, Xunlei Pang wrote: > Implement the

RE: [PATCH] usb: gadget: acm: set notify_req to NULL after freed to avoid double free

2015-12-27 Thread Du, Changbin
> On 12/26/2015 04:57 AM, changbin...@intel.com wrote: > > From: "Du, Changbin" > > > > If acm_bind fails before allocate notification and acm->notify_req is > > not set to NULL after freed last time, double free will happen. > > Looks good to me. > > Similar problem can occur with another USB

Re: [PATCH] qlcnic: constify qlcnic_dcb_ops structures

2015-12-27 Thread David Miller
From: Julia Lawall Date: Sun, 27 Dec 2015 22:01:29 +0100 > The qlcnic_dcb_ops structures are never modified, so declare them as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Applied, thanks Julia. -- To unsubscribe from this list: send the line "unsubscribe

Makefile:610: arch/powerpc/Makefile: No such file or directory

2015-12-27 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 74bf8efb5fa6e958d2d7c7917b8bb672085ec0c6 commit: 238abecde8ad43f914e095fcf23e0bd35dc7a7f2 powerpc: Don't use gcc specific options on clang date: 7 months ago config: powerpc-defconfig (attached as

Re: [PATCH net-next 0/2] r8169:Update RTL8168H PHY parameters

2015-12-27 Thread David Miller
From: Chunhao Lin Date: Thu, 24 Dec 2015 21:15:25 +0800 > Fix typo in setting PHY parameter and update the way of reading PHY register > "rg_saw_cnt". Series applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [lkp] [ses] 3417c1b5cb: WARNING: CPU: 2 PID: 2013 at fs/xfs/xfs_file.c:772 xfs_file_dio_aio_write+0x2a2/0x320()

2015-12-27 Thread James Bottomley
[cc to linux-scsi added] On Mon, 2015-12-28 at 09:43 +0800, kernel test robot wrote: > FYI, we noticed the below changes on > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git ma > ster > commit 3417c1b5cb1fdc10261dbed42b05cc93166a78fd ("ses: Fix problems > with simple

Re: [PATCH net] sctp: use GFP_USER for user-controlled kmalloc

2015-12-27 Thread David Miller
From: Marcelo Ricardo Leitner Date: Wed, 23 Dec 2015 16:28:40 -0200 > Commit cacc06215271 ("sctp: use GFP_USER for user-controlled kmalloc") > missed two other spots. > > For connectx, as it's more likely to be used by kernel users of the API, > it detects if GFP_USER should be used or not. >

Re: [PATCH 1/4] net: ethernet: arc: Probe emac after set RMII clock

2015-12-27 Thread David Miller
I only see 3 patches in this series. Furthermore, you failed to provide a proper "[PATCH 0/4] xxx" posting providing a high level description of what this series is doing, and how it is doing it, and why. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH v2 0/9] ARM: dts: Add compatible property to "partitions" node

2015-12-27 Thread Simon Horman
On Mon, Dec 21, 2015 at 11:33:44AM +0100, Geert Uytterhoeven wrote: > Hi, > > As of commit e488ca9f8d4f62c2 ("doc: dt: mtd: partitions: add compatible > property to "partitions" node"), which is in v4.4-rc6, the "partitions" > subnode of an SPI FLASH device node must have a compatible

Makefile:610: arch/m68k/Makefile: No such file or directory

2015-12-27 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 74bf8efb5fa6e958d2d7c7917b8bb672085ec0c6 commit: a436bb7b806383ae0593cab53d17fc9676270cd3 kbuild: use relative path more to include Makefile date: 9 months ago config: m68k-alldefconfig (attached as

[GIT PULL] keys bugfix

2015-12-27 Thread James Morris
This is a resend of just the first (critical) fix. Please pull. The following changes since commit 8db7b3c54401d83a4dc370a59b8692854000ea03: Merge branch 'parisc-4.4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux (2015-12-25 13:19:50 -0800) are available in the

Re: [PATCH RESEND 1/1] serial: 8250_pci: Fix real serial port count for F81504/508/512

2015-12-27 Thread Peter Hung
Hi Greg, Andy Shevchenko 於 2015/12/13 上午 09:08 寫道: First of all, maybe you can consider to split this part of the driver to separate one? (Like we did for 8250_mid.c). It seems 8250_pci is too bloated. But it's just an idea, maybe for future. Did you have reviewed this patch? Please skip

Re: [PATCH 3/3] cpufreq: Simplify core code related to boost support

2015-12-27 Thread Viresh Kumar
On 27-12-15, 00:27, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Notice that the boost_supported field in struct cpufreq_driver is > redundant, because the driver's ->set_boost callback may be left > unset if "boost" is not supported. Moreover, the only driver > populating the

Re: [PATCH 2/3] cpufreq: acpi-cpufreq: Simplify boost-related code

2015-12-27 Thread Viresh Kumar
On 27-12-15, 00:25, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The store_boost() routine is only used by store_cpb(), so move > the code from it directly to that function and rename _store_boost() > to set_boost() to make its name reflect the name of the driver > callback pointing to

Re: [PATCH 1/3] cpufreq: Make cpufreq_boost_supported() static

2015-12-27 Thread Viresh Kumar
On 27-12-15, 00:23, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > cpufreq_boost_supported() is not used outside of cpufreq.c, so make > it static. > > While at it, refactor it as a one-liner (which it really is). > > Signed-off-by: Rafael J. Wysocki > --- > drivers/cpufreq/cpufreq.c

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2015-12-27 Thread Danny Milosavljevic
Hi Maxime, On Sun, 27 Dec 2015 19:21:57 +0100 Maxime Ripard wrote: > On Mon, Dec 21, 2015 at 12:34:16PM +0100, Danny Milosavljevic wrote: > > This is the second part, actually adding FM, Line and Mic inputs. > > Again, having a meaningful and standalone commit log would be nice. Okay, will

Re: [PATCH v3 00/23] Unrestricted media entity ID range support

2015-12-27 Thread Javier Martinez Canillas
Hello Laurent, On 12/27/2015 02:11 PM, Laurent Pinchart wrote: > Hi Mauro, > > On Wednesday 23 December 2015 10:32:42 Mauro Carvalho Chehab wrote: >> Em Wed, 16 Dec 2015 16:03:01 +0200 Sakari Ailus escreveu: >>> On Wed, Dec 16, 2015 at 03:32:15PM +0200, Sakari Ailus wrote: This is the third

Linux 4.4-rc7

2015-12-27 Thread Linus Torvalds
Christmas is over, and New Year's Eve looms, but there is no rest for kernel developers, and rc7 is out there. [ Looks at actual rc7 patch ] Ok, clearly there _is_ some rest for kernel developers, because rc7 is pretty tiny. I think a third of the patch is from the sparc updates, and those

Re: [PATCH] Move the judgement of timeout into mmc_switch_status_error()

2015-12-27 Thread Jaehoon Chung
Hi, Did you read my comment? Which kernel version did you use? I think your patch doesn't need on mainline kernel. If you want to apply the patch, work on the latest kernel. https://patchwork.kernel.org/patch/7719811/ Author: Chaotian Jing AuthorDate: Mon Nov 30 09:27:30 2015 +0800

[lkp] [netlabel] a9579ae908: INFO: suspicious RCU usage. ]

2015-12-27 Thread kernel test robot
FYI, we noticed the below changes on https://github.com/0day-ci/linux Huw-Davies/CALIPSO-implementation/20151222-201139 commit a9579ae9087244d66ddaff74cba098b5ac8adcdb ("netlabel: Add an address family to domain hash entries.")

[lkp] [x86 tsc] 948736c417: !!! IP-Config: Auto-configuration of network failed !!!

2015-12-27 Thread kernel test robot
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux.git x86 commit 948736c41795c2c74cf0681600ebdacdaa76cd54 ("x86 tsc: Use Sklake CPUID to distinguish cpu_khz and tsc_khz") We found following new message in kernel log after your commit. [

Re: [v10, 0/6] Freescale DPAA FMan

2015-12-27 Thread David Miller
From: Date: Mon, 21 Dec 2015 02:21:24 +0200 > The Freescale Data Path Acceleration Architecture (DPAA) is a set > of hardware components on specific QorIQ multicore processors. > This architecture provides the infrastructure to support > simplified sharing of networking interfaces and

Re: [PATCH] HID: i2c-hid: Prevent sending reports from racing with device reset

2015-12-27 Thread Linus Torvalds
On Mon, Dec 21, 2015 at 5:26 AM, Mika Westerberg wrote: > > Below is what happens to touchpad on Lenovo Yoga 900 during resume from > system sleep: Ok, since my daughter is home for xmas, I can report that it seems to indeed fix the problem on her Yoga 900 too. Reported-and-tested-by: Linus

Re: [PATCH v5 1/6] clk: qcom: Add support for SMD-RPM Clocks

2015-12-27 Thread Bjorn Andersson
On Thu 03 Dec 06:02 PST 2015, Georgi Djakov wrote: > This adds initial support for clocks controlled by the Resource > Power Manager (RPM) processor on some Qualcomm SoCs, which use > the qcom_smd_rpm driver to communicate with RPM. > Such platforms are msm8916, apq8084 and msm8974. > > The RPM

[PATCH] Move the judgement of timeout into mmc_switch_status_error()

2015-12-27 Thread Youngjin Jang
__mmc_switch() is possible to misjudge error. Although jiffies was overed timeout, the chance about "R1_CURRENT_STATE(status) != R1_STATE_PRG" is exists. In other words, Successful completion of CMD6 with timeout error. Kernel expects failure of __mmc_switch, but card is completed CMD6 in this

Re: [PATCH 10/10] ARM: plat-samsung: use to_platform_device()

2015-12-27 Thread Krzysztof Kozlowski
On 27.12.2015 22:17, Geliang Tang wrote: > Use to_platform_device() instead of open-coding it. > > Signed-off-by: Geliang Tang > --- > arch/arm/plat-samsung/adc.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) Thanks! Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof

[lkp] [selinux] 5d226df4ed: -10.1% unixbench.score

2015-12-27 Thread kernel test robot
FYI, we noticed the below changes on git://git.infradead.org/users/pcmoore/selinux stable-4.5 commit 5d226df4edfa0eb1e689e7ac2741cf261ff7cbf1 ("selinux: Revalidate invalid inode security labels") =

[PATCH] ARM: dts: qcom: msm8974: Add WCNSS SMP2P node

2015-12-27 Thread bjorn
From: Bjorn Andersson Signed-off-by: Bjorn Andersson --- arch/arm/boot/dts/qcom-msm8974.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 18c419ee9d48..3a88228e4358 100644 ---

[lkp] [f2fs] 1abff93d01: 75.0% xfstests.time.exit_status

2015-12-27 Thread kernel test robot
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit 1abff93d01eddaab7ccdcf15f8cda4d91cbbcd9a ("f2fs: support fs shutdown") =

[PATCH] ARM: dts: qcom: msm8974: Add smsm node

2015-12-27 Thread bjorn
From: Bjorn Andersson Signed-off-by: Bjorn Andersson --- arch/arm/boot/dts/qcom-msm8974.dtsi | 41 + 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 3f6b8f2022c4..18c419ee9d48

[PATCH 2/4] wcn36xx: Change indication list lock to spinlock

2015-12-27 Thread Bjorn Andersson
In preparation for handling incoming messages from IRQ context, change the indication list lock to a spinlock Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.c | 12 ++-- drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 2 +- 2 files changed, 7 insertions(+), 7

[PATCH 4/4] dt: binding: Add Qualcomm wcn36xx WiFi binding

2015-12-27 Thread Bjorn Andersson
Add binding representing the Qualcomm wcn3620/60/80 WiFi block. Signed-off-by: Bjorn Andersson --- .../bindings/net/wireless/qcom,wcn36xx-wifi.txt| 76 ++ 1 file changed, 76 insertions(+) create mode 100644

[PATCH 3/4] wcn36xx: Transition driver to SMD client

2015-12-27 Thread Bjorn Andersson
The wcn36xx wifi driver follows the life cycle of the WLAN_CTRL SMD channel, as such it should be a SMD client. This patch makes this transition, now that we have the necessary frameworks available. Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/Kconfig | 2 +-

[PATCH 0/4] WCN36xx convert to mainline SMD interface

2015-12-27 Thread Bjorn Andersson
The mainline kernel now has the necessary implementations for SMD, SMSM and WCNSS_CTRL. This series provides the changes necessary for the wcn36xx driver to utilize this infrastructure and make this driver work in mainline. A driver for loading the WCNSS firmware, through remoteproc, has been

[PATCH 1/4] wcn36xx: Fold indication payload into message header

2015-12-27 Thread Bjorn Andersson
Merge the two allocation instead of separately allocating room for the indication payload. Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.c | 15 ++- drivers/net/wireless/ath/wcn36xx/smd.h | 2 +- 2 files changed, 7 insertions(+), 10 deletions(-) diff

Re: [PATCH RESEND v2 1/1] fix a dead loop when in heavy low memory

2015-12-27 Thread David Rientjes
On Sun, 27 Dec 2015, Figo Zhang wrote: > Android System UI hang when run heavy monkey stress test. > > V2: add more detail about how to re-produce this issue, the > important is install more than 100 apps/games. > > Re-produce step: > Run this monkey stress test script with more than 100 >

[PATCH v2 3/3] dt-bindings: regulator/mfd: Reorganize S2MPA01 bindings

2015-12-27 Thread Krzysztof Kozlowski
The mfd/s2mpa01.txt duplicates some of the information about bindings with old mfd/s2mps11.txt. Now common part exists entirely in mfd/samsung,sec-core.txt so: - add company prefix to file name (regulator/samsung,s2mpa01.txt), - remove duplicated information, - reorganize the contents to match

[PATCH v2 2/3] dt-bindings: regulator/mfd: Reorganize S5M8767 bindings

2015-12-27 Thread Krzysztof Kozlowski
The regulator/s5m8767-regulator.txt duplicates some of the information about bindings with old mfd/s2mps11.txt. Now common part exists entirely in mfd/samsung,sec-core.txt so: - add company prefix to file name (regulator/samsung,s5m8767.txt), - remove duplicated information, - reorganize the

[PATCH v2 2/4] remoteproc: Add additional crash reasons

2015-12-27 Thread Bjorn Andersson
The Qualcomm WCNSS can crash by watchdog or a fatal software error. Add these types to the list of remoteproc crash reasons. Signed-off-by: Bjorn Andersson --- Changes since v1: - None drivers/remoteproc/remoteproc_core.c | 2 ++ include/linux/remoteproc.h | 4 2 files changed,

[PATCH] ARM: dts: qcom: msm8974: Add additional reserved regions

2015-12-27 Thread Bjorn Andersson
This adds the additional reserved regions found on 8974 based devices. Signed-off-by: Bjorn Andersson --- arch/arm/boot/dts/qcom-msm8974.dtsi | 40 + 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi

[PATCH v2 3/4] dt-binding: remoteproc: Introduce Qualcomm WCNSS loader binding

2015-12-27 Thread Bjorn Andersson
The document defines the binding for a component that loads firmware for and boots the Qualcomm WCNSS core. Signed-off-by: Bjorn Andersson --- Changes since v1: - Dropped custom properties for firmware-name and crash-reason .../bindings/remoteproc/qcom,wcnss-pil.txt | 92

[PATCH v2 4/4] remoteproc: qcom: Introduce WCNSS peripheral image loader

2015-12-27 Thread Bjorn Andersson
This introduces the peripheral image loader, for loading WCNSS firmware and boot the core on e.g. MSM8974. The firmware is verified and booted with the help of the Peripheral Authentication System (PAS) in TrustZone. Signed-off-by: Bjorn Andersson --- Changes since v1: - Hard coding SMEM id for

[PATCH v2 1/3] dt-bindings: regulator/clock/mfd: Reorganize S2MPS-family bindings

2015-12-27 Thread Krzysztof Kozlowski
Bindings for Samsung S2M and S5M family PMICs are in mess. They are spread over different files and subdirectories in a non-consistent way. The devices and respective drivers for them share a lot in common so everything could be organized in a more readable way. Reorganize the S2MPS11/13/14/15

[PATCH v2 0/3] dt-bindings: regulator/clock/mfd: Reorganize S2M/S5M bindings

2015-12-27 Thread Krzysztof Kozlowski
Hi, I got all acks for the patches. Please kindly pick up. Maybe Rob or Lee? The patchset tries to bring some order to the chaotic bindings for family of Samsung PMIC devices: S2MPS/S2MPA/S5M. Beside of renaming and removal of common parts I also tried to make a consistent style used in the

[PATCH v2 1/4] remoteproc: core: Make the loaded resource table optional

2015-12-27 Thread Bjorn Andersson
Remote processors like the ones found in the Qualcomm SoCs does not have a resource table passed to them, so make it optional by only populating it if it does exist. Signed-off-by: Bjorn Andersson --- Changes since v1: - None drivers/remoteproc/remoteproc_core.c | 8 ++-- 1 file changed,

[PATCH v2 0/4] Qualcomm WCNSS Peripheral Image Loader

2015-12-27 Thread Bjorn Andersson
This series provides the minimum changes needed to use remotproc on the Qualcomm platform and then introduces the Peripheral Image Loader for the WCNSS core. Bjorn Andersson (4): remoteproc: core: Make the loaded resource table optional remoteproc: Add additional crash reasons dt-binding:

Re: [PATCH 2/2] [media] media-device: split media initialization and registration

2015-12-27 Thread Sakari Ailus
Hi Mauro, On Tue, Dec 15, 2015 at 09:13:42AM -0200, Mauro Carvalho Chehab wrote: > Em Thu, 10 Sep 2015 20:14:04 +0300 > Sakari Ailus escreveu: > > > Hi Javier, > > > > Thanks for the set! A few comments below. > > > > Javier Martinez Canillas wrote: > > > The media device node is registered

[lkp] [kernel/*] c7af9d5728: BUG kmalloc-16 (Not tainted): Invalid object pointer 0xd5c76188

2015-12-27 Thread kernel test robot
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.misc commit c7af9d5728bed29ef614324e67e066896d087c8f ("kernel/*: switch to memdup_user_nul()") [5.642811] init: Failed to create pty - disabling logging for job [5.644294] init:

Re: [PATCH 2/6] regulator: lp872x: Get rid of duplicate reference to DVS GPIO

2015-12-27 Thread Milo Kim
On 23/12/15 19:58, Paul Kocialkowski wrote: The lp872x structure holds a reference to the DVS GPIO, but it is never actually used anywhere, since a first reference exists from the lp872x_dvs structure. Signed-off-by: Paul Kocialkowski Acked-by: Milo Kim --- drivers/regulator/lp872x.c |

[lkp] [x86/mm] d9da2c95d7: WARNING: CPU: 0 PID: 0 at arch/x86/kernel/cpu/common.c:1498 warn_pre_alternatives+0x1c/0x1e()

2015-12-27 Thread kernel test robot
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/pcid commit d9da2c95d77fd14360cd902ff1bc3859452bb5bc ("x86/mm: If INVPCID is available, use it to flush global mappings") [0.00] BRK [0x0355d000, 0x0355dfff] PGTABLE [0.00]

Re: [PATCH 1/6] regulator: lp872x: Add missing of_match in regulators descriptions

2015-12-27 Thread Milo Kim
On 23/12/15 19:58, Paul Kocialkowski wrote: In order to select the regulators via of_find_regulator_by_node (and thus use them in devicetree), defining of_match for each regulator is required. Signed-off-by: Paul Kocialkowski Acked-by: Milo Kim --- drivers/regulator/lp872x.c | 15

Re: [LKP] [net] ceb5d58b21: -69.2% fsmark.files_per_sec

2015-12-27 Thread Huang, Ying
Eric Dumazet writes: > On Wed, Dec 23, 2015 at 9:49 PM, kernel test robot > wrote: >> FYI, we noticed the below changes on >> >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >> commit ceb5d58b217098a657f3850b7a2640f995032e62 ("net: fix sock_wake_async() >> rcu

Re: [PATCH 4/6] regulator: lp872x: Add enable GPIO pin support

2015-12-27 Thread Milo Kim
Hi Paul, On 23/12/15 20:56, Mark Brown wrote: On Wed, Dec 23, 2015 at 11:58:37AM +0100, Paul Kocialkowski wrote: + gpio = lp->pdata->enable_gpio; + if (!gpio_is_valid(gpio)) + return 0; + + /* Always set enable GPIO high. */ + ret =

Re: [PATCH v2 1/3] device property: add spaces to PROPERTY_ENTRY_STRING macro

2015-12-27 Thread Rafael J. Wysocki
On Wednesday, December 23, 2015 03:34:42 PM Andy Shevchenko wrote: > Just a style fix, no functional changes. > > To be folded to Andrew's patch. What patch? > Signed-off-by: Andy Shevchenko > --- > include/linux/property.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

Re: [PATCH v2] gpiolib: fix warning about iterator

2015-12-27 Thread Linus Walleij
On Sun, Dec 27, 2015 at 2:36 PM, Sudip Mukherjee wrote: > We were getting build warning about "iterator" being used uninitialized. > Use iterator properly to fix the build warning and in the process remove > the variable "pos" which is not required now. > > Signed-off-by: Sudip Mukherjee > ---

Re: [PATCH 4/6] regulator: lp872x: Add enable GPIO pin support

2015-12-27 Thread Milo Kim
Hi Paul, Thanks for the patches. Please see my comments below. On 23/12/15 19:58, Paul Kocialkowski wrote: LP872x regulators are made active via the EN pin, which might be hooked to a GPIO. This adds support for driving the GPIO high when the driver is in use. EN pin is used for enabling HW

[PATCH RT] Fix build error in kernel/time/hrtimer.c

2015-12-27 Thread Ben Hutchings
Move declaration of hrtimer_wakeup() above its first use. Signed-off-by: Ben Hutchings --- This is against 4.4-rc6-rt1, after latency-hist.patch. hrtimer-fixup-hrtimer-callback-changes-for-preempt-r.patch will need to be refreshed after applying this. Ben. --- a/kernel/time/hrtimer.c +++

Re: [PATCH powerpc/next v6 0/4] atomics: powerpc: Implement relaxed/acquire/release variants

2015-12-27 Thread Boqun Feng
On Sun, Dec 27, 2015 at 06:53:39PM +1100, Michael Ellerman wrote: > On Wed, 2015-12-23 at 18:54 +0800, Boqun Feng wrote: > > On Wed, Dec 23, 2015 at 01:40:05PM +1100, Michael Ellerman wrote: > > > On Tue, 2015-12-15 at 22:24 +0800, Boqun Feng wrote: > > > > Hi all, > > > > > > > > This is v6 of

Re: KVM: memory ballooning bug?

2015-12-27 Thread Minchan Kim
On Sun, Dec 27, 2015 at 08:23:03PM +0300, Konstantin Khlebnikov wrote: > On Wed, Dec 23, 2015 at 8:22 AM, Minchan Kim wrote: > > During my compaction-related stuff, I encountered some problems with > > ballooning. > > > > Firstly, with repeated inflating and deflating cycle, guest memory(ie, > >

Re: [PATCH 2/2] virtio_balloon: fix race between migration and ballooning

2015-12-27 Thread Rafael Aquini
On Mon, Dec 28, 2015 at 08:35:13AM +0900, Minchan Kim wrote: > In balloon_page_dequeue, pages_lock should cover the loop > (ie, list_for_each_entry_safe). Otherwise, the cursor page could > be isolated by compaction and then list_del by isolation could > poison the page->lru.{prev,next} so the

Re: [PATCH 1/2] virtio_balloon: fix race by fill and leak

2015-12-27 Thread Rafael Aquini
On Mon, Dec 28, 2015 at 08:35:12AM +0900, Minchan Kim wrote: > During my compaction-related stuff, I encountered a bug > with ballooning. > > With repeated inflating and deflating cycle, guest memory( > ie, cat /proc/meminfo | grep MemTotal) is decreased and > couldn't be recovered. > > The

[PATCH 1/2] virtio_balloon: fix race by fill and leak

2015-12-27 Thread Minchan Kim
During my compaction-related stuff, I encountered a bug with ballooning. With repeated inflating and deflating cycle, guest memory( ie, cat /proc/meminfo | grep MemTotal) is decreased and couldn't be recovered. The reason is balloon_lock doesn't cover release_pages_balloon so struct

[PATCH 2/2] virtio_balloon: fix race between migration and ballooning

2015-12-27 Thread Minchan Kim
In balloon_page_dequeue, pages_lock should cover the loop (ie, list_for_each_entry_safe). Otherwise, the cursor page could be isolated by compaction and then list_del by isolation could poison the page->lru.{prev,next} so the loop finally could access wrong address like this. This patch fixes the

Re: [PATCH v6 2/3] spi: sun4i: Fix clock calculations to be predictable and never exceed the requested rate

2015-12-27 Thread Marcus Weseloh
Hi, 2015-12-27 22:09 GMT+01:00 Maxime Ripard : > On Sat, Dec 26, 2015 at 04:53:05PM +0100, Marcus Weseloh wrote: >> This patch fixes multiple problems with the current clock calculations: >> >> 1. The A10/A20 datasheet contains the formula AHB_CLK / (2^(n+1)) to >> calculate SPI_CLK from CDR1,

Re: [PATCH] thinkpad_acpi: Add support for keyboard backlight

2015-12-27 Thread Henrique de Moraes Holschuh
On Thu, 24 Dec 2015, Pali Rohár wrote: > This patch adds support for controlling keyboard backlight via standard > linux led class interface (::kbd_backlight). It uses ACPI HKEY device with > MLCG and MLCS methods. > > Signed-off-by: Pali Rohár > Tested-by: Fabio D'Urso It looks good at a

GPF after s2disk since 4.3 (inode_permission+0x1a/0x50)

2015-12-27 Thread Rolf Eike Beer
Hi all, I see these backtraces whenever I wake up my laptop from s2disk. This has been no problem in 4.2.x. All relevant filesystems I have are ext4. I regularly do s2ram and have not seen any problems with that. Any ideas? Greetings, Eike general protection fault: [#1] PREEMPT SMP

Re: [PATCH] Fix ld-version.sh to handle large 3rd version part

2015-12-27 Thread Andi Kleen
On Sat, Dec 26, 2015 at 10:47:52PM +, James Hogan wrote: > The ld-version.sh script doesn't handle versions with large (>= 10) 3rd > version components, because the 2nd component is only multiplied by 10 > times that of the 3rd component. > > For example the following version string: > GNU ld

Re: [PATCH] usb: gadget: acm: set notify_req to NULL after freed to avoid double free

2015-12-27 Thread Robert Baldyga
On 12/26/2015 04:57 AM, changbin...@intel.com wrote: > From: "Du, Changbin" > > If acm_bind fails before allocate notification and acm->notify_req is > not set to NULL after freed last time, double free will happen. Looks good to me. Similar problem can occur with another USB functions (at

Re: [RFC PATCH 3/5] crypto: sunxi-ss: fix dev_dbg() output type

2015-12-27 Thread Maxime Ripard
On Tue, Dec 22, 2015 at 12:27:45PM +, Andre Przywara wrote: > The length parameter in this dev_dbg() call is actually a size_t, > so use the proper type to avoid warnings when compiling for 64-bit > architectures. > > Signed-off-by: Andre Przywara Acked-by: Maxime Ripard Thanks! Maxime

Re: [RFC PATCH 4/5] irqchip: sun4i: fix compilation outside of arch/arm

2015-12-27 Thread Maxime Ripard
Hi, On Tue, Dec 22, 2015 at 12:27:46PM +, Andre Przywara wrote: > The Allwinner sunxi specific interrupt controller cannot be compiled > for any architecture except arm: > > drivers/irqchip/irq-sun4i.c:25:26: fatal error: asm/mach/irq.h: No such file > or directory > compilation terminated.

Re: [RFC PATCH 1/5] drivers: sunxi-rsb: fix error output type

2015-12-27 Thread Maxime Ripard
On Tue, Dec 22, 2015 at 12:27:43PM +, Andre Przywara wrote: > "len" is actually a size_t in this function here, so properly annotate > the dev_err printf type to allow compilation for 64-bit architectures. > > Signed-off-by: Andre Przywara Queued for 4.6, thanks! Maxime -- Maxime Ripard,

Re: [PATCH v5 04/20] clocksource: Add NPS400 timers driver

2015-12-27 Thread Noam Camus
23] >url: >https://github.com/0day-ci/linux/commits/Noam-Camus/Adding-plat-eznps-to-ARC/20151227-220433 >base: https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc for-next >config: i386-allmodconfig (attached as .config) >reproduce: > # save the attached .config to

Fix whitespace issues

2015-12-27 Thread sasa bogicevic
As Joe suggested I changed the “type * “ function params which I screwed up along the way and amended and resend the patch related to whitespace issues in drivers/pci. Thanks, Sasa { name: Bogicevic Sasa phone: +381606006200 } -- To unsubscribe from this list: send the line

[PATCH] [media] bttv: Returning only value constants in two functions

2015-12-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 27 Dec 2015 22:02:21 +0100 Return constant integer values without storing them in the local variable "err" or "rc". Signed-off-by: Markus Elfring --- drivers/media/pci/bt8xx/bttv-driver.c | 25 ++--- 1 file changed, 6 insertions(+), 19

Re: [PATCH v3 2/3] ARM: dts: sun8i: Add Allwinner A83T dtsi

2015-12-27 Thread Maxime Ripard
On Tue, Dec 22, 2015 at 05:41:22PM +0800, Vishnu Patekar wrote: > >> + clocks { > >> + #address-cells = <1>; > >> + #size-cells = <1>; > >> + ranges; > >> + > >> + osc24M: osc24M_clk { > >> + #clock-cells = <0>; > >> +

[PATCH] qlcnic: constify qlcnic_dcb_ops structures

2015-12-27 Thread Julia Lawall
The qlcnic_dcb_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c |4 ++-- drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h |2 +- 2 files changed, 3

Re: [PATCH v6 3/3] spi: sun4i: Add support for wait time between word transmissions

2015-12-27 Thread Maxime Ripard
On Sat, Dec 26, 2015 at 04:53:06PM +0100, Marcus Weseloh wrote: > Modifies the sun4i SPI master driver to make use of the > "spi-word-wait-ns" property. This specific SPI controller needs 3 clock > cycles to set up the delay, which makes the minimum non-zero wait time > on this hardware 4 clock

[PATCH] surface pro 4: fix compare_const_fl.cocci warnings

2015-12-27 Thread Julia Lawall
Move constants to the right of binary operators. Generated by: scripts/coccinelle/misc/compare_const_fl.cocci CC: Weng Xuetian Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- It's not a big deal, but the constant on the right looks nicer to me. key_code seems like the more

Re: [PATCH v6 2/3] spi: sun4i: Fix clock calculations to be predictable and never exceed the requested rate

2015-12-27 Thread Maxime Ripard
On Sat, Dec 26, 2015 at 04:53:05PM +0100, Marcus Weseloh wrote: > This patch fixes multiple problems with the current clock calculations: > > 1. The A10/A20 datasheet contains the formula AHB_CLK / (2^(n+1)) to > calculate SPI_CLK from CDR1, but this formula is wrong. The actual > formula -

[PATCH] usb: renesas_usbhs: constify usbhs_pkt_handle structures

2015-12-27 Thread Julia Lawall
The usbhs_pkt_handle structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/usb/renesas_usbhs/fifo.c | 20 ++-- drivers/usb/renesas_usbhs/fifo.h | 20 ++--

Re: [PATCH v3] surface pro 4: Add support for Surface Pro 4 Buttons

2015-12-27 Thread Andy Shevchenko
On Sun, Dec 27, 2015 at 9:21 PM, Weng Xuetian wrote: > Surface Pro 4 buttons are managed by a device with _HID "MSHW0040" > different from Surface Pro 3. > > This commit adds MSHW0040 to id list to support the Surface Pro 4, and > renames the driver to surfacepro_button accordingly. > > Bugzilla:

[PATCH] media: dvb_ringbuffer: Add memory barriers

2015-12-27 Thread Soeren Moch
Implement memory barriers according to Documentation/circular-buffers.txt: - use smp_store_release() to update ringbuffer read/write pointers - use smp_load_acquire() to load write pointer on reader side - use ACCESS_ONCE() to load read pointer on writer side This fixes data stream corruptions

Re: [PATCH 09/10] watchdog: cadence_wdt: use to_platform_device()

2015-12-27 Thread Wim Van Sebroeck
Hi Geliang, > Use to_platform_device() instead of open-coding it. > > Signed-off-by: Geliang Tang > --- > drivers/watchdog/cadence_wdt.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/watchdog/cadence_wdt.c b/drivers/watchdog/cadence_wdt.c > index

[PATCH] af_unix: Fix splice-bind deadlock

2015-12-27 Thread Rainer Weikusat
On 2015/11/06, Dmitry Vyukov reported a deadlock involving the splice system call and AF_UNIX sockets, http://lists.openwall.net/netdev/2015/11/06/24 The situation was analyzed as (a while ago) A: socketpair() B: splice() from a pipe to /mnt/regular_file does sb_start_write() on /mnt

Re: [PATCH] watchdog: dw_wdt: fix signedness bug in dw_wdt_top_in_seconds()

2015-12-27 Thread Wim Van Sebroeck
Hi Jisheng, > On 64bit platforms, "(1 << (16 + top)) / clk_get_rate(dw_wdt.clk)" is > sign-extended to 64bit then converted to unsigned 64bit, finally divide > the clk rate. If the top is the maximum TOP i.e 15, "(1 << (16 +15))" > will be sign-extended to 0x8000, then converted to

  1   2   3   4   5   >