Re: [PATCH 2/3] pinctrl: msm: Mux out gpio function with gpio_request()

2018-07-13 Thread Linus Walleij
On Mon, Jul 9, 2018 at 5:37 PM Stephen Boyd wrote: > Quoting Linus Walleij (2018-07-09 06:54:01) > > On Mon, Jul 2, 2018 at 7:56 PM Stephen Boyd wrote: > > > > > I could do with some more clarity from Linus in the "Drivers needing > > > both pin control and GPIOs" section of > > > Documentation/d

[GIT PULL] sound fixes for 4.18-rc5

2018-07-13 Thread Takashi Iwai
Linus, please pull sound fixes for v4.18-rc5 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.18-rc5 The topmost commit is c5a59d2477abf04e1b77152bef49383fd212da8d sound fixes for 4.18-rc5 Just

Re: [PATCH] gpio: aspeed: fix compile testing warning

2018-07-13 Thread Linus Walleij
On Mon, Jul 9, 2018 at 4:56 PM Arnd Bergmann wrote: > Gcc cannot always see that BUG_ON(1) is guaranteed to not > return, so we get a warning message in some configurations: > > drivers/gpio/gpio-aspeed.c: In function 'bank_reg': > drivers/gpio/gpio-aspeed.c:244:1: error: control reaches end of n

Re: [PATCH] gpio: aspeed: fix compile testing warning

2018-07-13 Thread Linus Walleij
On Tue, Jul 10, 2018 at 1:53 AM Benjamin Herrenschmidt wrote: > On Mon, 2018-07-09 at 16:56 +0200, Arnd Bergmann wrote: > > Gcc cannot always see that BUG_ON(1) is guaranteed to not > > return, so we get a warning message in some configurations: > > > > drivers/gpio/gpio-aspeed.c: In function 'ba

Re: [PATCH] gpio: mxc: add power management support

2018-07-13 Thread Linus Walleij
On Tue, Jul 10, 2018 at 9:53 AM Anson Huang wrote: > GPIO registers could lose context on some i.MX SoCs, > like on i.MX7D, when enter LPSR mode, the whole SoC > will be powered off except LPSR domain, GPIO banks > will lose context in this case, need to restore > the context after resume from LP

Re: [PATCH v3] time: Fix incorrect sleeptime injection when suspend fails

2018-07-13 Thread Mukesh Ojha
Hi John, Thanks for your response Please find my comments inline. On 7/11/2018 1:43 AM, John Stultz wrote: On Fri, Jul 6, 2018 at 6:17 AM, Mukesh Ojha wrote: Currently, there exists a corner case assuming when there is only one clocksource e.g RTC, and system failed to go to suspend mode. Whi

Re: [PATCH 2/4] phy: socionext: add USB3 PHY driver for UniPhier SoC

2018-07-13 Thread Kishon Vijay Abraham I
Hi, On Wednesday 11 July 2018 05:35 PM, Kunihiko Hayashi wrote: > On Mon, 9 Jul 2018 20:23:19 +0900 wrote: > >> Hi Kishon, >> Thank you for your comments. >> >> On Mon, 9 Jul 2018 10:49:50 +0530 wrote: >> >>> Hi, >>> >>> On Friday 29 June 2018 02:08 PM, Kunihiko Hayashi wrote: Add a driver

Re: [PATCH] gpio: mxc: add power management support

2018-07-13 Thread Bartosz Golaszewski
2018-07-13 9:11 GMT+02:00 Linus Walleij : > On Tue, Jul 10, 2018 at 9:53 AM Anson Huang wrote: > >> GPIO registers could lose context on some i.MX SoCs, >> like on i.MX7D, when enter LPSR mode, the whole SoC >> will be powered off except LPSR domain, GPIO banks >> will lose context in this case, n

Re: [PATCH 10/18] brcmsmac: change strncpy+truncation to strlcpy

2018-07-13 Thread Arend van Spriel
On 7/13/2018 3:25 AM, Dominique Martinet wrote: Generated by scripts/coccinelle/misc/strncpy_truncation.cocci Acked-by: Arend van Spriel Signed-off-by: Dominique Martinet --- Please see https://marc.info/?l=linux-kernel&m=153144450722324&w=2 (the first patch of the serie) for the motivation

[PATCH] ACPI: button: hide unused procfs helpers

2018-07-13 Thread YueHaibing
When CONFIG_PROC_FS isn't set, gcc warning this: drivers/acpi/button.c:255:12: warning: ‘acpi_button_state_seq_show’ defined but not used [-Wunused-function] static int acpi_button_state_seq_show(struct seq_file *seq, void *offset) ^ fix this by adding #ifdef around it. Signed-off-b

Re: [PATCH 08/32] genirq: Synchronize only with single thread on free_irq()

2018-07-13 Thread Lukas Wunner
On Thu, Jul 12, 2018 at 05:21:09PM -0500, Bjorn Helgaas wrote: > On Sat, Jun 16, 2018 at 09:25:00PM +0200, Lukas Wunner wrote: > > When pciehp is converted to threaded IRQ handling, removal of unplugged > > devices below a PCIe hotplug port happens synchronously in the IRQ > > thread. Removal of d

Re: [PATCH v13 13/18] x86/tsc: calibrate tsc only once

2018-07-13 Thread Dou Liyang
At 07/12/2018 08:04 AM, Pavel Tatashin wrote: During boot tsc is calibrated twice: once in tsc_early_delay_calibrate(), and the second time in tsc_init(). Rename tsc_early_delay_calibrate() to tsc_early_init(), and rework it so the calibration is done only early, and make tsc_init() to use the

Re: [PATCH 1/2] gpio: mt7621: add OF_GPIO dependency

