[PATCH 0/2] constify usb_device_id.

2017-08-06 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Arvind Yadav (2): [PATCH 1/2] video: fbdev: smscufx: constify usb_device_id. [PATCH 2/2] video: fbdev: udlfb: consti

[PATCH 2/2] video: fbdev: udlfb: constify usb_device_id.

2017-08-06 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/video/fbdev/udlfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[PATCH 1/2] video: fbdev: smscufx: constify usb_device_id.

2017-08-06 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/video/fbdev/smscufx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[PATCH 1/8] Input: iforce: constify usb_device_id and fix space before '[' error:

2017-08-06 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Fix checkpatch.pl error: ERROR: space prohibited before open square bracket '['. Signed-off-by: Arvind Yadav --- driv

[PATCH 5/8] Input: appletouch: constify usb_device_id.

2017-08-06 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/input/mouse/appletouch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 7/8] Input: acecad: constify usb_device_idi and fix space before '[' error.

2017-08-06 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Fix checkpatch.pl error: ERROR: space prohibited before open square bracket '['. Signed-off-by: Arvind Yadav --- driv

[PATCH 3/8] Input: keyspan_remote: constify usb_device_id.

2017-08-06 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/input/misc/keyspan_remote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 6/8] Input: synaptics_usb: constify usb_device_id.

2017-08-06 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/input/mouse/synaptics_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 8/8] Input: kbtab: constify usb_device_id.

2017-08-06 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/input/tablet/kbtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH 4/8] Input: powermate: constify usb_device_id and fix space before '[' error.

2017-08-06 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Fix checkpatch.pl error: ERROR: space prohibited before open square bracket '['. Signed-off-by: Arvind Yadav --- driv

[PATCH 2/8] Input: xpad: constify usb_device_id.

2017-08-06 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/input/joystick/xpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[PATCH 0/8] constify input usb_device_id.

2017-08-06 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Fix checkpatch.pl error in patch 1,3 and 7: ERROR: space prohibited before open square bracket '['. Arvind Yadav (8):

[PATCH] media: ddbridge: make ddb_info const

2017-08-06 Thread Bhumika Goyal
Make ddb_info structures const as they are only used during a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/pci/ddbridge/ddbridge-core.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media/pci

[PATCH] ATM-lanai: Delete an error message for a failed memory allocation in lanai_init_one()

2017-08-06 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 6 Aug 2017 09:42:52 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signe

[PATCH] drm/amd/powerplay: fix semicolon.cocci warnings

2017-08-06 Thread kbuild test robot
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/vega10_hwmgr.c:2273:61-62: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: bdb8cd10b99d ("drm/amd/powerplay: enable ACG feature on vega10.") CC: Rex Zhu Signed-off-by: Fengguang Wu ---

[PATCH] ATM-nicstar: Delete an error message for a failed memory allocation in ns_init_card()

2017-08-06 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 6 Aug 2017 10:10:21 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signe

[PATCH] atm: solos-pci: Delete an error message for a failed memory allocation in fpga_probe()

2017-08-06 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 6 Aug 2017 10:37:31 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signe

[PATCH 09/12] [media] media: mx2-emmaprp: constify v4l2_m2m_ops structures

2017-08-06 Thread Julia Lawall
The v4l2_m2m_ops structures are only passed as the only argument to v4l2_m2m_init, which is declared as const. Thus the v4l2_m2m_ops structures themselves can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@ static struct v4l2_m2m_ops i@p

[PATCH 08/12] [media] m2m-deinterlace: constify v4l2_m2m_ops structures

2017-08-06 Thread Julia Lawall
The v4l2_m2m_ops structures are only passed as the only argument to v4l2_m2m_init, which is declared as const. Thus the v4l2_m2m_ops structures themselves can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@ static struct v4l2_m2m_ops i@p

[PATCH 10/12] [media] vim2m: constify v4l2_m2m_ops structures

2017-08-06 Thread Julia Lawall
The v4l2_m2m_ops structures are only passed as the only argument to v4l2_m2m_init, which is declared as const. Thus the v4l2_m2m_ops structures themselves can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@ static struct v4l2_m2m_ops i@p

[PATCH] hamradio: baycom: make hdlcdrv_ops const

2017-08-06 Thread Bhumika Goyal
Make hdlcdrv_ops structures const as they are only passed to hdlcdrv_register function. The corresponding argument is of type const, so make the structures const. Signed-off-by: Bhumika Goyal --- drivers/net/hamradio/baycom_par.c | 2 +- drivers/net/hamradio/baycom_ser_fdx.c | 2 +- drivers/

[PATCH 11/12] [media] exynos4-is: constify v4l2_m2m_ops structures

