Re: [PATCH] sched: reset sysctl_sched_time_avg to default when

2017-09-01 Thread Ethan Zhao
Peter, V2 sent, tested okay on stable 4.1, re-factor a little, could apply to v4.13-rc5, please review. [root@ ~]# sysctl kernel.sched_time_avg_ms kernel.sched_time_avg_ms = 1000 [root@ ~]# sysctl kernel.sched_time_avg_ms=0 sysctl: setting key "kernel.sched_time_avg_ms": Invalid argument kernel.

Re: [PATCH 2/2] Bluetooth: btqcomsmd: BD address setup

2017-09-01 Thread Marcel Holtmann
Hi Bjorn, >>> Bluetooth BD address can be retrieved in the same way as >>> for wcnss-wlan MAC address. This patch mainly stores the >>> local-mac-address property and sets the BD address during >>> hci device setup. >>> >>> Signed-off-by: Loic Poulain >>> Signed-off-by: Bjorn Andersson >>> ---

Re: [PATCH v4 next 1/3] modules:capabilities: allow __request_module() to take a capability argument

2017-09-01 Thread Djalal Harouni
Hi Kees, On Thu, Jun 1, 2017 at 9:10 PM, Kees Cook wrote: > On Thu, Jun 1, 2017 at 7:56 AM, Djalal Harouni wrote: ... > >> BTW Kees, also in next version I won't remove the >> capable(CAP_NET_ADMIN) check from [1] >> even if there is the new request_module_cap(), I would like it to be >> in a di

RE: [PATCH] vsock: only load vmci transport on VMware hypervisor by default

2017-09-01 Thread Dexuan Cui
> From: Stefan Hajnoczi [mailto:stefa...@redhat.com] > Sent: Thursday, August 31, 2017 4:55 AM > ... > On Tue, Aug 29, 2017 at 03:37:07PM +, Jorgen S. Hansen wrote: > > > On Aug 29, 2017, at 4:36 AM, Dexuan Cui wrote: > > If we allow multiple host side transports, virtio host side support and

Re: [PATCH] ipv6: sr: Use ARRAY_SIZE macro

2017-09-01 Thread Thomas Meyer
On Fri, Sep 01, 2017 at 08:51:55PM -0700, Joe Perches wrote: > On Fri, 2017-09-01 at 18:35 -0700, David Miller wrote: > > From: Thomas Meyer > > Date: Thu, 31 Aug 2017 16:18:15 +0200 > > > > > Grepping for "sizeof\(.+\) / sizeof\(" found this as one of the first > > > candidates. > > > Maybe a co

Re: printk: what is going on with additional newlines?

2017-09-01 Thread Tetsuo Handa
Linus Torvalds wrote: > On Tue, Aug 29, 2017 at 1:41 PM, Tetsuo Handa > wrote: > >> > >> A private buffer has none of those issues. > > > > Yes, I posted "[PATCH] printk: Add best-effort printk() buffering." at > > http://lkml.kernel.org/r/1493560477-3016-1-git-send-email-penguin-ker...@i-love.sak

Re: [PATCH 2/2] Bluetooth: btqcomsmd: BD address setup

2017-09-01 Thread Marcel Holtmann
Hi Rob, >>> Bluetooth BD address can be retrieved in the same way as >>> for wcnss-wlan MAC address. This patch mainly stores the >>> local-mac-address property and sets the BD address during >>> hci device setup. >>> >>> Signed-off-by: Loic Poulain >>> Signed-off-by: Bjorn Andersson >>> --- >>

Re: RFC: Revert move default dialect from CIFS to to SMB3

2017-09-01 Thread Andrew Bartlett
On Fri, 2017-09-01 at 20:56 -0700, Linus Torvalds wrote: > On Fri, Sep 1, 2017 at 7:16 PM, Steve French wrote: > > > > The default was SMB1 (CIFS) and was recently changed to SMB3. > > The dialect still can be overridden by specifying "vers=1.0" or "vers=2.1" > > etc. on mount. > > > > We just p

Linux 4.9.47

2017-09-01 Thread Greg KH
I'm announcing the release of the 4.9.47 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.9.47

2017-09-01 Thread Greg KH
diff --git a/Makefile b/Makefile index 846ef1b57a02..a0abbfc15a49 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 46 +SUBLEVEL = 47 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c index 710511cadd50..0c060c5

Re: Linux 4.4.86

2017-09-01 Thread Greg KH
diff --git a/Makefile b/Makefile index 0f3d843f42a7..1207bf6a0e7a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 85 +SUBLEVEL = 86 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c index 4c4

Linux 4.4.86

2017-09-01 Thread Greg KH
I'm announcing the release of the 4.4.86 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Linux 3.18.69

2017-09-01 Thread Greg KH
I'm announcing the release of the 3.18.69 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 3.18.69

2017-09-01 Thread Greg KH
diff --git a/Makefile b/Makefile index 0d7f1e91e910..49237a0442cd 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 68 +SUBLEVEL = 69 EXTRAVERSION = NAME = Diseased Newt diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c index 3dca1

Re: [RFC 0/4] mmc: sdhci-msm: Add CQE support for sdhci-msm

2017-09-01 Thread Ritesh Harjani
On 8/31/2017 2:09 PM, Adrian Hunter wrote: On 30/08/17 16:04, Ritesh Harjani wrote: Hi All, Please ignore the previous patch series from a wrong email address. Stupid gitconfig issue. Apologies for the spam. This is RFC patch series based on top of ulfh_mmc/cmdq branch which is based upon Adr