2018-07-13 Thread Linus Walleij
On Tue, Jul 10, 2018 at 5:19 PM Arnd Bergmann wrote: > Compile-testing the driver fails unless OF_GPIO is enabled: > > drivers/gpio/gpio-mt7621.c: In function 'mediatek_gpio_bank_probe': > drivers/gpio/gpio-mt7621.c:228:10: error: 'struct gpio_chip' has no member > named 'of_node' > > Fixes: 4ba

Re: [PATCH] mfd: hi655x: Fix regmap area declared size for hi655x

2018-07-13 Thread Lee Jones
On Fri, 06 Jul 2018, Rafael David Tinoco wrote: > Fixes: https://bugs.linaro.org/show_bug.cgi?id=3903 > > LTP Functional tests have caused a bad paging request when triggering > the regmap_read_debugfs() logic of the device PMIC Hi6553 (reading > regmap/f800.pmic/registers file during read_al

Re: [PATCH] hostap: hide unused procfs helpers

2018-07-13 Thread Arend van Spriel
+ Randy On 7/13/2018 9:03 AM, YueHaibing wrote: When CONFIG_PROC_FS isn't set, gcc warning this: drivers/net/wireless/intersil/hostap/hostap_hw.c:2901:12: warning: ‘prism2_registers_proc_show’ defined but not used [-Wunused-function] static int prism2_registers_proc_show(struct seq_file *m,

Re: [PATCH 2/3][RFC] PM / Hibernate: Encrypt the snapshot pages before submitted to the block device

2018-07-13 Thread Yu Chen
Hi, On Thu, Jul 12, 2018 at 06:10:37PM +0800, joeyli wrote: > Hi Yu Chen, > > Sorry for my delay... > > On Fri, Jul 06, 2018 at 11:28:56PM +0800, Yu Chen wrote: > > Hi Joey Lee, > > On Fri, Jun 29, 2018 at 08:59:43PM +0800, joeyli wrote: > > > On Thu, Jun 28, 2018 at 10:52:07PM +0800, Yu Chen wr

Re: [PATCH 24/32] vfs: syscall: Add fsopen() to prepare for superblock creation [ver #9]

2018-07-13 Thread David Howells
Andy Lutomirski wrote: > > Also you can't currently directly create a bind mount from userspace as you > > can only bind from another path point - which you may not be able to access > > (either by permission failure or because it's not in your mount namespace). > > > > Are you trying to preser

Re: [PATCH 1/6] mfd: rave-sp: Remove unused defines

2018-07-13 Thread Lee Jones
On Fri, 06 Jul 2018, Andrey Smirnov wrote: > Remove unusded defines that are a leftover from earlier iterations of > the driver. > > Cc: linux-kernel@vger.kernel.org > Cc: cphe...@gmail.com > Cc: Lucas Stach > Cc: Nikita Yushchenko > Cc: Lee Jones > Signed-off-by: Andrey Smirnov > --- > driv

Re: [PATCH 2/6] mfd: rave-sp: Fix incorrectly specified checksum type

2018-07-13 Thread Lee Jones
On Fri, 06 Jul 2018, Andrey Smirnov wrote: > RAVE SP firmware covered by "legacy" variant uses 16-bit CCITT > checksum algorithm. Change the code to correctly reflect that. > > Cc: linux-kernel@vger.kernel.org > Cc: cphe...@gmail.com > Cc: Lucas Stach > Cc: Nikita Yushchenko > Cc: Lee Jones >

Re: [PATCH 3/6] mfd: rave-sp: Initialize flow control and parity of the port

