[PATCH] perf map: remove extra indirection from map__find()

2018-11-23 Thread Eric Saint-Etienne
A double pointer is used in map__find() where a single pointer is enough because the function doesn't affect the rbtree and the rbtree is locked. Signed-off-by: Eric Saint-Etienne --- tools/perf/util/map.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git

[PATCH] perf map: remove extra indirection from map__find()

2018-11-23 Thread Eric Saint-Etienne
A double pointer is used in map__find() where a single pointer is enough because the function doesn't affect the rbtree and the rbtree is locked. Signed-off-by: Eric Saint-Etienne --- tools/perf/util/map.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git

Re: Sleeping in user_access section

2018-11-23 Thread Julien Thierry
On 23/11/18 09:57, h...@zytor.com wrote: On November 23, 2018 1:27:02 AM PST, Julien Thierry wrote: Hi, I made an attempt at implementing the user_access_begin()/user_access_end() macros along with the get/put_user_unsafe() for arm64 by toggling the status of PAN (more or less similar to

Re: Sleeping in user_access section

2018-11-23 Thread Julien Thierry
On 23/11/18 09:57, h...@zytor.com wrote: On November 23, 2018 1:27:02 AM PST, Julien Thierry wrote: Hi, I made an attempt at implementing the user_access_begin()/user_access_end() macros along with the get/put_user_unsafe() for arm64 by toggling the status of PAN (more or less similar to

[PATCH 3/3] dt-bindings: rtc: sd3078: add device tree documentation

2018-11-23 Thread zoro
The devicetree documentation for the SD3078 device tree binding is added with a short example. Signed-off-by: zoro --- .../devicetree/bindings/rtc/rtc-sd3078.txt | 13 + 1 file changed, 13 insertions(+) create mode 100644

[PATCH 3/3] dt-bindings: rtc: sd3078: add device tree documentation

2018-11-23 Thread zoro
The devicetree documentation for the SD3078 device tree binding is added with a short example. Signed-off-by: zoro --- .../devicetree/bindings/rtc/rtc-sd3078.txt | 13 + 1 file changed, 13 insertions(+) create mode 100644

[PATCH 1/3] dt-bindings: define vendor prefix for whwave, Inc.

2018-11-23 Thread zoro
Introduce vendor prefix for whwave, Inc. for SD3078 rtc device. Signed-off-by: zoro --- .../devicetree/bindings/vendor-prefixes.txt|1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt

[PATCH 2/3] rtc: sd3078: new driver.

2018-11-23 Thread zoro
The sd3078 is a combination RTC and SRAM device with I2C interface. Signed-off-by: zoro --- MAINTAINERS |6 ++ drivers/rtc/Kconfig |9 ++ drivers/rtc/Makefile |1 + drivers/rtc/rtc-sd3078.c | 232 ++ 4 files changed,

[PATCH 1/3] dt-bindings: define vendor prefix for whwave, Inc.

2018-11-23 Thread zoro
Introduce vendor prefix for whwave, Inc. for SD3078 rtc device. Signed-off-by: zoro --- .../devicetree/bindings/vendor-prefixes.txt|1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt

[PATCH 2/3] rtc: sd3078: new driver.

2018-11-23 Thread zoro
The sd3078 is a combination RTC and SRAM device with I2C interface. Signed-off-by: zoro --- MAINTAINERS |6 ++ drivers/rtc/Kconfig |9 ++ drivers/rtc/Makefile |1 + drivers/rtc/rtc-sd3078.c | 232 ++ 4 files changed,

RE: [PATCH] x86: only use ERMS for user copies for larger sizes

2018-11-23 Thread David Laight
From: David Laight > Sent: 23 November 2018 09:35 > From: Linus Torvalds > > Sent: 22 November 2018 18:58 > ... > > Oh, and I just noticed that on x86 we expressly use our old "safe and > > sane" functions: see __inline_memcpy(), and its use in > > __memcpy_{from,to}io(). > > > > So the "falls

RE: [PATCH] x86: only use ERMS for user copies for larger sizes

2018-11-23 Thread David Laight
From: David Laight > Sent: 23 November 2018 09:35 > From: Linus Torvalds > > Sent: 22 November 2018 18:58 > ... > > Oh, and I just noticed that on x86 we expressly use our old "safe and > > sane" functions: see __inline_memcpy(), and its use in > > __memcpy_{from,to}io(). > > > > So the "falls

[GIT PULL] ACPI fix for v4.20-rc4

2018-11-23 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.20-rc4 with top-most commit 2bbb5fa37475d7aa5fa62f34db1623f3da2dfdfa ACPI / platform: Add SMB0001 HID to forbidden_id_list on top of commit 9ff01193a20d391e8dbce4403dd5ef87c7eaaca6

[GIT PULL] ACPI fix for v4.20-rc4

2018-11-23 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.20-rc4 with top-most commit 2bbb5fa37475d7aa5fa62f34db1623f3da2dfdfa ACPI / platform: Add SMB0001 HID to forbidden_id_list on top of commit 9ff01193a20d391e8dbce4403dd5ef87c7eaaca6

[GIT PULL] Power management fixes for v4.20-rc4

2018-11-23 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.20-rc4 with top-most commit 1d50088ca3956e5dcd2751a658e7869b9af10bb4 Merge branches 'pm-cpufreq' and 'pm-sleep' on top of commit 9ff01193a20d391e8dbce4403dd5ef87c7eaaca6 Linux

[GIT PULL] Power management fixes for v4.20-rc4

2018-11-23 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.20-rc4 with top-most commit 1d50088ca3956e5dcd2751a658e7869b9af10bb4 Merge branches 'pm-cpufreq' and 'pm-sleep' on top of commit 9ff01193a20d391e8dbce4403dd5ef87c7eaaca6 Linux

Re: [PATCH V2 2/2] base/drivers/arch_topology: Default dmips-mhz if they are not set in DT

2018-11-23 Thread Viresh Kumar
On 22-11-18, 13:36, Daniel Lezcano wrote: > In the case of asymmetric SoC with the same micro-architecture, we > have a group of CPUs with smaller OPPs than the other group. One > example is the 96boards dragonboard 820c. There is no dmips/MHz > difference between both groups, so no need to

Re: [PATCH V2 2/2] base/drivers/arch_topology: Default dmips-mhz if they are not set in DT

2018-11-23 Thread Viresh Kumar
On 22-11-18, 13:36, Daniel Lezcano wrote: > In the case of asymmetric SoC with the same micro-architecture, we > have a group of CPUs with smaller OPPs than the other group. One > example is the 96boards dragonboard 820c. There is no dmips/MHz > difference between both groups, so no need to

Re: [PATCH 3/6] devfreq: add support for suspend/resume of a devfreq device

2018-11-23 Thread Lukasz Luba
Hi Chanwoo Choi, On 11/23/18 12:54 AM, Chanwoo Choi wrote: > Hi Lukasz, > > I add one more comment about devfreq_resume_device(). > > On 2018년 11월 22일 20:00, Lukasz Luba wrote: >> >> >> On 11/22/18 3:58 AM, Chanwoo Choi wrote: >>> On 2018년 11월 22일 03:01, Lukasz Luba wrote: The patch adds

Re: [PATCH 3/6] devfreq: add support for suspend/resume of a devfreq device

2018-11-23 Thread Lukasz Luba
Hi Chanwoo Choi, On 11/23/18 12:54 AM, Chanwoo Choi wrote: > Hi Lukasz, > > I add one more comment about devfreq_resume_device(). > > On 2018년 11월 22일 20:00, Lukasz Luba wrote: >> >> >> On 11/22/18 3:58 AM, Chanwoo Choi wrote: >>> On 2018년 11월 22일 03:01, Lukasz Luba wrote: The patch adds

RE: [PATCH] pinctrl: rzn1: Fix check for used MDIO bus

2018-11-23 Thread Phil Edworthy
Hi Geert, On 23 November 2018 09:41 Geert Uytterhoeven wrote: > Subject: Re: [PATCH] pinctrl: rzn1: Fix check for used MDIO bus > On Mon, Nov 19, 2018 at 5:18 PM Phil Edworthy wrote: > > This fixes the check for unused mdio bus setting and the following > > static checker warning: > >

RE: [PATCH] pinctrl: rzn1: Fix check for used MDIO bus

2018-11-23 Thread Phil Edworthy
Hi Geert, On 23 November 2018 09:41 Geert Uytterhoeven wrote: > Subject: Re: [PATCH] pinctrl: rzn1: Fix check for used MDIO bus > On Mon, Nov 19, 2018 at 5:18 PM Phil Edworthy wrote: > > This fixes the check for unused mdio bus setting and the following > > static checker warning: > >

[PATCH] perf symbols: Cannot disassemble some routines when debuginfo present

2018-11-23 Thread Eric Saint-Etienne
When the kernel is compiled with -ffunction-sections and perf uses the kernel debuginfo, perf fails the very first symbol lookup and ends up with an hex offset inside [kernel.vmlinux]. It's due to how perf loads the maps. Indeed only .text gets loaded by map_groups__find() into al->map.

[PATCH] perf symbols: Cannot disassemble some routines when debuginfo present

2018-11-23 Thread Eric Saint-Etienne
When the kernel is compiled with -ffunction-sections and perf uses the kernel debuginfo, perf fails the very first symbol lookup and ends up with an hex offset inside [kernel.vmlinux]. It's due to how perf loads the maps. Indeed only .text gets loaded by map_groups__find() into al->map.

[RFC PATCH] net: macb: Apply RXUBR workaround only to versions with errata

2018-11-23 Thread Harini Katakam
The interrupt handler contains a workaround for RX hang applicable to Zynq and AT91 only. Subsequent versions do not need this workaround. This workaround unecessarily reset RX whenever RX used bit read is observed, which can be often under heavy traffic.Hence introduce an errata field and a check

[RFC PATCH] net: macb: Apply RXUBR workaround only to versions with errata

2018-11-23 Thread Harini Katakam
The interrupt handler contains a workaround for RX hang applicable to Zynq and AT91 only. Subsequent versions do not need this workaround. This workaround unecessarily reset RX whenever RX used bit read is observed, which can be often under heavy traffic.Hence introduce an errata field and a check

Re: [PATCH 4.14 00/21] 4.14.83-stable review

2018-11-23 Thread Jon Hunter
On 21/11/2018 19:06, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.83 release. > There are 21 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 4.14 00/21] 4.14.83-stable review

2018-11-23 Thread Jon Hunter
On 21/11/2018 19:06, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.83 release. > There are 21 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 2/6] devfreq: refactor set_target frequency function