Re: [RFC 4/4] mmc: sdhci-msm: Handle unexpected interrupt case on enabling legacy IRQs on CQE halt

2017-09-01 Thread Ritesh Harjani
On 8/31/2017 1:05 PM, Adrian Hunter wrote: On 30/08/17 16:04, Ritesh Harjani wrote: There is a case when enabling the legacy IRQs and halting CQE is resuling into a command response interrupt without any command in progress. This patch handles such case here. Error signature without this patch

Re: [RFC 3/4] mmc: sdhci-msm: Change the desc_sz on cqe_enable/disable.

2017-09-01 Thread Ritesh Harjani
On 8/31/2017 12:12 PM, Adrian Hunter wrote: On 30/08/17 16:04, Ritesh Harjani wrote: When CMDQ is halted the HW expects descriptor size to be same which is using in CMDQ mode. Thus adjust the desc_sz of sdhci accordingly. Without this patch below command gives ADMA error when CQE is enabled.

Re: [RFC 2/4] mmc: sdhci-msm: Add CQHCI support for sdhci-msm

2017-09-01 Thread Ritesh Harjani
On 8/31/2017 12:55 PM, Adrian Hunter wrote: On 30/08/17 16:04, Ritesh Harjani wrote: This adds CQHCI support for sdhci-msm platforms. Signed-off-by: Ritesh Harjani --- .../devicetree/bindings/mmc/sdhci-msm.txt | 1 + drivers/mmc/host/Kconfig | 1 + dr

Re: [RFC 1/4] mmc: cqhci: Move CQHCI_ENABLE before setting TDLBA/TDLBAU

2017-09-01 Thread Ritesh Harjani
On 8/31/2017 11:31 AM, Adrian Hunter wrote: On 30/08/17 16:04, Ritesh Harjani wrote: Without this patch the CQHCI registers are getting reset again. Signed-off-by: Ritesh Harjani --- drivers/mmc/host/cqhci.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/driver

Warnings from include/linux/gpio/consumer.h with CONFIG_GPIOLIB=n

2017-09-01 Thread Florian Fainelli
Hi Linus, I think Sergei or someone else was mentioning that before a while ago, but when CONFIG_GPIOLIB=n most gpiod_* inline stubs have WARN_ON() that will scare people. What do you recommend doing for code that might be built with or without CONFIG_GPIOLIB, should we just encapsulate the part

Re: [PATCH 13/13] thermal/drivers/hisi: Remove mutex_lock in the code

2017-09-01 Thread Leo Yan
On Wed, Aug 30, 2017 at 10:47:37AM +0200, Daniel Lezcano wrote: > The mutex is used to protect against writes in the configuration register. > > That happens at probe time, with no possible race yet. > > Then when the module is unloaded and at suspend/resume. > > When the module is unloaded, it

Re: [PATCH] locking/refcounts, x86/asm: Use unique .text section for refcount exceptions

2017-09-01 Thread Mike Galbraith
On Fri, 2017-09-01 at 13:22 -0700, Kees Cook wrote: > Using .text.unlikely for refcount exceptions isn't safe because gcc may > move entire functions into .text.unlikely (e.g. in6_dev_get()), which > would cause any uses of a protected refcount_t function to stay inline > with the function, trigger

Re: RFC: Revert move default dialect from CIFS to to SMB3

