[PATCH v5 10/15] MIPS: ingenic: Add machine info for supported boards

2018-01-02 Thread Paul Cercueil
This makes sure that 'mips_machtype' will be initialized to the SoC version used on the board. Signed-off-by: Paul Cercueil --- arch/mips/Kconfig | 1 + arch/mips/jz4740/Makefile | 2 +- arch/mips/jz4740/boards.c | 12 arch/mips/jz4740/setup.c | 34 +++

[PATCH v5 14/15] devicetree/bindings: Add GCW vendor prefix

2018-01-02 Thread Paul Cercueil
Game Consoles Worldwide, mostly known under the acronym GCW, is the creator of the GCW Zero open-source video game system. Signed-off-by: Paul Cercueil Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) v2: It's 'Game Consoles

[PATCH v5 15/15] MIPS: ingenic: Initial GCW Zero support

2018-01-02 Thread Paul Cercueil
The GCW Zero (http://www.gcw-zero.com) is a retro-gaming focused handheld game console, successfully kickstarted in ~2012, running Linux. Signed-off-by: Paul Cercueil --- arch/mips/boot/dts/ingenic/Makefile | 1 + arch/mips/boot/dts/ingenic/gcw0.dts | 61 + a

Re: [PATCH v3 1/9] ufs: sysfs: device descriptor

2018-01-02 Thread Bart Van Assche
On Tue, 2018-01-02 at 13:54 +, Stanislav Nijnikov wrote: > The existing configuration doesn't allow to add a new file to be compiled > as a part of this module. The line like " obj-$(CONFIG_SCSI_UFSHCD) += > ufshcd.o ufs-sysfs.o" in the makefile will actually create 2 modules. > This was the

Re: [net-next: PATCH v2 5/5] net: mvpp2: enable ACPI support in the driver

2018-01-02 Thread Marcin Wojtas
2018-01-02 15:08 GMT+01:00 Andrew Lunn : >> Indeed in of_mdio_bus_register_phy, there is of_irq_get. This is more >> a discussion for a MDIO bus / ACPI patchset, but we either find a way >> to use IRQs with ACPI obtained from child nodes or for this world the >> functionality will be limited (at le

[PATCH] v4l2: i2c: ov7670: Implement OF mbus configuration

2018-01-02 Thread Jacopo Mondi
ov7670 driver supports two optional properties supplied through platform data, but currently does not support any standard video interface property. Add support through OF parsing for 2 generic properties (vsync and hsync polarities) and for two custom properties already supported by platform data

[PATCH v3 0/7] ARM: stm32: add initial STM32MPU support

2018-01-02 Thread Ludovic Barre
From: Ludovic Barre This patch series extends the existing STM32 microcontrollers (MCUs) family to microprocessors (MPUs). The MPU platform (based on Arm Cortex-A) is a continuation of the MCU one (based on Arm Cortex-M) in that it shares a wide number of hardware blocks. change v3: -Remove boot

[PATCH v3 6/7] ARM: dts: stm32: add stm32mp157c initial support

2018-01-02 Thread Ludovic Barre
From: Ludovic Barre Add stm32mp157c initial support with: -Dual Cortex-A7 -Arm psci, timer, gic -Pinctrl -Uart Signed-off-by: Ludovic Barre --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 172 ++ arch/arm/boot/dts/stm32mp157c.dtsi| 139 ++

[PATCH v3 4/7] ARM: stm32: add initial support for STM32MP157

2018-01-02 Thread Ludovic Barre
From: Ludovic Barre This patch adds initial support of STM32MP157 microprocessor (MPU) based on Arm Cortex-A7. New Cortex-A infrastructure (gic, timer,...) are selected if ARCH_MULTI_V7 is defined. Signed-off-by: Ludovic Barre --- Documentation/arm/stm32/stm32mp157-overview.rst | 19 ++

[PATCH v3 2/7] ARM: stm32: prepare stm32 family to welcome armv7 architecture

2018-01-02 Thread Ludovic Barre
From: Ludovic Barre This patch prepares the STM32 machine for the integration of Cortex-A based microprocessor (MPU), on top of the existing Cortex-M microcontroller family (MCU). Since both MCUs and MPUs are sharing common hardware blocks we can keep using ARCH_STM32 flag for most of them. If a

[PATCH v3 7/7] ARM: dts: stm32: add initial support of stm32mp157c eval board

2018-01-02 Thread Ludovic Barre
From: Ludovic Barre Add support of stm32mp157c evaluation board (part number: STM32MP157C-EV1) split in 2 elements: -Daughter board (part number: STM32MP157C-ED1) which includes CPU, memory and power supply -Mother board (part number: STM32MP157C-EM1) which includes external peripherals (like d

[PATCH v3 3/7] dt-bindings: stm32: add support of STM32MP157

2018-01-02 Thread Ludovic Barre
From: Ludovic Barre This patch adds STM32MP157 SoC bindings. Signed-off-by: Ludovic Barre Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/stm32.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/stm32.txt b/Documentation/devicetre

Re: [PATCH 1/2] ARM: dts: imx6ul: add 696MHz operating point

2018-01-02 Thread Fabio Estevam
Hi Anson, On Tue, Jan 2, 2018 at 3:07 PM, Anson Huang wrote: > Add 696MHz operating point according to datasheet > (Rev. 0, 12/2015). There is a newer version from 05/2017: https://www.nxp.com/docs/en/data-sheet/IMX6ULAEC.pdf > > Signed-off-by: Anson Huang > --- > arch/arm/boot/dts/imx6ul.dts

[PATCH v3 1/7] Documentation: arm: stm32: move to rst format

2018-01-02 Thread Ludovic Barre
From: Ludovic Barre This patch rewrites stm32 documentation to rst (ReStructuredText) format. Signed-off-by: Ludovic Barre --- Documentation/arm/stm32/overview.rst | 31 +++ Documentation/arm/stm32/overview.txt | 33 - Documentati

[PATCH v3 5/7] ARM: configs: multi_v7: add stm32 support

2018-01-02 Thread Ludovic Barre
From: Ludovic Barre This patch adds stm32 support to multi_v7_defconfig Signed-off-by: Ludovic Barre --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 11e648a..a0163e7

Re: Rename the SmPL script “kzalloc-….cocci”?

2018-01-02 Thread SF Markus Elfring
>> * I am unsure which name will be better finally. >> Would we like to achieve another permalink here? > > Actually, according to th original name choice it is stillsimple, The involved contributors have got different views if the available script remains “simple” enough at the moment. > bec

Re: [PATCH] btrfs: fix trivial indentation issues

2018-01-02 Thread David Sterba
On Fri, Dec 22, 2017 at 04:38:24PM +, Colin King wrote: > From: Colin Ian King > > remove extraneous white space in indentation, fix misaligned > indentation. Pure whitespace patches are not welcome, sorry.

Re: [PATCH 2/2] USB: serial: ark3116.c: Move TIOCGSERIAL ioctl case to function.

2018-01-02 Thread Johan Hovold
On Wed, Dec 13, 2017 at 04:45:06PM +0300, Mikhail Zaytsev wrote: > The patch moves TIOCGSERIAL ioctl case to get_serial_info function. > > Signed-off-by: Mikhail Zaytsev > --- > drivers/usb/serial/ark3116.c | 35 +-- > 1 file changed, 21 insertions(+), 14 deletion

Re: [Xen-devel] [PATCH] x86/xen/time: fix section mismatch for xen_init_time_ops()

2018-01-02 Thread Boris Ostrovsky
On 01/02/2018 09:32 AM, Andrew Cooper wrote: > On 02/01/18 14:24, Juergen Gross wrote: >> On 02/01/18 15:18, Boris Ostrovsky wrote: >>> On 12/23/2017 09:50 PM, Nick Desaulniers wrote: The header declares this function as __init but is defined in __ref section. Signed-off-by: Nic

Re: [PATCH v8 1/2] tpm_tis: Move ilb_base_addr to tpm_tis_data

2018-01-02 Thread Jason Gunthorpe
On Tue, Jan 02, 2018 at 05:31:30AM +, Shaikh, Azhar wrote: > >>On Mon, Jan 01, 2018 at 08:05:43PM -0800, Azhar Shaikh wrote: > >> > >>> - return tpm_chip_register(chip); > >>> + rc = tpm_chip_register(chip); > >>> + if (rc && is_bsw()) > >>> + iounmap(priv->ilb_base_addr); > >>> + > >>>

Re: [PATCH v5] kernel: make groups_sort calling a responsibility group_info allocators

2018-01-02 Thread David Howells
NeilBrown wrote: > David: do you agree that this sort of content would be appropriate in > that file (which you apparently authored). Would you like to update it, > or shall I? Please update it. Thanks, David

Re: [PATCH 1/1] aio: make sure the input "timeout" value is valid

2018-01-02 Thread Matthew Wilcox
On Thu, Dec 14, 2017 at 11:18:30AM +0800, Leizhen (ThunderTown) wrote: > On 2017/12/14 3:31, Matthew Wilcox wrote: > > On Wed, Dec 13, 2017 at 11:27:00AM -0500, Jeff Moyer wrote: > >> Matthew Wilcox writes: > >> > >>> On Wed, Dec 13, 2017 at 09:42:52PM +0800, Zhen Lei wrote: > Below informati

[PATCH] virtio_balloon: use non-blocking allocation

2018-01-02 Thread Tetsuo Handa
Commit c7cdff0e864713a0 ("virtio_balloon: fix deadlock on OOM") tried to avoid OOM lockup by moving memory allocations to outside of balloon_lock. Now, Wei is trying to allocate far more pages outside of balloon_lock and some more memory inside of balloon_lock in order to perform efficient communi

Re: [PATCH 1/2] USB: serial: ark3116.c: Remove unused TIOCSSERIAL ioctl case.

2018-01-02 Thread Johan Hovold
On Wed, Dec 13, 2017 at 04:44:55PM +0300, Mikhail Zaytsev wrote: > The patch removes unused TIOCSSERIAL ioctl case and adds the default block > to the switch. > > Signed-off-by: Mikhail Zaytsev > --- > drivers/usb/serial/ark3116.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) >

[PATCH v5 02/20] dt-bindings: arm: add support for ARM System Control and Management Interface(SCMI) protocol

2018-01-02 Thread Sudeep Holla
This patch adds devicetree binding for System Control and Management Interface (SCMI) Message Protocol used between the Application Cores(AP) and the System Control Processor(SCP). The MHU peripheral provides a mechanism for inter-processor communication between SCP's M3 processor and AP. SCP offe

[PATCH v5 05/20] firmware: arm_scmi: add scmi protocol bus to enumerate protocol devices

2018-01-02 Thread Sudeep Holla
The SCMI specification encompasses various protocols. However, not every protocol has to be present on a given platform/implementation as not every protocol is relevant for it. Furthermore, the platform chooses which protocols it exposes to a given agent. The only protocol that must be implemented

Re: TPM driver breaks S3 suspend

2018-01-02 Thread Jarkko Sakkinen
On Mon, Dec 25, 2017 at 10:43:40AM +0800, Chris Chiu wrote: > On Mon, Dec 25, 2017 at 4:33 AM, Jarkko Sakkinen > wrote: > > On Thu, Dec 21, 2017 at 04:04:56PM +0800, Chris Chiu wrote: > >> Hi, > >> We have a desktop which has S3 suspend (to RAM) problem due to > >> error messages as follows. >

[PATCH v5 06/20] firmware: arm_scmi: add initial support for performance protocol

2018-01-02 Thread Sudeep Holla
The performance protocol is intended for the performance management of group(s) of device(s) that run in the same performance domain. It includes even the CPUs. A performance domain is defined by a set of devices that always have to run at the same performance level. For example, a set of CPUs that

[PATCH v5 04/20] firmware: arm_scmi: add common infrastructure and support for base protocol

2018-01-02 Thread Sudeep Holla
The base protocol describes the properties of the implementation and provide generic error management. The base protocol provides commands to describe protocol version, discover implementation specific attributes and vendor/sub-vendor identification, list of protocols implemented and the various ag

[PATCH v5 10/20] firmware: arm_scmi: probe and initialise all the supported protocols

2018-01-02 Thread Sudeep Holla
Now that we have basic support for all the protocols in the specification, let's probe them individually and initialise them. Cc: Arnd Bergmann Signed-off-by: Sudeep Holla --- drivers/firmware/arm_scmi/driver.c | 51 +- 1 file changed, 50 insertions(+), 1 del

[PATCH v5 07/20] firmware: arm_scmi: add initial support for clock protocol

2018-01-02 Thread Sudeep Holla
The clock protocol is intended for management of clocks. It is used to enable or disable clocks, and to set and get the clock rates. This protocol provides commands to describe the protocol version, discover various implementation specific attributes, describe a clock, enable and disable a clock an

[PATCH v5 08/20] firmware: arm_scmi: add initial support for power protocol

2018-01-02 Thread Sudeep Holla
The power protocol is intended for management of power states of various power domains. The power domain management protocol provides commands to describe the protocol version, discover the implementation specific attributes, set and get the power state of a domain. This patch adds support for the

[PATCH v5 11/20] firmware: arm_scmi: add support for polling based SCMI transfers

2018-01-02 Thread Sudeep Holla
It would be useful to have options to perform some SCMI transfers atomically by polling for the completion flag instead of interrupt driven. The SCMI specification has option to disable the interrupt and poll for the completion flag in the shared memory. This patch adds support for polling based S

Re: [PATCH v2] tpm: remove unused data fields from I2C and OF device ID tables

2018-01-02 Thread Jarkko Sakkinen
On Fri, Dec 22, 2017 at 06:47:41PM +0100, Javier Martinez Canillas wrote: > The data field for the entries in the device tables are set but not used. > > Signed-off-by: Javier Martinez Canillas Reviewed-by: Jarkko Sakkinen /Jarkko

[PATCH v5 09/20] firmware: arm_scmi: add initial support for sensor protocol

2018-01-02 Thread Sudeep Holla
The sensor protocol provides functions to manage platform sensors, and provides the commands to describe the protocol version and the various attribute flags. It also provides commands to discover various sensors implemented and managed by the platform, read any sensor synchronously or asynchronous

[PATCH v5 12/20] firmware: arm_scmi: add option for polling based performance domain operations

2018-01-02 Thread Sudeep Holla
In order to implement fast CPU DVFS switching, we need to perform all DVFS operations atomically. Since SCMI transfer already provide option to choose between pooling vs interrupt driven(default), we can opt for polling based transfers for set,get performance domain operations. This patch adds opt

[PATCH v5 15/20] firmware: arm_scmi: add device power domain support using genpd

2018-01-02 Thread Sudeep Holla
This patch hooks up the support for device power domain provided by SCMI using the Linux generic power domain infrastructure. Cc: Kevin Hilman Reviewed-by: Ulf Hansson Signed-off-by: Sudeep Holla --- drivers/firmware/Kconfig | 13 +++ drivers/firmware/arm_scmi/Makefile

[PATCH v5 17/20] hwmon: (core) Add hwmon_max to hwmon_sensor_types enumeration

2018-01-02 Thread Sudeep Holla
It's useful to know the maximum types of sensor supported by hwmon framework. It can be used to allocate some data structures when sorting the monitors based on their type. This will be used by scmi hwmon support. Cc: linux-hw...@vger.kernel.org Acked-by: Guenter Roeck Signed-off-by: Sudeep Holl

[PATCH v5 19/20] cpufreq: add support for CPU DVFS based on SCMI message protocol

2018-01-02 Thread Sudeep Holla
On some ARM based systems, a separate Cortex-M based System Control Processor(SCP) provides the overall power, clock, reset and system control including CPU DVFS. SCMI Message Protocol is used to communicate with the SCP. This patch adds a cpufreq driver for such systems using SCMI interface to dr

Re: [lkp-robot] [tpm] b008bd39b1: kmsg.tpm_tpm#:A_TPM_error(#)occurred_attempting_get_random

2018-01-02 Thread Jarkko Sakkinen
On Wed, Dec 27, 2017 at 01:11:14PM -0700, Jason Gunthorpe wrote: > On Wed, Dec 27, 2017 at 10:55:32AM +0800, kernel test robot wrote: > > > caused below changes (please refer to attached dmesg/kmsg for entire > > log/backtrace): > > > > [5.903660] tpm_tis 00:05: 1.2 TPM (device-id 0xFE, rev-

[PATCH v5 20/20] cpufreq: scmi: add support for fast frequency switching

2018-01-02 Thread Sudeep Holla
The cpufreq core provides option for drivers to implement fast_switch callback which is invoked for frequency switching from interrupt context. This patch adds support for fast_switch callback in SCMI cpufreq driver by making use of polling based SCMI transfer. It also sets the flag fast_switch_po

[PATCH v5 14/20] firmware: arm_scmi: add per-protocol channels support using idr objects

2018-01-02 Thread Sudeep Holla
In order to maintain the channel information per protocol, we need some sort of list or hashtable to hold all this information. IDR provides sparse array mapping of small integer ID numbers onto arbitrary pointers. In this case the arbitrary pointers can be pointers to the channel information. Thi

[PATCH v5 18/20] hwmon: add support for sensors exported via ARM SCMI

2018-01-02 Thread Sudeep Holla
Create a driver to add support for SoC sensors exported by the System Control Processor (SCP) via the System Control and Management Interface (SCMI). The supported sensor types is one of voltage, temperature, current, and power. The sensor labels and values provided by the SCP are exported via the

[PATCH v5 13/20] firmware: arm_scmi: refactor in preparation to support per-protocol channels

2018-01-02 Thread Sudeep Holla
In order to support per-protocol channels if available, we need to factor out all the mailbox channel information(Tx/Rx payload and channel handle) out of the main SCMI instance information structure. This patch refactors the existing channel information into a separate chan_info structure. Cc: A

[PATCH v5 16/20] clk: add support for clocks provided by SCMI

2018-01-02 Thread Sudeep Holla
On some ARM based systems, a separate Cortex-M based System Control Processor(SCP) provides the overall power, clock, reset and system control. System Control and Management Interface(SCMI) Message Protocol is defined for the communication between the Application Cores(AP) and the SCP. This patch

[PATCH v5 00/20] firmware: ARM System Control and Management Interface(SCMI) support

2018-01-02 Thread Sudeep Holla
Hi all, ARM System Control and Management Interface(SCMI) is more flexible and easily extensible than any of the existing interfaces. Many vendors were involved in the making of this formal specification and is now published[1]. There is a strong trend in the industry to provide micro-controllers

[PATCH v5 01/20] dt-bindings: mailbox: add support for mailbox client shared memory

2018-01-02 Thread Sudeep Holla
Many users of the mailbox controllers depend on the shared memory between the two end points to exchange the main data while using simple doorbell mechanism to alert the end points of the presence of a message. This patch defines device tree bindings to represent such shared memory in a generic wa

[PATCH v5 03/20] firmware: arm_scmi: add basic driver infrastructure for SCMI

2018-01-02 Thread Sudeep Holla
The SCMI is intended to allow OSPM to manage various functions that are provided by the hardware platform it is running on, including power and performance functions. SCMI provides two levels of abstraction, protocols and transports. Protocols define individual groups of system control and manageme

Re: Rename the SmPL script “kzalloc-….cocci”?

2018-01-02 Thread Julia Lawall
On Tue, 2 Jan 2018, SF Markus Elfring wrote: > >> Now I find that it became more advanced than the previous version. > >> How do you think about to update also the corresponding file name > >> (instead of keeping the word “simple” there)? > > > > Why not send a patch for it yourself? > > * I wou

Re: [PATCH v2 0/3] tpm: fix PS/2 devices not working on Braswell systems due CLKRUN enabled

2018-01-02 Thread Jarkko Sakkinen
On Mon, Dec 25, 2017 at 03:22:48AM +0100, Javier Martinez Canillas wrote: > Hello, > > Commit 5e572cab92f0 ("tpm: Enable CLKRUN protocol for Braswell systems") > added logic in the TPM TIS driver to disable the Low Pin Count CLKRUN > signal during TPM transactions. > > Unfortunately this breaks o

Re: Rename the SmPL script “kzalloc-….cocci”?

2018-01-02 Thread SF Markus Elfring
>> Now I find that it became more advanced than the previous version. >> How do you think about to update also the corresponding file name >> (instead of keeping the word “simple” there)? > > Why not send a patch for it yourself? * I would like to check your views around renaming of such files.

Re: [PATCH 2/2] cpufreq: imx6q: add 696MHz operating point for i.mx6ul

2018-01-02 Thread Fabio Estevam
Hi Anson, On Tue, Jan 2, 2018 at 3:07 PM, Anson Huang wrote: > diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c > index d9b2c2d..cbda0cc 100644 > --- a/drivers/cpufreq/imx6q-cpufreq.c > +++ b/drivers/cpufreq/imx6q-cpufreq.c > @@ -120,6 +120,10 @@ static int imx6q_se

[PATCH][crypto-next] crypto: inside-secure - make function safexcel_try_push_requests static

2018-01-02 Thread Colin King
From: Colin Ian King The function safexcel_try_push_requests is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'safexcel_try_push_requests' was not declared. Should it be static? Signed-off-by: Colin Ian King --- drivers/crypt

Re: [PATCH v3] drm/ttm: check the return value of kzalloc

2018-01-02 Thread Christian König
Am 02.01.2018 um 14:24 schrieb Xiongwei Song: In the function ttm_page_alloc_init, kzalloc call is made for variable _manager, we need to check its return value, it may return NULL. Signed-off-by: Xiongwei Song Reviewed-by: Christian König Going to pick that up for the next release. Thanks

Re: [PATCH 4/5] Expand the INIT_SIGNALS and INIT_SIGHAND macros and remove

2018-01-02 Thread David Howells
Thomas Gleixner wrote: > > #define INIT_CPU_TIMERS(s) \ > ... > That macro is only used in init_task.c Why not moving it there and get rid > of the whole macro maze in the header file? The reason I didn't get rid of it is that it's got more than one expan

Re: [Xen-devel] [PATCH] x86/xen/time: fix section mismatch for xen_init_time_ops()

2018-01-02 Thread Andrew Cooper
On 02/01/18 14:24, Juergen Gross wrote: > On 02/01/18 15:18, Boris Ostrovsky wrote: >> On 12/23/2017 09:50 PM, Nick Desaulniers wrote: >>> The header declares this function as __init but is defined in __ref >>> section. >>> >>> Signed-off-by: Nick Desaulniers >> AFAIK section attributes in header

Re: Rename the SmPL script “kzalloc-….cocci”?

2018-01-02 Thread Julia Lawall
On Tue, 2 Jan 2018, SF Markus Elfring wrote: > Hello, > > A script for the semantic patch language was extended in significant ways. > > [PATCH v2] Coccinelle: kzalloc-simple: Add “all” zero allocating functions > https://lkml.org/lkml/2017/12/26/182 > https://patchwork.kernel.org/patch/10133277

Re: Rename the SmPL script “kzalloc-….cocci”?

2018-01-02 Thread SF Markus Elfring
Hello, A script for the semantic patch language was extended in significant ways. [PATCH v2] Coccinelle: kzalloc-simple: Add “all” zero allocating functions https://lkml.org/lkml/2017/12/26/182 https://patchwork.kernel.org/patch/10133277/ https://lkml.kernel.org/r/<1514324410-14561-1-git-send-ema

Re: [PATCH] x86/xen/time: fix section mismatch for xen_init_time_ops()

2018-01-02 Thread Juergen Gross
On 02/01/18 15:18, Boris Ostrovsky wrote: > On 12/23/2017 09:50 PM, Nick Desaulniers wrote: >> The header declares this function as __init but is defined in __ref >> section. >> >> Signed-off-by: Nick Desaulniers > > AFAIK section attributes in header files are ignored by compiler anyway > so I'd

Re: [PATCH] arc: fix iounmap prototype

2018-01-02 Thread Geert Uytterhoeven
Hi Arnd, On Tue, Jan 2, 2018 at 12:01 PM, Arnd Bergmann wrote: > The missing 'volatile' keyword on the iounmap argument leads to lots of > harmless warnings in an allmodconfig build: > > sound/pci/echoaudio/echoaudio.c:1879:10: warning: passing argument 1 of > 'iounmap' discards 'volatile' quali

Re: [PATCH v3 1/9] ufs: sysfs: device descriptor

2018-01-02 Thread Greg KH
On Tue, Jan 02, 2018 at 02:04:39PM +, Stanislav Nijnikov wrote: > > > > -Original Message- > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > Sent: Friday, December 29, 2017 11:23 AM > > To: Stanislav Nijnikov > > Cc: linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org; A

Re: [PATCH] m32r: fix readl/writel prototypes

2018-01-02 Thread Geert Uytterhoeven
Hi Arnd, On Tue, Jan 2, 2018 at 11:56 AM, Arnd Bergmann wrote: > All other architectures use 'unsigned int' as the data in readl/write, > but m32r uses 'unsigned long', leading to lots of harmless build warnings > like: > > drivers/mmc/host/dw_mmc.c: In function 'dw_mci_regs_show': > drivers/mmc/

Re: [PATCH] x86/xen/time: fix section mismatch for xen_init_time_ops()

2018-01-02 Thread Boris Ostrovsky
On 12/23/2017 09:50 PM, Nick Desaulniers wrote: > The header declares this function as __init but is defined in __ref > section. > > Signed-off-by: Nick Desaulniers AFAIK section attributes in header files are ignored by compiler anyway so I'd remove all of them. -boris > --- > arch/x86/xen/x

[PATCH v5 10/39] nds32: MMU fault handling and page table management

2018-01-02 Thread Greentime Hu
From: Greentime Hu This patch includes page fault handler, mmap and fixup implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/lib/copy_page.S | 37 arch/nds32/mm/extable.c| 16 ++ arch/nds32/mm/fault.c | 410 ++

Re: [PATCH v20 3/7 RESEND] xbitmap: add more operations

2018-01-02 Thread Matthew Wilcox
On Fri, Dec 22, 2017 at 04:49:11PM +0800, Wei Wang wrote: > Thanks for the improvement. I also found a small bug in xb_zero. With the > following changes, it has passed the current test cases and tested with the > virtio-balloon usage without any issue. Thanks; I applied the change. Can you suppl

Re: [net-next: PATCH v2 5/5] net: mvpp2: enable ACPI support in the driver

2018-01-02 Thread Andrew Lunn
> Indeed in of_mdio_bus_register_phy, there is of_irq_get. This is more > a discussion for a MDIO bus / ACPI patchset, but we either find a way > to use IRQs with ACPI obtained from child nodes or for this world the > functionality will be limited (at least for the beginning). Hi Marcin What i wa

[PATCH v1] ACPI / boot: Don't shadow error code in acpi_gsi_to_irq()

2018-01-02 Thread Andy Shevchenko
acpi_get_override_irq() followed by acpi_register_gsi() return negative error code on failure. Don't shadow them in acpi_gsi_to_irq(). Signed-off-by: Andy Shevchenko --- arch/x86/kernel/acpi/boot.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/x

Re: [PATCH] swiotlb: suppress warning when __GFP_NOWARN is set v2

2018-01-02 Thread Mike Galbraith
On Tue, 2018-01-02 at 13:13 +0100, Christian König wrote: > > v2: suppress warnings from swiotlb_tbl_map_single as well Thanks, dmesg spam is history. -Mike

RE: [PATCH v3 1/9] ufs: sysfs: device descriptor

2018-01-02 Thread Stanislav Nijnikov
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Friday, December 29, 2017 11:23 AM > To: Stanislav Nijnikov > Cc: linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org; Alex Lemberg > > Subject: Re: [PATCH v3 1/9] ufs: sysfs: device descriptor > > On

[PATCH] USB: usbip: remove useless call in usbip_recv

2018-01-02 Thread Gustavo A. R. Silva
Calling msg_data_left(&msg) is only useful for its return value, which in this particular case is ignored. Fix this by removing such call. Addresses-Coverity-ID: 1427080 Fixes: 90120d15f4c3 ("usbip: prevent leaking socket pointer address in messages") Signed-off-by: Gustavo A. R. Silva --- dri

Re: [Cluster-devel] [PATCH 00/12] drop unneeded newline

2018-01-02 Thread Julia Lawall
On Tue, 2 Jan 2018, Bob Peterson wrote: > - Original Message - > | - Original Message - > | | Drop newline at the end of a message string when the printing function > adds > | | a newline. > | > | Hi Julia, > | > | NACK. > | > | As much as it's a pain when searching the source c

[PATCH 01/12] PM / AVS: rockchip-io: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
This driver creates a number of const structures that it stores in the data field of an of_device_id array. The data field of an of_device_id structure has type const void *, so there is no need for a const-discarding cast when putting const values into such a structure. Furthermore, adding const

[PATCH 02/12] pinctrl: at91-pio4: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
This driver creates a const structure that it stores in the data field of an of_device_id array. Adding const to the declaration of the location that receives the const value from the data field ensures that the compiler will continue to check that the value is not modified. Furthermore, the cons

[PATCH v2] KVM: x86: do not read FS/GS base MSRs when saving them

2018-01-02 Thread Paolo Bonzini
The FS and userspace GS bases are available in current->thread, while the kernel GS base is a percpu variable. Skip the expensive rdmsr and just get the values from memory. Signed-off-by: Paolo Bonzini --- v1->v2: hide the accessor for 32-bit kernels arch/x86/include/asm/desc.h |

[PATCH 00/12] account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
Maintain const annotations when putting values into the data field of an of_device_id structure, and afterwards when extracting them from the data field of such a structure. This was done using the following semantic patch: (http://coccinelle.lip6.fr/) // @r@ identifier i,j; const struct j *m; s

[PATCH 08/12] pinctrl: axp209: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
The return value of of_device_get_match_data has type const void *. The desc field of the pctl structure also has a const type, so there is no need for the const-discarding cast between them. Done using Coccinelle. Signed-off-by: Julia Lawall --- drivers/pinctrl/pinctrl-axp209.c |2 +- 1 f

[PATCH 06/12] power: supply: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
This driver creates two const structures that it stores in the data field of an of_device_id array. The data field of an of_device_id structure has type const void *, so there is no need for a const-discarding cast when putting const values into such a structure. Furthermore, adding const to the

[PATCH 03/12] spi: sirf: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
This driver creates various const structures that it stores in the data field of an of_device_id array. Adding const to the declaration of the location that receives the const value from the data field ensures that the compiler will continue to check that the value is not modified. Furthermore, t

[PATCH 07/12] i2c: rk3x: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
This driver creates a number of const structures that it stores in the data field of an of_device_id array. The data field of an of_device_id structure has type const void *, so there is no need for a const-discarding cast when putting const values into such a structure. Furthermore, adding const

[PATCH 10/12] spi: spi-fsl-dspi: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
This driver creates a number of const structures that it stores in the data field of an of_device_id array. The data field of an of_device_id structure has type const void *, so there is no need for a const-discarding cast when putting const values into such a structure. Done using Coccinelle. S

[PATCH 05/12] pinctrl: armada-37xx: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
The data field of an of_device_id structure has type const void *, so there is no need for a const-discarding cast when putting const values into such a structure. Done using Coccinelle. Signed-off-by: Julia Lawall --- drivers/pinctrl/mvebu/pinctrl-armada-37xx.c |4 ++-- 1 file changed, 2

[PATCH 11/12] iio: common: ssp_sensors: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
This driver creates a number of const structures that it stores in the data field of an of_device_id array. Add const to the declaration of the location that receives a value from the data field to ensure that the compiler will continue to check that the value is not modified and remove the const-

[PATCH 09/12] mtd: fsl-quadspi: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
This driver creates a number of const structures that it stores in the data field of an of_device_id array. The data field of an of_device_id structure has type const void *, so there is no need for a const-discarding cast when putting const values into such a structure. Done using Coccinelle. S

[PATCH 12/12] power: reset: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
This driver creates a const structure that it stores in the data field of an of_device_id array. Add const to the declaration of the location that receives a value from the data field to ensure that the compiler will continue to check that the value is not modified and remove the const-dropping ca

Re: [PATCH v2 3/3] gpio: rcar: Use WAKEUP_PATH driver PM flag

2018-01-02 Thread Geert Uytterhoeven
Hi Ulf, On Tue, Jan 2, 2018 at 2:02 PM, Ulf Hansson wrote: Signed-off-by: Geert Uytterhoeven [Ulf: Converted to use the WAKEUP_PATH driver PM flag] >> >> Ulf: + killing the DEV_PM_OPS define, increasing kernel size if PM_SUSPEND=n? > > Oh, yes - correct! > > The code looks nicer, with

[PATCH 04/12] PCI: qcom: account for const type of of_device_id.data

2018-01-02 Thread Julia Lawall
This driver creates various const structures that it stores in the data field of an of_device_id array. Adding const to the declaration of the location that receives the const value from the data field ensures that the compiler will continue to check that the value is not modified. Furthermore, t

Re: [Cluster-devel] [PATCH 00/12] drop unneeded newline

2018-01-02 Thread Bob Peterson
- Original Message - | - Original Message - | | Drop newline at the end of a message string when the printing function adds | | a newline. | | Hi Julia, | | NACK. | | As much as it's a pain when searching the source code for output strings, | this patch set goes against the accep

Re: [Cluster-devel] [PATCH 00/12] drop unneeded newline

2018-01-02 Thread Julia Lawall
On Tue, 2 Jan 2018, Bob Peterson wrote: > - Original Message - > | Drop newline at the end of a message string when the printing function adds > | a newline. > > Hi Julia, > > NACK. > > As much as it's a pain when searching the source code for output strings, > this patch set goes agains

Re: [net-next: PATCH v2 5/5] net: mvpp2: enable ACPI support in the driver

2018-01-02 Thread Marcin Wojtas
Hi Andrew, 2018-01-02 14:33 GMT+01:00 Andrew Lunn : >> Apart from the phylink's SFP support that may require in-band >> management, it's an alternative to the normal PHY handling. Once MDIO >> bus + PHYs are supported for ACPI, phylib support will be used instead >> of the IRQs, so there should be

RE: [PATCH v3 1/9] ufs: sysfs: device descriptor

2018-01-02 Thread Stanislav Nijnikov
> -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Thursday, December 28, 2017 9:37 PM > To: Stanislav Nijnikov > Cc: linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org; > gre...@linuxfoundation.org; Alex Lemberg > Subject: Re: [PATCH v3 1/9] ufs: sysfs:

Re: [PATCH v2 3/3] gpio: rcar: Use WAKEUP_PATH driver PM flag

2018-01-02 Thread Geert Uytterhoeven
On Tue, Jan 2, 2018 at 1:53 PM, Ulf Hansson wrote: > On 2 January 2018 at 11:48, Rafael J. Wysocki wrote: >> On Tue, Jan 2, 2018 at 11:44 AM, Geert Uytterhoeven >> wrote: >>> On Tue, Jan 2, 2018 at 11:32 AM, Rafael J. Wysocki >>> wrote: On Fri, Dec 29, 2017 at 2:31 PM, Ulf Hansson

Re: [PATCH v2 4/9] ARM: dts: r7s72100: Add Capture Engine Unit (CEU)

2018-01-02 Thread Laurent Pinchart
Hi Jacopo, Thank you for the patch. On Thursday, 28 December 2017 16:01:16 EET Jacopo Mondi wrote: > Add Capture Engine Unit (CEU) node to device tree. > > Signed-off-by: Jacopo Mondi > --- > arch/arm/boot/dts/r7s72100.dtsi | 15 --- > 1 file changed, 12 insertions(+), 3 deletions(

Re: [Cluster-devel] [PATCH 00/12] drop unneeded newline

2018-01-02 Thread Bob Peterson
- Original Message - | Drop newline at the end of a message string when the printing function adds | a newline. Hi Julia, NACK. As much as it's a pain when searching the source code for output strings, this patch set goes against the accepted Linux coding style document. See: https://ww

[PATCH] KVM: arm/arm64: vgic-its: Fix vgic_v4 init

2018-01-02 Thread Eric Auger
When GICv4 is enabled and vgic_v4_init() is called from the its device creation path, it does nothing. The reason is that the has_its field is initialized after the vgic_v4_init() call and vgic_supports_direct_msis returns false. This patch moves the has_its setting before the vgic_v4_init call.

Re: [PATCH v2 3/9] v4l: platform: Add Renesas CEU driver

2018-01-02 Thread Laurent Pinchart
Hi Jacopo, Thank you for the patch. On Thursday, 28 December 2017 16:01:15 EET Jacopo Mondi wrote: > Add driver for Renesas Capture Engine Unit (CEU). > > The CEU interface supports capturing 'data' (YUV422) and 'images' > (NV[12|21|16|61]). > > This driver aims to replace the soc_camera-based

Re: [PATCH] PM / wakeup: Drop redundant check from device_init_wakeup()

2018-01-02 Thread Ulf Hansson
On 2 January 2018 at 01:42, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Since device_wakeup_disable() checks the device's power.can_wakeup > flag, device_init_wakeup() doesn't need to do that before calling it, > so drop that redundant check from device_init_wakeup(). > > No intentiona

Re: [PATCH] PM / wakeup: Drop redundant check from device_set_wakeup_enable()

2018-01-02 Thread Ulf Hansson
On 26 December 2017 at 01:50, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Since both device_wakeup_enable() and device_wakeup_disable() check > if dev is not NULL and whether or not power.can_wakeup is set for it, > device_set_wakeup_enable() doesn't have to do that, so drop that > che

Re: [PATCH V4 25/26] i7300_idle: remove unused file

2018-01-02 Thread Greg Kroah-Hartman
On Tue, Jan 02, 2018 at 08:36:46AM -0500, Sinan Kaya wrote: > Hi Greg, > > On 12/19/2017 12:38 AM, Sinan Kaya wrote: > > i7300_idle.h is not being called by any source file and contains calls to > > pci_get_bus_and_slot() that we are trying to deprecate. Remove unused file. > > > > Signed-off-by:

[PATCH] platform/x86: silead_dmi: Add entry for the Teclast X98 Plus II

2018-01-02 Thread Paul Cercueil
Add touchscreen platform data for the Teclast X98 Plus II tablet. Signed-off-by: Paul Cercueil --- drivers/platform/x86/silead_dmi.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/platform/x86/silead_dmi.c b/drivers/platform/x86/silead_dmi.c index 266535c2

Re: [PATCH 04/12] ext2: drop unneeded newline

2018-01-02 Thread Jan Kara
On Wed 27-12-17 23:30:42, Ted Tso wrote: > On Wed, Dec 27, 2017 at 03:51:37PM +0100, Julia Lawall wrote: > > ext2_msg prints a newline at the end of the message string, so the message > > string does not need to include a newline explicitly. Done using > > Coccinelle. > > > > Signed-off-by: Julia

<    1   2   3   4   5   6   7   8   9   >