2018-11-23 Thread Lukasz Luba
Hi Chanwoo Choi, On 11/23/18 12:45 AM, Chanwoo Choi wrote: > Hi Lukasz, > > On 2018년 11월 22일 19:40, Lukasz Luba wrote: >> Hi Chanwoo Choi >> >> On 11/22/18 3:52 AM, Chanwoo Choi wrote: >>> On 2018년 11월 22일 03:01, Lukasz Luba wrote: The refactoring is needed for the new client in devfreq:

Re: [PATCH 2/6] devfreq: refactor set_target frequency function

2018-11-23 Thread Lukasz Luba
Hi Chanwoo Choi, On 11/23/18 12:45 AM, Chanwoo Choi wrote: > Hi Lukasz, > > On 2018년 11월 22일 19:40, Lukasz Luba wrote: >> Hi Chanwoo Choi >> >> On 11/22/18 3:52 AM, Chanwoo Choi wrote: >>> On 2018년 11월 22일 03:01, Lukasz Luba wrote: The refactoring is needed for the new client in devfreq:

Re: Sleeping in user_access section

2018-11-23 Thread hpa
On November 23, 2018 1:27:02 AM PST, Julien Thierry wrote: >Hi, > >I made an attempt at implementing the >user_access_begin()/user_access_end() macros along with the >get/put_user_unsafe() for arm64 by toggling the status of PAN (more or >less similar to x86's STAC/CTAC). > >With a small

Re: Sleeping in user_access section

2018-11-23 Thread hpa
On November 23, 2018 1:27:02 AM PST, Julien Thierry wrote: >Hi, > >I made an attempt at implementing the >user_access_begin()/user_access_end() macros along with the >get/put_user_unsafe() for arm64 by toggling the status of PAN (more or >less similar to x86's STAC/CTAC). > >With a small

Re: [PATCH] procfs: fix the output format in /proc/PID/wchan

2018-11-23 Thread Yafang Shao
On Thu, Nov 22, 2018 at 9:38 PM Alexey Dobriyan wrote: > > On Thu, Nov 22, 2018 at 09:29:52PM +0800, Yafang Shao wrote: > > On Thu, Nov 22, 2018 at 7:40 PM Alexey Dobriyan wrote: > > > > > > On Wed, Nov 21, 2018 at 07:28:44PM -0800, Andrew Morton wrote: > > > > On Mon, 19 Nov 2018 19:17:52 +0800

Re: [PATCH] procfs: fix the output format in /proc/PID/wchan

2018-11-23 Thread Yafang Shao
On Thu, Nov 22, 2018 at 9:38 PM Alexey Dobriyan wrote: > > On Thu, Nov 22, 2018 at 09:29:52PM +0800, Yafang Shao wrote: > > On Thu, Nov 22, 2018 at 7:40 PM Alexey Dobriyan wrote: > > > > > > On Wed, Nov 21, 2018 at 07:28:44PM -0800, Andrew Morton wrote: > > > > On Mon, 19 Nov 2018 19:17:52 +0800

Re: [PATCH 4.9 00/59] 4.9.139-stable review

2018-11-23 Thread Jon Hunter
On 21/11/2018 19:06, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.139 release. > There are 59 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 4.9 00/59] 4.9.139-stable review

2018-11-23 Thread Jon Hunter
On 21/11/2018 19:06, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.139 release. > There are 59 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 1/4] OPP: Add dev_pm_opp_xlate_performance_state() helper