2017-08-06 Thread Julia Lawall
The v4l2_m2m_ops structures are only passed as the only argument to v4l2_m2m_init, which is declared as const. Thus the v4l2_m2m_ops structures themselves can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@ static struct v4l2_m2m_ops i@p

[PATCH 00/12] constify v4l2_m2m_ops structures

2017-08-06 Thread Julia Lawall
The v4l2_m2m_ops structures are only passed as the only argument to v4l2_m2m_init, which is declared as const. Thus the v4l2_m2m_ops structures themselves can be const. Done with the help of Coccinelle. --- drivers/media/platform/exynos-gsc/gsc-m2m.c |2 +- drivers/media/platform/exynos

[PATCH 12/12] [media] mtk-mdp: constify v4l2_m2m_ops structures

2017-08-06 Thread Julia Lawall
The v4l2_m2m_ops structures are only passed as the only argument to v4l2_m2m_init, which is declared as const. Thus the v4l2_m2m_ops structures themselves can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@ static struct v4l2_m2m_ops i@p

[PATCH 06/12] [media] exynos-gsc: constify v4l2_m2m_ops structures

2017-08-06 Thread Julia Lawall
The v4l2_m2m_ops structures are only passed as the only argument to v4l2_m2m_init, which is declared as const. Thus the v4l2_m2m_ops structures themselves can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@ static struct v4l2_m2m_ops i@p

[PATCH 07/12] [media] bdisp: constify v4l2_m2m_ops structures

2017-08-06 Thread Julia Lawall
The v4l2_m2m_ops structures are only passed as the only argument to v4l2_m2m_init, which is declared as const. Thus the v4l2_m2m_ops structures themselves can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@ static struct v4l2_m2m_ops i@p

[PATCH 05/12] [media] vcodec: mediatek: constify v4l2_m2m_ops structures

2017-08-06 Thread Julia Lawall
The v4l2_m2m_ops structures are only passed as the only argument to v4l2_m2m_init, which is declared as const. Thus the v4l2_m2m_ops structures themselves can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@ static struct v4l2_m2m_ops i@p

[PATCH 01/12] [media] st-delta: constify v4l2_m2m_ops structures

2017-08-06 Thread Julia Lawall
The v4l2_m2m_ops structures are only passed as the only argument to v4l2_m2m_init, which is declared as const. Thus the v4l2_m2m_ops structures themselves can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@ static struct v4l2_m2m_ops i@p

[PATCH 04/12] [media] V4L2: platform: rcar_jpu: constify v4l2_m2m_ops structures

2017-08-06 Thread Julia Lawall
The v4l2_m2m_ops structures are only passed as the only argument to v4l2_m2m_init, which is declared as const. Thus the v4l2_m2m_ops structures themselves can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@ static struct v4l2_m2m_ops i@p

[PATCH 03/12] [media] s5p-g2d: constify v4l2_m2m_ops structures

2017-08-06 Thread Julia Lawall
The v4l2_m2m_ops structures are only passed as the only argument to v4l2_m2m_init, which is declared as const. Thus the v4l2_m2m_ops structures themselves can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@ static struct v4l2_m2m_ops i@p

[PATCH 02/12] [media] media: ti-vpe: vpe: constify v4l2_m2m_ops structures

2017-08-06 Thread Julia Lawall
The v4l2_m2m_ops structures are only passed as the only argument to v4l2_m2m_init, which is declared as const. Thus the v4l2_m2m_ops structures themselves can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@ static struct v4l2_m2m_ops i@p

[PATCH] ATM-ENI: Delete an error message for a failed memory allocation in eni_start()

2017-08-06 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 6 Aug 2017 11:15:17 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signe

Re: [PATCH v2] mmc: mmci_qcom_dml: include mmci_qcom_dml.h and fix #ifdef

2017-08-06 Thread Arnd Bergmann
On Sun, Aug 6, 2017 at 4:58 AM, Masahiro Yamada wrote: > 2017-08-05 7:10 GMT+09:00 Arnd Bergmann : >> On Fri, Aug 4, 2017 at 3:34 PM, Masahiro Yamada >> wrote: >>> Include mmci_qcom_dml.h from mmci_qcom_dml.c to fix the following >>> sparse warnings: >>> >>> CHECK drivers/mmc/host/mmci_qcom_d

RE: [PATCH] i2c: mux: rename files to not have superfluous prefixes

2017-08-06 Thread Michael Shych
> -Original Message- > From: Peter Rosin [mailto:p...@axentia.se] > Sent: Friday, August 04, 2017 12:08 PM > To: linux-kernel@vger.kernel.org > Cc: Peter Rosin ; Wolfram Sang ; > linux-...@vger.kernel.org; Peter Korsgaard ; > Michael Hennerich ; Michael Shych > ; Guenter Roeck > Subject:

