[PATCH RESEND 10/11] ALSA: vsnd: Implement communication with backend

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Implement frontend to backend communication according to the para-virtualized sound protocol: xen/interface/io/sndif.h. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c | 302

Re: [PATCH] tpm: improve tpm_tis send() performance by ignoring burstcount

2017-08-07 Thread Peter Huewe
Am 7. August 2017 13:46:32 MESZ schrieb Nayna Jain : >The TPM burstcount status indicates the number of bytes that can >be sent to the TPM without causing bus wait states. Effectively, >it is the number of empty bytes in the command FIFO. Further, >some TPMs have a

Re: [PATCH 1/4] PM / s2idle: Rename PM_SUSPEND_FREEZE to PM_SUSPEND_S2IDLE

2017-08-07 Thread Rafael J. Wysocki
On Mon, Aug 7, 2017 at 10:49 AM, Peter Zijlstra wrote: > On Sat, Aug 05, 2017 at 02:56:43PM +0200, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> To make it clear that the symbol in question refers to >> suspend-to-idle, rename it from

Re: [PATCH 2/2] gpio: omap : Add missing clk_unprepare().

2017-08-07 Thread Linus Walleij
On Tue, Aug 1, 2017 at 8:44 AM, Arvind Yadav wrote: > omap_gpio_probe() can fail here and we must disable clock. > > Signed-off-by: Arvind Yadav Patch applied with Grygorii's ACK. yours, Linus Walleij

Re: [PATCH] ASoC: pxa: don't select SSP for COMPILE_TESTing

2017-08-07 Thread Arnd Bergmann
On Mon, Aug 7, 2017 at 1:48 PM, Mark Brown wrote: > On Mon, Aug 07, 2017 at 01:36:09PM +0200, Arnd Bergmann wrote: >> On Mon, Aug 7, 2017 at 1:20 PM, Mark Brown wrote: >> > On Mon, Aug 07, 2017 at 12:40:44PM +0200, Arnd Bergmann wrote: >> >> When the audio

Re: [PATCH] ASoC: pxa: don't select SSP for COMPILE_TESTing

2017-08-07 Thread Mark Brown
On Mon, Aug 07, 2017 at 01:58:29PM +0200, Arnd Bergmann wrote: > On Mon, Aug 7, 2017 at 1:48 PM, Mark Brown wrote: > > Still missing a few steps of reasoning here... > Sorry, I just realized that you were trying to point out the incomplete > changelog. I must have

Re: [PATCH] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-08-07 Thread Linus Walleij
On Wed, Aug 2, 2017 at 2:06 PM, Andy Shevchenko wrote: > On Tue, 2017-08-01 at 12:24 -0700, Dmitry Torokhov wrote: >> On Wed, Jul 26, 2017 at 01:21:37PM +0300, Andy Shevchenko wrote: >> > On Tue, 2017-07-25 at 13:58 -0700, Dmitry Torokhov wrote: >> > > When

Re: [GIT PULL] workqueue fixes for v4.13-rc3

2017-08-07 Thread Geert Uytterhoeven
Hi Tejun, On Mon, Jul 31, 2017 at 5:38 PM, Tejun Heo wrote: > Two notable fixes. > * Workqueue assumes that CPU <-> NUMA node mapping remains static. > This is a general assumption - we don't have any synchronization > mechanism around CPU <-> node mapping. Unfortunately,