2018-11-23 Thread Viresh Kumar
On 23-11-18, 14:41, Viresh Kumar wrote: > On 22-11-18, 11:38, Viresh Kumar wrote: > > So there are few complexities in the case where an OPP table points to > > itself in > > the required-opp field. I looked at solving it up in the opp core but that > > gets > > more and more messy. > > > > Now

Re: [PATCH 1/4] OPP: Add dev_pm_opp_xlate_performance_state() helper

2018-11-23 Thread Viresh Kumar
On 23-11-18, 14:41, Viresh Kumar wrote: > On 22-11-18, 11:38, Viresh Kumar wrote: > > So there are few complexities in the case where an OPP table points to > > itself in > > the required-opp field. I looked at solving it up in the opp core but that > > gets > > more and more messy. > > > > Now

Re: [PATCH v4 2/2] phy: qualcomm: Add Synopsys High-Speed USB PHY driver

2018-11-23 Thread Kishon Vijay Abraham I
Hi, On 19/11/18 4:38 PM, Shawn Guo wrote: > It adds Synopsys 28nm Femto High-Speed USB PHY driver support, which > is usually paired with Synopsys DWC3 USB controllers on Qualcomm SoCs. > > Signed-off-by: Shawn Guo > --- > drivers/phy/qualcomm/Kconfig | 10 + >