2018-07-13 Thread Lee Jones
On Fri, 06 Jul 2018, Andrey Smirnov wrote: > Relying on serial port defaults for flow control and parity can result > in complete breakdown of communication with RAVE SP on some platforms > where defaults are not what we need them to be. One such case is > VF610-base ZII SPU3 board (not supported

Re: [PATCH 4/6] mfd: rave-sp: Add legacy EEPROM access command translation

2018-07-13 Thread Lee Jones
On Fri, 06 Jul 2018, Andrey Smirnov wrote: > This is needed to make rave-sp-eeprom driver work on "legacy" > firmware. > > Cc: linux-kernel@vger.kernel.org > Cc: cphe...@gmail.com > Cc: Lucas Stach > Cc: Nikita Yushchenko > Cc: Lee Jones > Signed-off-by: Andrey Smirnov > --- > drivers/mfd/ra

Re: [PATCH 6/6] mfd: rave-sp: Emulate CMD_GET_STATUS on device that don't support it

2018-07-13 Thread Lee Jones
On Fri, 06 Jul 2018, Andrey Smirnov wrote: > CMD_GET_STATUS is not supported by some devices implementing > RDU2-compatible ICD as well as "legacy" devices. To account for that > fact, add code that obtains the same information (app/bootloader FW > version) using several different commands. > > C

Re: [PATCH 5/6] mfd: rave-sp: Add legacy watchdog ping command translation

2018-07-13 Thread Lee Jones
On Fri, 06 Jul 2018, Andrey Smirnov wrote: > This is needed to make rave-sp-wdt driver to properly ping the > watchdog on "legacy" firmware. > > Cc: linux-kernel@vger.kernel.org > Cc: cphe...@gmail.com > Cc: Lucas Stach > Cc: Nikita Yushchenko > Cc: Lee Jones > Signed-off-by: Andrey Smirnov >

Re: [PATCH v4] regulator: fixed: Convert to use GPIO descriptor only

2018-07-13 Thread Linus Walleij
On Tue, Jul 10, 2018 at 7:56 PM Janusz Krzysztofik wrote: > > - .gpio = AMS_DELTA_GPIO_PIN_MODEM_NRESET, > > This is OK but not enough for clean build of board-ams-delta.c when merged > into current linux-next as one more struct fixed_voltage_config introduced > there > rec

Re: [PATCH v10 0/6] Driver for at91 usart in spi mode

2018-07-13 Thread Lee Jones
On Wed, 11 Jul 2018, Nicolas Ferre wrote: > On 25/06/2018 at 19:22, Radu Pirea wrote: > > Hello, > > > > This is the second version of driver. I added a mfd driver which by > > default probes atmel_serial driver and if in dt is specified to probe > > the spi driver, then the spi-at91-usart driver

Re: [LINUX PATCH v11 1/3] dt-bindings: memory: Add pl353 smc controller devicetree binding information

2018-07-13 Thread Linus Walleij
On Wed, Jul 11, 2018 at 9:37 AM Naga Sureshkumar Relli wrote: > Add pl353 static memory controller devicetree binding information. > > Signed-off-by: Naga Sureshkumar Relli > --- > Changes in v11: Reviewed-by: Linus Walleij Thanks! Yours, Linus Walleij

Re: [LINUX PATCH v11 2/3] memory: pl353: Add driver for arm pl353 static memory controller

2018-07-13 Thread Linus Walleij
On Wed, Jul 11, 2018 at 9:37 AM Naga Sureshkumar Relli wrote: > Add driver for arm pl353 static memory controller. This controller is used in > Xilinx Zynq SoC for interfacing the NAND and NOR/SRAM memory devices. > > Signed-off-by: Naga Sureshkumar Relli > --- > Changes in v11: > - Added amba

Re: [PATCH] pinctrl: ocelot: fix gpio4 twi function

2018-07-13 Thread Linus Walleij
On Wed, Jul 11, 2018 at 3:01 PM Alexandre Belloni wrote: > the TWI function on GPIO4 is actually a multiplexed SCL, not an original > TWI SDA or SCL. Fix it. > > Signed-off-by: Alexandre Belloni Patch applied. Yours, Linus Walleij

Re: [PATCH v3 00/12] kbuild/kconfig: do not update config during installation

2018-07-13 Thread Dirk Gouders
Masahiro Yamada writes: > 2018-07-10 20:34 GMT+09:00 Dirk Gouders : >> Masahiro Yamada writes: >> >>> The main motivation of this patch series is to suppress the syncconfig >>> during running installation targets. >>> >>> V1 consisted of only two patches: >>> https://patchwork.kernel.org/patch

Re: [PATCH 1/3] tty/serial_core: add ISO7816 infrastructure

2018-07-13 Thread Ludovic Desroches
On Thu, Jul 12, 2018 at 05:02:29PM +0200, Greg KH wrote: > On Wed, Jul 11, 2018 at 03:16:36PM +0200, Ludovic Desroches wrote: > > From: Nicolas Ferre > > > > Add the ISO7816 ioctl and associated accessors and data structure. > > Drivers can then use this common implementation to handle ISO7816. >

Re: [PATCH 1/2] dt-bindings: pfuze100: add optional pfuze-disable-sw binding

2018-07-13 Thread Marco Felsch
Hi Fabio, On 18-07-12 12:19, Fabio Estevam wrote: > On Thu, Jul 12, 2018 at 8:02 AM, Marco Felsch wrote: > > > +Optional properties: > > +- pfuze-disable-sw: Disable all unused switch regulators to save power > > + consumption. Attention, some platforms are using the switch regulators > > as D

[PATCH] ARM: dts: imx6sl-evk: add missing GPIO iomux setting

2018-07-13 Thread Anson Huang
On i.MX6SL EVK board, the MX6SL_PAD_KEY_ROW5 pin is used as lcd 3v3 regulator control pin, need to make sure MX6SL_PAD_KEY_ROW5 is muxed as GPIO function for controlling lcd 3v3 regulator. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sl-evk.dts | 1 + 1 file changed, 1 insertion(+) diff

Re: [Cocci] [PATCH 01/18] coccinelle: change strncpy+truncation to strlcpy

2018-07-13 Thread Dominique Martinet
Himanshu Jha wrote on Fri, Jul 13, 2018: > > I expect each maintainer will pick their share of the patchs if they > > agree with it and the rest will just be dropped? > > Masahiro Yamada takes coccinelle patches, > so please cc him or your patch would be lost. Thanks, will do. > > +virtual patc

[PATCH] staging/rtl8192u: hide unused procfs helpers

2018-07-13 Thread YueHaibing
When CONFIG_PROC_FS isn't set, gcc warning this: drivers/staging/rtl8192u/r8192U_core.c:508:12: warning: ‘proc_get_stats_ap’ defined but not used [-Wunused-function] static int proc_get_stats_ap(struct seq_file *m, void *v) ^ drivers/staging/rtl8192u/r8192U_core.c:527:12: warning: ‘p

Re: [PATCH 1/3] tty/serial_core: add ISO7816 infrastructure

2018-07-13 Thread Ludovic Desroches
On Thu, Jul 12, 2018 at 04:58:08PM +0200, Greg KH wrote: > On Wed, Jul 11, 2018 at 03:16:36PM +0200, Ludovic Desroches wrote: > > From: Nicolas Ferre > > > > Add the ISO7816 ioctl and associated accessors and data structure. > > Drivers can then use this common implementation to handle ISO7816. >

[PATCH 2/3] ARM: dts: imx6sll-evk: correct lcd regulator GPIO pin

2018-07-13 Thread Anson Huang
On i.MX6SLL EVK board, lcd regulator is controlled by GPIO4 IO03 using MX6SLL_PAD_KEY_ROW5__GPIO4_IO03 pin, NOT MX6SLL_PAD_ECSPI1_SCLK__GPIO4_IO08, correct it. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sll-evk.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 1/3] ARM: dts: imx6sll-evk: enable PWM1 for backlight driver