Re: [PATCH 4/5] mtd: block2mtd: Add support for deleting block2mtd mapping

2017-08-06 Thread Richard Weinberger
Pali, Am 25.07.2017 um 16:24 schrieb Pali Rohár: > On Friday 21 July 2017 21:56:41 Richard Weinberger wrote: >> Pali, >> >> On Fri, Jun 2, 2017 at 5:43 PM, Pali Rohár wrote: >>> This patch allows user to delete block2mtd mapping via parameters file >>> /sys/module/block2mtd/parameters/block2mtd >

drivers/gpu/drm/i915/selftests/i915_gem_request.c:344: error: 'request' may be used uninitialized in this function

2017-08-06 Thread kbuild test robot
Hi Jan, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0fdd951c9bef93637d5af036851e7a5632fbd6c3 commit: 7e6091209f7f73e2a81943020793b5ad26d645c6 x86/build: Permit building with old make versions date: 2 months ag

Re: [PATCH v3 3/5] ACPI: Introduce DMA ranges parsing

2017-08-06 Thread Lorenzo Pieralisi
On Sun, Aug 06, 2017 at 01:12:55PM +0800, kbuild test robot wrote: > Hi Lorenzo, > > [auto build test ERROR on pm/linux-next] > [also build test ERROR on v4.13-rc3 next-20170804] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: >

Re: [PATCH 5/5] ubi: Allow to use read-only UBI volume with not enough PEBs

2017-08-06 Thread Richard Weinberger
Pali, Am 25.07.2017 um 16:27 schrieb Pali Rohár: >> I fear this is not correct, it will disable a legit self-check of UBI >> volumes. >> If the read-only volume is corrupted/truncated and you miss PEBs, this >> check will no longer >> trigger. >> >> Especially when dealing with nanddumps, truncat