Re: [PATCH v4 2/2] phy: qualcomm: Add Synopsys High-Speed USB PHY driver

2018-11-23 Thread Kishon Vijay Abraham I
Hi, On 19/11/18 4:38 PM, Shawn Guo wrote: > It adds Synopsys 28nm Femto High-Speed USB PHY driver support, which > is usually paired with Synopsys DWC3 USB controllers on Qualcomm SoCs. > > Signed-off-by: Shawn Guo > --- > drivers/phy/qualcomm/Kconfig | 10 + >

Re: [PATCH v2] kmemleak: Turn kmemleak_lock to raw spinlock on RT

2018-11-23 Thread Sebastian Andrzej Siewior
On 2018-11-22 17:04:19 [+0800], zhe...@windriver.com wrote: > From: He Zhe > > kmemleak_lock, as a rwlock on RT, can possibly be held in atomic context and > causes the follow BUG. > > BUG: scheduling while atomic: migration/15/132/0x0002 … > Preemption disabled at: > []

Re: [PATCH v2] kmemleak: Turn kmemleak_lock to raw spinlock on RT

2018-11-23 Thread Sebastian Andrzej Siewior
On 2018-11-22 17:04:19 [+0800], zhe...@windriver.com wrote: > From: He Zhe > > kmemleak_lock, as a rwlock on RT, can possibly be held in atomic context and > causes the follow BUG. > > BUG: scheduling while atomic: migration/15/132/0x0002 … > Preemption disabled at: > []

[PATCH 3/3] ARM: dts: Add g3d bus nodes using VDD_INT for Exynos542x SoC

2018-11-23 Thread Anand Moon
Add missing Netwwork on chip for g3d bus node using VDD_INI for Exynos542x SoC. - CLK_DOUT_ACLK_G3D for G3D's AXI Cc: Chanwoo Choi Signed-off-by: Anand Moon --- arch/arm/boot/dts/exynos5420.dtsi | 57 +-- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 5 ++ 2

[PATCH 2/3] clk: samsung: exynos5420: Add CLK_SET_RATE_PARENT flag to mout_sclk_vpll

2018-11-23 Thread Anand Moon
This allows changing the VPLL output frequency through the g3d subsystem clock tree leaf clocks. Cc: Andrzej Hajda Cc: Chanwoo Choi Signed-off-by: Anand Moon --- drivers/clk/samsung/clk-exynos5420.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 1/3] clk: samsung: exynos5420: add VPLL rate table for g3d clock

2018-11-23 Thread Anand Moon
From: Marian Mihailescu A specific clock rate table is added for VPLL so it is possible to set frequency of the VPLL output clock that used by the g3d clock. Cc: Andrzej Hajda Cc: Chanwoo Choi Signed-off-by: Marian Mihailescu Signed-off-by: Anand Moon ---

[PATCH 3/3] ARM: dts: Add g3d bus nodes using VDD_INT for Exynos542x SoC

2018-11-23 Thread Anand Moon
Add missing Netwwork on chip for g3d bus node using VDD_INI for Exynos542x SoC. - CLK_DOUT_ACLK_G3D for G3D's AXI Cc: Chanwoo Choi Signed-off-by: Anand Moon --- arch/arm/boot/dts/exynos5420.dtsi | 57 +-- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 5 ++ 2

[PATCH 2/3] clk: samsung: exynos5420: Add CLK_SET_RATE_PARENT flag to mout_sclk_vpll

2018-11-23 Thread Anand Moon
This allows changing the VPLL output frequency through the g3d subsystem clock tree leaf clocks. Cc: Andrzej Hajda Cc: Chanwoo Choi Signed-off-by: Anand Moon --- drivers/clk/samsung/clk-exynos5420.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 1/3] clk: samsung: exynos5420: add VPLL rate table for g3d clock

2018-11-23 Thread Anand Moon
From: Marian Mihailescu A specific clock rate table is added for VPLL so it is possible to set frequency of the VPLL output clock that used by the g3d clock. Cc: Andrzej Hajda Cc: Chanwoo Choi Signed-off-by: Marian Mihailescu Signed-off-by: Anand Moon ---

Re: [PATCH] mtd: spi-nor: fix erase_type array to indicate current map conf

2018-11-23 Thread Sverdlin, Alexander (Nokia - DE/Ulm)
Hello Tudor, On 22/11/2018 13:36, tudor.amba...@microchip.com wrote: > From: Tudor Ambarus > > Bug reported for the out-of-tree S25FS128S flash memory. > > BFPT table advertises all the erase types supported by all the > possible map configurations. Update the erase_type array to indicate >

Re: [PATCH] mtd: spi-nor: fix erase_type array to indicate current map conf

2018-11-23 Thread Sverdlin, Alexander (Nokia - DE/Ulm)
Hello Tudor, On 22/11/2018 13:36, tudor.amba...@microchip.com wrote: > From: Tudor Ambarus > > Bug reported for the out-of-tree S25FS128S flash memory. > > BFPT table advertises all the erase types supported by all the > possible map configurations. Update the erase_type array to indicate >

Re: [PATCH 11/17] soc: ti: pruss: add pruss_get()/put() API

