Applied "spi: qup: Fix error handling in spi_qup_prep_sg" to the spi tree

2017-08-08 Thread Mark Brown
The patch spi: qup: Fix error handling in spi_qup_prep_sg has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.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 Li

Applied "spi: qup: Do block sized read/write in block mode" to the spi tree

2017-08-08 Thread Mark Brown
The patch spi: qup: Do block sized read/write in block mode has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.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

Applied "spi: qup: call io_config in mode specific function" to the spi tree

2017-08-08 Thread Mark Brown
The patch spi: qup: call io_config in mode specific function has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.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

Re: [PATCH v2] iommu/arm-smmu: fix null-pointer dereference in arm_smmu_add_device

2017-08-08 Thread Will Deacon
[+ Joerg] On Tue, Aug 08, 2017 at 11:37:40AM +0100, Robin Murphy wrote: > On 08/08/17 11:26, Artem Savkov wrote: > > Commit c54451a "iommu/arm-smmu: Fix the error path in arm_smmu_add_device" > > removed fwspec assignment in legacy_binding path as redundant which is > > wrong. It needs to be updat

Applied "spi: qup: refactor spi_qup_prep_sg" to the spi tree

2017-08-08 Thread Mark Brown
The patch spi: qup: refactor spi_qup_prep_sg has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.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 during th

Applied "spi: qup: Fix QUP version identify method" to the spi tree

2017-08-08 Thread Mark Brown
The patch spi: qup: Fix QUP version identify method has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.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 du

Applied "spi: qup: Ensure done detection" to the spi tree

2017-08-08 Thread Mark Brown
The patch spi: qup: Ensure done detection has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.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 during the n

[PATCH 4/6] [media] media: mt9m111: constify video_subdev structures

2017-08-08 Thread Julia Lawall
The v4l2_subdev_ops structure is only passed as the third argument of v4l2_i2c_subdev_init, which is const, so the v4l2_subdev_ops structure can be const as well. The other structures are only stored in the v4l2_subdev_ops structure, all the fields of which are const, so these structures can also

[PATCH 0/6] constify video_subdev structures

2017-08-08 Thread Julia Lawall
The structures of type v4l2_subdev_ops are only passed as the second argument of v4l2_subdev_init or as the third argument of v4l2_i2c_subdev_init, both of which are const. The structures of type v4l2_subdev_core_ops, v4l2_subdev_pad_ops, v4l2_subdev_sensor_ops, v4l2_subdev_video_ops are only stor

[PATCH 1/6] [media] v4l: mt9t001: constify video_subdev structures

2017-08-08 Thread Julia Lawall
The v4l2_subdev_ops structure is only passed as the third argument of v4l2_i2c_subdev_init, which is const, so the v4l2_subdev_ops structure can be const as well. The other structures are only stored in the v4l2_subdev_ops structure, all the fields of which are const, so these structures can also

[PATCH 5/6] [media] exynos4-is: constify video_subdev structures

2017-08-08 Thread Julia Lawall
The v4l2_subdev_ops structures are only passed as the second argument of v4l2_subdev_init, which is const, so the v4l2_subdev_ops structures can be const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/media/platform/exynos4-is/fimc-isp.c |2 +- drivers/

Re: [PATCH v2] scheduler: enhancement to show_state_filter

2017-08-08 Thread Peter Zijlstra
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?On Tue, Aug 08, 2017 at 07:07:26PM +0800, Yafang Shao wrote:

Re: [PATCH 1/1] f2fs: merge equivalent flags F2FS_GET_BLOCK_[READ|DIO]

2017-08-08 Thread Chao Yu
On 2017/8/8 18:27, sunqiuyang wrote: > From: Qiuyang Sun > > Currently, the two flags F2FS_GET_BLOCK_[READ|DIO] are totally equivalent > and can be used interchangably in all scenarios they are involved in. This > patch deletes F2FS_GET_BLOCK_READ and uses F2FS_GET_BLOCK_DIO instead. Seems weird

[PATCH 6/6] [media] uvcvideo: constify video_subdev structures

2017-08-08 Thread Julia Lawall
uvc_subdev_ops is only passed as the second argument of v4l2_subdev_init, which is const, so uvc_subdev_ops can be const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/media/usb/uvc/uvc_entity.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH v2 0/4] KVM: optimize the kvm_vcpu_on_spin

2017-08-08 Thread David Hildenbrand
On 08.08.2017 06:05, Longpeng(Mike) wrote: > This is a simple optimization for kvm_vcpu_on_spin, the > main idea is described in patch-1's commit msg. > > I did some tests base on the RFC version, the result shows > that it can improves the performance slightly. > > == Geekbench-3.4.1 == > VM1:

Re: [PATCH] Staging: comedi: addi_apci_3501: fixed a CamelCase coding style issue