2018-07-13 Thread Anson Huang
Enable pwm1 module on i.MX6SLL EVK board to make backlight driver really work with LCD panel connected. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sll-evk.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6sll-evk.dts b/arch/arm/boot/dts/imx6sl

[PATCH 3/3] ARM: dts: imx6sll-evk: enable SEIKO 43WVF1G lcdif panel

2018-07-13 Thread Anson Huang
Enable SEIKO 43WVF1G lcdif panel for DRM driver, add necessary properties according to SEIKO 43WVF1G driver's requirement, such as "dvdd-supply", "avdd-supply" and "backlight" etc.. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sll-evk.dts | 76 --- 1 f

Re: [PATCH v2 3/6] ARM: trusted_foundations: do not use naked function

2018-07-13 Thread Stefan Agner
On 13.07.2018 01:01, Russell King - ARM Linux wrote: > On Thu, Jul 12, 2018 at 03:43:10PM -0700, Kees Cook wrote: >> On Tue, Apr 17, 2018 at 1:11 AM, Thierry Reding wrote: >> > On Mon, Apr 16, 2018 at 08:21:09PM +0200, Stefan Agner wrote: >> >> On 16.04.2018 18:08, Stephen Warren wrote: >> >> > On

Re: [PATCH] pinctrl: mt7622: fix probe fail by misuse the selector

2018-07-13 Thread Linus Walleij
On Thu, Jul 12, 2018 at 7:50 AM wrote: > From: Sean Wang > > After the commit acf137951367 ("pinctrl: core: Return selector to the > pinctrl driver") and the commit 47f1242d19c3 ("pinctrl: pinmux: Return > selector to the pinctrl driver"), it's necessary to add the fixes > needed for the pin con

Re: [PATCH 1/3] tty/serial_core: add ISO7816 infrastructure

2018-07-13 Thread Greg KH
On Fri, Jul 13, 2018 at 09:56:48AM +0200, Ludovic Desroches wrote: > On Thu, Jul 12, 2018 at 05:02:29PM +0200, Greg KH wrote: > > On Wed, Jul 11, 2018 at 03:16:36PM +0200, Ludovic Desroches wrote: > > > From: Nicolas Ferre > > > > > > Add the ISO7816 ioctl and associated accessors and data struct

Re: [PATCH] kconfig: remove EXPERT from CHECKPOINT_RESTORE

2018-07-13 Thread Pavel Emelyanov
On 07/12/2018 04:07 PM, Adrian Reber wrote: > The CHECKPOINT_RESTORE configuration option was introduced in 2012 and > combined with EXPERT. CHECKPOINT_RESTORE is already enabled in many > distribution kernels and also part of the defconfigs of various > architectures. > > To make it easier for di

Re: [PATCH v3 3/3] clk: qcom: Add display clock controller driver for SDM845

2018-07-13 Thread spanda
On 2018-07-13 01:11, Stephen Boyd wrote: Quoting Taniya Das (2018-07-12 10:21:33) ++ Display driver team, On 7/9/2018 8:36 PM, Stephen Boyd wrote: > Quoting Taniya Das (2018-07-09 02:34:07) >> >> >> On 7/9/2018 1:07 PM, Stephen Boyd wrote: >>> Quoting Taniya Das (2018-07-09 00:07:21)

Re: [PATCH 1/2] dt-bindings: pfuze100: add optional pfuze-disable-sw binding

2018-07-13 Thread Marco Felsch
Hi Mark, On 18-07-12 16:31, Mark Brown wrote: > On Thu, Jul 12, 2018 at 01:02:39PM +0200, Marco Felsch wrote: > > > +Optional properties: > > +- pfuze-disable-sw: Disable all unused switch regulators to save power > > + consumption. Attention, some platforms are using the switch regulators > >

Re: [PATCH] staging: speakup: fix wraparound in uaccess length check

2018-07-13 Thread Greg Kroah-Hartman
On Thu, Jul 12, 2018 at 04:12:39PM -0700, Jann Horn wrote: > On Thu, Jul 12, 2018 at 3:47 PM Al Viro wrote: > > > > On Fri, Jul 13, 2018 at 12:29:36AM +0200, Jann Horn wrote: > > > From: Samuel Thibault > > > > > > From: Samuel Thibault > > > > > > If softsynthx_read() is called with `count < 3`

Re: [PATCH] kconfig: remove EXPERT from CHECKPOINT_RESTORE

2018-07-13 Thread Pavel Emelyanov
On 07/12/2018 07:33 PM, Eric W. Biederman wrote: > > Adrian Reber writes: > >> The CHECKPOINT_RESTORE configuration option was introduced in 2012 and >> combined with EXPERT. CHECKPOINT_RESTORE is already enabled in many >> distribution kernels and also part of the defconfigs of various >> archi

RE: [PATCH v2 4/6] arm: dts: add support for Laird WB50N cpu module and DVK

2018-07-13 Thread Ben Whitten
> Subject: Re: [PATCH v2 4/6] arm: dts: add support for Laird > WB50N cpu module and DVK > > Hi, > > I've now applied the whole series after fixing two small > whitespace > issues. Thanks! > On 15/06/2018 14:40:53+0100, Ben Whitten wrote: > > +&usart1_clk { > > + atmel,clk-output-range = <0 1

Re: [PATCH v2 2/2] pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver

2018-07-13 Thread Linus Walleij
On Thu, Jul 12, 2018 at 11:42 PM Tomer Maimon wrote: > Add Nuvoton BMC NPCM750/730/715/705 Pinmux and > GPIO controller driver. > > Signed-off-by: Tomer Maimon (...) > +++ b/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c > @@ -0,0 +1,2089 @@ > +// SPDX-License-Identifier: GPL-2.0 > +// Copyright (c)

[PATCH] thunderbolt: remove redundant variable 'approved'

2018-07-13 Thread Colin King
From: Colin Ian King Variable 'approved' is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'approved' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King --- drivers/thunderbolt/icm.c | 2 -- 1 file

[PATCH] tty: serial: jsm: remove redundant pointer ch

2018-07-13 Thread Colin King
From: Colin Ian King Pointer ch is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'ch' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King --- drivers/tty/serial/jsm/jsm_tty.c | 3 +-- 1 file changed

Re: [PATCH v2] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-07-13 Thread Andrea Parri
On Thu, Jul 12, 2018 at 07:05:39PM -0700, Daniel Lustig wrote: > On 7/12/2018 11:10 AM, Linus Torvalds wrote: > > On Thu, Jul 12, 2018 at 11:05 AM Peter Zijlstra > > wrote: > >> > >> The locking pattern is fairly simple and shows where RCpc comes apart > >> from expectation real nice. > > > > So

Re: [RFC PATCH v2 1/2] ata: ahci: Support state with min power and Partial low power state

2018-07-13 Thread Hans de Goede
Hi, On 13-07-18 00:27, Srinivas Pandruvada wrote: Currently when min_power policy is selected, the partial low power state is not entered and link will try aggressively enter to only slumber state. Add a new policy which still enable DEVSLP but also try to enter partial low power state. For inf

Re: [PATCH v5 5/5] mm/sparse: delete old sprase_init and enable new one

2018-07-13 Thread Oscar Salvador
> -#ifdef CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER > -static void __init sparse_early_mem_maps_alloc_node(void *data, > - unsigned long pnum_begin, > - unsigned long pnum_end, > - unsigned long map_count, int n

Re: [PATCH v13 14/18] x86/tsc: initialize cyc2ns when tsc freq. is determined

2018-07-13 Thread Dou Liyang
At 07/12/2018 08:04 AM, Pavel Tatashin wrote: cyc2ns converts tsc to nanoseconds, and it is handled in a per-cpu data structure. Currently, the setup code for c2ns data for every possible CPU goes through the same sequence of calculations as for the boot CPU, but is based on the same tsc freq

Re: [RFC PATCH v2 2/2] ata: ahci: Enable DEVSLP by default on x86 with SLP_S0

2018-07-13 Thread Hans de Goede
Hi, On 13-07-18 00:27, Srinivas Pandruvada wrote: From: Srinivas One of the requirement for modern x86 system to enter lowest power mode (SLP_S0) is SATA IP block to be off. This is true even during when platform is suspended to idle and not only in opportunistic (runtime) suspend. Several of

[PATCH] ext4: fix warning message to output correct type.

2018-07-13 Thread Junichi Uekawa
Output the warning message before we clobber type and be -1 all the time. The error message would now be [1.519791] EXT4-fs warning (device vdb): ext4_enable_quotas:5402: Failed to enable quota tracking (type=0, err=-3). Please run e2fsck to fix. Signed-off-by: Junichi Uekawa --- fs/ext4/su

[PATCH 0/3] arm64: dts: add Synaptics AS370 SoC support

2018-07-13 Thread Jisheng Zhang
Add initial dtsi file for Synaptics AS370 SoC. patch1 moves berlin binding to syna.txt. patch2 add dt-binding for the AS370 SoC. patch3 add the initial dtsi file for the SoC. Jisheng Zhang (3): dt-bindings: arm: move berlin binding documentation to syna.txt dt-bindings: arm: syna: add support

[PATCH 1/3] dt-bindings: arm: move berlin binding documentation to syna.txt