2018-11-23 Thread Roger Quadros
te to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Roger-Quadros/Add-support-for-TI-PRU-ICSS/20181123-083903 > base: > https://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone.git > next > config: arm-allmodconfig (attac

Re: [PATCH 11/17] soc: ti: pruss: add pruss_get()/put() API

2018-11-23 Thread Roger Quadros
te to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Roger-Quadros/Add-support-for-TI-PRU-ICSS/20181123-083903 > base: > https://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone.git > next > config: arm-allmodconfig (attac

Re: [PATCH 3/3] gpio: Add reference counting for non-exclusive GPIOs

2018-11-23 Thread Linus Walleij
On Thu, Nov 22, 2018 at 6:30 PM Charles Keepax wrote: > Currently, a GPIO can be requested multiple times when the > NONEXCLUSIVE flag is set, however it must still be freed a single > time. This makes client code rather complex, since multiple drivers > may request the GPIO but only a single

Re: [PATCH] pinctrl: rzn1: Fix check for used MDIO bus

2018-11-23 Thread Geert Uytterhoeven
Hi Phil, Thanks for your patch! On Mon, Nov 19, 2018 at 5:18 PM Phil Edworthy wrote: > This fixes the check for unused mdio bus setting and the following static > checker warning: > drivers/pinctrl/pinctrl-rzn1.c:198 rzn1_pinctrl_mdio_select() > warn: always true condition

Re: [PATCH 3/3] gpio: Add reference counting for non-exclusive GPIOs

2018-11-23 Thread Linus Walleij
On Thu, Nov 22, 2018 at 6:30 PM Charles Keepax wrote: > Currently, a GPIO can be requested multiple times when the > NONEXCLUSIVE flag is set, however it must still be freed a single > time. This makes client code rather complex, since multiple drivers > may request the GPIO but only a single

Re: [PATCH] pinctrl: rzn1: Fix check for used MDIO bus

2018-11-23 Thread Geert Uytterhoeven
Hi Phil, Thanks for your patch! On Mon, Nov 19, 2018 at 5:18 PM Phil Edworthy wrote: > This fixes the check for unused mdio bus setting and the following static > checker warning: > drivers/pinctrl/pinctrl-rzn1.c:198 rzn1_pinctrl_mdio_select() > warn: always true condition

Re: [PATCH 11/17] soc: ti: pruss: add pruss_get()/put() API

2018-11-23 Thread Roger Quadros
On 23/11/18 10:20, Arnd Bergmann wrote: > On Thu, Nov 22, 2018 at 12:41 PM Roger Quadros wrote: > >> + >> + if (IS_ERR_OR_NULL(rproc)) >> + return ERR_PTR(-EINVAL); > > > Any usage of IS_ERR_OR_NULL() tends to be an indication of a badly > designed API. Please change this

Re: [PATCH 11/17] soc: ti: pruss: add pruss_get()/put() API

2018-11-23 Thread Roger Quadros
On 23/11/18 10:20, Arnd Bergmann wrote: > On Thu, Nov 22, 2018 at 12:41 PM Roger Quadros wrote: > >> + >> + if (IS_ERR_OR_NULL(rproc)) >> + return ERR_PTR(-EINVAL); > > > Any usage of IS_ERR_OR_NULL() tends to be an indication of a badly > designed API. Please change this

[PATCH v3] pwm: kconfig: enable kona pwm to be built for cygnus arch

2018-11-23 Thread Clément Péron
The Cygnus architecture use a Kona PWM. This is already present in the device tree but can't be built actually. Hence, allow the Kona PWM to be built for Cygnus arch. Signed-off-by: Clément Péron Reviewed-by: Florian Fainelli Reviewed-by: Scott Branden Acked-by: Uwe Kleine-König ---

[PATCH v2 net] phy: Micrel KSZ8061: link failure after cable connect

2018-11-23 Thread Onnasch, Alexander (EXT)
With Micrel KSZ8061 PHY, the link may occasionally not come up after Ethernet cable connect. The vendor's (Microchip, former Micrel) errata sheet 8688A.pdf describes the problem and possible workarounds in detail, see below. The patch implements workaround 1, which permanently fixes the issue.

[PATCH v3] pwm: kconfig: enable kona pwm to be built for cygnus arch

2018-11-23 Thread Clément Péron
The Cygnus architecture use a Kona PWM. This is already present in the device tree but can't be built actually. Hence, allow the Kona PWM to be built for Cygnus arch. Signed-off-by: Clément Péron Reviewed-by: Florian Fainelli Reviewed-by: Scott Branden Acked-by: Uwe Kleine-König ---

[PATCH v2 net] phy: Micrel KSZ8061: link failure after cable connect

2018-11-23 Thread Onnasch, Alexander (EXT)
With Micrel KSZ8061 PHY, the link may occasionally not come up after Ethernet cable connect. The vendor's (Microchip, former Micrel) errata sheet 8688A.pdf describes the problem and possible workarounds in detail, see below. The patch implements workaround 1, which permanently fixes the issue.

RE: [PATCH] x86: only use ERMS for user copies for larger sizes