2017-08-08 Thread 徐細菌
> This patch is incomplete (the 'tsk_Current' member is also used in > "drivers/staging/comedi/addi-data/hwdrv_apci3501.c" which is #include'd by > "addi_apci_3501.c") and out-of-date (the 'tsk_Current' member was removed in > kernel version 4.9 by commit a6672530f6fc ("staging: comedi: addi_apci_3

[PATCH 2/6] [media] vimc: constify video_subdev structures

2017-08-08 Thread Julia Lawall
These structures are all only stored in fields of v4l2_subdev_ops structures, all of which are const, so these structures can be const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/media/platform/vimc/vimc-debayer.c |2 +- drivers/media/platform/vimc/vi

[PATCH 3/6] staging: atomisp: constify video_subdev structures

2017-08-08 Thread Julia Lawall
These structures are both stored in fields of v4l2_subdev_ops structures, all of which are const, so these structures can be const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/staging/media/atomisp/i2c/ap1302.c |2 +- drivers/staging/media/atomisp/i2c

Re: [PATCH v2 03/18] firmware: arm_scmi: add basic driver infrastructure for SCMI

2017-08-08 Thread Jassi Brar
On Tue, Aug 8, 2017 at 2:59 PM, Sudeep Holla wrote: > > > On 08/08/17 03:46, Jassi Brar wrote: >> On Fri, Aug 4, 2017 at 8:01 PM, Sudeep Holla wrote: >> >> >>> +int scmi_do_xfer(const struct scmi_handle *handle, struct scmi_xfer *xfer) >>> +{ >>> + int ret; >>> + int timeout; >>>

Re: Switching to MQ by default may generate some bug reports

2017-08-08 Thread Mel Gorman
On Tue, Aug 08, 2017 at 06:43:03PM +0800, Ming Lei wrote: > Hi Mel Gorman, > > On Tue, Aug 8, 2017 at 6:30 PM, Mel Gorman > wrote: > > > > > o I've queued a subset of tests with Ming's v3 patchset as that was the > > latest branch at the time I looked. It'll take quite some time to execut

[PATCH 0/3] drm: make drm_connector_funcs structures const

2017-08-08 Thread Bhumika Goyal
Declare drm_connector_funcs structures as const. Bhumika Goyal (3): drm/bridge: make drm_connector_funcs structures const drm/sun4i: make drm_connector_funcs structures const drm/rockchip: make drm_connector_funcs structures const drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 2 +- driver

[PATCH 1/3] drm/bridge: make drm_connector_funcs structures const

2017-08-08 Thread Bhumika Goyal
Make these const as they are only passed to the function drm_connector_init and the corresponding argument is of type const. Done using Coccinelle @match disable optional_qualifier@ identifier s; @@ static struct drm_connector_funcs s = {...}; @ref@ position p; identifier match.s; @@ s@p @good1@

[PATCH 3/3] drm/rockchip: make drm_connector_funcs structures const

2017-08-08 Thread Bhumika Goyal
Make these const as they are only passed to the function drm_connector_init and the corresponding argument is of type const. Done using Coccinelle @match disable optional_qualifier@ identifier s; @@ static struct drm_connector_funcs s = {...}; @ref@ position p; identifier match.s; @@ s@p @good1@

[PATCH 2/3] drm/sun4i: make drm_connector_funcs structures const

2017-08-08 Thread Bhumika Goyal
Make these const as they are only passed to the function drm_connector_init and the corresponding argument is of type const. Done using Coccinelle @match disable optional_qualifier@ identifier s; @@ static struct drm_connector_funcs s = {...}; @ref@ position p; identifier match.s; @@ s@p @good1@

Re: [PATCH v2 0/4] KVM: optimize the kvm_vcpu_on_spin

2017-08-08 Thread Christoffer Dall
On Tue, Aug 8, 2017 at 1:25 PM, David Hildenbrand wrote: > On 08.08.2017 06:05, Longpeng(Mike) wrote: >> This is a simple optimization for kvm_vcpu_on_spin, the >> main idea is described in patch-1's commit msg. >> >> I did some tests base on the RFC version, the result shows >> that it can improv

[PATCH] ARM: bcm2836: Send event when onlining other cores

2017-08-08 Thread Phil Elwell
Secondary cores should enter a low-power idle state when waiting to be started. The "wfe" instruction causes a core to wait until an event or interrupt arrives before continuing to the next instruction, and the "sev" instruction sends a wakeup event to the other cores. Add an "sev" (and a memory b

Re: [PATCH] omap/hsmmc: constify dev_pm_ops

2017-08-08 Thread Ulf Hansson
On 8 August 2017 at 13:14, Doug Wilson wrote: > dev_pm_ops is not supposed to change at runtime. Marking it > constant. > > Signed-off-by: Doug Wilson This doesn't apply on my next branch, please re-base it. Kind regards Uffe > --- > drivers/mmc/host/omap_hsmmc.c | 2 +- > 1 file changed, 1 i

[PATCH v5 2/6] of: Add helper for mapping device node to logical CPU number

2017-08-08 Thread Suzuki K Poulose
Add a helper to map a device node to a logical CPU number to avoid duplication. Currently this is open coded in different places (e.g gic-v3, coresight). The helper tries to map device node to a "possible" logical CPU id, which may not be online yet. It is the responsibility of the user to make sur

[PATCH v5 4/6] irqchip: gic-v3: Use of_cpu_node_to_id helper

2017-08-08 Thread Suzuki K Poulose
Use the new generic helper of_cpu_node_to_id() instead of using our own version to map a device node to logical CPU number. Acked-by: Marc Zyngier Signed-off-by: Suzuki K Poulose --- Changes since V3: - Reflect the change in the helper name and return value. --- drivers/irqchip/irq-gic-v3.c |

scsi: hisi_sas: replace kfree with scsi_host_put

2017-08-08 Thread Pan Bian
Return value of scsi_host_alloc() should be released with scsi_host_put() rather than kfree(). Signed-off-by: Pan Bian --- drivers/scsi/hisi_sas/hisi_sas_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sa

[PATCH v5 0/6] perf: Support for ARM DynamIQ Shared Unit

2017-08-08 Thread Suzuki K Poulose
This series adds support for the PMU in ARM DynamIQ Shared Unit (DSU). The DSU integrates one or more cores with an L3 memory system, control logic, and external interfaces to form a multicore cluster. The PMU allows counting the various events related to L3, SCU etc, using 32bit independent counte

[PATCH v5 6/6] perf: ARM DynamIQ Shared Unit PMU support

2017-08-08 Thread Suzuki K Poulose
Add support for the Cluster PMU part of the ARM DynamIQ Shared Unit (DSU). The DSU integrates one or more cores with an L3 memory system, control logic, and external interfaces to form a multicore cluster. The PMU allows counting the various events related to L3, SCU etc, along with providing a cyc

[PATCH v5 5/6] dt-bindings: Document devicetree binding for ARM DSU PMU

2017-08-08 Thread Suzuki K Poulose
This patch documents the devicetree bindings for ARM DSU PMU. Cc: Mark Rutland Cc: Will Deacon Cc: Rob Herring Cc: devicet...@vger.kernel.org Cc: frowand.l...@gmail.com Signed-off-by: Suzuki K Poulose --- Changes since V3: - Fixed node name in the example, suggested by Rob --- .../devicetree

Re: [PATCH v2 3/5] thermal: imx: Add support for reading OCOTP through nvmem

2017-08-08 Thread Leonard Crestez
On Tue, 2017-08-08 at 12:00 +0100, Srinivas Kandagatla wrote: > On 08/08/17 08:21, Zhang Rui wrote: > > On Tue, 2017-07-25 at 16:08 +0800, Shawn Guo wrote: > > > On Fri, Jul 14, 2017 at 05:11:08PM +0300, Leonard Crestez wrote: > > > > On newer imx SOCs accessing OCOTP directly is wrong because the

[PATCH v5 3/6] coresight: of: Use of_cpu_node_to_id helper

2017-08-08 Thread Suzuki K Poulose
Reuse the new generic helper, of_cpu_node_to_id() to map a given CPU phandle to a logical CPU number. Cc: Leo Yan Acked-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since V4: - Fix a regression introduced in v4, reported by bugrobot Changes since V3: - Reflect the renaming

[PATCH] KVM: X86: expand ->arch.apic_arb_prio to u64

2017-08-08 Thread Longpeng(Mike)
Currently 'apic_arb_prio' is int32_t, it's too short for long time running. In our environment, it overflowed and then the UBSAN was angry: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int' CPU: 22 PID: 31237 Comm: qemu-kvm Tainted: ... ... Call Trace: [] dump_stack+0x1e

[PATCH v5 1/6] perf: Export perf_event_update_userpage

2017-08-08 Thread Suzuki K Poulose
Export perf_event_update_userpage() so that PMU driver using them, can be built as modules. Cc: Peter Zilstra Signed-off-by: Suzuki K Poulose --- kernel/events/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/events/core.c b/kernel/events/core.c index 426c2ff..21aad7a 100644 --

Re: [PATCH] omap/hsmmc: constify dev_pm_ops

2017-08-08 Thread Doug Wilson
>> >> Signed-off-by: Doug Wilson > > This doesn't apply on my next branch, please re-base it. is this your next-branch :kernel/git/ulfh/mmc.git ? - Doug >> >> -static struct dev_pm_ops omap_hsmmc_dev_pm_ops = { >> +static const struct dev_pm_ops omap_hsmmc_dev_pm_ops = { >> SET_SYSTEM_S

Re: [PATCH v3 0/4] add support of SCPSYS power domain for MediaTek MT7622

2017-08-08 Thread Ulf Hansson
On 7 August 2017 at 09:24, wrote: > From: Sean Wang > > Changes since v2: > - reduce code duplication of scpsys_probe across all SoCs > > Changes since v1: > - rebase to Linux v4.13-rc1 > > There are four power domains on MediaTek MT7622 SoC which are respectively > ETHSYS for Ethernet including

Re: [PATCH 1/1] f2fs: merge equivalent flags F2FS_GET_BLOCK_[READ|DIO]

2017-08-08 Thread Sun Qiuyang
On 2017/8/8 18:27, sunqiuyang wrote: From: Qiuyang Sun Currently, the two flags F2FS_GET_BLOCK_[READ|DIO] are totally equivalent and can be used interchangably in all scenarios they are involved in. This patch deletes F2FS_GET_BLOCK_READ and uses F2FS_GET_BLOCK_DIO instead. Seems weird fro

scsi: pm8001: fix double free in pm8001_pci_probe

2017-08-08 Thread Pan Bian
In function pm8001_pci_probe(), on errors that the control flow jumps to label err_out_ha_free, function pm8001_free() is called. In pm8001_free(), scsi_host_put() is called to release shost, which keeps the return value of scsi_host_alloc(). After pm8001_free() returns, kfree() is called to free s

Re: [PATCH v2 3/5] thermal: imx: Add support for reading OCOTP through nvmem

2017-08-08 Thread Srinivas Kandagatla
On 08/08/17 12:38, Leonard Crestez wrote: On Tue, 2017-08-08 at 12:00 +0100, Srinivas Kandagatla wrote: On 08/08/17 08:21, Zhang Rui wrote: On Tue, 2017-07-25 at 16:08 +0800, Shawn Guo wrote: On Fri, Jul 14, 2017 at 05:11:08PM +0300, Leonard Crestez wrote: On newer imx SOCs accessing OCOT

Re: [PATCH] omap/hsmmc: constify dev_pm_ops

2017-08-08 Thread Ulf Hansson
On 8 August 2017 at 13:39, Doug Wilson wrote: >>> >>> Signed-off-by: Doug Wilson >> >> This doesn't apply on my next branch, please re-base it. > > is this your next-branch :kernel/git/ulfh/mmc.git ? Correct!

Re: bcma: make BCMA a menuconfig to ease disabling it all

2017-08-08 Thread Kalle Valo
Vincent Legoll wrote: > No need to get into the submenu to disable all BCMA-related config entries. > > Signed-off-by: Vincent Legoll Patch applied to wireless-drivers-next.git, thanks. 9ca766b3641f bcma: make BCMA a menuconfig to ease disabling it all -- https://patchwork.kernel.org/patch/

INITRAMFS_SOURCE broken by 6e19eded3684dc184181093af3bff2ff440f5b53?

2017-08-08 Thread Thomas Meyer
Hi, did the commit 6e19eded3684dc184181093af3bff2ff440f5b53 break a linux kernel build with an included ramdisk? As fas as I understand you must expliclity add rootfstype=ramfs to the kernel command line to boot from the included ramfsdisk? bug or feature? with kind regards thomas

Re: [PATCH 0/6] nvmem: fixes for next rc

2017-08-08 Thread Srinivas Kandagatla
Hi Greg, On 26/07/17 10:34, srinivas.kandaga...@linaro.org wrote: From: Srinivas Kandagatla Hi Greg, Could you please queue these patches for next possible rc. All these patches are fixes or minor cleanups, new function nvmem_cell_read_u32() is also added to fix a issue in drivers/thermal/imx

Re: [PATCH] omap/hsmmc: constify dev_pm_ops

2017-08-08 Thread Doug Wilson
>> >> is this your next-branch :kernel/git/ulfh/mmc.git ? > > Correct! The fix is already in your tree. I think you can ignore this patch. - Doug.

Re: [PATCH v2 0/4] KVM: optimize the kvm_vcpu_on_spin

2017-08-08 Thread Longpeng (Mike)
On 2017/8/8 19:25, David Hildenbrand wrote: > On 08.08.2017 06:05, Longpeng(Mike) wrote: >> This is a simple optimization for kvm_vcpu_on_spin, the >> main idea is described in patch-1's commit msg. >> >> I did some tests base on the RFC version, the result shows >> that it can improves the perf

Re: Switching to MQ by default may generate some bug reports

2017-08-08 Thread Ming Lei
On Tue, Aug 8, 2017 at 7:27 PM, Mel Gorman wrote: > On Tue, Aug 08, 2017 at 06:43:03PM +0800, Ming Lei wrote: >> Hi Mel Gorman, >> >> On Tue, Aug 8, 2017 at 6:30 PM, Mel Gorman >> wrote: >> >> > >> > o I've queued a subset of tests with Ming's v3 patchset as that was the >> > latest branc

Re: [v6 11/15] arm64/kasan: explicitly zero kasan shadow memory

2017-08-08 Thread Pasha Tatashin
Hi Will, Thank you for looking at this change. What you described was in my previous iterations of this project. See for example here: https://lkml.org/lkml/2017/5/5/369 I was asked to remove that flag, and only zero memory in place when needed. Overall the current approach is better everywh

Re: [PATCH v2 0/4] KVM: optimize the kvm_vcpu_on_spin

2017-08-08 Thread David Hildenbrand
On 08.08.2017 13:49, Longpeng (Mike) wrote: > > > On 2017/8/8 19:25, David Hildenbrand wrote: > >> On 08.08.2017 06:05, Longpeng(Mike) wrote: >>> This is a simple optimization for kvm_vcpu_on_spin, the >>> main idea is described in patch-1's commit msg. >>> >>> I did some tests base on the RFC v

[PATCH] mfd: exynos-lpass: Handle return value of clk_prepare_enable

2017-08-08 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. we must call pm_runtime_disable() and pm_runtime_set_suspended(), If exynos_lpass_probe is not successful. Signed-off-by: Arvind Yadav --- drivers/mfd/exynos-lpass.c | 23 --- 1 file changed, 16 insertions

Re: [1/2] wlcore: add const to bin_attribute structure

2017-08-08 Thread Kalle Valo
Bhumika Goyal wrote: > Add const to bin_attribute structure as it is only passed to the > functions sysfs_{remove/create}_bin_file. The corresponding arguments > are of type const, so declare the structure to be const. > > Signed-off-by: Bhumika Goyal Patch applied to wireless-drivers-next.git

Re: [v2] rtlwifi: constify rate_control_ops structure

2017-08-08 Thread Kalle Valo
Bhumika Goyal wrote: > rate_control_ops structure is only passed as an argument to the > function ieee80211_rate_control_{register/unregister}. This argument > is of type const, so declare the structure as const. > > Signed-off-by: Bhumika Goyal Patch applied to wireless-drivers-next.git, than

[PATCH] staging: pi433: style fix - space after asterisk

2017-08-08 Thread Marcin Ciupak
This patch is intended to fix coding style issues in order to comply with kernel coding style guide as requested by TODO file. It fixes the following checkpatch.pl error: ERROR: "foo * bar" should be "foo *bar" Note: "WARNING: line over 80 characters" remains valid here and could be fixed by ano

Re: [RESEND PATCH] staging: vboxvideo: remove dead gamma lut code

2017-08-08 Thread Peter Rosin
On 2017-08-07 11:21, Daniel Vetter wrote: > On Fri, Aug 04, 2017 at 12:45:06PM +0200, Peter Rosin wrote: >> The redundant fb helpers .load_lut, .gamma_set and .gamma_get are >> no longer used. Remove the dead code that was not doing anything >> sensible anyway. >> >> Signed-off-by: Peter Rosin >>

Re: Switching to MQ by default may generate some bug reports

2017-08-08 Thread Mel Gorman
On Tue, Aug 08, 2017 at 07:49:53PM +0800, Ming Lei wrote: > On Tue, Aug 8, 2017 at 7:27 PM, Mel Gorman > wrote: > > On Tue, Aug 08, 2017 at 06:43:03PM +0800, Ming Lei wrote: > >> Hi Mel Gorman, > >> > >> On Tue, Aug 8, 2017 at 6:30 PM, Mel Gorman > >> wrote: > >> > >> > > >> > o I've queue

Re: [linux-sunxi] [PATCH v3 1/5] dt-bindings: update the Allwinner GPADC device tree binding for H3

2017-08-08 Thread Vincent Legoll
Hello, Sorry for the very-clueless question On Sun, Jul 23, 2017 at 4:13 PM, Icenowy Zheng wrote: > + - clock-names: should be "bus" and "mod", When I first read that, I wondered what value clock-names should eally be given. Then... > + clock-names = "bus", "mod"; OK, now this

Re: [PATCH] eeprom: idt_89hpesx: Support both ACPI and OF probing

2017-08-08 Thread Serge Semin
Hello Huy, Thanks for the vary useful patch. I've tested it on my hardware, and it works at least for OF-based platforms. I'll definitely ack it after a bit of alterations (see comments below). On Thu, Jul 27, 2017 at 11:09:19AM +, Huy Duong wrote: > From: Huy Duong > > Allow the idt_89hpe

Nokia N900 camera support in linux-next

2017-08-08 Thread Pavel Machek
Hi! Most of CSI-1 / N900 camera support is there in linux-next tree: patches marked "n" are in, unmarked patches are only in Sakari's tree. Is there something I can do to help merging patches to linux-next? We are quite close, and it would be nice to have camera support in v4.14... Thanks,

[PATCH 02/12] powerpc/8xx: Move 8xx machine check handlers into platforms/8xx

2017-08-08 Thread Christophe Leroy
In the same spirit as what was done for 4xx and 44x, move the 8xx machine check into platforms/8xx Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/traps.c| 25 arch/powerpc/platforms/8xx/Makefile| 2 +- arch/powerpc/platforms/8xx/machine_chec

[PATCH 01/12] powerpc/8xx: Simplify CONFIG_8xx checks in Makefile

2017-08-08 Thread Christophe Leroy
The entire 8xx directory is omitted if CONFIG_8xx is not enabled, so within the 8xx/Makefile CONFIG_8xx is always y. So convert obj-$(CONFIG_8xx) to the more obvious obj-y. Signed-off-by: Christophe Leroy --- This serie applies on top of Michael's serie begining with '[1/9] powerpc/47x: Guard

[PATCH 11/12] powerpc/8xx: Use symbolic names for DSISR bits in DSI

2017-08-08 Thread Christophe Leroy
Use symbolic names for DSISR bits in DSI Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_8xx.S | 2 +- arch/powerpc/mm/fault.c| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S index 778a0e11

[PATCH 07/12] powerpc/kconfig: Simplify PCI_QSPAN selection

2017-08-08 Thread Christophe Leroy
4xx, CPM2 and 8xx cannot be selected at the same time, so no need to test 8xx && !4xx && !CPM2. Testing 8xx is enough. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig inde

[PATCH 12/12] powerpc/8xx: Remove cpu dependent macro instructions from head_8xx

2017-08-08 Thread Christophe Leroy
head_8xx is dedicated to 8xx so no need to use macros that depends on the CPU Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_8xx.S | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S index a1c2a2cfe

[PATCH 08/12] powerpc/8xx: Getting rid of remaining use of CONFIG_8xx

2017-08-08 Thread Christophe Leroy
Two config options exist to define powerpc MPC8xx: * CONFIG_PPC_8xx * CONFIG_8xx arch/powerpc/platforms/Kconfig.cputype has contained the following comment about CONFIG_8xx item for some years: "# this is temp to handle compat with arch=ppc" arch/powerpc is now the only place with remaining use o

[PATCH 09/12] powerpc/8xx: remove CONFIG_8xx

2017-08-08 Thread Christophe Leroy
Two config options exist to define powerpc MPC8xx: * CONFIG_PPC_8xx * CONFIG_8xx arch/powerpc/platforms/Kconfig.cputype has contained the following comment about CONFIG_8xx item for some years: "# this is temp to handle compat with arch=ppc" There is no more users of CONFIG_8xx, so remove it. Si

[PATCH 10/12] powerpc/8xx: Use symbolic PVR value

2017-08-08 Thread Christophe Leroy
For the 8xx, PVR values defined in arch/powerpc/include/asm/reg.h are nowhere used. Remove all defines and add PVR_8xx Use it in arch/powerpc/kernel/cputable.c Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/reg.h | 6 ++ arch/powerpc/kernel/cputable.c | 2 +- 2 files changed,

[PATCH 03/12] powerpc/8xx: Remove SoftwareEmulation()

2017-08-08 Thread Christophe Leroy
Since commit aa42c69c67f82 ("[POWERPC] Add support for FP emulation for the e300c2 core"), program_check_exception() can be called for math emulation. In that case, 'reason' is 0. On the 8xx, there is a Software Emulation interrupt which is called for all unimplemented and illegal instructions. Th

[PATCH 06/12] powerpc/time: refactor MFTB() to limit number of ifdefs

2017-08-08 Thread Christophe Leroy
The 8xx cannot access the TBL and TBU registers using mfspr/mtspr It must be accessed using mftb/mftbu Due to this, there is a number of places with #ifdef CONFIG_8xx This patch defines new macros MFTBL(x) and MFTBU(x) on the same model as MFTB(x) and tries to make use of them as much as possible

[PATCH 05/12] powerpc/8xx: Move mpc8xx_pic.c from sysdev to platform/8xx

2017-08-08 Thread Christophe Leroy
mpc8xx_pic.c is dedicated to the 8xx, so move it to platform/8xx Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/Makefile | 2 +- arch/powerpc/platforms/8xx/m8xx_setup.c | 2 +- arch/powerpc/{sysdev/mpc8xx_pic.c => platforms/8xx/pic.c} | 2 +

[PATCH 00/12] powerpc/8xx: Some cleanup

2017-08-08 Thread Christophe Leroy
This serie does some cleanup in the area of the 8xx. In the same spirit as what Michael did for 4xx, move 8xx specific stuff into platforms/8xx Then try to reduce the amount of #ifdefs specific to 8xx Remove the CONFIG_8xx which is redundant with CONFIG_PPC_8xx Plus some misc cleanups Christop

[PATCH 04/12] powerpc/cpm1: link to CONFIG_CPM1 instead of CONFIG_8xx

2017-08-08 Thread Christophe Leroy
To remain consistent with what is done with CPM2, let's link CPM1 related parts to CONFIG_CPM1 instead of CONFIG_8xx When something depends on both CPM1 and CPM2 we associate it with CONFIG_CPM Signed-off-by: Christophe Leroy --- arch/powerpc/sysdev/Makefile | 3 ++- arch/powerpc/sysdev/fsl_so

Re: [PATCH v2] scheduler: enhancement to show_state_filter

2017-08-08 Thread Yafang Shao
2017-08-08 19:24 GMT+08:00 Peter Zijlstra : > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail?On Tue, Aug 08, 2017 at > 07:07:26PM +0800, Yafang Shao wrote: Thanks for

Re: [PATCH 1/3] drm/bridge: make drm_connector_funcs structures const

2017-08-08 Thread Laurent Pinchart
Hi Bhumika, Thank you for the patch. On Tuesday 08 Aug 2017 16:58:30 Bhumika Goyal wrote: > Make these const as they are only passed to the function > drm_connector_init and the corresponding argument is of type const. > Done using Coccinelle > > @match disable optional_qualifier@ > identifier s

scsi: mvsas: replace kfree with scsi_host_put

2017-08-08 Thread Pan Bian
The return value of scsi_host_alloc() should be released by scsi_host_put(). However, in function mvs_pci_init(), kfree() is used. This patch replaces kfree() with scsi_host_put() to avoid possible memory leaks. Signed-off-by: Pan Bian --- drivers/scsi/mvsas/mv_init.c | 4 ++-- 1 file changed, 2

Re: [PATCH v2 0/4] Optimise 64-bit IOVA allocations

2017-08-08 Thread Ganapatrao Kulkarni
On Wed, Jul 26, 2017 at 4:47 PM, Leizhen (ThunderTown) wrote: > > > On 2017/7/26 19:08, Joerg Roedel wrote: >> Hi Robin. >> >> On Fri, Jul 21, 2017 at 12:41:57PM +0100, Robin Murphy wrote: >>> Hi all, >>> >>> In the wake of the ARM SMMU optimisation efforts, it seems that certain >>> workloads (e.

[PATCH v4 01/19] crypto: change transient busy return code to -EAGAIN

2017-08-08 Thread Gilad Ben-Yossef
The crypto API was using the -EBUSY return value to indicate both a hard failure to submit a crypto operation into a transformation provider when the latter was busy and the backlog mechanism was not enabled as well as a notification that the operation was queued into the backlog when the backlog m

[PATCH v4 02/19] crypto: ccm: use -EAGAIN for transient busy indication

2017-08-08 Thread Gilad Ben-Yossef
Replace -EBUSY with -EAGAIN when reporting transient busy indication in the absence of backlog. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/ccp/ccp-crypto-main.c | 8 +++- drivers/crypto/ccp/ccp-dev.c | 7 +-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/

[PATCH v4 00/19] simplify crypto wait for async op

2017-08-08 Thread Gilad Ben-Yossef
test all of the corner cases. The patch set is based upon linux-next release tagged next-20170808. Changes from v3: - Instead of changing the return code to indicate backlog queueing, change the return code to indicate transient busy state, as suggested by Herbert Xu. Changes from v2: - Patch

[PATCH] iio: adc: Fix coding style violations

2017-08-08 Thread Michal Simek
From: Sai Krishna Potthuri This patch fix following checkpatch warnings in xadc driver 1. Prefer 'unsigned int' to bare use of 'unsigned'. 2. else is not generally useful after a break or return. 3. function definition argument 'struct xadc *' should also have an identifier name. Signed-off-by:

Re: INITRAMFS_SOURCE broken by 6e19eded3684dc184181093af3bff2ff440f5b53?

2017-08-08 Thread Willy Tarreau
Hi Thomas, On Tue, Aug 08, 2017 at 01:46:25PM +0200, Thomas Meyer wrote: > Hi, > > did the commit 6e19eded3684dc184181093af3bff2ff440f5b53 break a linux kernel > build with an included ramdisk? > > As fas as I understand you must expliclity add rootfstype=ramfs to the kernel > command line to bo

[PATCH v4 04/19] crypto: marvell/cesa: remove redundant backlog checks on EBUSY

2017-08-08 Thread Gilad Ben-Yossef
Now that -EBUSY return code only indicates backlog queueing we can safely remove the now redundant check for the CRYPTO_TFM_REQ_MAY_BACKLOG flag when -EBUSY is returned. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/marvell/cesa.c | 3 +-- drivers/crypto/marvell/cesa.h | 2 +- 2 files chang

[PATCH v4 06/19] crypto: move algif to generic async completion

2017-08-08 Thread Gilad Ben-Yossef
algif starts several async crypto ops and waits for their completion. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/af_alg.c | 27 --- crypto/algif_aead.c | 14 +++--- crypto/algif_hash.c | 30 +

[PATCH v4 05/19] crypto: introduce crypto wait for async op

2017-08-08 Thread Gilad Ben-Yossef
Invoking a possibly async. crypto op and waiting for completion while correctly handling backlog processing is a common task in the crypto API implementation and outside users of it. This patch adds a generic implementation for doing so in preparation for using it across the board instead of hand

[PATCH v4 07/19] crypto: move pub key to generic async completion

2017-08-08 Thread Gilad Ben-Yossef
public_key_verify_signature() is starting an async crypto op and waiting for it to complete. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/asymmetric_keys/public_key.c | 28 1 file changed, 4 insertions(+), 24 deletions(-) d

[PATCH v4 08/19] crypto: move drbg to generic async completion

2017-08-08 Thread Gilad Ben-Yossef
DRBG is starting an async. crypto op and waiting for it complete. Move it over to generic code doing the same. The code now also passes CRYPTO_TFM_REQ_MAY_SLEEP flag indicating crypto request memory allocation may use GFP_KERNEL which should be perfectly fine as the code is obviously sleeping for

[PATCH v4 09/19] crypto: move gcm to generic async completion

2017-08-08 Thread Gilad Ben-Yossef
gcm is starting an async. crypto op and waiting for it complete. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/gcm.c | 32 ++-- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/crypto/gcm.c b/crypto/gcm.c index 3

Re: [PATCH v2] phy: ti-pipe3: Use TRM recommended settings for SATA DPLL

2017-08-08 Thread Kishon Vijay Abraham I
On Monday 07 August 2017 02:41 PM, Roger Quadros wrote: > The AM572x Technical Reference Manual, SPRUHZ6H, > Revised November 2016 [1], shows recommended settings for the > SATA DPLL in Table 26-8. DPLL CLKDCOLDO Recommended Settings. > > Use those settings in the driver. The TRM does not show >

[PATCH v4 11/19] fscrypt: move to generic async completion

2017-08-08 Thread Gilad Ben-Yossef
fscrypt starts several async. crypto ops and waiting for them to complete. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- fs/crypto/crypto.c | 28 fs/crypto/fname.c | 36 ++-- fs/cry

[PATCH v4 10/19] crypto: move testmgr to generic async completion

2017-08-08 Thread Gilad Ben-Yossef
testmgr is starting async. crypto ops and waiting for them to complete. Move it over to generic code doing the same. This also provides a test of the generic crypto async. wait code. Signed-off-by: Gilad Ben-Yossef --- crypto/testmgr.c | 204 ++---

[PATCH v4 12/19] dm: move dm-verity to generic async completion

2017-08-08 Thread Gilad Ben-Yossef
dm-verity is starting async. crypto ops and waiting for them to complete. Move it over to generic code doing the same. This also fixes a possible data coruption bug created by the use of wait_for_completion_interruptible() without dealing correctly with an interrupt aborting the wait prior to the

[PATCH v4 13/19] cifs: move to generic async completion

2017-08-08 Thread Gilad Ben-Yossef
cifs starts an async. crypto op and waits for their completion. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef Acked-by: Pavel Shilovsky --- fs/cifs/smb2ops.c | 30 -- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/fs/cif

[PATCH v4 14/19] ima: move to generic async completion

2017-08-08 Thread Gilad Ben-Yossef
ima starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef Acked-by: Mimi Zohar --- security/integrity/ima/ima_crypto.c | 56 +++-- 1 file changed, 17 insertions(+), 39 deleti

[PATCH v4 15/19] crypto: tcrypt: move to generic async completion

2017-08-08 Thread Gilad Ben-Yossef
tcrypt starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/tcrypt.c | 84 + 1 file changed, 25 insertions(+), 59 deletions(-) diff --git

[PATCH v4 16/19] crypto: talitos: move to generic async completion

2017-08-08 Thread Gilad Ben-Yossef
The talitos driver starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/talitos.c | 38 +- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git

[PATCH v4 17/19] crypto: qce: move to generic async completion

2017-08-08 Thread Gilad Ben-Yossef
The qce driver starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/qce/sha.c | 30 -- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/drivers/c

[PATCH v4 18/19] crypto: mediatek: move to generic async completion

2017-08-08 Thread Gilad Ben-Yossef
The mediatek driver starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/mediatek/mtk-aes.c | 31 +-- 1 file changed, 5 insertions(+), 26 deletions(-) diff --g

[PATCH v4 19/19] crypto: adapt api sample to use async. op wait

2017-08-08 Thread Gilad Ben-Yossef
The code sample is waiting for an async. crypto op completion. Adapt sample to use the new generic infrastructure to do the same. This also fixes a possible data coruption bug created by the use of wait_for_completion_interruptible() without dealing correctly with an interrupt aborting the wait pr

Possible null pointer dereference in rcar-dmac.ko

2017-08-08 Thread Anton Volkov
Hello. While searching for races in the Linux kernel I've come across "drivers/dma/sh/rcar-dmac.ko" module. Here is a question that I came up with while analyzing results. Lines are given using the info from Linux v4.12. Consider the following case: Thread 1:Thre

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