undefined reference to `_GLOBAL_OFFSET_TABLE_'

2017-08-06 Thread kbuild test robot
Hi Nicholas, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0fdd951c9bef93637d5af036851e7a5632fbd6c3 commit: 799c43415442414b1032580c47684cb709dfed6d kbuild: thin archives make default for all archs date: 5 weeks

Re: [PATCH 0/7] cfag12864b: Fine-tuning for cfag12864b_init()

2017-08-06 Thread SF Markus Elfring
> Date: Sat, 10 Sep 2016 16:17:01 +0200 > > Some update suggestions were taken into account > from static source code analysis. > > Markus Elfring (7): > Use kmalloc_array() > Delete an error message for a failed kmalloc_array() call > Return directly if the driver "ks0108" was not initiali

Re: [PATCH 00/30] ACPI-processor: Fine-tuning for several function implementations

2017-08-06 Thread SF Markus Elfring
> Date: Tue, 9 Sep 2016 20:15:05 +0200 > > Several update suggestions were taken into account > from static source code analysis. > > Markus Elfring (30): > Use kmalloc_array() in acpi_processor_get_performance_states() > Improve two size determinations in acpi_processor_get_performance_state

Re: [PATCH v2] mmc: mmci_qcom_dml: include mmci_qcom_dml.h and fix #ifdef

2017-08-06 Thread Ulf Hansson
On 6 August 2017 at 11:32, Arnd Bergmann wrote: > On Sun, Aug 6, 2017 at 4:58 AM, Masahiro Yamada > wrote: >> 2017-08-05 7:10 GMT+09:00 Arnd Bergmann : >>> On Fri, Aug 4, 2017 at 3:34 PM, Masahiro Yamada >>> wrote: Include mmci_qcom_dml.h from mmci_qcom_dml.c to fix the following spars

Re: [PATCH 00/13] DRBD-receiver: Fine-tuning for six function implementations

2017-08-06 Thread SF Markus Elfring
> Date: Sat, 10 Sep 2016 22:13:22 +0200 > > Several update suggestions were taken into account > from static source code analysis. > > Markus Elfring (13): > Use kmalloc_array() in receive_uuids() > Delete an error message for a failed kmalloc_array() call > Move an assignment in receive_uu

Re: [PATCH 1/2] arm64: dts: rockchip: Add cpu operating points for RK3328 SoC

2017-08-06 Thread Heiko Stuebner
Am Freitag, 4. August 2017, 11:33:37 CEST schrieb Finley Xiao: > This patch adds basic OPP entries for RK3328 SoC. > > Signed-off-by: Finley Xiao applied for 4.14 Thanks Heiko

Re: [PATCH] arm64: dts: rockchip: include opp dtsi for rk3399 firefly

2017-08-06 Thread Heiko Stuebner
Am Donnerstag, 3. August 2017, 15:02:00 CEST schrieb Jianqun Xu: > Add opp tables for cpu cluster0 and cluster1 by including > rk3399-opp.dtsi. > > Signed-off-by: Jianqun Xu applied for 4.14 Thanks Heiko

Re: [PATCH v2] mmc: mmci_qcom_dml: include mmci_qcom_dml.h and fix #ifdef

2017-08-06 Thread Srinivas Kandagatla
On 04/08/17 23:10, Arnd Bergmann wrote: How about linking the DML code into the mmci module and making that Kconfig option a 'bool'? Yes, I think making this bool and exporting the two symbols should fix this. It does not make sense to make dml helpers a module anyway. If it sounds okay,

Re: [PATCH 5/5] ubi: Allow to use read-only UBI volume with not enough PEBs

2017-08-06 Thread Pali Rohár
On Sunday 06 August 2017 11:43:25 Richard Weinberger wrote: > Pali, > > Am 25.07.2017 um 16:27 schrieb Pali Rohár: > >> I fear this is not correct, it will disable a legit self-check of > >> UBI volumes. If the read-only volume is corrupted/truncated and > >> you miss PEBs, this check will no long

Re: [PATCH v2] ARM: dts: rockchip: rk322x: add spi node and spi pinctrl

2017-08-06 Thread Heiko Stuebner
Hi, Am Donnerstag, 3. August 2017, 10:36:49 CEST schrieb Huibin Hong: > Add spi node and spi pinctrl for rk322x > > Signed-off-by: Huibin Hong [...] > + }; > + > wdt: watchdog@110a { > compatible = "rockchip,rk322x-wdt", "snps,dw-wdt"; Please make sure a patch act

Re: [PATCH] ARM: dts: rockchip: rk3288 add more iommu nodes

2017-08-06 Thread Heiko Stuebner
Am Donnerstag, 3. August 2017, 10:04:03 CEST schrieb Simon Xue: > Add IEP/ISP/VPU/HEVC iommu nodes > > Signed-off-by: Simon Xue applied for 4.14 Thanks Heiko

Re: [PATCH 00/11] virtio-console: Fine-tuning for 14 function implementations

2017-08-06 Thread SF Markus Elfring
> Date: Wed, 14 Sep 2016 15:43:21 +0200 > > Several update suggestions were taken into account > from static source code analysis. > > Markus Elfring (11): > Use kmalloc_array() in init_vqs() > Less function calls in init_vqs() after error detection > Rename a jump label in init() > Renam

Re: [PATCH] ARM: dts: rockchip: convert rk3288 device tree files to 64 bits

2017-08-06 Thread Heiko Stuebner
Am Donnerstag, 3. August 2017, 11:21:36 CEST schrieb Tao Huang: > In order to be able to use more than 4GB of RAM when the LPAE is > activated, the dts must be converted in 64 bits. > > Signed-off-by: Tao Huang applied for 4.14 Thanks Heiko

Re: [PATCH v2] mmc: mmci_qcom_dml: include mmci_qcom_dml.h and fix #ifdef

2017-08-06 Thread kbuild test robot
Hi Masahiro, [auto build test ERROR on linus/master] [also build test ERROR on v4.13-rc3 next-20170804] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Masahiro-Yamada/mmc-mmci_qcom_dml-include-m

Re: [PATCH] ARM: rockchip: select ARCH_DMA_ADDR_T_64BIT for LPAE

2017-08-06 Thread Heiko Stuebner
Am Dienstag, 1. August 2017, 17:55:55 CEST schrieb Tao Huang: > Rockchip RK3288 has some 64-bit capable DMA and therefore needs > dma_addr_t to be a 64-bit size. One user is the Mali GPU. > > Signed-off-by: Tao Huang applied for 4.14 Thanks Heiko

Re: [PATCH v3 3/5] ACPI: Introduce DMA ranges parsing

2017-08-06 Thread Rafael J. Wysocki
On Sun, Aug 6, 2017 at 11:42 AM, Lorenzo Pieralisi wrote: > On Sun, Aug 06, 2017 at 01:12:55PM +0800, kbuild test robot wrote: >> Hi Lorenzo, >> >> [auto build test ERROR on pm/linux-next] >> [also build test ERROR on v4.13-rc3 next-20170804] >> [if your patch is applied to the wrong git tree, ple

Re: [PATCH v2] dma-mapping: skip USB devices when configuring DMA during probe

2017-08-06 Thread kbuild test robot
Hi Johan, [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on v4.13-rc3 next-20170804] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Johan-Hovold/dma-mapping-sk

[PATCH 03/18] staging: typec: tcpm: Split tcpm code into tcpm-core.c and tcpm-helpers.c

2017-08-06 Thread Hans de Goede
This is a preparation patch for adding more helpers. Signed-off-by: Hans de Goede --- drivers/staging/typec/Makefile| 2 + drivers/staging/typec/{tcpm.c => tcpm-core.c} | 40 -- drivers/staging/typec/tcpm-helpers.c | 60 +++ 3 fil

[PATCH 09/18] staging: typec: fusb302: Use tcpm_set_current_limit_psy

2017-08-06 Thread Hans de Goede
Register a power_supply and use tcpm_set_current_limit_psy as set_current_limit so that another driver (e.g. the charger driver) can pick the limit up and configure the system accordingly. Signed-off-by: Hans de Goede --- drivers/staging/typec/fusb302/fusb302.c | 18 ++ 1 file ch

[PATCH 11/18] power: supply: Fix power_supply_am_i_supplied to return -ENODEV when apropriate

2017-08-06 Thread Hans de Goede
Commit 2848e039c562 ("power: supply: Make power_supply_am_i_supplied return -ENODEV if there are no suppliers") was supposed to make power_supply_am_i_supplied() return -ENODEV when there are no supplies which supply the supply passed to it. But instead it will only return -ENODEV when there are n

[PATCH 07/18] staging: typec: fusb302: Use client->irq as irq if set

2017-08-06 Thread Hans de Goede
The fusb302 is also used on x86 systems where the platform code sets the irq in client->irq and there is no gpio named fcs,int_n. Signed-off-by: Hans de Goede --- drivers/staging/typec/fusb302/fusb302.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/stagin

[PATCH 05/18] staging: typec: fusb302: Set max supply voltage to 5V

2017-08-06 Thread Hans de Goede
Anything higher then 5V may damage hardware not capable of it, so the only sane default here is 5V. If a board is able to handle a higher voltage that should come from board specific data such as device-tree and not be hard coded into the fusb302 code. Signed-off-by: Hans de Goede --- drivers/st

[PATCH 18/18] i2c-cht-wc: Add device-properties for fusb302 integration

2017-08-06 Thread Hans de Goede
Add device-properties to make the bq24292i controller connected to the bus get its input-current-limit from the fusb302 Type-C port controller which is used on boards with the cht-wc PMIC. Signed-off-by: Hans de Goede --- drivers/i2c/busses/Kconfig | 5 + drivers/i2c/busses/i2c-cht-wc.c

[PATCH 13/18] power: supply: bq24190_charger: Export 5V boost converter as regulator

2017-08-06 Thread Hans de Goede
Register the 5V boost converter as a regulator named "regulator-bq24190-usb-vbus". Note the name includes "bq24190" because the bq24190 family is also used on ACPI devices where there are no device-tree phandles, so regulator_get will fallback to the name and thus it must be unique on the system.

[PATCH 17/18] platform/x86: intel_cht_int33fe Update fusb302 type string, add properties

2017-08-06 Thread Hans de Goede
The fusb302 driver as merged in staging uses "typec_fusb302" as i2c-id rather then just "fusb302" and needs us to set a number of device- properties, adjust the intel_cht_int33fe driver accordingly. One of the properties set is max-snk-mv which makes the fusb302 driver negotiate up to 12V charging

[PATCH 15/18] power: supply: bq24190_charger: Get input_current_limit from our supplier

2017-08-06 Thread Hans de Goede
On some devices the USB Type-C port power (USB PD 2.0) negotiation is done by a separate port-controller IC, while the current limit is controlled through another (charger) IC. It has been decided to model this by modelling the external Type-C power brick (adapter/charger) as a power-supply class

[PATCH 16/18] power: supply: bq24190_charger: Remove extcon handling

2017-08-06 Thread Hans de Goede
Now that drivers/i2c/busses/i2c-cht-wc.c uses "input-current-limit-from-supplier" instead of "extcon-name" the last user of the bq24190 extcon code is gone, remove it. Signed-off-by: Hans de Goede --- drivers/power/supply/bq24190_charger.c | 107 - 1 file changed,

[PATCH 12/18] power: supply: Add power_supply_set_input_current_limit_from_supplier helper

2017-08-06 Thread Hans de Goede
On some devices the USB Type-C port power (USB PD 2.0) negotiation is done by a separate port-controller IC, while the current limit is controlled through another (charger) IC. It has been decided to model this by modelling the external Type-C power brick (adapter/charger) as a power-supply class

[PATCH 14/18] power: supply: bq24190_charger: Add input_current_limit property

2017-08-06 Thread Hans de Goede
Export the input current limit of the charger as a POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT property on the charger power_supply class device. Signed-off-by: Hans de Goede --- drivers/power/supply/bq24190_charger.c | 35 ++ 1 file changed, 35 insertions(+) diff --gi

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

2017-08-06 Thread Hans de Goede
On devicetree platforms the fusb302 dt-node will have a vbus regulator property with a phandle to the regulator. 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 "fcs,vbus-regulator-name" device-property which ACPI platform co

[PATCH 08/18] staging: typec: fusb302: Add support for USB2 charger detection through extcon

2017-08-06 Thread Hans de Goede
The fusb302 port-controller relies on an external device doing USB2 charger-type detection. The Intel Whiskey Cove PMIC with which the fusb302 is combined on some X86/ACPI platforms already has a charger-type detection driver which uses extcon to communicate the detected charger-type. This commit

[PATCH 06/18] staging: typec: fusb302: Get max snk mv/ma/mw from device-properties

2017-08-06 Thread Hans de Goede
This is board specific info so it should come from board config, such as devicetree. I've chosen to prefix these with "fcs," treating them as fusb302 driver specific. We may want to revisit to replace these with properties which are part of a (to be written) generic type-c controller devicetree bi

[PATCH 04/18] staging: typec: tcpm: Add helpers for exporting current-limit through a psy

2017-08-06 Thread Hans de Goede
Not all type-c port-controller can control the current-limit directly, in cases where the current limit can not be controlled directly it needs to be exported so that another driver (e.g. the charger driver) can pick the limit up and configure the system accordingly. The power-supply subsys alread

[PATCH 02/18] staging: typec: tcpm: Add extcon helper functions for USB2 current limit detect

2017-08-06 Thread Hans de Goede
Some type-c port-controllers, such as the fusb302 port-controller, rely on an external device doing USB2 charger-type detection. Existing PMIC (and charger) drivers already use extcon to communicate the detected charger-type from the PMIC (extcon) driver to the charger driver. Rather then inventi

[PATCH 01/18] staging: typec: tcpm: Add get_usb2_current_limit tcpc_dev callback

2017-08-06 Thread Hans de Goede
A Rp signalling the default current limit indicates that we're possibly connected to an USB2 power-source. In some cases the type-c port-controller may provide the capability to detect the current-limit for USB2 power-sources (through e.g. BC1.2 detection). This commit adds an optional get_usb2_cu

[PATCH 00/18] Hookup typec power-negotation to the PMIC and charger

2017-08-06 Thread Hans de Goede
Hi All, This series implements a number of typec changes discussed a while back: - It exports the negotiated voltage and max-current in the form of a power-supply class device which represents the USB Type-C power-brick (adapter/charger) - It adds a power_supply_set_input_current_limit_from_s

Re: xattr hash error in 4.13-rc with overlayfs over ext4

2017-08-06 Thread zhangyi (F)
On 2017/8/3 19:10, Miklos Szeredi Wrote: On Tue, Aug 1, 2017 at 12:34 PM, Amir Goldstein wrote: On Mon, Jul 31, 2017 at 7:08 PM, Miklos Szeredi wrote: On Thu, Jul 27, 2017 at 10:54 PM, Tahsin Erdogan wrote: Still no luck reproducing the error. I am using the test script below at v4.13-rc2.

[PATCH v2] module: use relative references for __ksymtab entries

2017-08-06 Thread Ard Biesheuvel
An ordinary arm64 defconfig build has ~64 KB worth of __ksymtab entries, each consisting of two 64-bit fields containing absolute references, to the symbol itself and to a char array containing its name, respectively. When we build the same configuration with KASLR enabled, we end up with an addit

Re: [PATCH 4.4 40/57] tpm: Provide strong locking for device removal

2017-08-06 Thread Jarkko Sakkinen
On Fri, Aug 04, 2017 at 02:44:18PM -0700, Greg Kroah-Hartman wrote: > On Fri, Aug 04, 2017 at 12:59:56PM -0700, Greg Kroah-Hartman wrote: > > On Tue, Aug 01, 2017 at 01:22:54AM +0300, Jarkko Sakkinen wrote: > > > On Fri, Jul 28, 2017 at 03:42:18PM -0700, Greg Kroah-Hartman wrote: > > > > On Wed, Ju

Re: [PATCH v2 1/5] arm64: dts: rockchip: Add rk3399 vop and display-subsystem

2017-08-06 Thread Heiko Stuebner
Am Montag, 17. Juli 2017, 22:16:55 CEST schrieb Jacob Chen: > From: Mark Yao > > Add devicetree nodes for rk3399 VOP (Video Output Processors), and the > top level display-subsystem root node. > > Later patches add endpoints (eDP, HDMI, MIPI, etc) that attach to the > VOPs' output ports. > > Si

Re: [PATCH v2 2/5] arm64: dts: rockchip: add pd_edp node for rk3399

2017-08-06 Thread Heiko Stuebner
Am Montag, 17. Juli 2017, 22:16:56 CEST schrieb Jacob Chen: > From: Elaine Zhang > > 1. add pd node for RK3399 Soc > 2. create power domain tree > 3. add qos node for domain > > Signed-off-by: Elaine Zhang > Signed-off-by: Caesar Wang > Signed-off-by: Jacob Chen applied for 4.14 Thanks Hei

Re: [PATCH v2 3/5] arm64: dts: rockchip: add rk3399 edp nodes

2017-08-06 Thread Heiko Stuebner
Am Montag, 17. Juli 2017, 22:16:57 CEST schrieb Jacob Chen: > From: Yakir Yang > > Add an edp node, and also add edp endpoints to vopb and vopl > output port nodes. > > Signed-off-by: Yakir Yang > Signed-off-by: Caesar Wang > Signed-off-by: Jacob Chen applied for 4.14 after some minimal prop

Re: [PATCH v2 4/5] arm64: dts: rockchip: add rk3399 mipi nodes

2017-08-06 Thread Heiko Stuebner
Am Montag, 17. Juli 2017, 22:16:58 CEST schrieb Jacob Chen: > Add an mipi node, and also add mipi endpoints to vopb and vopl > output port nodes. > > Signed-off-by: Jacob Chen > --- > arch/arm64/boot/dts/rockchip/rk3399.dtsi | 44 > > 1 file changed, 44 insertio

Linux 4.13: Reported regressions as of Sunday, 2017-08-06

2017-08-06 Thread Thorsten Leemhuis
Hi! Find below my second regression report for Linux 4.13. It lists 10 regressions I'm currently aware of (albeit in one case it's not entirely clear yet if it's a regression in 4.13). One regression got fixed since last weeks report. You can also find the report at http://bit.ly/lnxregrep413 where

Re: [PATCH v2 00/17] IB/mlx: Fine-tuning for several function implementations

2017-08-06 Thread SF Markus Elfring
> Date: Fri, 21 Apr 2017 19:56:54 +0200 > > Several update suggestions were taken into account > from static source code analysis. > > Markus Elfring (17): > Use kcalloc() in mlx4_ib_alloc_pv_bufs() > Use kmalloc_array() in six functions > Improve size determinations in six functions > Fi

Re: [PATCH 06/18] staging: typec: fusb302: Get max snk mv/ma/mw from device-properties

2017-08-06 Thread Guenter Roeck
On 08/06/2017 05:35 AM, Hans de Goede wrote: This is board specific info so it should come from board config, such as devicetree. I've chosen to prefix these with "fcs," treating them as fusb302 driver specific. We may want to revisit to replace these with properties which are part of a (to be w

[PATCH] mtd: physmap_of: Fix resources leak in 'of_flash_probe()'

2017-08-06 Thread Christophe JAILLET
If 'of_flash_probe_gemini()' or 'of_flash_probe_versatile()' fail, we must reslease some resources, as already done in all error handling paths in this function. Signed-off-by: Christophe JAILLET --- drivers/mtd/maps/physmap_of_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) di

Re: [PATCH v2] arm64: dts: rockchip: add rk3399 hdmi nodes

2017-08-06 Thread Heiko Stuebner
Am Montag, 31. Juli 2017, 23:58:45 CEST schrieb Jacob Chen: > Add an hdmi node, and also add hdmi endpoints to vopb and vopl > output port nodes. > > changes in v2: > - remove spare lines > > Signed-off-by: Jacob Chen applied for 4.14 with some property reordering Thanks Heiko

[PATCH v2 0/2] mm,fork,security: introduce MADV_WIPEONFORK

2017-08-06 Thread riel
v2: fix MAP_SHARED case and kbuild warnings Introduce MADV_WIPEONFORK semantics, which result in a VMA being empty in the child process after fork. This differs from MADV_DONTFORK in one important way. If a child process accesses memory that was MADV_WIPEONFORK, it will get zeroes. The address ra

[PATCH 1/2] x86,mpx: make mpx depend on x86-64 to free up VMA flag

2017-08-06 Thread riel
From: Rik van Riel MPX only seems to be available on 64 bit CPUs, starting with Skylake and Goldmont. Move VM_MPX into the 64 bit only portion of vma->vm_flags, in order to free up a VMA flag. Signed-off-by: Rik van Riel --- arch/x86/Kconfig | 4 +++- include/linux/mm.h | 8 ++-- 2 files

Re: [PATCH v2 5/5] arm64: dts: rockchip: add rk3399 hdmi nodes

2017-08-06 Thread Heiko Stuebner
Am Montag, 17. Juli 2017, 22:16:59 CEST schrieb Jacob Chen: > Add an hdmi node, and also add hdmi endpoints to vopb and vopl > output port nodes. > > Signed-off-by: Jacob Chen I've picked the separate hdmi node patch, so ignored this one Heiko

[PATCH 2/2] mm,fork: introduce MADV_WIPEONFORK

2017-08-06 Thread riel
From: Rik van Riel Introduce MADV_WIPEONFORK semantics, which result in a VMA being empty in the child process after fork. This differs from MADV_DONTFORK in one important way. If a child process accesses memory that was MADV_WIPEONFORK, it will get zeroes. The address ranges are still valid, th

Re: [PATCH v2] module: use relative references for __ksymtab entries

2017-08-06 Thread kbuild test robot
-for-__ksymtab-entries/20170806-205309 config: x86_64-allyesdebian (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): In file included from i

Re: [PATCH 02/18] staging: typec: tcpm: Add extcon helper functions for USB2 current limit detect

2017-08-06 Thread Guenter Roeck
On 08/06/2017 05:35 AM, Hans de Goede wrote: Some type-c port-controllers, such as the fusb302 port-controller, rely on an external device doing USB2 charger-type detection. Existing PMIC (and charger) drivers already use extcon to communicate the detected charger-type from the PMIC (extcon) dri

Re: [PATCH 04/18] staging: typec: tcpm: Add helpers for exporting current-limit through a psy

2017-08-06 Thread Guenter Roeck
On 08/06/2017 05:35 AM, Hans de Goede wrote: Not all type-c port-controller can control the current-limit directly, in cases where the current limit can not be controlled directly it needs to be exported so that another driver (e.g. the charger driver) can pick the limit up and configure the syst

Re: [PATCH 01/18] staging: typec: tcpm: Add get_usb2_current_limit tcpc_dev callback

2017-08-06 Thread Guenter Roeck
On 08/06/2017 05:35 AM, Hans de Goede wrote: A Rp signalling the default current limit indicates that we're possibly connected to an USB2 power-source. In some cases the type-c port-controller may provide the capability to detect the current-limit for USB2 power-sources (through e.g. BC1.2 detect

Re: [PATCH 04/18] staging: typec: tcpm: Add helpers for exporting current-limit through a psy

2017-08-06 Thread Hans de Goede
Hi, On 06-08-17 16:13, Guenter Roeck wrote: On 08/06/2017 05:35 AM, Hans de Goede wrote: Not all type-c port-controller can control the current-limit directly, in cases where the current limit can not be controlled directly it needs to be exported so that another driver (e.g. the charger driver

Re: [PATCH 08/18] staging: typec: fusb302: Add support for USB2 charger detection through extcon

2017-08-06 Thread Guenter Roeck
On 08/06/2017 05:35 AM, Hans de Goede wrote: The fusb302 port-controller relies on an external device doing USB2 charger-type detection. The Intel Whiskey Cove PMIC with which the fusb302 is combined on some X86/ACPI platforms already has a charger-type detection driver which uses extcon to comm

Re: [PATCH 09/18] staging: typec: fusb302: Use tcpm_set_current_limit_psy

2017-08-06 Thread Guenter Roeck
On 08/06/2017 05:35 AM, Hans de Goede wrote: Register a power_supply and use tcpm_set_current_limit_psy as set_current_limit so that another driver (e.g. the charger driver) can pick the limit up and configure the system accordingly. Signed-off-by: Hans de Goede --- drivers/staging/typec/fusb

Re: [PATCH 01/18] staging: typec: tcpm: Add get_usb2_current_limit tcpc_dev callback

2017-08-06 Thread Hans de Goede
Hi, On 06-08-17 16:18, Guenter Roeck wrote: On 08/06/2017 05:35 AM, Hans de Goede wrote: A Rp signalling the default current limit indicates that we're possibly connected to an USB2 power-source. In some cases the type-c port-controller may provide the capability to detect the current-limit for

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

2017-08-06 Thread Guenter Roeck
On 08/06/2017 05:35 AM, Hans de Goede wrote: On devicetree platforms the fusb302 dt-node will have a vbus regulator property with a phandle to the regulator. 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 "fcs,vbus-regulat

Re: [PATCH 11/18] power: supply: Fix power_supply_am_i_supplied to return -ENODEV when apropriate

2017-08-06 Thread Guenter Roeck
On 08/06/2017 05:35 AM, Hans de Goede wrote: Commit 2848e039c562 ("power: supply: Make power_supply_am_i_supplied return -ENODEV if there are no suppliers") was supposed to make power_supply_am_i_supplied() return -ENODEV when there are no supplies which supply the supply passed to it. But inste

  1   2   3   4   >