2018-11-23 Thread David Laight
From: Linus Torvalds > Sent: 22 November 2018 18:58 ... > Oh, and I just noticed that on x86 we expressly use our old "safe and > sane" functions: see __inline_memcpy(), and its use in > __memcpy_{from,to}io(). > > So the "falls back to memcpy" was always a red herring. We don't > actually do

RE: [PATCH] x86: only use ERMS for user copies for larger sizes

2018-11-23 Thread David Laight
From: Linus Torvalds > Sent: 22 November 2018 18:58 ... > Oh, and I just noticed that on x86 we expressly use our old "safe and > sane" functions: see __inline_memcpy(), and its use in > __memcpy_{from,to}io(). > > So the "falls back to memcpy" was always a red herring. We don't > actually do

Re: [PATCH v2] phy: mvebu-cp110-comphy: fix spelling in structure name

2018-11-23 Thread Antoine Tenart
Hi Miquel, On Fri, Nov 23, 2018 at 10:21:15AM +0100, Miquel Raynal wrote: > Rename the mvebu_comhy_conf structure to be mvebu_comphy_conf, which is > probably what the original author meant. > > Signed-off-by: Miquel Raynal Acked-by: Antoine Tenart Thanks! Antoine > --- > > Changes since

Re: [PATCH v2] phy: mvebu-cp110-comphy: fix spelling in structure name

2018-11-23 Thread Antoine Tenart
Hi Miquel, On Fri, Nov 23, 2018 at 10:21:15AM +0100, Miquel Raynal wrote: > Rename the mvebu_comhy_conf structure to be mvebu_comphy_conf, which is > probably what the original author meant. > > Signed-off-by: Miquel Raynal Acked-by: Antoine Tenart Thanks! Antoine > --- > > Changes since

[PATCH v2 08/43] drm/fourcc: Add helper to check if a format uses a YUV colorspace

2018-11-23 Thread Paul Kocialkowski
This adds a new helper to check whether the format described by its fourcc code uses a YUV colorspace, by returning the is_yuv entry for the DRM info entry matching that format. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/drm_fourcc.c | 19 +++ include/drm/drm_fourcc.h

[PATCH v2 08/43] drm/fourcc: Add helper to check if a format uses a YUV colorspace

2018-11-23 Thread Paul Kocialkowski
This adds a new helper to check whether the format described by its fourcc code uses a YUV colorspace, by returning the is_yuv entry for the DRM info entry matching that format. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/drm_fourcc.c | 19 +++ include/drm/drm_fourcc.h

Re: [PATCH v2] pwm: kconfig: enable kona pwm to be built for cygnus arch

2018-11-23 Thread Clément Péron
Hi, On Thu, 22 Nov 2018 at 21:05, Uwe Kleine-König wrote: > > Hello Clément, > > On Wed, Nov 21, 2018 at 01:35:08PM +0100, Clément Péron wrote: > > The Cygnus architecture use a Kona PWM. This is already present > > in the device tree but can't be built actually. Hence, allow the > > Kona PWM to

[PATCH v2 00/43] drm/sun4i: Support for linear and tiled YUV formats with the frontend

2018-11-23 Thread Paul Kocialkowski
This series implements support for YUV formats using the display engine frontend in the sun4i DRM driver, with various fixes along the way. Scaling is supported for every format handled by the frontend. The tiling mode used by the VPU on Allwinner platforms is also supported by this series and a

Re: [PATCH v2] pwm: kconfig: enable kona pwm to be built for cygnus arch

2018-11-23 Thread Clément Péron
Hi, On Thu, 22 Nov 2018 at 21:05, Uwe Kleine-König wrote: > > Hello Clément, > > On Wed, Nov 21, 2018 at 01:35:08PM +0100, Clément Péron wrote: > > The Cygnus architecture use a Kona PWM. This is already present > > in the device tree but can't be built actually. Hence, allow the > > Kona PWM to

[PATCH v2 00/43] drm/sun4i: Support for linear and tiled YUV formats with the frontend

2018-11-23 Thread Paul Kocialkowski
This series implements support for YUV formats using the display engine frontend in the sun4i DRM driver, with various fixes along the way. Scaling is supported for every format handled by the frontend. The tiling mode used by the VPU on Allwinner platforms is also supported by this series and a

Re: [RESEND PATCH v17 5/5] iommu/arm-smmu: Add support for qcom,smmu-v2 variant

2018-11-23 Thread Tomasz Figa
Hi Vivek, Will, On Fri, Nov 23, 2018 at 6:13 PM Vivek Gautam wrote: > > Hi Will, > > On Wed, Nov 21, 2018 at 11:09 PM Will Deacon wrote: > > > > [+Thor] > > > > On Fri, Nov 16, 2018 at 04:54:30PM +0530, Vivek Gautam wrote: > > > qcom,smmu-v2 is an arm,smmu-v2 implementation with specific > > >

Re: [RESEND PATCH v17 5/5] iommu/arm-smmu: Add support for qcom,smmu-v2 variant

2018-11-23 Thread Tomasz Figa
Hi Vivek, Will, On Fri, Nov 23, 2018 at 6:13 PM Vivek Gautam wrote: > > Hi Will, > > On Wed, Nov 21, 2018 at 11:09 PM Will Deacon wrote: > > > > [+Thor] > > > > On Fri, Nov 16, 2018 at 04:54:30PM +0530, Vivek Gautam wrote: > > > qcom,smmu-v2 is an arm,smmu-v2 implementation with specific > > >

