Re: [PATCH v2 07/15] usb: gadget: configfs: make config_item_type const

2017-10-17 Thread Felipe Balbi
Bhumika Goyal writes: > Make config_item_type structures const as they are either passed to a > function having the argument as const or stored in the const "ci_type" > field of a config_item structure. > > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal Acked-by: Felipe Balbi -- bal

Re: [PATCH 1/2] fs, elf: drop MAP_FIXED usage from elf_map

2017-10-17 Thread James Hogan
On Tue, Oct 17, 2017 at 09:37:48AM +0200, Michal Hocko wrote: > On Mon 16-10-17 21:02:09, James Hogan wrote: > > On Mon, Oct 16, 2017 at 09:00:47PM +0200, Michal Hocko wrote: > > > [CCing metag people for the metag elf_map implementation specific. The > > > thread > > > starts here > > > http://l

Re: [PATCH 0/12] PM / sleep: Driver flags for system suspend/resume

2017-10-17 Thread Ulf Hansson
On 16 October 2017 at 03:12, Rafael J. Wysocki wrote: > Hi All, > > Well, this took more time than expected, as I tried to cover everything I had > in mind regarding PM flags for drivers. > > This work was triggered by attempts to fix and optimize PM in the > i2c-designware-platdev driver that end

Re: [PATCH 2/2] mm: rename page dtor functions to {compound,huge,transhuge}_page__dtor

2017-10-17 Thread Anshuman Khandual
On 10/16/2017 02:49 PM, changbin...@intel.com wrote: > From: Changbin Du > > The current name free_{huge,transhuge}_page are paired with > alloc_{huge,transhuge}_page functions, but the actual page free > function is still free_page() which will indirectly call > free_{huge,transhuge}_page. So th

Re: mainline/master build: 212 builds: 0 failed, 212 passed, 48 warnings (v4.14-rc4-126-g3d7882769b5d)

2017-10-17 Thread Arnd Bergmann
On Fri, Oct 13, 2017 at 4:06 AM, kernelci.org bot wrote: > > mainline/master build: 212 builds: 0 failed, 212 passed, 48 warnings > (v4.14-rc4-126-g3d7882769b5d) > Full Build Summary: > https://kernelci.org/build/mainline/branch/master/kernel/v4.14-rc4-126-g3d7882769b5d/ > Tree: mainline > Branc

Re: [PATCH] wireless: qtnfmac: Convert timers to use timer_setup()

2017-10-17 Thread Sergey Matyukevich
> In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Igor Mitsyanko > Cc: Avinash Patil > Cc: Sergey Matyukevich > Cc: Kalle Valo > Cc: Kamlesh

Re: [RESEND x2][PATCH 0/3] dwc2 fixes for edge cases on hikey

2017-10-17 Thread Minas Harutyunyan
On 10/17/2017 1:34 AM, John Stultz wrote: > On Mon, Oct 16, 2017 at 1:36 AM, Minas Harutyunyan > wrote: >> On b-plug disconnect should asserted GOTGINT.SesEndDet interrupt. >> According previously sent by you register dump (GHWCFG2 = 0x23affc70) >> your core OTG_MODE=0. >> Bellow fragment from pro

Re: [PATCH 00/12] of: overlay: clean up device tree overlay code

2017-10-17 Thread Jyri Sarha
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 10/05/17 11:33, Jyri Sarha wrote: > On 10/05/17 09:53, Tomi Valkeinen wrote: >> On 04/10/17 17:56, Rob Herring wrote: >>> On Mon, Oct 2, 2017 at 10:53 PM, wrote: >

[PATCH] hwmon: (coretemp) remove duplicated coretemp for same core id

2017-10-17 Thread shuwang
From: Shu Wang Fix kernel warning on my 4cpus 2core_id system. The cpu0 and cpu1 have same core_id 0, so both cpu0 and cpu1 will try to create file temp2_label when it's online. - coretemp_cpu_online(cpu=0) - create_core_data(cpu=0, attr_no=2) - create_core_attrs(attr_no=2) - coretemp_cpu_o

Re: [PATCH -mm] mm, swap: Fix race between swap count continuation operations

2017-10-17 Thread Michal Hocko
On Tue 17-10-17 16:13:20, Huang, Ying wrote: > From: Huang Ying > > One page may store a set of entries of the > sis->swap_map (swap_info_struct->swap_map) in multiple swap clusters. > If some of the entries has sis->swap_map[offset] > SWAP_MAP_MAX, > multiple pages will be used to store the set

Re: [PATCH 4/4] char/snsc: Delete unnecessary braces in five functions

2017-10-17 Thread Dan Carpenter
On Mon, Oct 16, 2017 at 05:07:29PM +0200, SF Markus Elfring wrote: > /* ...or if we want to block, then do so here */ > - if (down_interruptible(&sd->sd_wbs)) { > + if (down_interruptible(&sd->sd_wbs)) > /* something went wrong with wait *

Re: [GIT PULL] phy: for 4.14 -rc

2017-10-17 Thread Greg KH
On Wed, Oct 04, 2017 at 06:09:45PM +0530, Kishon Vijay Abraham I wrote: > Hi Greg, > > Please find below the phy pull request for 4.14 -rc cycle below. > It fixes a couple of instabilities in rockchip typec phy and other fixes > are mostly to deal with handling error return values. > > Consider

Re: android/android-4.4 build: 210 builds: 0 failed, 210 passed, 6 warnings (ASB-2017-10-5_4.4-o-release-513-gec888d46d899)

2017-10-17 Thread Arnd Bergmann
On Tue, Oct 17, 2017 at 1:27 AM, kernelci.org bot wrote: > > > Warnings summary: > > 1 net/wireless/nl80211.c:5096:1: warning: the frame size of 2064 bytes > is larger than 2048 bytes [-Wframe-larger-than=] > 1 net/wireless/nl80211.c:3859:1: warning: the frame size of 2168 bytes >

Re: [PATCH 0/4] char-TPM: Adjustments for ten function implementations

2017-10-17 Thread Dan Carpenter
On Mon, Oct 16, 2017 at 09:35:12PM +0300, Jarkko Sakkinen wrote: > > A minor complaint: all commits are missing "Fixes:" tag. > Fixes is only for bug fixes. These don't fix any bugs. regards, dan carpenter

Re: [PATCH] usb: isp1301-omap: Convert timers to use timer_setup()

2017-10-17 Thread Greg Kroah-Hartman
On Tue, Oct 17, 2017 at 11:09:56AM +0300, Felipe Balbi wrote: > > Hi, > > Kees Cook writes: > > In preparation for unconditionally passing the struct timer_list pointer to > > all timer callbacks, switch to using the new timer_setup() and from_timer() > > to pass the timer pointer explicitly. >

Re: about pca955x led driver gpio management

2017-10-17 Thread Cédric Le Goater
On 10/17/2017 10:20 AM, Andrea Scian - DAVE Embedded Systems wrote: > > Il 17/10/2017 10:18, Cédric Le Goater ha scritto: >> On 10/17/2017 09:36 AM, Andrea Scian - DAVE Embedded Systems wrote: >>> Dear all, >>> >>> I'm working on an iMX6 based board with a PCA9555 which is used both to >>> drive

[PATCH 03/12] ARM: dts: imx6-tx6: remove obsolete ipu1 alias

2017-10-17 Thread Lothar Waßmann
The 'ipu1' alias is already defined in imx6q.dtsi. There is no need to redefine it here. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts b/arch/arm/boot/dts/imx6q-tx6q-11x0-m

[PATCHv2 00/12] ARM: dts: imx6: Update dts files for the Ka-Ro TX6 module series

2017-10-17 Thread Lothar Waßmann
This patchset updates the dts files for the Ka-Ro electronics GmbH TX6 module series and adds some include files to facilitate supporting various SoM/baseboard combinations. Changes vs. v1: - rebased to imx/dt branch - eliminate use of 'interrupts-extended' property according to Uwe Kleine-König

[PATCH 09/12] ARM: dts: imx6-tx6: move display configuration to .dtsi file

2017-10-17 Thread Lothar Waßmann
Currently the display (LCD or LVDS) configuration is duplicated with slight variations in each TX6 module specific file. Move it to an include file for simplification and consistency. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts| 74 +-- arch/arm/boot/dts

[PATCH 01/12] ARM: dts: imx6-tx6: update model property to match current module HW revision

2017-10-17 Thread Lothar Waßmann
The current TX6Q module HW revision is 3 reflected in the module name suffix '-1030' (-1130 for LVDS). Change the model string to prevent confusion about what DTS file to use for these modules. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6q-tx6q-1010.dts | 4 ++-- arch/arm/boot/dts/im

[PATCH 04/12] ARM: dts: imx6-tx6: add trickle-charge config for DS1339

2017-10-17 Thread Lothar Waßmann
As the DS1339 driver now supports enabling the trickle charge feature via DTB, add the appropriate properties to utilize this feature. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/

[PATCH 12/12] ARM: dts: imx: add support for TX6 modules on MB7 baseboard

2017-10-17 Thread Lothar Waßmann
Create .dts files for various Ka-Ro electronics TX modules on the MB7 baseboard. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/Makefile | 8 arch/arm/boot/dts/imx6dl-tx6s-8034-mb7.dts | 48 arch/arm/boot/dts/imx6dl-tx6s-8035-mb7.dts | 48 ++

[PATCH 10/12] ARM: dts: imx6-tx6: add a .dtsi file for the MB7 baseboard

2017-10-17 Thread Lothar Waßmann
Move the MB7 specific settings to a separate .dtsi file to facilitate supporting more module variants with this baseboard. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts | 9 +-- arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts | 42 + arch/arm/boot/dts/imx6q

[PATCH 05/12] ARM: dts: imx6-tx6: improve ethernet related pinctrl setup

2017-10-17 Thread Lothar Waßmann
Remove the PHY INT and RESET pins from hog section and put them into their own pinctrl nodes referenced by the appropriate driver nodes. Also, the MDIO pins are required for probing the Ethernet PHY, so they must be configured by the FEC driver, not by the PHY driver. Move the corresponding pinctrl

[PATCH 07/12] ARM: dts: imx6-tx6: convert to using simple-audio-card

2017-10-17 Thread Lothar Waßmann
Convert the DTS sound setup to use the simple-audio-card driver. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 50 -- 1 file changed, 42 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/arch/arm/boot/dt

[PATCH 08/12] ARM: dts: imx6-tx6: add support for I2C bus recovery

2017-10-17 Thread Lothar Waßmann
Define the required properties to enable I2C bus recovery supported by the I2C subsystem. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/arch/

[PATCH 02/12] ARM: dts: imx6-tx6: remove obsolete eeti,egalax_ts

2017-10-17 Thread Lothar Waßmann
The display, that incorporates this touchpanel is obsolete and won't be supported any more. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6dl-tx6u-811x.dts | 23 +-- arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts | 22 +- arch/arm/boot/dts/imx6q-t

Re: [PATCH 0/4] char-TPM: Adjustments for ten function implementations

2017-10-17 Thread Julia Lawall
On Tue, 17 Oct 2017, Dan Carpenter wrote: > On Mon, Oct 16, 2017 at 09:35:12PM +0300, Jarkko Sakkinen wrote: > > > > A minor complaint: all commits are missing "Fixes:" tag. > > > > Fixes is only for bug fixes. These don't fix any bugs. 0-day seems to put Fixes for everything. Should they be

[PATCH 06/12] ARM: dts: imx6-tx6: specify ethernet phy reset post-delay

2017-10-17 Thread Lothar Waßmann
Under certain circumstances the ethernet PHY cannot be detected on Ka-Ro electronics TX6 modules. Using a phy-reset-post-delay of at least 2ms alleviates this problem. Define it to 10ms to be on the safe side. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 1 + 1 file cha

Re: [PATCH 1/2] fs, elf: drop MAP_FIXED usage from elf_map

2017-10-17 Thread Michal Hocko
On Tue 17-10-17 09:35:57, James Hogan wrote: > On Tue, Oct 17, 2017 at 09:37:48AM +0200, Michal Hocko wrote: [...] > > This would be something like. I wanted to share elf_vm_mmap but didn't > > find a proper place to not cause include dependency hell so I balied out > > to c&p. > > --- > > diff --g

[PATCH 11/12] ARM: dts: imx: add support for TX6QP

2017-10-17 Thread Lothar Waßmann
The TX6QP-8037 is a Computer On Module manufactured by Ka-Ro electronics GmbH with the following characteristics: ProcessorFreescale i.MX 6QuadPlus MCIMX6QP7, 1 GHz RAM 1GiB 64-bit DDR3 SDRAM ROM 4GB HiRel eMMC Power supply Single 3.3 to 5V Size 26mm SO-DIM

Re: [PATCH] s390/cio: Convert timers to use timer_setup()

2017-10-17 Thread Martin Schwidefsky
On Mon, 16 Oct 2017 16:43:25 -0700 Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list > pointer to all timer callbacks, switch to using the new timer_setup() > and from_timer() to pass the timer pointer explicitly. > > Cc: Sebastian Ott > Cc: Peter Oberparleiter

Re: [PATCH] s390/sclp: Convert timers to use timer_setup()

2017-10-17 Thread Martin Schwidefsky
On Mon, 16 Oct 2017 16:44:30 -0700 Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. Instead of creating an external static > data var

Re: [PATCH] s390/scsi: Convert timers to use timer_setup()

2017-10-17 Thread Martin Schwidefsky
On Mon, 16 Oct 2017 16:44:34 -0700 Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Steffen Maier > Cc: Benjamin Block > C

Re: next/master build: 214 builds: 29 failed, 185 passed, 29 errors, 68 warnings (next-20171016)

2017-10-17 Thread Arnd Bergmann
On Tue, Oct 17, 2017 at 1:02 AM, kernelci.org bot wrote: > > next/master build: 214 builds: 29 failed, 185 passed, 29 errors, 68 warnings > (next-20171016) > Full Build Summary: > https://kernelci.org/build/next/branch/master/kernel/next-20171016/ > Tree: next > Branch: master > Git Describe: ne

Re: [PATCH] ASoC: sgtl5000: add support for a fixed sysclk frequency

2017-10-17 Thread Jakob Unterwurzacher
> On 16. Oct 2017, at 13:19, Fabio Estevam wrote: > >> I think I see a way to fix this without adding a DTS property, I’ll send out >> a patch later this afternoon. > > Ok, great. Hi Fabio, I think I found a way to get our use-case working with just DTS configuration for simple-audio-card.

Re: [PATCH v3 2/2] livepatch: add atomic replace

2017-10-17 Thread Miroslav Benes
On Tue, 10 Oct 2017, Jason Baron wrote: > > > On 10/06/2017 06:32 PM, Josh Poimboeuf wrote: > > On Wed, Sep 27, 2017 at 11:41:30PM -0400, Jason Baron wrote: > >> Since 'atomic replace' has completely replaced all previous livepatch > >> modules, it explicitly disables all previous livepatch modu

Re: [PATCH 2/2] fs, elf: drop MAP_FIXED from initial ET_DYN segment

2017-10-17 Thread Michal Hocko
On Mon 16-10-17 12:38:19, Kees Cook wrote: > On Mon, Oct 16, 2017 at 11:43 AM, Michal Hocko wrote: > > On Mon 16-10-17 09:44:31, Kees Cook wrote: > >> On Mon, Oct 16, 2017 at 6:44 AM, Michal Hocko wrote: > >> > From: Michal Hocko > >> > > >> > eab09532d400 ("binfmt_elf: use ELF_ET_DYN_BASE only

Re: [PATCH 0/4] drm/meson: power domain init related fixes

2017-10-17 Thread Linus Lüssing
On Tue, Oct 17, 2017 at 10:07:40AM +0200, Neil Armstrong wrote: > A PM Power Domain driver has been pushed at [1] to solve the main issue. URL to [1] missing?

[PATCH 01/23] drm/sun4i: Implement endpoint parsing using kfifo

2017-10-17 Thread Maxime Ripard
The commit da82b8785eeb ("drm/sun4i: add components in breadth first traversal order") implemented a breadth first traversal of our device tree nodes graph. However, it was relying on the kernel linked lists, and those are not really safe for addition. Indeed, in a single pipeline stage, your firs

[PATCH 23/23] arm: dts: sun8i: a711: Enable the LCD

2017-10-17 Thread Maxime Ripard
The A711 has 1024x600 LVDS panel, with a PWM-based backlight. Add it to our DT. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 62 - 1 file changed, 62 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts

Re: [PATCH 0/4] drm/meson: power domain init related fixes

2017-10-17 Thread Neil Armstrong
On 17/10/2017 11:06, Linus Lüssing wrote: > On Tue, Oct 17, 2017 at 10:07:40AM +0200, Neil Armstrong wrote: >> A PM Power Domain driver has been pushed at [1] to solve the main issue. > > URL to [1] missing? > Sorry, here it is : [1] https://lkml.kernel.org/r/1508228167-11753-1-git-send-email-n

[PATCH 14/23] drm/sun4i: Create minimal multipliers and dividers

2017-10-17 Thread Maxime Ripard
The various outputs the TCON can provide have different constraints on the dotclock divider. Let's make them configurable by the various mode_set functions. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_dotclock.c | 10 +++--- drivers/gpu/drm/sun4i/sun4i_tcon.c | 2 ++ dr

Re: [PATCH] s390/cio: Convert timers to use timer_setup()

2017-10-17 Thread Martin Schwidefsky
On Tue, 17 Oct 2017 10:58:47 +0200 Martin Schwidefsky wrote: > On Mon, 16 Oct 2017 16:43:25 -0700 > Kees Cook wrote: > > > In preparation for unconditionally passing the struct timer_list > > pointer to all timer callbacks, switch to using the new timer_setup() > > and from_timer() to pass the

[PATCH] f2fs: use extra parenthesis around assignment/condition

2017-10-17 Thread Arnd Bergmann
gcc warns that writing a while() loop with an assignment as the condition looks suspiciously like a comparison, and suggests a workaround: fs/f2fs/checkpoint.c: In function 'sync_meta_pages': fs/f2fs/checkpoint.c:321:9: error: suggest parentheses around assignment used as truth value [-Werror=par

[PATCH 22/23] arm: dts: sun8i: a711: Enable USB OTG

2017-10-17 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts index 98dc0c22160b..e4d08bff3158 100644 --- a/arch/arm/boot/dts/sun8i-a83t-t

[PATCH 20/23] arm: dts: sun8i: a83t: Add the PWM pin group

2017-10-17 Thread Maxime Ripard
The A83T has a PWM that can be output from the SoC. Let's add a pinctrl group for it. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a83t.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 6f1221556

[PATCH 21/23] arm: dts: sun8i: a711: Add regulator support

2017-10-17 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 163 +-- 1 file changed, 154 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts index 723641f56a74..98dc0c22160b 100644

[PATCH 00/23] drm/sun4i: Add A83t LVDS support

2017-10-17 Thread Maxime Ripard
Hi, Here is an attempt at supporting the LVDS output in our DRM driver. This has been tested on the A83T (with DE2), but since everything is basically in the TCON, it should also be usable on the older SoCs with minor modifications. This was the occasion to refactor a bunch of things. The most no

[PATCH 16/23] drm/sun4i: Add A83T support

2017-10-17 Thread Maxime Ripard
Add support for the A83T display pipeline. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt | 3 +++ drivers/gpu/drm/sun4i/sun4i_drv.c | 2 ++ drivers/gpu/drm/sun4i/sun4i_tcon.c| 1 + drivers/gp

[PATCH 19/23] arm: dts: sun8i: a83t: Add LVDS pins group

2017-10-17 Thread Maxime Ripard
The A83T has an LVDS bus that can be connected to a panel or a bridge. Add the pinctrl group for it. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a83t.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi

[PATCH 18/23] arm: dts: sun8i: a83t: Enable the PWM

2017-10-17 Thread Maxime Ripard
The A83T has the same PWM block than the H3. Add it to our DT. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a83t.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 57feeb6fee8b..ef07a58859c7

[PATCH 17/23] arm: dts: sun8i: a83t: Add display pipeline

2017-10-17 Thread Maxime Ripard
The display pipeline on the A83T is mainly composed of the mixers and TCONs, plus various encoders. Let's add the mixers and TCONs to the DTSI. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a83t.dtsi | 80 - 1 file changed, 80 insertions(+) diff --git

[PATCH 05/23] drm/sun4i: tcon: Don't rely on encoders to enable the TCON

2017-10-17 Thread Maxime Ripard
So far, we've required all the TCON-connected encoders to call the TCON enable and disable functions. This was made this way because in the RGB/LVDS case, the TCON is the CRTC and the encoder. However, in all the other cases (HDMI, TV, DSI, etc.), we have another encoder down the road that needs t

Re: [PATCH 4/4] char/snsc: Delete unnecessary braces in five functions

2017-10-17 Thread SF Markus Elfring
>> /* ...or if we want to block, then do so here */ >> -if (down_interruptible(&sd->sd_wbs)) { >> +if (down_interruptible(&sd->sd_wbs)) >> /* something went wrong with wait */ >> return -ERESTARTSYS; >> -} >>

[PATCH 13/23] drm/sun4i: Reorder and document DE2 mixer registers

2017-10-17 Thread Maxime Ripard
Some registers values have been hardcoded so far, or were not as descriptive as supposed to, because of missing information. The various BSP that poped up since have given us more details, some hopefully we can be more explicit about things. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i

[PATCH 15/23] drm/sun4i: Add LVDS support

2017-10-17 Thread Maxime Ripard
The TCON supports the LVDS interface to output to a panel or a bridge. Let's add support for it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/Makefile | 1 +- drivers/gpu/drm/sun4i/sun4i_lvds.c | 183 - drivers/gpu/drm/sun4i/sun4i_lvds.h | 18 +++- dr

[PATCH 12/23] drm/sun4i: sun8i: properly support UI channels

2017-10-17 Thread Maxime Ripard
The current code has the wrong macro to get the registers offsets of the UI-registers, with an off-by-0x1000 error. It works so far by accident, since the UI channel used everywhere else is the number of VI planes, which has always been 1 so far, and the offset between two UI channels is 0x1000.

[PATCH 02/23] drm/sun4i: Realign Makefile padding and reorder it

2017-10-17 Thread Maxime Ripard
Some options were not padded as they should, and the order in the Makefile was chaotic. Fix that. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/Makefile | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/sun4i/Makefile b/dr

[PATCH 10/23] clk: sunxi-ng: Add A83T display clocks

2017-10-17 Thread Maxime Ripard
Unfortunately, the A83t display clocks are not children of the de clock, since that clocks doesn't exist at all on the A83t. For now, they are orphans, so let's move them to their true, existing, parent. Fixes: 763c5bd045b1 ("clk: sunxi-ng: add support for DE2 CCU") Signed-off-by: Maxime Ripard

[PATCH 09/23] drm/panel: lvds: Add support for the power-supply property

2017-10-17 Thread Maxime Ripard
A significant number of panels need to power up a regulator in order to operate properly. Add support for the power-supply property to enable and disable such a regulator whenever needed. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/panel/panel-lvds.c | 23 +++ 1 file cha

[PATCH 08/23] dt-bindings: panel: lvds: Document power-supply property

2017-10-17 Thread Maxime Ripard
The power-supply property is used be a vast majority of panels, including panel-simple. Let's document it as a common property Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/panel/panel-common.txt | 6 ++ Documentation/devicetree/bindings/display/panel/panel-lvds.

[PATCH 11/23] drm/sun4i: Rename layers to UI planes

2017-10-17 Thread Maxime Ripard
The currently supported planes for DE2 are actually only UI planes, and the VI planes will differ both in terms of code and features. It will make sense to support them in a separate file, so let's make sure we don't create a confusing file name. Signed-off-by: Maxime Ripard --- drivers/gpu/drm

[PATCH 03/23] drm/sun4i: tcon: Make tcon_set_mux mode argument const

2017-10-17 Thread Maxime Ripard
The drm_display_mode pointer can be mark const, so let's do it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 6 +++--- drivers/gpu/drm/sun4i/sun4i_tcon.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/

[PATCH 06/23] drm/sun4i: tcon: Don't rely on encoders to set the TCON mode

2017-10-17 Thread Maxime Ripard
Just like we did for the TCON enable and disable, for historical reasons we used to rely on the encoders calling the TCON mode_set function, while the CRTC has a callback for that. Let's implement it in order to reduce the boilerplate code. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i

Re: [PATCH 02/23] drm/sun4i: Realign Makefile padding and reorder it

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > Some options were not padded as they should, and the order in the Makefile > was chaotic. Fix that. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/sun4i/Makefile | 28 ++-- > 1 file changed, 14 insertions(+

[PATCH 04/23] drm/sun4i: tcon: Make tcon_get_clk_delay mode argument const

2017-10-17 Thread Maxime Ripard
The drm_display_mode pointer can be mark const, so let's do it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c index 54e1796d2953..9b5

[PATCH 07/23] drm/sun4i: tcon: Move out the tcon0 common setup

2017-10-17 Thread Maxime Ripard
Some channel0 setup has to be done, no matter what the output interface is (RGB, CPU, LVDS). Move that code into a common function in order to avoid duplication. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 26 -- 1 file changed, 16 insertions(+),

Re: about pca955x led driver gpio management

2017-10-17 Thread Andrea Scian - DAVE Embedded Systems
On 10/17/2017 10:20 AM, Andrea Scian - DAVE Embedded Systems wrote: Il 17/10/2017 10:18, Cédric Le Goater ha scritto: On 10/17/2017 09:36 AM, Andrea Scian - DAVE Embedded Systems wrote: Dear all, I'm working on an iMX6 based board with a PCA9555 which is used both to drive LEDs and manage

[PATCHv3 08/12] ARM: dts: imx6-tx6: add support for I2C bus recovery

2017-10-17 Thread Lothar Waßmann
Define the required properties to enable I2C bus recovery supported by the I2C subsystem. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/arch/

Re: [PATCH 01/23] drm/sun4i: Implement endpoint parsing using kfifo

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > The commit da82b8785eeb ("drm/sun4i: add components in breadth first > traversal order") implemented a breadth first traversal of our device tree > nodes graph. However, it was relying on the kernel linked lists, and those > are not really sa

[PATCHv3 09/12] ARM: dts: imx6-tx6: move display configuration to .dtsi file

2017-10-17 Thread Lothar Waßmann
Currently the display (LCD or LVDS) configuration is duplicated with slight variations in each TX6 module specific file. Move it to an include file for simplification and consistency. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts| 74 +-- arch/arm/boot/dts

[PATCHv3 12/12] ARM: dts: imx: add support for TX6 modules on MB7 baseboard

2017-10-17 Thread Lothar Waßmann
Create .dts files for various Ka-Ro electronics TX modules on the MB7 baseboard. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/Makefile | 8 arch/arm/boot/dts/imx6dl-tx6s-8034-mb7.dts | 48 arch/arm/boot/dts/imx6dl-tx6s-8035-mb7.dts | 48 ++

[PATCHv3 00/12] ARM: dts: imx6: Update dts files for the Ka-Ro TX6 module series

2017-10-17 Thread Lothar Waßmann
Please ignore the V2 series. I accidentally sent the patches from a wrong directory. This patchset updates the dts files for the Ka-Ro electronics GmbH TX6 module series and adds some include files to facilitate supporting various SoM/baseboard combinations. Changes vs. v2: - resent the correct p

[PATCHv3 03/12] ARM: dts: imx6-tx6: remove obsolete ipu1 alias

2017-10-17 Thread Lothar Waßmann
The 'ipu1' alias is already defined in imx6q.dtsi. There is no need to redefine it here. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts b/arch/arm/boot/dts/imx6q-tx6q-11x0-m

Re: [PATCH 03/23] drm/sun4i: tcon: Make tcon_set_mux mode argument const

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > The drm_display_mode pointer can be mark const, so let's do it. > > Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai

[PATCHv3 04/12] ARM: dts: imx6-tx6: add trickle-charge config for DS1339

2017-10-17 Thread Lothar Waßmann
As the DS1339 driver now supports enabling the trickle charge feature via DTB, add the appropriate properties to utilize this feature. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/

[PATCHv3 06/12] ARM: dts: imx6-tx6: specify ethernet phy reset post-delay

2017-10-17 Thread Lothar Waßmann
Under certain circumstances the ethernet PHY cannot be detected on Ka-Ro electronics TX6 modules. Using a phy-reset-post-delay of at least 2ms alleviates this problem. Define it to 10ms to be on the safe side. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 1 + 1 file cha

Re: [PATCH 04/23] drm/sun4i: tcon: Make tcon_get_clk_delay mode argument const

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > The drm_display_mode pointer can be mark const, so let's do it. > > Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai

[PATCHv3 07/12] ARM: dts: imx6-tx6: convert to using simple-audio-card

2017-10-17 Thread Lothar Waßmann
Convert the DTS sound setup to use the simple-audio-card driver. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 50 -- 1 file changed, 42 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/arch/arm/boot/dt

[PATCHv3 01/12] ARM: dts: imx6-tx6: update model property to match current module HW revision

2017-10-17 Thread Lothar Waßmann
The current TX6Q module HW revision is 3 reflected in the module name suffix '-1030' (-1130 for LVDS). Change the model string to prevent confusion about what DTS file to use for these modules. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6q-tx6q-1010.dts | 4 ++-- arch/arm/boot/dts/im

[PATCHv3 11/12] ARM: dts: imx: add support for TX6QP

2017-10-17 Thread Lothar Waßmann
The TX6QP-8037 is a Computer On Module manufactured by Ka-Ro electronics GmbH with the following characteristics: ProcessorFreescale i.MX 6QuadPlus MCIMX6QP7, 1 GHz RAM 1GiB 64-bit DDR3 SDRAM ROM 4GB HiRel eMMC Power supply Single 3.3 to 5V Size 26mm SO-DIM

Re: [bug report & help] arm64: ltp testcase "migrate_pages01" failed

2017-10-17 Thread Will Deacon
On Tue, Oct 17, 2017 at 10:58:53AM +0800, Tan Xiaojun wrote: > I'm not sure if this is the problem on arm64 numa. What do you think ? > By the way, this testcase can be successful in any case on x86. To be honest, this isn't a particularly helpful bug report. I appreciate that a test is reporting

Re: A issue about ptrace/SINGLESTEP on arm64

2017-10-17 Thread Will Deacon
On Tue, Oct 17, 2017 at 10:04:00AM +0800, chengjian (D) wrote: > On 2017/10/16 23:30, Will Deacon wrote: > >Can you jump the PC once the child appears to be "stuck"? > > > >IIRC, GDB has special heuristics to step through LDXR/STXR critical > >sections. > The function can be returned, But the numbe

Re: [PATCH 1/2] mm, thp: introduce dedicated transparent huge page allocation interfaces

2017-10-17 Thread Du, Changbin
Hi Khandual, Thanks for your review. On Tue, Oct 17, 2017 at 01:38:07PM +0530, Anshuman Khandual wrote: > On 10/16/2017 02:49 PM, changbin...@intel.com wrote: > > From: Changbin Du > > > > This patch introduced 4 new interfaces to allocate a prepared > > transparent huge page. > > - alloc_tran

[PATCHv3 10/12] ARM: dts: imx6-tx6: add a .dtsi file for the MB7 baseboard

2017-10-17 Thread Lothar Waßmann
Move the MB7 specific settings to a separate .dtsi file to facilitate supporting more module variants with this baseboard. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts | 9 +-- arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts | 42 + arch/arm/boot/dts/imx6q

[PATCHv3 05/12] ARM: dts: imx6-tx6: improve ethernet related pinctrl setup

2017-10-17 Thread Lothar Waßmann
Remove the PHY INT and RESET pins from hog section and put them into their own pinctrl nodes referenced by the appropriate driver nodes. Also, the MDIO pins are required for probing the Ethernet PHY, so they must be configured by the FEC driver, not by the PHY driver. Move the corresponding pinctrl

[PATCHv3 02/12] ARM: dts: imx6-tx6: remove obsolete eeti,egalax_ts

2017-10-17 Thread Lothar Waßmann
The display, that incorporates this touchpanel is obsolete and won't be supported any more. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6dl-tx6u-811x.dts | 23 +-- arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts | 22 +- arch/arm/boot/dts/imx6q-t

Re: [PATCH 2/2] mm: rename page dtor functions to {compound,huge,transhuge}_page__dtor

2017-10-17 Thread Du, Changbin
Hi Khandual, > > long freed); > > bool isolate_huge_page(struct page *page, struct list_head *list); > > void putback_active_hugepage(struct page *page); > > -void free_huge_page(struct page *page); > > +void huge_page_dtor(struct page *page); > > void

Re: [PATCH] staging/comedi: Convert timers to use timer_setup()

2017-10-17 Thread Ian Abbott
On 17/10/17 00:25, Kees Cook wrote: In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Adds pointer back to comedi device from private struct. Cc: Ian Abbott

Re: ARM64: Regression with commit e3067861ba66 ("arm64: add basic VMAP_STACK support")

2017-10-17 Thread Mark Rutland
On Tue, Oct 17, 2017 at 08:30:54AM +0800, Leo Yan wrote: > On Mon, Oct 16, 2017 at 03:35:46PM +0100, Robin Murphy wrote: > > On 16/10/17 15:26, Mark Rutland wrote: > > > On Mon, Oct 16, 2017 at 03:12:45PM +0100, Robin Murphy wrote: > > >> On 16/10/17 14:48, Mark Rutland wrote: > > >>> On Mon, Oct 1

Re: [PATCH 05/23] drm/sun4i: tcon: Don't rely on encoders to enable the TCON

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > So far, we've required all the TCON-connected encoders to call the TCON > enable and disable functions. > > This was made this way because in the RGB/LVDS case, the TCON is the CRTC > and the encoder. However, in all the other cases (HDMI, TV

Re: [PATCH 0/4] char-TPM: Adjustments for ten function implementations

2017-10-17 Thread SF Markus Elfring
> Fixes is only for bug fixes. These don't fix any bugs. How do you distinguish these in questionable source code from other error categories or software weaknesses? Regards, Markus

Re: ARM64: Regression with commit e3067861ba66 ("arm64: add basic VMAP_STACK support")

2017-10-17 Thread Ard Biesheuvel
On 17 October 2017 at 10:29, Mark Rutland wrote: > On Tue, Oct 17, 2017 at 08:30:54AM +0800, Leo Yan wrote: >> On Mon, Oct 16, 2017 at 03:35:46PM +0100, Robin Murphy wrote: >> > On 16/10/17 15:26, Mark Rutland wrote: >> > > On Mon, Oct 16, 2017 at 03:12:45PM +0100, Robin Murphy wrote: >> > >> On 1

[PATCH v2 1/5] f2fs: trace f2fs_lookup

2017-10-17 Thread Chao Yu
This patch adds trace for f2fs_lookup. Signed-off-by: Chao Yu --- v2: - fix warning reported by 0-day project. - report error of d_splice_alias in trace_f2fs_lookup_end. fs/f2fs/namei.c | 49 +-- include/trace/events/f2fs.h | 56 +++

Re: [PATCH v9 13/29] x86/insn-eval: Add utility functions to get segment selector

2017-10-17 Thread Borislav Petkov
On Fri, Oct 13, 2017 at 11:43:43AM -0700, Ricardo Neri wrote: > I think it does now. This is a modification of your second proposal (I hope > text > does not wrap): Instead of hoping that it doesn't wrap, please fix your mail client. For that, generate a diff and send it to yourself and try apply

Re: [PATCH V7 4/6] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-17 Thread Ming Lei
On Tue, Oct 17, 2017 at 08:38:01AM +0200, Hannes Reinecke wrote: > On 10/17/2017 03:29 AM, Ming Lei wrote: > > On Mon, Oct 16, 2017 at 01:30:09PM +0200, Hannes Reinecke wrote: > >> On 10/13/2017 07:29 PM, Ming Lei wrote: > >>> On Fri, Oct 13, 2017 at 05:08:52PM +, Bart Van Assche wrote: >

Re: ARM64: Regression with commit e3067861ba66 ("arm64: add basic VMAP_STACK support")

2017-10-17 Thread Leo Yan
On Tue, Oct 17, 2017 at 10:32:21AM +0100, Ard Biesheuvel wrote: [...] > > AFAICT, erratum 836870 results in livelock rather than memory > > corruption, so I think we can ignore that. > > > > I'm a little worried by erratum 843419. The VMAP_STACK patches changed > > {adr,ldr}_this_cpu (and some us

Re: about pca955x led driver gpio management

2017-10-17 Thread Cédric Le Goater
On 10/17/2017 09:36 AM, Andrea Scian - DAVE Embedded Systems wrote: > Dear all, > > I'm working on an iMX6 based board with a PCA9555 which is used both to drive > LEDs and manage some GPIOs. The PCA9555 chip and the PCA955[0-3] chips have different control registers. You need a different led d

[PATCH v2 0/4] rtc: mediatek: add support for SoC based RTC on MT7622

2017-10-17 Thread sean.wang
From: Sean Wang Changes since v1: - Rename to rtc-mt7622.c from rtc-mediatek.c - Use [readl,writel]_relaxed instead of __raw_* version - Remove redundant register reading in mtk_rtc_get_alarm_or_time() - Stop alarm when alarm is really expired in mtk_rtc_alarmirq() - Extend the maximum year the R

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