Re: [PATCH RESEND 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
On 08/07/2017 03:09 PM, Takashi Sakamoto wrote: Hi, On Aug 7 2017 20:50, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from

[PATCH RESEND1 06/12] ALSA: vsnd: Implement handling of shared buffers

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Implement shared buffer handling according to the para-virtualized sound device protocol at xen/interface/io/sndif.h: - manage buffer memory - handle granted references - handle page directories Signed-off-by: Oleksandr

[PATCH RESEND1 10/12] ALSA: vsnd: Implement ALSA PCM operations

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Implement ALSA driver operations including: - start/stop period interrupt emulation - manage frontend/backend shraed buffers - manage Xen bus event channel state Signed-off-by: Oleksandr Andrushchenko

[PATCH RESEND1 11/12] ALSA: vsnd: Implement communication with backend

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Implement frontend to backend communication according to the para-virtualized sound protocol: xen/interface/io/sndif.h. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c | 302

[PATCH RESEND1 12/12] ALSA: vsnd: Introduce Kconfig option to enable Xen PV sound

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Introduce Kconfig option to enable Xen para-virtualized sound frontend driver. Also add sound frontend to the Makefile. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/Kconfig | 12

[PATCH 1/2] devicetree: gpio: 74x164: optional enable-gpios

2017-08-07 Thread Peng Fan
There is an OE(low active) input pin for 74hc595 and 74lv595. To some boards, the OE pin is controlled by GPIO, so add an optional property "enable-gpios". Signed-off-by: Peng Fan Cc: Rob Herring Cc: Linus Walleij ---

[PATCH 2/2] gpio: 74x164: handling enable-gpios

2017-08-07 Thread Peng Fan
To 74hc595 and 74lv595, there is an OE(low active) input pin. To some boards, this pin is controller by GPIO, so handling this pin in driver. When driver probe, use GPIOD_OUT_LOW flag when requesting the gpio, so OE is set to low when probe. Signed-off-by: Peng Fan Cc: Linus

Re: [PATCH 2/3] KVM: X86: implement the logic for spinlock optimization

2017-08-07 Thread Longpeng(Mike)
On 08/07/2017 06:45 PM, Paolo Bonzini wrote: On 07/08/2017 10:44, Longpeng(Mike) wrote: + + /* +* Intel sdm vol3 ch-25.1.3 says: The “PAUSE-loop exiting” +* VM-execution control is ignored if CPL > 0. So the vcpu +* is always exiting with CPL=0 if it uses PLE.

Re: [PATCH RESEND 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Takashi Sakamoto
On Aug 7 2017 21:18, Oleksandr Andrushchenko wrote: Your first patch includes code difference under line 26, thus it expects existence of a file 'sound/drivers/xen-front.c' in tree. However, the file is not introduced in any upstream yet; at least, Linus's tree and Iwai-san's tree. I missed

Re: [PATCH RESEND 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
On 08/07/2017 03:30 PM, Takashi Sakamoto wrote: On Aug 7 2017 21:18, Oleksandr Andrushchenko wrote: Your first patch includes code difference under line 26, thus it expects existence of a file 'sound/drivers/xen-front.c' in tree. However, the file is not introduced in any upstream yet; at

Build regressions/improvements in v4.13-rc4

2017-08-07 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.13-rc4[1] compared to v4.12[2]. Summarized: - build errors: +1/- - build warnings: +1462/-1120 JFYI, when comparing v4.13-rc4[1] to v4.13-rc3[3], the summaries are: - build errors: +1/-2 - build warnings: +457/-541

Re: [PATCH v4 net-next 01/13] bpf/verifier: rework value tracking

2017-08-07 Thread Edward Cree
On 07/08/17 00:35, Daniel Borkmann wrote: > On 08/03/2017 06:11 PM, Edward Cree wrote: >> Unifies adjusted and unadjusted register value types (e.g. FRAME_POINTER is >> now just a PTR_TO_STACK with zero offset). >> Tracks value alignment by means of tracking known & unknown bits. This >> also

Re: Build regressions/improvements in v4.13-rc4

2017-08-07 Thread Geert Uytterhoeven
On Mon, Aug 7, 2017 at 2:39 PM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.13-rc4[1] to v4.13-rc3[3], the summaries are: > - build errors: +1/-2 + /home/kisskb/slave/src/arch/sh/drivers/dma/dma-sh.c: error: 'CONFIG_NR_ONCHIP_DMA_CHANNELS' undeclared here (not

Re: [PATCH v3] printk: Add boottime and real timestamps

2017-08-07 Thread Prarit Bhargava
On 08/04/2017 11:36 AM, Mark Salyzyn wrote: > On 08/03/2017 06:18 PM, Prarit Bhargava wrote: > >> diff --git a/arch/arm/configs/aspeed_g4_defconfig >> b/arch/arm/configs/aspeed_g4_defconfig >> index cfc2465e8b77..6c73c305ad17 100644 >> --- a/arch/arm/configs/aspeed_g4_defconfig >> +++

Re: [PATCH] gpio: uniphier: add UniPhier GPIO controller driver

2017-08-07 Thread Linus Walleij
On Thu, Aug 3, 2017 at 1:06 PM, Masahiro Yamada wrote: > This GPIO controller device is used on UniPhier SoCs. > > Signed-off-by: Masahiro Yamada (...) > +static const u32 uniphier_gpio_irq_parent_hwirqs[] = { > + 80, 81, 82,

[PATCH 3/3] spi: rockchip: Fix clock handling in suspend/resume

2017-08-07 Thread Jeffy Chen
The runtime suspend callback might be called by pm domain framework at suspend_noirq stage. It would try to disable the clocks which already been disabled by rockchip_spi_suspend. Call pm_runtime_force_suspend/pm_runtime_force_resume when suspend/resume to avoid that. Signed-off-by: Jeffy Chen

[PATCH 3/8] gpio: zynq: Shift zynq_gpio_init() to subsys_initcall level

2017-08-07 Thread Michal Simek
From: Nava kishore Manne In general situation on-SoC GPIO controller drivers should be probed after pinctrl/pinmux controller driver, because on-SoC GPIOs utilize a pin/pad as a resource provided and controlled by pinctrl subsystem. GPIO must come after pinctrl as gpios

[PATCH 5/8] gpio: zynq: Fix kernel doc warnings

2017-08-07 Thread Michal Simek
From: Nava kishore Manne This patch fixes the kernel doc warnings in the driver. Signed-off-by: Nava kishore Manne Signed-off-by: Michal Simek --- drivers/gpio/gpio-zynq.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH 2/8] gpio: zynq: Wakeup gpio controller when it is used as IRQ controller

2017-08-07 Thread Michal Simek
From: Borsodi Petr There is a problem with GPIO driver when used as IRQ controller. It is not working because the module is sleeping (clock is disabled). The patch enables clocks when IP is used as IRQ controller. Signed-off-by: Borsodi Petr Signed-off-by:

[PATCH 6/8] gpio: zynq: Fix empty lines in driver

2017-08-07 Thread Michal Simek
Remove one additional line and add two new. All are reported by checkpatch. Signed-off-by: Michal Simek empty --- drivers/gpio/gpio-zynq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index

[PATCH 4/8] gpio: zynq: Provided workaround for GPIO

2017-08-07 Thread Michal Simek
From: Swapna Manupati This patch provides workaround in the gpio driver for Zynq and ZynqMP Platforms by reading pin value of EMIO banks through DATA register as it was unable to read the value of it from DATA_RO register. Signed-off-by: Swapna Manupati

RE: [PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-07 Thread Reshetova, Elena
> On Tue, 18 Jul 2017, Elena Reshetova wrote: > > > atomic_as_refcounter.cocci script allows detecting > > cases when refcount_t type and API should be used > > instead of atomic_t. > > > > Signed-off-by: Elena Reshetova > > --- > >

Re: [PATCH] media: i2c: OV5647: gate clock lane before stream on

2017-08-07 Thread Jacob Chen
Hi Philipp, 2017-08-07 16:17 GMT+08:00 Philipp Zabel : > Hi Jacob, > > On Mon, 2017-08-07 at 15:11 +0800, Jacob Chen wrote: >> Hi all, >> >> 2017-07-25 10:34 GMT+08:00 Jacob Chen : >> > According to datasheet, BIT5 in reg-0x4800 are used to >> >

Re: [PATCH RFC] arm64: introduce mm_context_t flags

2017-08-07 Thread Catalin Marinas
On Sat, Aug 05, 2017 at 12:49:19AM +0300, Yury Norov wrote: > On Fri, Aug 04, 2017 at 06:38:10PM +0100, Catalin Marinas wrote: > > On Wed, Aug 02, 2017 at 08:29:40PM +0300, Yury Norov wrote: > > > On Wed, Aug 02, 2017 at 05:39:01PM +0100, Catalin Marinas wrote: > > > > On Mon, Jul 31, 2017 at

Re: Revert "[media] et8ek8: Export OF device ID as module aliases"

2017-08-07 Thread Pavel Machek
Hi! > Just hit this issue too. This seems not to have made it into v4.13 as of > today yet, any chance to get it still in? If Mauro does not react, I guess we can push the patche through akpm. Hmm. Or directly to the Linus. -rc really is about fixing regressions, such as this. Best regards,

Re: [PATCH 1/2] acpi: arm64: add iort support for PMCG

2017-08-07 Thread Robin Murphy
Hi Neil, On 04/08/17 20:59, Neil Leeder wrote: > Add support for the SMMU Performance Monitor Counter Group > information from ACPI. This is in preparation for its use > in the SMMU v3 PMU driver. > > Signed-off-by: Neil Leeder > --- > drivers/acpi/arm64/iort.c | 54 >

Re: [RESEND PATCH] bcache: Don't reinvent the wheel but use existing llist API

2017-08-07 Thread Coly Li
On 2017/8/7 下午4:38, Byungchul Park wrote: > Although llist provides proper APIs, they are not used. Make them used. > > Signed-off-by: Byungchul Park

Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc allocator

2017-08-07 Thread Igor Stoppa
On 04/08/17 11:12, Michal Hocko wrote: > On Fri 04-08-17 11:02:46, Igor Stoppa wrote: [...] >> struct page { >> /* First double word block */ >> unsigned long flags; /* Atomic flags, some possibly >> * updated asynchronously */ >> union { >>

[PATCH 1/2] mm: fix double mmap_sem unlock on MMF_UNSTABLE enforced SIGBUS

2017-08-07 Thread Michal Hocko
From: Michal Hocko Tetsuo Handa has noticed that MMF_UNSTABLE SIGBUS path in handle_mm_fault causes a lockdep splat [ 58.539455] Out of memory: Kill process 1056 (a.out) score 603 or sacrifice child [ 58.543943] Killed process 1056 (a.out) total-vm:4268108kB,

[PATCH 2/2] mm, oom: fix potential data corruption when oom_reaper races with writer

2017-08-07 Thread Michal Hocko
From: Michal Hocko Wenwei Tao has noticed that our current assumption that the oom victim is dying and never doing any visible changes after it dies, and so the oom_reaper can tear it down, is not entirely true. __task_will_free_mem consider a task dying when SIGNAL_GROUP_EXIT

[PATCH 0/2] mm, oom: fix oom_reaper fallouts

2017-08-07 Thread Michal Hocko
Hi, there are two issues this patch series attempts to fix. First one is something that has been broken since MMF_UNSTABLE flag introduction and I guess we should backport it stable trees (patch 1). The other issue has been brought up by Wenwei Tao and Tetsuo Handa has created a test case to

[PATCH] tpm: improve tpm_tis send() performance by ignoring burstcount

2017-08-07 Thread Nayna Jain
The TPM burstcount status indicates the number of bytes that can be sent to the TPM without causing bus wait states. Effectively, it is the number of empty bytes in the command FIFO. Further, some TPMs have a static burstcount, when the value remains zero until the entire FIFO is empty. This

[PATCH 2/4] ARM: dts: keystone-k2g: Add ECAP PWM DT nodes

2017-08-07 Thread Vignesh R
Add DT nodes for PWM ECAP IP present on 66AK2G SoC. Signed-off-by: Vignesh R --- arch/arm/boot/dts/keystone-k2g.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2g.dtsi b/arch/arm/boot/dts/keystone-k2g.dtsi index

[PATCH RESEND 11/11] ALSA: vsnd: Introduce Kconfig option to enable Xen PV sound

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Introduce Kconfig option to enable Xen para-virtualized sound frontend driver. Also add sound frontend to the Makefile. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/Kconfig | 12

[PATCH RESEND 06/11] ALSA: vsnd: Introduce ALSA virtual sound driver

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Implement essential initialization of the sound driver: - introduce required data structures - handle driver registration - handle sound card registration - register sound driver on backend connection - remove sound driver on

Applied "ASoC: rockchip: add bindings for i2s" to the asoc tree

2017-08-07 Thread Mark Brown
The patch ASoC: rockchip: add bindings for i2s has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus

[PATCH RESEND 07/11] ALSA: vsnd: Initialize virtul sound card

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Initialize virtual sound card with streams according to the Xen store configuration. Add stubs for stream PCM operations. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c |

Re: [PATCH] irqchip: uniphier-aidet: add UniPhier AIDET irqchip driver

2017-08-07 Thread Masahiro Yamada
Hi Marc, Thanks for your comments. 2017-08-07 19:43 GMT+09:00 Marc Zyngier : > On 03/08/17 12:15, Masahiro Yamada wrote: >> UniPhier SoCs contain AIDET (ARM Interrupt Detector). This is intended >> to provide additional features that are not covered by GIC. The main >>

Re: Increased memory usage with scsi-mq

2017-08-07 Thread Paolo Bonzini
On 05/08/2017 17:51, Richard W.M. Jones wrote: > On Sat, Aug 05, 2017 at 03:39:54PM +0200, Christoph Hellwig wrote: >> For now can you apply this testing patch to the guest kernel? >> >> diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c >> index 9be211d68b15..0cbe2c882e1c 100644

Re: [PATCH] gpio: mvebu: Fix cause computation in irq handler

2017-08-07 Thread Linus Walleij
On Wed, Jul 12, 2017 at 1:22 PM, Gregory CLEMENT wrote: > When switching to regmap, the way to compute the irq cause was > reorganized. However while doing it, a typo was introduced: a 'xor' > replaced a 'and'. > > This lead to wrong behavior in the interrupt

Re: [PATCH v4] serio: PS/2 gpio bit banging driver for serio bus

2017-08-07 Thread Linus Walleij
On Wed, Aug 2, 2017 at 2:12 PM, Danilo Krummrich wrote: > This driver provides PS/2 serio bus support by implementing bit banging > with the GPIO API. The GPIO pins, data and clock, can be configured with > a node in the device tree or by generic device properties

[PATCH RESEND1 05/12] ALSA: vsnd: Implement Xen event channel handling

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko 1. Create event channels for all configured streams and publish corresponding ring references and event channels in Xen store, so backend can connect. 2. Implement event channel interrupt handler. 3. Create and destroy event

Build regressions/improvements in v4.13-rc3

2017-08-07 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.13-rc3[1] compared to v4.12[2]. Summarized: - build errors: +2/- - build warnings: +1336/-908 JFYI, when comparing v4.13-rc3[1] to v4.13-rc2[3], the summaries are: - build errors: +2/- - build warnings: +495/-395

[PATCH RESEND1 08/12] ALSA: vsnd: Initialize virtul sound card

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Initialize virtual sound card with streams according to the Xen store configuration. Add stubs for stream PCM operations. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c |

Re: [PATCH] ipmi: fix unsigned long underflow

2017-08-07 Thread Corey Minyard
On 08/07/2017 03:41 AM, Weilong Chen wrote: Hi Minyard, I test this patch, it works. Thanks. Thanks, I added a Tested-by: for you and it's queued for the next release. If it's urgent I can send it in now. I also added this for the stable kernels 3.16 and later. -corey On 2017/7/30

Re: [PATCH v2 16/18] hwmon: add support for sensors exported via ARM SCMI

2017-08-07 Thread Sudeep Holla
On 04/08/17 20:32, Guenter Roeck wrote: > On Fri, Aug 04, 2017 at 03:31:42PM +0100, Sudeep Holla wrote: [...] >> +platform_set_drvdata(pdev, scmi_sensors); >> + >> +hwdev = devm_hwmon_device_register_with_groups(dev, "scmi_sensors", >> +

[PATCH RESEND1 09/12] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Front sound driver has no real interrupts, so playback/capture period passed interrupt needs to be emulated: this is done via timer. Add required timer operations, this is based on sound/drivers/dummy.c. Signed-off-by: Oleksandr

Re: [PATCH] media: i2c: OV5647: gate clock lane before stream on

2017-08-07 Thread Philipp Zabel
Hi Jacob, On Mon, 2017-08-07 at 19:06 +0800, Jacob Chen wrote: [...] > >> > --- a/drivers/media/i2c/ov5647.c > >> > +++ b/drivers/media/i2c/ov5647.c > >> > @@ -253,6 +253,10 @@ static int ov5647_stream_on(struct v4l2_subdev *sd) > >> > { > >> > int ret; > >> > > >> > + ret =

Re: [PATCH 2/2] gpio: 74x164: handling enable-gpios

2017-08-07 Thread Fabio Estevam
Hi Peng, On Mon, Aug 7, 2017 at 9:27 AM, Peng Fan wrote: > To 74hc595 and 74lv595, there is an OE(low active) input pin. > To some boards, this pin is controller by GPIO, so handling > this pin in driver. When driver probe, use GPIOD_OUT_LOW flag > when requesting the gpio, so

Re: [PATCH] rcu: Fix up pending cbs check in rcu_prepare_for_idle

2017-08-07 Thread Paul E. McKenney
On Mon, Aug 07, 2017 at 11:20:10AM +0530, Neeraj Upadhyay wrote: > Pending cbs check in rcu_prepare_for_idle is inversed > in the sense that, it should accelerate if there are > pending cbs; but, the check does the opposite. So, > fix it. > > Fixes: 15fecf89e46a ("srcu: Abstract multi-tail

Re: [PATCH 2/2] gpio: 74x164: handling enable-gpios

2017-08-07 Thread Fabio Estevam
On Mon, Aug 7, 2017 at 9:27 AM, Peng Fan wrote: > + chip->enable_gpio = devm_gpiod_get(>dev, "enable", > GPIOD_OUT_LOW); > + if (IS_ERR(chip->enable_gpio)) { > + dev_dbg(>dev, "No enable-gpios property\n"); > + chip->enable_gpio = NULL;

[PATCH 1/3] spi: rockchip: Slightly rework return value handling

2017-08-07 Thread Jeffy Chen
Slightly rework return value handling, no functional changes. Signed-off-by: Jeffy Chen --- drivers/spi/spi-rockchip.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/spi/spi-rockchip.c

[PATCH 0/3] Fix clock handling in rockchip spi suspend/resume/remove

2017-08-07 Thread Jeffy Chen
I saw unpaired spi clock disable warnings when suspend/unbind spi device. Fix them follow spi-s3c64xx.c. Jeffy Chen (3): spi: rockchip: Slightly rework return value handling spi: rockchip: Fix clock handling in remove spi: rockchip: Fix clock handling in suspend/resume

[PATCH 2/3] spi: rockchip: Fix clock handling in remove

2017-08-07 Thread Jeffy Chen
We are assuming clocks enabled when calling rockchip_spi_remove, which is not always true. Those clocks might already been disabled by the runtime PM at that time. Call pm_runtime_get_sync before trying to disable clocks to avoid that. Signed-off-by: Jeffy Chen ---

Re: [PATCH v8 08/12] pinctrl: Add pinctrl driver for the RK805 PMIC

2017-08-07 Thread Linus Walleij
On Thu, Aug 3, 2017 at 2:25 PM, Joseph Chen wrote: > RK805 is one of Rockchip PMICs family, it has 2 output only GPIOs. > > This driver is also designed for other Rockchip PMICs to expend. > Different PMIC maybe have different pin features, for example, > RK816 has one pin

Re: [PATCH 4/5] mmc: sdhci-of-arasan: constify sdhci_pltfm_data and sdhci_ops structures

2017-08-07 Thread Michal Simek
On 7.8.2017 11:50, Julia Lawall wrote: > The sdhci_pltfm_data structure is only passed as the second argument > of sdhci_pltfm_init, which is const, while the sdhci_ops structure > is only stored in the ops field of a sdhci_pltfm_data structure, > which is also const. Thus both kinds of

[PATCH] block/ps3vram: Delete an error message for a failed memory allocation in ps3vram_cache_init()

2017-08-07 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 7 Aug 2017 12:37:01 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link:

[PATCH] ext4: fix clang build regression

2017-08-07 Thread Arnd Bergmann
As Stefan pointed out, I misremembered what clang can do specifically, and it turns out that the variable-length array at the end of the structure did not work (a flexible array would have worked here but not solved the problem): fs/ext4/mballoc.c:2303:17: error: fields must have a constant size:

[PATCH] arm64: correct modules range of kernel virtual memory layout

2017-08-07 Thread Miles Chen
The commit f80fb3a3d508 ("arm64: add support for kernel ASLR") moved module virtual address to [module_alloc_base, module_alloc_base + MODULES_VSIZE). Display module information of the virtual kernel memory layout by using module_alloc_base. testing output: 1) Current implementation: Virtual

[PATCH 1/8] gpio: zynq: Add support for suspend resume

2017-08-07 Thread Michal Simek
From: Shubhrajyoti Datta Add support for suspend resume. Now that we can lose context across a suspend/ resume cycle. Add support for the context restore. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek

Re: [PATCH 10/18] staging: typec: fusb302: Add support for fcs,vbus-regulator-name device-property

2017-08-07 Thread Mark Brown
On Sun, Aug 06, 2017 at 05:44:36PM +0200, Hans de Goede wrote: > On 06-08-17 16:30, Guenter Roeck wrote: > > On 08/06/2017 05:35 AM, Hans de Goede wrote: > > > On ACPI platforms, there are no phandles and we need to get the vbus by a > > > system wide unique name. Add support for a new

[MD] Crash with 4.12+ kernel and high disk load -- bisected to 4ad23a976413: MD: use per-cpu counter for writes_pending

2017-08-07 Thread Dominik Brodowski
Neil, Shaohua, following up on David R's bug message: I have observed something similar on v4.12.[345] and v4.13-rc4, but not on v4.11. This is a RAID1 (on bare metal partitions, /dev/sdaX and /dev/sdbY linked together). In case it matters: Further upwards are cryptsetup, a DM volume group, then

Re: [PATCH] ASoC: pxa: don't select SSP for COMPILE_TESTing

2017-08-07 Thread Mark Brown
On Mon, Aug 07, 2017 at 12:40:44PM +0200, Arnd Bergmann wrote: > When the audio driver selects CONFIG_PXA_SSP to be a loadable > module on a platform other than PXA, and the PXA SPI driver > is built-in, we get a link error in the SPI driver: Why doesn't this cause problems on PXA?

[PATCH] x86: drop mflags-y

2017-08-07 Thread Cao jin
Since commit 6bda2c8b32, subarchitecture support(mflags-y) is totally removed for x86. So now mflags-y can be dropped safely for x86. Signed-off-by: Cao jin --- arch/x86/Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/Makefile

[PATCH 2/2] watchdog: of_xilinx_wdt: Add suspend/resume support

2017-08-07 Thread Michal Simek
Add suspend/resume support to driver. Signed-off-by: Michal Simek --- drivers/watchdog/of_xilinx_wdt.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/drivers/watchdog/of_xilinx_wdt.c b/drivers/watchdog/of_xilinx_wdt.c index

[PATCH 1/2] watchdog: of_xilinx_wdt: Add support for reading freq via CCF

2017-08-07 Thread Michal Simek
From: Maulik Jodhani Improve CLK handling in the code to read freq via CCF. Also disable CLK asap and add clk handling code to start and stop. Signed-off-by: Maulik Jodhani Signed-off-by: Michal Simek ---

Re: [PATCH 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
Hi, On 08/07/2017 02:28 PM, Takashi Sakamoto wrote: Hi, On Aug 7 2017 16:43, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from

Re: [PATCH] ASoC: pxa: don't select SSP for COMPILE_TESTing

2017-08-07 Thread Arnd Bergmann
On Mon, Aug 7, 2017 at 1:20 PM, Mark Brown wrote: > On Mon, Aug 07, 2017 at 12:40:44PM +0200, Arnd Bergmann wrote: >> When the audio driver selects CONFIG_PXA_SSP to be a loadable >> module on a platform other than PXA, and the PXA SPI driver >> is built-in, we get a link

Re: [PATCH] usb: quirks: Add no-lpm quirk for Moshi USB to Ethernet Adapter

2017-08-07 Thread Oliver Neukum
Am Montag, den 07.08.2017, 17:33 +0800 schrieb Kai-Heng Feng: > On Mon, Aug 7, 2017 at 5:08 PM, Oliver Neukum wrote: > > > > Am Freitag, den 04.08.2017, 17:34 +0800 schrieb Kai-Heng Feng: > > > > > > The Realtek r8153 ethernet does not work on Genesys Logic hub, no-lpm > > >

Re: [PATCH 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Takashi Sakamoto
Hi, On Aug 7 2017 16:43, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from include/xen/interface/io/sndif.h with the following

Re: [RFC] Tagging of vmalloc pages for supporting the pmalloc allocator

2017-08-07 Thread Michal Hocko
On Mon 07-08-17 14:26:21, Igor Stoppa wrote: > On 04/08/17 11:12, Michal Hocko wrote: > > On Fri 04-08-17 11:02:46, Igor Stoppa wrote: > > [...] > > >> struct page { > >> /* First double word block */ > >> unsigned long flags; /* Atomic flags, some possibly > >>

Re: [PATCH] mm/vmalloc: reduce half comparison during pcpu_get_vm_areas()

2017-08-07 Thread Michal Hocko
[CC Tejun] On Thu 03-08-17 14:38:22, Wei Yang wrote: > In pcpu_get_vm_areas(), it checks each range is not overlapped. To make > sure it is, only (N^2)/2 comparison is necessary, while current code does > N^2 times. By starting from the next range, it achieves the goal and the > continue could be

[PATCH 1/4] pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible

2017-08-07 Thread Vignesh R
Add a new compatible string "ti,k2g-ecap" to support PWM ECAP IP of TI 66AK2G SoC. Signed-off-by: Vignesh R --- Documentation/devicetree/bindings/pwm/pwm-tiecap.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt

[PATCH 4/4] ARM: configs: keystone: Enable TIECAP PWM driver

2017-08-07 Thread Vignesh R
Enable PWM_TIECAP driver to support ECAP IP present in 66AK2G SoC. Signed-off-by: Vignesh R --- arch/arm/configs/keystone_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/keystone_defconfig b/arch/arm/configs/keystone_defconfig index

[PATCH RESEND 04/11] ALSA: vsnd: Implement Xen event channel handling

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko 1. Create event channels for all configured streams and publish corresponding ring references and event channels in Xen store, so backend can connect. 2. Implement event channel interrupt handler. 3. Create and destroy event

[PATCH 3/4] ARM: dts: keystone-k2g-evm: Enable PWM ECAP0

2017-08-07 Thread Vignesh R
Enable PWM ECAP0 which will be used for display backlight. Signed-off-by: Vignesh R --- arch/arm/boot/dts/keystone-k2g-evm.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2g-evm.dts b/arch/arm/boot/dts/keystone-k2g-evm.dts

[PATCH RESEND 01/11] ALSA: vsnd: Implement driver's probe/remove

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Add essential driver private info structure, initialize locks and implement probe/remove of the Xen frontend driver. Signed-off-by: Oleksandr Andrushchenko --- sound/drivers/xen-front.c | 27

[PATCH RESEND 03/11] ALSA: vsnd: Read sound driver configuration from Xen store

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Read configuration values from Xen store according to xen/interface/io/sndif.h protocol: - introduce configuration structures for different components, e.g. sound card, device, stream - read PCM HW parameters, e.g rate, format

[PATCH RESEND 05/11] ALSA: vsnd: Implement handling of shared buffers

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Implement shared buffer handling according to the para-virtualized sound device protocol at xen/interface/io/sndif.h: - manage buffer memory - handle granted references - handle page directories Signed-off-by: Oleksandr

[PATCH RESEND 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Front sound driver has no real interrupts, so playback/capture period passed interrupt needs to be emulated: this is done via timer. Add required timer operations, this is based on sound/drivers/dummy.c. Signed-off-by: Oleksandr

[PATCH 0/4] K2G: Add support for PWM ECAP

2017-08-07 Thread Vignesh R
This series adds support for TI ECAP PWM IP present in 66AK2G SoC. Based on linux-next. Vignesh R (4): pwm: pwm-tiecap: Add TI 66AK2G SoC specific compatible ARM: dts: keystone-k2g: Add ECAP PWM DT nodes ARM: dts: keystone-k2g-evm: Enable PWM ECAP0 ARM: configs: keystone: Enable TIECAP

[PATCH RESEND 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from include/xen/interface/io/sndif.h with the following limitations: - mute/unmute is not supported - get/set volume is

Re: [PATCH 1/2] pinctrl: armada-37xx: Fix the pin 23 on south bridge

2017-08-07 Thread Linus Walleij
On Tue, Aug 1, 2017 at 5:57 PM, Gregory CLEMENT wrote: > Pin 23 on South bridge does not belong to the rgmii group. It belongs to > a separate group which can have 3 functions. > > Due to this the fix also have to update the way the functions are > managed.

[PATCH RESEND 02/11] ALSA: vsnd: Implement Xen bus state handling

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Initial handling for Xen bus states: implement Xen bus state machine for the front driver according to the state diagram and recovery flow from sound para-virtualized protocol: xen/interface/io/sndif.h. Signed-off-by: Oleksandr

Re: [PATCH 2/2] pinctrl: armada-37xx: Fix number of pin in south bridge

2017-08-07 Thread Linus Walleij
On Tue, Aug 1, 2017 at 5:57 PM, Gregory CLEMENT wrote: > On the south bridge we have pin from to 29, so it gives 30 pins (and not > 29). > > Without this patch the kernel complain with the following traces: > cat

[PATCH] drm/panel: simple: Add missing panel_simple_unprepare calls

2017-08-07 Thread Jonathan Liu
During panel removal or system shutdown panel_simple_disable is called which disables the panel backlight but the panel is still powered due to missing calls to panel_simple_unprepare. Fixes: d02fd93e2cd8 ("drm/panel: simple - Disable panel on shutdown") Cc: sta...@vger.kernel.org # v3.16+

Re: [PATCH 1/4] PM / s2idle: Rename PM_SUSPEND_FREEZE to PM_SUSPEND_S2IDLE

2017-08-07 Thread Rafael J. Wysocki
On Mon, Aug 7, 2017 at 1:57 PM, Rafael J. Wysocki wrote: > On Mon, Aug 7, 2017 at 10:49 AM, Peter Zijlstra wrote: >> On Sat, Aug 05, 2017 at 02:56:43PM +0200, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> To

Re: [PATCH v3] [BUGFIX] gpio: reject invalid gpio before getting gpio_desc

2017-08-07 Thread Linus Walleij
On Wed, Aug 2, 2017 at 6:47 AM, Masami Hiramatsu wrote: > Check user-given gpio number and reject it before > calling gpio_to_desc() because gpio_to_desc() is > for kernel driver and it expects given gpio number > is valid (means 0 to 511). > If given number is invalid,

Re: [PATCH 1/3] dt-bindings: pinctrl: mt2712: add binding document

2017-08-07 Thread Linus Walleij
On Mon, Jul 31, 2017 at 10:22 AM, Zhiyong Tao wrote: > The commit adds mt2712 compatible node in binding document. > > Signed-off-by: Zhiyong Tao Patch applied with Rob's ACK Yours, Linus Walleij

Re: [PATCH RESEND 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Takashi Sakamoto
Hi, On Aug 7 2017 20:50, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from include/xen/interface/io/sndif.h with the following

Re: [PATCH 2/3] arm64: dts: mt2712: add pintcrl device node.

2017-08-07 Thread Linus Walleij
On Mon, Jul 31, 2017 at 10:22 AM, Zhiyong Tao wrote: > The commit includes two change: > 1)add pintcrl device node for mt2712. > 2)add pinfunc file for mt2712. > > Signed-off-by: Zhiyong Tao Acked-by: Linus Walleij

Re: [PATCH] perf/core: Avoid context switch overheads

2017-08-07 Thread Peter Zijlstra
On Fri, Aug 04, 2017 at 04:50:54PM +0800, 石祤 wrote: > From: "leilei.lin" > > A performance issue caused by less strickly check in task > sched when these tasks were once attached by per-task perf_event. > > A task will alloc task->perf_event_ctxp[ctxn] when it was

<    1   2   3   4   5   6   7   8   9   10   >