2018-07-13 Thread Jisheng Zhang
Move berlin binding documentation as part of transition from Marvell berlin to Synaptics SoC. Signed-off-by: Jisheng Zhang --- .../bindings/arm/{marvell/marvell,berlin.txt => syna.txt} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Documentation/devicetree/bindings/arm/{mar

Re: [PATCH 08/10] psi: pressure stall information for CPU, memory, and IO

2018-07-13 Thread Peter Zijlstra
On Thu, Jul 12, 2018 at 01:29:40PM -0400, Johannes Weiner wrote: > +static inline void psi_ttwu_dequeue(struct task_struct *p) > +{ > + if (psi_disabled) > + return; > + /* > + * Is the task being migrated during a wakeup? Make sure to > + * deregister its sleep-persis

Re: [RESEND PATCH] tee: add kernel internal client interface

2018-07-13 Thread Jens Wiklander
[+Sumit] On Mon, Jul 09, 2018 at 08:15:49AM +0200, Jens Wiklander wrote: > Adds a kernel internal TEE client interface to be used by other drivers. > > Signed-off-by: Jens Wiklander > --- > drivers/tee/tee_core.c | 113 +--- > include/linux/tee_drv.h | 73 +

Re: [PATCH] staging/rtl8192u: hide unused procfs helpers

2018-07-13 Thread YueHaibing
Pls ignore this, there has a fix. [PATCH] staging/rtl8192u: fix defined but not used build warnings On 2018/7/13 16:01, YueHaibing wrote: > When CONFIG_PROC_FS isn't set, gcc warning this: > > drivers/staging/rtl8192u/r8192U_core.c:508:12: warning: ‘proc_get_stats_ap’ > defined but not used [-W

[PATCH 2/3] dt-bindings: arm: syna: add support for the AS370 SoC

2018-07-13 Thread Jisheng Zhang
The AS370 SoC is a new derivative of the berlin family. The only difference is the SoC isn't named as berlin*. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/arm/syna.txt | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/binding

[PATCH 3/3] arm64: dts: synaptics: add dtsi file for Synaptics AS370 SoC

2018-07-13 Thread Jisheng Zhang
Add initial dtsi file to support Synaptics AS370 SoC with quad Cortex-A53 CPUs. Signed-off-by: Jisheng Zhang --- arch/arm64/boot/dts/synaptics/as370.dtsi | 177 +++ 1 file changed, 177 insertions(+) create mode 100644 arch/arm64/boot/dts/synaptics/as370.dtsi diff --git a/ar

Re: [PATCH v4] uart: fix race between uart_put_char() and uart_shutdown()

2018-07-13 Thread Greg Kroah-Hartman
On Thu, Jul 12, 2018 at 12:30:01PM -0600, Tycho Andersen wrote: > On Thu, Jul 12, 2018 at 08:25:45PM +0200, Greg Kroah-Hartman wrote: > > On Thu, Jul 12, 2018 at 12:18:46PM -0600, Tycho Andersen wrote: > > > On Thu, Jul 12, 2018 at 05:40:15PM +0200, Greg Kroah-Hartman wrote: > > > > On Thu, Jul 12,

Re: [PATCH] ACPI: button: hide unused procfs helpers

2018-07-13 Thread YueHaibing
sorry for noise,there has a fix: [PATCH] acpi/button.c: fix defined but not used warning https://lkml.org/lkml/2018/7/11/231 On 2018/7/13 15:19, YueHaibing wrote: > When CONFIG_PROC_FS isn't set, gcc warning this: > > drivers/acpi/button.c:255:12: warning: ‘acpi_button_state_seq_show’ defined >

Re: [PATCH V5 0/5] add iwdg2 support for stm32mp157c

2018-07-13 Thread Alexandre Torgue
Hi Ludovic On 06/25/2018 05:42 PM, Ludovic Barre wrote: From: Ludovic Barre This patch series updates stm32_iwdg driver to manage pclk clock by compatible. stm32mp1 requires a pclk clock. v5: -update stm32f429.dtsi v4: -dt-bindings: split and review v3: -remove stm32_iwdg_config structure,

Re: [PATCH] connector: hide unused procfs helpers

2018-07-13 Thread YueHaibing
pls ignore this,my bad. On 2018/7/13 15:11, YueHaibing wrote: > When CONFIG_PROC_FS isn't set, gcc warning this: > > drivers/connector/connector.c:242:12: warning: ‘cn_proc_show’ defined but not > used [-Wunused-function] > static int cn_proc_show(struct seq_file *m, void *v) > ^ >

Re: [PATCH v2] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-07-13 Thread Will Deacon
On Fri, Jul 13, 2018 at 11:07:11AM +0200, Andrea Parri wrote: > On Thu, Jul 12, 2018 at 07:05:39PM -0700, Daniel Lustig wrote: > > On 7/12/2018 11:10 AM, Linus Torvalds wrote: > > > On Thu, Jul 12, 2018 at 11:05 AM Peter Zijlstra > > > wrote: > > >> > > >> The locking pattern is fairly simple and

Re: [PATCH 04/10] staging:rtl8192u: Rename file macro to avoid camel case - Coding Style

2018-07-13 Thread Greg KH
On Wed, Jul 11, 2018 at 08:21:43PM +0100, John Whitmore wrote: > Simple rename of the preprosessor switch, protecting against multiple > inclusion of the header file. Change to clear the checkpatch coding style > issue. > > Signed-off-by: John Whitmore > --- > drivers/staging/rtl8192u/r8192U.h |

Re: [PATCH 22/32] vfs: Provide documentation for new mount API [ver #9]

2018-07-13 Thread David Howells
Randy Dunlap wrote: > I would review this but it sounds like I should just wait for the > next version. Probably a good idea. Thanks for the consideration anyway. David

[PATCH 0/2] pinctrl: berlin: add as370 SoC support

2018-07-13 Thread Jisheng Zhang
This series is to add the Synaptics AS370 SoC pinctrl driver. Jisheng Zhang (2): dt-binding: pinctrl: berlin: document AS370 SoC pinctrl pinctrl: berlin: add the as370 SoC pinctrl driver .../bindings/pinctrl/berlin,pinctrl.txt | 3 +- drivers/pinctrl/berlin/Kconfig|

[PATCH 1/2] dt-binding: pinctrl: berlin: document AS370 SoC pinctrl

2018-07-13 Thread Jisheng Zhang
Add as370 to existing berlin pinctrl device tree binding. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/berlin,pinctrl.txt b/Documentat

Re: REGRESSION: [PATCH] mmc: tegra: Use sdhci_pltfm_clk_get_max_clock

2018-07-13 Thread Aapo Vienamo
On Fri, 13 Jul 2018 01:43:05 + Marcel Ziswiler wrote: > On Mon, 2018-07-02 at 15:16 +0200, Ulf Hansson wrote: > > On 4 June 2018 at 17:35, Aapo Vienamo wrote: > > > The sdhci get_max_clock callback is set to > > > sdhci_pltfm_clk_get_max_clock > > > and tegra_sdhci_get_max_clock is removed

[PATCH 2/2] pinctrl: berlin: add the as370 SoC pinctrl driver

2018-07-13 Thread Jisheng Zhang
Add the pin-controller driver for Synaptics AS370 SoC, with definition of its groups and functions. This uses the core Berlin pinctrl driver. Signed-off-by: Jisheng Zhang --- drivers/pinctrl/berlin/Kconfig | 5 + drivers/pinctrl/berlin/Makefile| 1 + drivers/pinctrl/berlin/pi

Re: [PATCH 03/39] x86/entry/32: Load task stack from x86_tss.sp1 in SYSENTER handler

2018-07-13 Thread Joerg Roedel
On Thu, Jul 12, 2018 at 01:49:13PM -0700, Andy Lutomirski wrote: > > On Jul 11, 2018, at 4:29 AM, Joerg Roedel wrote: > >/* Offset from the sysenter stack to tss.sp0 */ > > -DEFINE(TSS_entry_stack, offsetof(struct cpu_entry_area, > > tss.x86_tss.sp0) - > > +DEFINE(TSS_entry_stack, off

[PATCH RFC 0/7] Add devfreq based clock scaling support for mmc

2018-07-13 Thread Sayali Lokhande
This change adds the use of devfreq based clock scaling to MMC. Both eMMC and SD card can use it. For some workloads, such as video playback, it isn't necessary for these cards to run at high speed. Running at lower frequency, in such cases can still meet the deadlines for data transfers. Scaling d

[PATCH RFC 1/7] devfreq: Add new flag to do simple clock scaling

2018-07-13 Thread Sayali Lokhande
From: Sahitya Tummala Add new flag "simple_scaling" to on demand governor so that the clocks can be scaled up only when the load is more than up threshold and can be scaled down only when the load is less than down differential data as provided within struct devfreq_simple_ondemand_data. Signed-

[PATCH RFC 2/7] mmc: core: devfreq: Add devfreq based clock scaling support

2018-07-13 Thread Sayali Lokhande
This change adds the use of devfreq to MMC. Both eMMC and SD card will use it. For some workloads, such as video playback, it isn't necessary for these cards to run at high speed. Running at lower frequency, for example 52MHz, in such cases can still meet the deadlines for data transfers. Scaling d

[PATCH RFC 3/7] mmc: core: Add sysfs entries for dynamic control of clock scaling

2018-07-13 Thread Sayali Lokhande
Add sysfs attributes to allow dynamic control of clock scaling parameters. These attributes are used to enable/disable clock scaling at runtime and change the up_threshold, down_threshold, and polling_interval values. Complete documentation for these sysfs entries are provided at "Documentation/mmc

[PATCH RFC 4/7] mmc: core: add support for devfreq suspend/resume

2018-07-13 Thread Sayali Lokhande
This change adds support for devfreq suspend/resume to be called on each system suspend/resume, runtime suspend/resume, power restore. Signed-off-by: Talel Shenhar Signed-off-by: Subhash Jadavani Signed-off-by: Sayali Lokhande --- drivers/mmc/core/core.c | 112 +

[PATCH RFC 6/7] mmc: sdhci-msm: Enable clock scaling property

2018-07-13 Thread Sayali Lokhande
This change enables clock scaling capability for sdhci-msm platform driver. Signed-off-by: Sayali Lokhande --- drivers/mmc/host/sdhci-msm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index e9fe8c6..8846a76 100644 --- a/drivers/

Re: [PATCH v10 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-07-13 Thread Radu Pirea
On 07/10/2018 09:15 PM, Mark Brown wrote: On Mon, Jun 25, 2018 at 08:22:29PM +0300, Radu Pirea wrote: This is mostly good, just a couple of small things: +config SPI_AT91_USART + tristate "Atmel USART Controller SPI driver" + depends on HAS_DMA + depends on (ARCH_AT91 || C

[PATCH RFC 7/7] mmc: core: Add a debugfs entry to set max clock rate

2018-07-13 Thread Sayali Lokhande
Limiting the max frequency supported by host controller to a certain value can be useful for testing power consumption at various frequencies that are supported by the host. Note: If the card supports less than desired value then the frequency of operation would be limited to that frequency. Usage:

[PATCH RFC 5/7] mmc: sdhci-msm: Kconfig: select devfreq ondemand for sdhci-msm

2018-07-13 Thread Sayali Lokhande
SDHCI-MSM platform is using devfreq ondemand governor. Select devfreq governor for SDHCI-MSM platform. Signed-off-by: Ritesh Harjani Signed-off-by: Sayali Lokhande --- drivers/mmc/host/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kcon

Re: [PATCH 2/3] mtd: atmel nand: fix build warning on 64-bit

2018-07-13 Thread Tudor Ambarus
Hi, Arnd, On 07/09/2018 06:57 PM, Arnd Bergmann wrote: > + nc->ebi_csa_offs = (uintptr_t)match->data; I guess we should declare ebi_csa_offs as size_t, right? Best, ta

Re: [PATCH v5 0/5] sparse_init rewrite

2018-07-13 Thread Oscar Salvador
On Thu, Jul 12, 2018 at 04:37:25PM -0400, Pavel Tatashin wrote: > Changelog: > v5 - v4 > - Fixed the issue that was reported on ppc64 when > CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER is removed > - Consolidated the new buffer allocation between vmemmap > and non-vmemmap va

Re: [RESEND PATCH] tee: add kernel internal client interface

2018-07-13 Thread Sumit Garg
On Fri, 13 Jul 2018 at 14:54, Jens Wiklander wrote: > > [+Sumit] > > On Mon, Jul 09, 2018 at 08:15:49AM +0200, Jens Wiklander wrote: > > Adds a kernel internal TEE client interface to be used by other drivers. > > > > Signed-off-by: Jens Wiklander > > --- Thanks Jens for this patch. I have revie

Re: [PATCH] locking/rwsem: Take read lock immediate if empty queue with no writer

2018-07-13 Thread Will Deacon
On Tue, Jul 10, 2018 at 02:31:30PM -0400, Waiman Long wrote: > It was found that a constant stream of readers might cause the count to > go negative most of the time after an initial trigger by a writer even > if no writer was present afterward. As a result, most of the readers > would have to go t

[PATCH] soc: imx6qp: Use GENPD_FLAG_ALWAYS_ON for PU errata

2018-07-13 Thread Leonard Crestez
This is functionally identical but simpler and slightly faster. The PU domain is turned on at boot time and never turned off. In the current implementation the pm core will repeatedly call power_off when the domain is unused and get -EBUSY back. If the domain is marked as "always on" instead the p

Re: [PATCH 05/39] x86/entry/32: Unshare NMI return path

2018-07-13 Thread Joerg Roedel
On Thu, Jul 12, 2018 at 01:53:19PM -0700, Andy Lutomirski wrote: > > On Jul 11, 2018, at 4:29 AM, Joerg Roedel wrote: > > NMI will no longer use most of the shared return path, > > because NMI needs special handling when the CR3 switches for > > PTI are added. > > Why? What would go wrong? > >

Re: [PATCH v10 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-07-13 Thread Alexandre Belloni
On 13/07/2018 12:56:22+0300, Radu Pirea wrote: > > > On 07/10/2018 09:15 PM, Mark Brown wrote: > > On Mon, Jun 25, 2018 at 08:22:29PM +0300, Radu Pirea wrote: > > > > This is mostly good, just a couple of small things: > > > > > +config SPI_AT91_USART > > > + tristate "Atmel USART Controller SP

RE: [bug] kpti, perf_event, bts: sporadic truncated trace

2018-07-13 Thread Metzger, Markus T
Hello Hugh, > A little "optimization" crept into alloc_bts_buffer() along the way, which now > places bts_interrupt_threshold not on a record boundary. > And Stephane has shown me the sentence in Vol 3B, 17.4.9, which says "This > address must point to an offset from the BTS buffer base that is a

[PATCH] fs: Add to super_blocks list after SB_BORN is set.

2018-07-13 Thread Tetsuo Handa
More simple version. Is this assumption correct? >From 52f10183f2b921cd946dd4c83d9b1d99bc48914e Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Fri, 13 Jul 2018 12:15:54 +0900 Subject: [PATCH] fs: Add to super_blocks list after SB_BORN is set. syzbot is reporting hung tasks at iterate_supers()

Re: [PATCH 2/3] mtd: atmel nand: fix build warning on 64-bit

2018-07-13 Thread Arnd Bergmann
On Fri, Jul 13, 2018 at 11:56 AM, Tudor Ambarus wrote: > Hi, Arnd, > > On 07/09/2018 06:57 PM, Arnd Bergmann wrote: >> + nc->ebi_csa_offs = (uintptr_t)match->data; > > I guess we should declare ebi_csa_offs as size_t, right? Yes, that would make sense, though it doesn't change the behavior.

Re: [PATCH V2 00/19] C-SKY(csky) Linux Kernel Port

2018-07-13 Thread David Howells
Sandra Loosemore wrote: > I'm not familiar with the Fedora tools, but to build a complete toolchain > you'll need library support as well and I'm not sure what the submission > status/plans for that are. The idea behind the cross-gcc package in Fedora is that it's for kernel builds and bootloade

[PATCH] clk: mvebu: armada-37xx-periph: Fix wrong return value in get_parent

2018-07-13 Thread Gregory CLEMENT
The return value of the get_parent operation is a u8, whereas a -EINVAL was returned. This wrong value was return if the value was bigger that the number of parent but this case was already handled by the core. So we can just remove this chunk of code to fix the issue. Reported-by: Dan Carpenter

Re: [PATCH] soc: imx6qp: Use GENPD_FLAG_ALWAYS_ON for PU errata

2018-07-13 Thread Lucas Stach
Am Freitag, den 13.07.2018, 13:01 +0300 schrieb Leonard Crestez: > This is functionally identical but simpler and slightly faster. > > The PU domain is turned on at boot time and never turned off. In the > current implementation the pm core will repeatedly call power_off when > the domain is unuse

Re: INFO: task hung in __sb_start_write

2018-07-13 Thread Tetsuo Handa
Dmitry noticed what is wrong and fixed the bug as https://github.com/google/syzkaller/commit/06c33b3af0ff4072fb002879f83077c9d162a224 . Since the bug did not reproduce for last 24 hours, it is OK to close this report. #syz invalid Thanks all.

Re: [LKP] [lkp-robot] 9cf57731b6 [ 8.051016] WARNING: CPU: 1 PID: 58 at lib/list_debug.c:28 __list_add_valid

2018-07-13 Thread Peter Zijlstra
On Fri, Jul 13, 2018 at 12:32:41PM +0800, Rong Chen wrote: > Thanks, it's fixed with the patch. Ingo, could you merge? --- Subject: watchdog/softlockup: Fix cpu_stop_queue_work double-queue From: Peter Zijlstra Date: Wed, 11 Jul 2018 14:34:36 +0200 When scheduling is delayed for longer than the

Re: [PATCH v6 14/21] s390: vfio-ap: implement mediated device open callback

2018-07-13 Thread Halil Pasic
On 07/12/2018 06:03 PM, Tony Krowiak wrote: +static int vfio_ap_mdev_open(struct mdev_device *mdev) +{ +struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev); +struct ap_matrix_dev *matrix_dev = +to_ap_matrix_dev(mdev_parent_dev(mdev)); +unsigned long events; +int

  1   2   3   4   5   >