Sleeping in user_access section

2018-11-23 Thread Julien Thierry
Hi, I made an attempt at implementing the user_access_begin()/user_access_end() macros along with the get/put_user_unsafe() for arm64 by toggling the status of PAN (more or less similar to x86's STAC/CTAC). With a small mistake in my patch, we realized that directly calling function that

[PATCH v2 41/43] drm/sun4i: Make COEF_RDY conditional

2018-11-23 Thread Paul Kocialkowski
From: Maxime Ripard The COEF_RDY bit isn't found in all the SoCs featuring some variant of the frontend. Add it to our quirks structure. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_frontend.c | 9 + drivers/gpu/drm/sun4i/sun4i_frontend.h | 1 + 2 files changed, 6

[PATCH v2 26/43] drm/sun4i: frontend: Add support for packed YUV422 input formats

2018-11-23 Thread Paul Kocialkowski
This introduces support for packed YUV formats with 4:2:2 sampling using the frontend. Definitions are introduced for the data format and pixel sequence input format register values. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_frontend.c | 22 ++

Sleeping in user_access section

2018-11-23 Thread Julien Thierry
Hi, I made an attempt at implementing the user_access_begin()/user_access_end() macros along with the get/put_user_unsafe() for arm64 by toggling the status of PAN (more or less similar to x86's STAC/CTAC). With a small mistake in my patch, we realized that directly calling function that

[PATCH v2 41/43] drm/sun4i: Make COEF_RDY conditional

2018-11-23 Thread Paul Kocialkowski
From: Maxime Ripard The COEF_RDY bit isn't found in all the SoCs featuring some variant of the frontend. Add it to our quirks structure. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_frontend.c | 9 + drivers/gpu/drm/sun4i/sun4i_frontend.h | 1 + 2 files changed, 6

[PATCH v2 26/43] drm/sun4i: frontend: Add support for packed YUV422 input formats

2018-11-23 Thread Paul Kocialkowski
This introduces support for packed YUV formats with 4:2:2 sampling using the frontend. Definitions are introduced for the data format and pixel sequence input format register values. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_frontend.c | 22 ++

[PATCH v2 43/43] drm/sun4i: frontend: Add A20-specific device-tree compatible and quirks

2018-11-23 Thread Paul Kocialkowski
This adds the appropriate device-tree compatible and quirk data for hooking frontend support for the A20. It supports the FIR coefficients ready bit but not the access control bit. It also takes different phase values than the A33 for these coefficients. The compatible is already used in the A20

[PATCH v2 43/43] drm/sun4i: frontend: Add A20-specific device-tree compatible and quirks

2018-11-23 Thread Paul Kocialkowski
This adds the appropriate device-tree compatible and quirk data for hooking frontend support for the A20. It supports the FIR coefficients ready bit but not the access control bit. It also takes different phase values than the A33 for these coefficients. The compatible is already used in the A20

Re: [PATCH 3/3] gpio: Add reference counting for non-exclusive GPIOs

2018-11-23 Thread Marek Szyprowski
Hi Charles, On 2018-11-22 18:30, Charles Keepax wrote: > Currently, a GPIO can be requested multiple times when the > NONEXCLUSIVE flag is set, however it must still be freed a single > time. This makes client code rather complex, since multiple drivers > may request the GPIO but only a single

Re: [PATCH 3/3] gpio: Add reference counting for non-exclusive GPIOs

2018-11-23 Thread Marek Szyprowski
Hi Charles, On 2018-11-22 18:30, Charles Keepax wrote: > Currently, a GPIO can be requested multiple times when the > NONEXCLUSIVE flag is set, however it must still be freed a single > time. This makes client code rather complex, since multiple drivers > may request the GPIO but only a single

Re: [PATCH 2/3] regulator: Only free GPIOs if the core requested them

2018-11-23 Thread Marek Szyprowski
Hi Charles, On 2018-11-22 18:30, Charles Keepax wrote: > Currently, the regulator core will take ownership of any GPIO passed > into it. Makes end driver code fairly error prone as the normal devm_ > patterns of allocation don't work. Update the regulator core to only > free the GPIO if it

Re: [PATCH 2/3] regulator: Only free GPIOs if the core requested them

2018-11-23 Thread Marek Szyprowski
Hi Charles, On 2018-11-22 18:30, Charles Keepax wrote: > Currently, the regulator core will take ownership of any GPIO passed > into it. Makes end driver code fairly error prone as the normal devm_ > patterns of allocation don't work. Update the regulator core to only > free the GPIO if it

Re: [PATCH 1/3] regulator: wm8994: Revert back to using devres

2018-11-23 Thread Marek Szyprowski
Hi Charles, On 2018-11-22 18:30, Charles Keepax wrote: > This reverts commit 466affa06703 ("regulator: wm8994: Don't > use devres for enable GPIOs"). Whilst that did work around the > issue in question there are complications on the error paths of > regulator_register. In the success case clearly

Re: [PATCH 1/3] regulator: wm8994: Revert back to using devres

2018-11-23 Thread Marek Szyprowski
Hi Charles, On 2018-11-22 18:30, Charles Keepax wrote: > This reverts commit 466affa06703 ("regulator: wm8994: Don't > use devres for enable GPIOs"). Whilst that did work around the > issue in question there are complications on the error paths of > regulator_register. In the success case clearly

Re: Linux 4.9.139

2018-11-23 Thread Greg KH
On Fri, Nov 23, 2018 at 09:55:47AM +0100, Rainer Fiebig wrote: > Am Freitag, 23. November 2018, 08:47:31 schrieb Greg KH: > > I'm announcing the release of the 4.9.139 kernel. > > > > All users of the 4.9 kernel series must upgrade. > > > > The updated 4.9.y git tree can be found at: > >

Re: Linux 4.9.139

2018-11-23 Thread Greg KH
On Fri, Nov 23, 2018 at 09:55:47AM +0100, Rainer Fiebig wrote: > Am Freitag, 23. November 2018, 08:47:31 schrieb Greg KH: > > I'm announcing the release of the 4.9.139 kernel. > > > > All users of the 4.9 kernel series must upgrade. > > > > The updated 4.9.y git tree can be found at: > >

[PATCH v2] phy: mvebu-cp110-comphy: fix spelling in structure name

2018-11-23 Thread Miquel Raynal
Rename the mvebu_comhy_conf structure to be mvebu_comphy_conf, which is probably what the original author meant. Signed-off-by: Miquel Raynal --- Changes since v1 * Removed the Fixes: tag after Antoine's request. drivers/phy/marvell/phy-mvebu-cp110-comphy.c | 4 ++-- 1 file

[PATCH v2] phy: mvebu-cp110-comphy: fix spelling in structure name

2018-11-23 Thread Miquel Raynal
Rename the mvebu_comhy_conf structure to be mvebu_comphy_conf, which is probably what the original author meant. Signed-off-by: Miquel Raynal --- Changes since v1 * Removed the Fixes: tag after Antoine's request. drivers/phy/marvell/phy-mvebu-cp110-comphy.c | 4 ++-- 1 file

Re: [PATCH v5 6/8] mfd: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-11-23 Thread Charles Keepax
On Fri, Nov 23, 2018 at 05:00:57PM +0800, kbuild test robot wrote: > Hi Charles, > > I love your patch! Yet something to improve: > > [auto build test ERROR on ljones-mfd/for-mfd-next] > [also build test ERROR on v4.20-rc3] > [cannot apply to next-20181122] > [if your patch is applied to the

Re: [PATCH v5 6/8] mfd: lochnagar: Add support for the Cirrus Logic Lochnagar

2018-11-23 Thread Charles Keepax
On Fri, Nov 23, 2018 at 05:00:57PM +0800, kbuild test robot wrote: > Hi Charles, > > I love your patch! Yet something to improve: > > [auto build test ERROR on ljones-mfd/for-mfd-next] > [also build test ERROR on v4.20-rc3] > [cannot apply to next-20181122] > [if your patch is applied to the

Re: [PATCH 2/2] clk: core: link consumer with clock driver

2018-11-23 Thread Miquel Raynal
tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Miquel-Raynal/Link-consumer-with-clock-driver/20181123-113833 > base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next > config: sh-titan_def

Re: [PATCH 2/2] clk: core: link consumer with clock driver

2018-11-23 Thread Miquel Raynal
tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Miquel-Raynal/Link-consumer-with-clock-driver/20181123-113833 > base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next > config: sh-titan_def

Re: [PATCH 1/4] OPP: Add dev_pm_opp_xlate_performance_state() helper

2018-11-23 Thread Viresh Kumar
On 22-11-18, 11:38, Viresh Kumar wrote: > So there are few complexities in the case where an OPP table points to itself > in > the required-opp field. I looked at solving it up in the opp core but that > gets > more and more messy. > > Now there is actually a assumption within the OPP core.

Re: [PATCH 1/4] OPP: Add dev_pm_opp_xlate_performance_state() helper

2018-11-23 Thread Viresh Kumar
On 22-11-18, 11:38, Viresh Kumar wrote: > So there are few complexities in the case where an OPP table points to itself > in > the required-opp field. I looked at solving it up in the opp core but that > gets > more and more messy. > > Now there is actually a assumption within the OPP core.

[PATCH] dt-bindings: timer: gpt: update binding doc

2018-11-23 Thread Anson Huang
The i.MX GPT timer driver binding doc is out of date, the "interrupts", "clocks" and "clock-names" do NOT match current GPT driver implementation, update it and use i.MX6SX as example. Signed-off-by: Anson Huang --- .../devicetree/bindings/timer/fsl,imxgpt.txt | 22 +-

[PATCH] dt-bindings: timer: gpt: update binding doc

2018-11-23 Thread Anson Huang
The i.MX GPT timer driver binding doc is out of date, the "interrupts", "clocks" and "clock-names" do NOT match current GPT driver implementation, update it and use i.MX6SX as example. Signed-off-by: Anson Huang --- .../devicetree/bindings/timer/fsl,imxgpt.txt | 22 +-

<    3   4   5   6   7   8   9   >