2017-09-01 Thread Linus Torvalds
On Fri, Sep 1, 2017 at 7:16 PM, Steve French wrote: > > The default was SMB1 (CIFS) and was recently changed to SMB3. > The dialect still can be overridden by specifying "vers=1.0" or "vers=2.1" > etc. on mount. > > We just put together a patch to better explain the default changes > (with additio

Re: [PATCH] ipv6: sr: Use ARRAY_SIZE macro

2017-09-01 Thread Joe Perches
On Fri, 2017-09-01 at 18:35 -0700, David Miller wrote: > From: Thomas Meyer > Date: Thu, 31 Aug 2017 16:18:15 +0200 > > > Grepping for "sizeof\(.+\) / sizeof\(" found this as one of the first > > candidates. > > Maybe a coccinelle can catch all of those. Umm: try scripts/coccinelle/misc/array_si

Re: [PATCH 11/13] thermal/drivers/hisi: Convert long to int

2017-09-01 Thread Leo Yan
On Wed, Aug 30, 2017 at 10:47:35AM +0200, Daniel Lezcano wrote: > There is no point to specify the temperature as long variable, the int is > enough. > > Replace all long variables to int, so making the code consistent. > > Signed-off-by: Daniel Lezcano Reviewed-by: Leo Yan > --- > drivers/t

Re: tunnels: Don't apply GRO to multiple layers of encapsulation.

2017-09-01 Thread Jesse Gross
On Thu, Aug 31, 2017 at 6:58 AM, wrote: > [ resend due to mail problems at my end ] > > Hi Jesse, > > The backport of fac8e0f579695a3ecbc4d3cac369139d7f819971, > "tunnels: Don't apply GRO to multiple layers of encapsulation", > to linux-4.1.y seems to have missed a line. > > The 4.1 commit is 066

Re: [PATCH net-next, 0/4] cleanups and fixes of channel settings

2017-09-01 Thread David Miller
From: Haiyang Zhang Date: Fri, 1 Sep 2017 14:30:03 -0700 > This patch set cleans up some unused variables, unnecessary checks. > Also fixed some limit checking of channel number. Series applied.

Re: [PATCH 10/13] thermal/drivers/hisi: Rename and remove unused field

2017-09-01 Thread Leo Yan
On Wed, Aug 30, 2017 at 10:47:34AM +0200, Daniel Lezcano wrote: > Rename the 'sensors' field to 'sensor' as we describe only one sensor. > Remove the 'sensor_temp' as it is no longer used. > > Signed-off-by: Daniel Lezcano Reviewed-by: Leo Yan Tested-by: Leo Yan > --- > drivers/thermal/hisi_

Re: [PATCH 09/13] thermal/drivers/hisi: Remove costly sensor inspection

2017-09-01 Thread Leo Yan
On Wed, Aug 30, 2017 at 10:47:33AM +0200, Daniel Lezcano wrote: > The sensor is all setup, bind, resetted, acked, etc... every single second. > > That was the way to workaround a problem with the interrupt bouncing again and > again. > > With the following changes, we fix all in one: > > - Do t

Re: [RFC Part1 PATCH v3 16/17] X86/KVM: Provide support to create Guest and HV shared per-CPU variables

2017-09-01 Thread Andy Lutomirski
On Fri, Sep 1, 2017 at 3:52 PM, Brijesh Singh wrote: > Hi Boris, > > On 08/30/2017 12:46 PM, Borislav Petkov wrote: >> >> On Wed, Aug 30, 2017 at 11:18:42AM -0500, Brijesh Singh wrote: >>> >>> I was trying to avoid mixing early and no-early set_memory_decrypted() >>> but if >>> feedback is: use ea

Re: [PATCH] locking/refcounts, x86/asm: Use unique .text section for refcount exceptions

2017-09-01 Thread Kees Cook
On Fri, Sep 1, 2017 at 2:43 PM, Ard Biesheuvel wrote: > On 1 September 2017 at 21:22, Kees Cook wrote: >> Using .text.unlikely for refcount exceptions isn't safe because gcc may >> move entire functions into .text.unlikely (e.g. in6_dev_get()), which >> would cause any uses of a protected refcoun

Re: [PATCH 08/13] thermal/drivers/hisi: Fix configuration register setting

2017-09-01 Thread Leo Yan
On Wed, Aug 30, 2017 at 10:47:32AM +0200, Daniel Lezcano wrote: > The TEMP0_CFG configuration register contains different field to set up the > temperature controller. However in the code, nothing prevents a setup to > overwrite the previous one: eg. writing the hdak value overwrites the sensor > s

Re: [PATCH 07/13] thermal/drivers/hisi: Encapsulate register writes into helpers

2017-09-01 Thread Leo Yan
On Sat, Sep 02, 2017 at 10:09:15AM +0800, Leo Yan wrote: > On Wed, Aug 30, 2017 at 10:47:31AM +0200, Daniel Lezcano wrote: > > Hopefully, the function name can help to clarify the semantic of the > > operations > > when writing in the register. > > > > Signed-off-by: Daniel Lezcano > > --- > >

Re: RFC: Revert move default dialect from CIFS to to SMB3

2017-09-01 Thread Steve French
On Fri, Sep 1, 2017 at 2:45 PM, Linus Torvalds wrote: > On Fri, Sep 1, 2017 at 11:23 AM, L. A. Walsh wrote: >>Why be incompatible with the majority of Windows installations? >> I.e. If you really want to up security from 1.0 (not adverse to that), >> then why not go to 2.1 as used by Win7?

Re: [PATCH v3 2/5] dt-bindings: input: Add document bindings for mtk-pmic-keys

2017-09-01 Thread Chen Zhong
On Thu, 2017-08-31 at 14:52 -0500, Rob Herring wrote: > On Fri, Aug 25, 2017 at 02:32:30PM +0800, Chen Zhong wrote: > > This patch adds the device tree binding documentation for the MediaTek > > pmic keys found on PMIC MT6397/MT6323. > > > > Signed-off-by: Chen Zhong > > --- > > .../devicetree/b

Re: [PATCH V5 0/4] Add Broadcom STB USB phy driver

2017-09-01 Thread Florian Fainelli
On 08/25/2017 10:51 AM, Al Cooper wrote: > Add a new USB Phy driver for Broadcom STB SoCs. This driver > supports Broadcom STB ARM SoCs. This driver in > combination with the Broadcom STB ohci, ehci and xhci > drivers will enable USB1.1, USB2.0 and USB3.0 support. > This Phy driver also supports

Re: [PATCH V5 1/4] soc: brcmstb: Add Product ID and Family ID helper functions

2017-09-01 Thread Florian Fainelli
On 08/25/2017 10:51 AM, Al Cooper wrote: > Signed-off-by: Al Cooper Acked-by: Florian Fainelli > --- > drivers/soc/bcm/brcmstb/common.c| 12 > include/linux/soc/brcmstb/brcmstb.h | 10 ++ > 2 files changed, 22 insertions(+) > > diff --git a/drivers/soc/bcm/brcmstb/c

Re: [PATCH 2/2] ARM: dts: Add the PWM node to Cygnus

2017-09-01 Thread Florian Fainelli
On 08/31/2017 01:10 PM, Scott Branden wrote: > pwm node is correct. > > > On 17-08-31 11:54 AM, Eric Anholt wrote: >> This is connected up to the backlight on 911360_entphn, which we'll >> need for a panel driver. For now, leave the node disabled in the >> shared dtsi. >> >> Signed-off-by: Eri

Re: [PATCH 1/2] ARM: dts: Add the CLCD controller to Cygnus.

2017-09-01 Thread Florian Fainelli
On 08/31/2017 01:16 PM, Scott Branden wrote: > Hi Eric, > > mode is correct, location in file needs to be moved. > > > On 17-08-31 11:54 AM, Eric Anholt wrote: >> This doesn't yet enable it on any particular platform, as we still >> need a panel driver for bcm911360_entphn. >> >> Signed-off-by

Re: [PATCH 07/13] thermal/drivers/hisi: Encapsulate register writes into helpers

2017-09-01 Thread Leo Yan
On Wed, Aug 30, 2017 at 10:47:31AM +0200, Daniel Lezcano wrote: > Hopefully, the function name can help to clarify the semantic of the > operations > when writing in the register. > > Signed-off-by: Daniel Lezcano > --- > drivers/thermal/hisi_thermal.c | 96 > +++---

Re: [PATCH 3/3] dmaengine: sun6i: Add support for Allwinner A64

2017-09-01 Thread Stefan Bruens
On Samstag, 2. September 2017 00:32:50 CEST André Przywara wrote: > Hi, > > On 01/09/17 02:19, Stefan Bruens wrote: > > On Freitag, 1. September 2017 02:31:35 CEST Andre Przywara wrote: > >> Hi, > >> > >> On 31/08/17 00:36, Stefan Brüns wrote: > >>> The A64 SoC has the same dma engine as the H3 (

Re: [PATCH] CHROMIUM: devfreq: rk3399: Clear edev->dev drvdata before enabling dfi

2017-09-01 Thread jeffy
hi brian, On 09/02/2017 08:47 AM, Brian Norris wrote: On Sat, Sep 02, 2017 at 07:52:37AM +0800, Jeffy Chen wrote: Currently we are using edev->dev drvdata to get rk3399-dmc data, but it would be inited to edev in devfreq_event_add_edev. So we need to clear the edev->dev drvdata before enabling

Re: [PATCH] ipv6: sr: Use ARRAY_SIZE macro

2017-09-01 Thread David Miller
From: Thomas Meyer Date: Thu, 31 Aug 2017 16:18:15 +0200 > Grepping for "sizeof\(.+\) / sizeof\(" found this as one of the first > candidates. > Maybe a coccinelle can catch all of those. > > Signed-off-by: Thomas Meyer Applied, thanks.

Re: [PATCH][net-next] net: qualcomm: rmnet: remove unused variable priv

2017-09-01 Thread David Miller
From: Colin King Date: Thu, 31 Aug 2017 15:07:27 +0100 > From: Colin Ian King > > priv is being assigned but is never used, so remove it. > > Cleans up clang build warning: > "warning: Value stored to 'priv' is never read" > > Fixes: ceed73a2cf4a ("drivers: net: ethernet: qualcomm: rmnet: Ini

Re: [PATCH] net: phy: bcm7xxx: make array bcm7xxx_suspend_cfg static, reduces object code size

2017-09-01 Thread David Miller
From: Colin King Date: Thu, 31 Aug 2017 14:57:15 +0100 > From: Colin Ian King > > Don't populate the array bcm7xxx_suspend_cfg A on the stack, instead > make it static. Makes the object code smaller by over 300 bytes: > > Before: >text data bss dec hex filename >6

Re: [PATCH net-next v6] net: stmmac: Delete dead code for MDIO registration

2017-09-01 Thread David Miller
From: Romain Perier Date: Thu, 31 Aug 2017 15:53:03 +0200 > This code is no longer used, the logging function was changed by commit > fbca164776e4 ("net: stmmac: Use the right logging function in > stmmac_mdio_register"). > It was previously showing information about the type of the IRQ, if it's

Re: [PATCH 23/25] ALSA/dummy: Replace tasklet with softirq hrtimer

2017-09-01 Thread Takashi Sakamoto
On p 1 2017 20:58, Takashi Iwai wrote: >From 07d61ba2a1c0e06e914443225e194d99f2d8c58d Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Fri, 1 Sep 2017 19:10:18 +0900 Subject: [PATCH] ALSA: dummy: avoid stall due to a call of hrtimer_cancel() on a callback of hrtimer A call of 'htrimer_ca

Re: [PATCH] f2fs: avoid needless inode updates

2017-09-01 Thread Jaegeuk Kim
Please ignore this patch. Thanks, On 09/01, Jaegeuk Kim wrote: > If i_size wan't change at all, we don't need to write inode during fsync. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/f2fs.h | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/fs/f2fs/f2fs.h b

Re: [PATCH] CHROMIUM: devfreq: rk3399: Clear edev->dev drvdata before enabling dfi

2017-09-01 Thread Brian Norris
On Sat, Sep 02, 2017 at 07:52:37AM +0800, Jeffy Chen wrote: > Currently we are using edev->dev drvdata to get rk3399-dmc data, but > it would be inited to edev in devfreq_event_add_edev. > > So we need to clear the edev->dev drvdata before enabling dfi, to > prevent dfi from getting the wrong rk33

Re: [PATCH 3/3] dmaengine: sun6i: Add support for Allwinner A64

2017-09-01 Thread Stefan Bruens
On Samstag, 2. September 2017 00:32:50 CEST André Przywara wrote: > Hi, > > On 01/09/17 02:19, Stefan Bruens wrote: > > On Freitag, 1. September 2017 02:31:35 CEST Andre Przywara wrote: > >> Hi, > >> > >> On 31/08/17 00:36, Stefan Brüns wrote: [...] > > > > For these 3 properties it likely is a

Re: [PATCH] sched: reset sysctl_sched_time_avg to default when

2017-09-01 Thread Ethan Zhao
Yep, that is the first place I considered to set the limit, but that would break KABI ? Thanks, Ethan On Fri, Sep 1, 2017 at 8:32 PM, Peter Zijlstra wrote: > On Fri, Sep 01, 2017 at 07:31:54PM +0800, Ethan Zhao wrote: >> System will hang if user set sysctl_sched_time_avg to 0 by >> >> [root@XXX

Re: [PATCH 00/12] x86/crypto: Fix RBP usage in several crypto .S files

2017-09-01 Thread Eric Biggers
Hi Josh, On Tue, Aug 29, 2017 at 01:05:33PM -0500, Josh Poimboeuf wrote: > Many of the x86 crypto functions use RBP as a temporary register. This > breaks frame pointer convention, and breaks stack traces when unwinding > from an interrupt in the crypto code. > > Convert most* of them to leave R

[PATCH] f2fs: avoid needless inode updates

2017-09-01 Thread Jaegeuk Kim
If i_size wan't change at all, we don't need to write inode during fsync. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 4b993961d81d..0d76b572484a 100644 --- a/fs/f2fs/f2fs.h +++

Re: [GIT PULL] ARM: at91: DT for 4.14#2

2017-09-01 Thread Olof Johansson
On Wed, Aug 30, 2017 at 06:39:05PM +0200, Alexandre Belloni wrote: > Hi Olof, > > As discussed, this replaces the previous pull request. The only change > is the fixed up SoB. > > The following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877: > > Linux v4.13-rc1 (2017-07-15 15:22

[GIT PULL] ARM: SoC fixes for 4.13

2017-09-01 Thread Olof Johansson
Hi Linus, Just a few final fixes for 4.13. See below for description. Please merge. Thanks, -Olof The following changes since commit 93a4c8355e0e448d83f31801b4c72f66e4360975: ARM: dts: exynos: add needs-hpd for Odroid-XU3/4 (2017-08-23 21:43:29 +0200) are available in the git repository a

[PATCH] CHROMIUM: devfreq: rk3399: Clear edev->dev drvdata before enabling dfi

2017-09-01 Thread Jeffy Chen
Currently we are using edev->dev drvdata to get rk3399-dmc data, but it would be inited to edev in devfreq_event_add_edev. So we need to clear the edev->dev drvdata before enabling dfi, to prevent dfi from getting the wrong rk3399-dmc data when the irq triggered too early. Signed-off-by: Jeffy Ch

Re: [RFC/PATCH] drivers/of/platform: Add powerpc 4xx embedded busses to default list

2017-09-01 Thread Benjamin Herrenschmidt
On Fri, 2017-09-01 at 10:24 -0500, Rob Herring wrote: > On Thu, Aug 31, 2017 at 10:51 PM, Benjamin Herrenschmidt > wrote: > > This allow to (slowly) migrate those embedded platforms > > to of_platform_default_populate() > > > > Signed-off-by: Benjamin Herrenschmidt > > --- > > > > I'm here to c

[PATCH 0/2] Add a devm_of_clk_add_hw_provider() API

2017-09-01 Thread Stephen Boyd
This cleans up some open-coded versions of this API and makes it official. It's also another carrot to convert drivers to use the clk hw registration APIs instead of the clk registration APIs. Stephen Boyd (2): clk: Add devm_of_clk_add_hw_provider()/del_provider() APIs clk: qcom: common: Migra

[PATCH 1/2] clk: Add devm_of_clk_add_hw_provider()/del_provider() APIs

2017-09-01 Thread Stephen Boyd
Sometimes we only have one of_clk_del_provider() call in driver error and remove paths, because we're missing a devm_of_clk_add_hw_provider() API. Introduce the API so we can convert drivers to use this and potentially reduce the amount of code needed to remove providers in drivers. Signed-off-by:

[PATCH 2/2] clk: qcom: common: Migrate to devm_* APIs for resets and clk providers

2017-09-01 Thread Stephen Boyd
Now that we have devm APIs for the reset controller and of clk hw provider APIs we can remove the custom code here. Signed-off-by: Stephen Boyd --- drivers/clk/qcom/common.c | 26 ++ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/drivers/clk/qcom/common.c

Re: [PATCH 24/31] mips/sgi-ip22: Use separate static data field with with static timer

2017-09-01 Thread Ralf Baechle
Acked-by: Ralf Baechle Ralf

Re: [PATCH v5 1/7] clk: at91: clk-generated: remove useless divisor loop

2017-09-01 Thread Stephen Boyd
On 08/10, Quentin Schulz wrote: > The driver requests the current clk rate of each of its parent clocks to > decide whether a clock rate is suitable or not. It does not request > determine_rate from a parent clock which could request a rate change in > parent clock (i.e. there is no parent rate pro

Re: [PATCH 23/31] mips/sgi-ip32: Use separate static data field with with static timer

2017-09-01 Thread Ralf Baechle
Acked-by: Ralf Baechle Ralf

Re: [PATCH v5 3/7] clk: at91: add audio pll clock drivers

2017-09-01 Thread Stephen Boyd
On 08/10, Quentin Schulz wrote: > This new clock driver set allows to have a fractional divided clock that > would generate a precise clock particularly suitable for audio > applications. > > The main audio pll clock has two children clocks: one that is connected > to the PMC, the other that can d

Re: [PATCH v5 6/7] ASoC: atmel-classd: remove aclk clock from DT binding

2017-09-01 Thread Stephen Boyd
On 08/10, Quentin Schulz wrote: > Since gclk (generated-clk) is now able to determine the rate of the > audio_pll, there is no need for classd to have a direct phandle to the > audio_pll while already having a phandle to gclk. > > This binding is used by no board in mainline so it is safe to be >

Re: [PATCH v5 4/7] clk: at91: clk-generated: create function to find best_diff

2017-09-01 Thread Stephen Boyd
On 08/10, Quentin Schulz wrote: > The way to find the best_diff and do the appropriate process afterwards > can be re-used. > > This patch prepares the driver for an upcoming patch that will allow > clk_generated to determine the rate of the audio_pll. > > Signed-off-by: Quentin Schulz > Acked-b

Re: [PATCH v5 7/7] ASoC: atmel-classd: remove aclk clock

2017-09-01 Thread Stephen Boyd
On 08/10, Quentin Schulz wrote: > Since gclk (generated-clk) is now able to determine the rate of the > audio_pll, there is no need for classd to have a direct phandle to the > audio_pll while already having a phandle to gclk. > > Thus, remove all mentions to aclk in classd driver and update macro

Re: [PATCH v5 2/7] dt-bindings: clk: at91: add audio plls to the compatible list

2017-09-01 Thread Stephen Boyd
On 08/10, Quentin Schulz wrote: > This new clock driver set allows to have a fractional divided clock that > would generate a precise clock particularly suitable for audio > applications. > > The main audio pll clock has two children clocks: one that is connected > to the PMC, the other that can d

Re: [PATCH v5 5/7] clk: at91: clk-generated: make gclk determine audio_pll rate

2017-09-01 Thread Stephen Boyd
On 08/10, Quentin Schulz wrote: > This allows gclk to determine audio_pll rate and set the parent rate > accordingly. > > However, there are multiple children clocks that could technically > change the rate of audio_pll (via gck). With the rate locking, the first > consumer to enable the clock wil

Re: [RFC Part1 PATCH v3 16/17] X86/KVM: Provide support to create Guest and HV shared per-CPU variables

2017-09-01 Thread Brijesh Singh
Hi Boris, On 08/30/2017 12:46 PM, Borislav Petkov wrote: On Wed, Aug 30, 2017 at 11:18:42AM -0500, Brijesh Singh wrote: I was trying to avoid mixing early and no-early set_memory_decrypted() but if feedback is: use early_set_memory_decrypted() only if its required otherwise use set_memory_decry

Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions

2017-09-01 Thread David Howells
Peter Zijlstra wrote: > if (obj) { > /* use obj */ > refcount_dec(&obj->refs); /* should never hit 0 */ > } You've missed a bit: We need to tell the gc to run when we reduce the refcount to 1: if (obj) { ... if (refcount_dec_re

Re: [PATCH 3/3] dmaengine: sun6i: Add support for Allwinner A64

2017-09-01 Thread André Przywara
On 01/09/17 07:04, Maxime Ripard wrote: > On Fri, Sep 01, 2017 at 01:31:35AM +0100, Andre Przywara wrote: >> Hi, >> >> On 31/08/17 00:36, Stefan Brüns wrote: >>> The A64 SoC has the same dma engine as the H3 (sun8i), with a >>> reduced amount of physical channels. Add the proper config data >>> and

Re: [PATCH 3/3] dmaengine: sun6i: Add support for Allwinner A64

2017-09-01 Thread André Przywara
Hi, On 01/09/17 02:19, Stefan Bruens wrote: > On Freitag, 1. September 2017 02:31:35 CEST Andre Przywara wrote: >> Hi, >> >> On 31/08/17 00:36, Stefan Brüns wrote: >>> The A64 SoC has the same dma engine as the H3 (sun8i), with a >>> reduced amount of physical channels. Add the proper config data

kmemleak not always catching stuff

2017-09-01 Thread Steven Rostedt
Hi, Recently kmemleak discovered a bug in my code where an allocated trampoline for a ftrace function tracer wasn't freed due to an exit path. The thing is, kmemleak was able to catch this 100% when it was triggered by one of my ftrace selftests that happen at bootup. But when I trigger the issue

[rcu:rcu/next 27/27] kernel/rcu/rcu.h:225:8: error: 'rcu_cpu_stall_suppress' undeclared

2017-09-01 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next head: 909bd6e3d9e73fd0ca1d6255466573d4c3fbe321 commit: 909bd6e3d9e73fd0ca1d6255466573d4c3fbe321 [27/27] rcu: Suppress RCU CPU stall warnings while dumping trace config: i386-randconfig-x000-201735 (attached a

Re: [PATCH] DSA support for Micrel KSZ8895

2017-09-01 Thread Florian Fainelli
On 09/01/2017 05:15 AM, Pavel Machek wrote: > Hi! > > On Wed 2017-08-30 21:32:07, tristram...@microchip.com wrote: >>> On Mon 2017-08-28 16:09:27, Andrew Lunn wrote: > I may be confused here, but AFAICT: > > 1) Yes, it has standard layout when accessed over MDIO. Section

[rcu:rcu/next 27/27] kernel//rcu/rcutorture.c:1124:3: note: in expansion of macro 'rcu_ftrace_dump'

2017-09-01 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next head: 909bd6e3d9e73fd0ca1d6255466573d4c3fbe321 commit: 909bd6e3d9e73fd0ca1d6255466573d4c3fbe321 [27/27] rcu: Suppress RCU CPU stall warnings while dumping trace config: x86_64-randconfig-x016-201735 (attached

Re: [PATCH 2/2] Bluetooth: btqcomsmd: BD address setup

2017-09-01 Thread Bjorn Andersson
On Fri 01 Sep 13:47 PDT 2017, Marcel Holtmann wrote: > Hi Bjorn, > > > Bluetooth BD address can be retrieved in the same way as > > for wcnss-wlan MAC address. This patch mainly stores the > > local-mac-address property and sets the BD address during > > hci device setup. > > > > Signed-off-by:

Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions

2017-09-01 Thread Peter Zijlstra
On Fri, Sep 01, 2017 at 11:50:03PM +0200, Peter Zijlstra wrote: > > Did you read the other other part of the description? > > > > Further, both functions can be used to accurately trace the refcount > > (refcount_inc() followed by refcount_read() can't be considered > > accurate). > >

Re: [PATCH] platform/x86: intel_cht_int33fe: Work around BIOS bug on some devices

2017-09-01 Thread Hans de Goede
Hi, On 09/01/2017 11:19 AM, Mika Westerberg wrote: On Thu, Aug 31, 2017 at 07:04:46PM +0300, Andy Shevchenko wrote: On Mon, Aug 14, 2017 at 11:52 PM, Hans de Goede wrote: On 14-08-17 22:45, Andy Shevchenko wrote: On Mon, Aug 14, 2017 at 11:14 PM, Hans de Goede wrote: +int cht_int33fe_che

RE: [PATCH][staging-next] staging: unisys: visorbus: make two functions static

2017-09-01 Thread Kershner, David A
> -Original Message- > From: Colin King [mailto:colin.k...@canonical.com] > Sent: Friday, September 1, 2017 6:08 AM > To: Greg Kroah-Hartman ; Sell, Timothy C > ; Binder, David Anthony > ; Wadgaonkar, Sameer Laxmikant > ; Charles Daniels > ; Andy Shevchenko > ; *S-Par-Maintainer > ; de...@d

[PATCH v2] mux: core: Fix double get_device()

2017-09-01 Thread Hans de Goede
class_find_device already does a get_device on the returned device. So the device returned by of_find_mux_chip_by_node is already referenced and we should not reference it again (and unref it on error). Also rename of_find_mux_chip_by_node to of_get_mux_chip_by_node to make it clear that it return

[PATCH 02/11] mux: core: Add support for getting a mux controller on a non DT platform

2017-09-01 Thread Hans de Goede
On non DT platforms we cannot get the mux_chip by pnode. Other subsystems (regulator, clock, pwm) have the same problem and solve this by allowing platform / board-setup code to add entries to a lookup table and then use this table to look things up. This commit adds support for getting a mux cont

[PATCH 04/11] usb: xhci: Add Intel cherrytrail extended cap / otg phy mux handling

2017-09-01 Thread Hans de Goede
The Intel cherrytrail xhci controller has an extended cap mmio-range which contains registers to control the muxing to the xhci (host mode) or the dwc3 (device mode) and vbus-detection for the otg usb-phy. Having a mux driver included in the xhci code (or under drivers/usb/host) is not desirable.

[PATCH 06/11] mux: Add Pericom PI3USB30532 Type-C mux driver

2017-09-01 Thread Hans de Goede
Add a driver for the Pericom PI3USB30532 Type-C cross switch / mux chip found on some devices with a Type-C port. Signed-off-by: Hans de Goede --- drivers/mux/Kconfig | 10 + drivers/mux/Makefile | 2 + drivers/mux/pi3usb30532.c | 97 ++

[PATCH 07/11] extcon: intel-int3496: Add support for controlling the USB-role mux

2017-09-01 Thread Hans de Goede
Cherry Trail SoCs have a built-in USB-role mux for switching between the host and device controllers, rather then using an external mux controller by a GPIO. There is a driver using the mux-subsys to control this mux, this commit adds support to the intel-int3496 driver to get a mux_controller han

[PATCH 09/11] staging: typec: Add Generic TCPC mux driver using the mux subsys

2017-09-01 Thread Hans de Goede
So far the mux functionality of the tcpm code has not been hooked up in any tcpc drivers. This commit adds a generic TCPC mux driver using the mux subsys, which tcpc drivers can use to provide mux functionality in cases where an external my is used. Signed-off-by: Hans de Goede --- drivers/stagi

Re: [RFC PATCH 02/11] refcount: Implement inc/decrement-and-return functions

2017-09-01 Thread Peter Zijlstra
On Fri, Sep 01, 2017 at 10:15:39PM +0100, David Howells wrote: > Peter Zijlstra wrote: > > > > unsigned int refcount_dec_return(refcount_t *r); > > > unsigned int refcount_inc_return(refcount_t *r); > > > > > > > I'm not immediately seeing how wanting 1 to mean unused leads to > > requiring

[PATCH 10/11] staging: typec: fusb302: Hook up mux support using tcpc_gen_mux support

2017-09-01 Thread Hans de Goede
Add mux support to the fusb302 driver, call devm_tcpc_gen_mux_create() to let the generic tcpc_mux_dev code create a tcpc_mux_dev for us. Also document the mux-names used by the generic tcpc_mux_dev code in our devicetree bindings. Cc: Rob Herring Cc: Mark Rutland Cc: devicet...@vger.kernel.org

[PATCH 11/11] platform/x86: intel_cht_int33fe: Add mux mappings for the Type-C port

2017-09-01 Thread Hans de Goede
We need to add mappings for the mux subsys to be able to find the muxes for the fusb302 driver to be able to control the PI3USB30532 Type-C mux and the device/host mux integrated in the CHT SoC. Signed-off-by: Hans de Goede --- drivers/platform/x86/Kconfig | 1 + drivers/platform/x8

[PATCH 08/11] staging: typec: tcpm: Set mux to device mode when configured as such

2017-09-01 Thread Hans de Goede
Setting the mux to TYPEC_MUX_NONE, TCPC_USB_SWITCH_DISCONNECT when the data-role is device is not correct. Plenty of devices support operating as USB device through a (separate) USB device controller. So this commit instead splits out TYPEC_MUX_USB into TYPEC_MUX_USB_HOST and TYPEC_MUX_USB_DEVICE

[PATCH 05/11] mux: Add Intel Cherrytrail USB mux driver

2017-09-01 Thread Hans de Goede
Intel Cherrytrail SoCs have an internal USB mux for muxing the otg-port USB data lines between the xHCI host controller and the dwc3 gadget controller. On some Cherrytrail systems this mux is controlled through AML code reacting on a GPIO IRQ connected to the USB OTG id pin (through an _AIE ACPI me

[PATCH 00/11] mux/typec: Add USB / TypeC mux drivers and hook them up on some x86 systems

2017-09-01 Thread Hans de Goede
Hi All, This series consists of 4 parts: 1) Core mux changes to add support for getting mux-controllers on non DT platforms and to add some standardised state values for USB 2) Add Intel CHT USB mux and Pericom-PI3USB30532 Type-C mux drivers 3) Hookup the Intel CHT USB mux driver for CHT dev

[PATCH 01/11] mux: core: Add of_mux_control_get helper function

2017-09-01 Thread Hans de Goede
Currently the mux_control_get implementation only deals with getting mux controllers on DT platforms. This commit renames the current implementation to of_mux_control_get to reflect this and makes mux_control_get a wrapper around of_mux_control_get. This is a preparation patch for adding support f

[PATCH 03/11] mux: consumer.h: Add MUX_USB_* state constant defines

2017-09-01 Thread Hans de Goede
Add MUX_USB_* state constant defines, which can be used by USB device/host and Type-C polarity/role/altmode mux drivers and consumers to ensure that they agree on the meaning of the mux_control_select() state argument. Signed-off-by: Hans de Goede --- include/linux/mux/consumer.h | 16 ++

Re: [PATCH] locking/refcounts, x86/asm: Use unique .text section for refcount exceptions

2017-09-01 Thread Ard Biesheuvel
On 1 September 2017 at 21:22, Kees Cook wrote: > Using .text.unlikely for refcount exceptions isn't safe because gcc may > move entire functions into .text.unlikely (e.g. in6_dev_get()), which > would cause any uses of a protected refcount_t function to stay inline > with the function, triggering

[PULL REQUEST] i2c for 4.13

2017-09-01 Thread Wolfram Sang
Linus, I2C has two bugfixes for you: the ismt driver had a problem with a rarely used transaction type and the designware driver was made even more robust against non standard ACPI tables. Please pull. Thanks, Wolfram The following changes since commit cc4a41fe5541a73019a864883297bd5043aa6

RE: [PATCH 2/9] ASoC: max98927: Added controls for Envelope tracking

2017-09-01 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Thursday, August 31, 2017 4:44 AM >To: Ryan Lee >Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.com; >kuninori.morimoto...@renesas.com; alsa-de...@alsa-project.org; linux- >ker...@vger.kernel.org; ryan.lee.ma...@

RE: [PATCH 5/9] ASoC: max98927: Removed obsolete variables

2017-09-01 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Thursday, August 31, 2017 4:54 AM >To: Ryan Lee >Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.com; >kuninori.morimoto...@renesas.com; alsa-de...@alsa-project.org; linux- >ker...@vger.kernel.org; ryan.lee.ma...@

RE: [PATCH 1/9] ASoC: max98927: Added support for DSP_A and DSP_B format

2017-09-01 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Tuesday, August 29, 2017 12:00 PM >To: Ryan Lee >Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.com; >kuninori.morimoto...@renesas.com; alsa-de...@alsa-project.org; linux- >ker...@vger.kernel.org; ryan.lee.ma...@

  1   2   3   4   5   6   7   >