RE: perf tools:Is there any tools to found out the max latency by irq or cpu idle

2019-04-13 Thread Linhaifeng
Sorry, the value 131081408 is just for example. Actually the result is like this: sqrt 2019-04-10 23:53:50: 43968 sqrt 2019-04-10 23:53:51: 44060 sqrt 2019-04-10 23:53:52: 49012 sqrt 2019-04-10 23:53:53: 38172 sqrt 2019-04-10 23:53:54: 131081408 sqrt 2019-04-10 23:53:55: 43600 sqrt

Re: [PATCH 4/4] locking/lockdep: Test all incompatible scenario at once in check_irq_usage()

2019-04-13 Thread Yuyang Du
On Wed, 3 Apr 2019 at 00:05, Frederic Weisbecker wrote: > > check_prev_add_irq() tests all incompatible scenarios one after the > other while adding a lock (@next) to a tree dependency (@prev): > > LOCK_USED_IN_HARDIRQ vs LOCK_ENABLED_HARDIRQ >

[PATCH v2] MAINTAINERS: mark simple firmware interface (SFI) obsolete

2019-04-13 Thread Lukas Bulwahn
Len Brown has not been active in this part since around 2010. The recent activity suggests that Thomas Gleixner and Jiang Lui were maintaining this part of the kernel sources. Jiang Lui has not been active in the kernel sources since beginning 2016. So, the maintainer's role seems to be now with

INFO: task hung in do_exit

2019-04-13 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8ee15f32 Merge tag 'dma-mapping-5.1-1' of git://git.infrad.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15a512d320 kernel config: https://syzkaller.appspot.com/x/.config?x=4fb64439e07a1ec0

[PATCH 1/3] ARM: hisi: fix error handling and missing of_node_put

2019-04-13 Thread Nicholas Mc Guire
of_iomap() can return NULL which seems critical here and thus should be explicitly flagged so that the cause of system halting can be understood. As of_find_compatible_node() is returning a device node with refcount incremented it must be explicitly decremented here. Signed-off-by: Nicholas Mc

[PATCH] ARM: add missing of_node_put()

2019-04-13 Thread Nicholas Mc Guire
The call to of_find_compatible_node() returns a node pointer with refcount incremented thus it must be explicitly decremented here after the last usage. (see drivers/of/base.c:of_find_compatible_node()) Signed-off-by: Nicholas Mc Guire --- Problem located with an experimental coccinelle script

[PATCH 0/3] ARM: hisi: fix of_iomap errors

2019-04-13 Thread Nicholas Mc Guire
This patch set addresses two issues in arch/arm/mach-hisi/hotplug.c 1) The hisi hotplug functions were using a few unchecked of_iomap() while at the same time the system relied on those mappings. Checks for !NULL were inserted. 2) Further some mandatory of_node_put() were missing and have

[PATCH 0/4] ARM: imx legacy: cleanups

2019-04-13 Thread Nicholas Mc Guire
While preparing a proposed fix for a missing check on zmalloc a few other checkpatch warnings poped up - this little set fixes those warnings. There is one remaining checkpatch warning but that looks like a false-positive to me: ERROR: Use of __initconst requires a separate use of const #171:

[PATCH] ARM: u300: add missing check for kmalloc

2019-04-13 Thread Nicholas Mc Guire
kmalloc return for bigrxbuf_virtual was not being checked - in case of failure set status, cleanup bigtxbuf_virtual and baile out. Signed-off-by: Nicholas Mc Guire Fixes: c7c8c78fdf6e ("ARM: 5667/3: U300 SSP/SPI board setup and test") --- Issue found with experimental coccinelle script Not

[PATCH 4/4] ARM: imx legacy: add an SPDX license identifier

2019-04-13 Thread Nicholas Mc Guire
The header clearly identifies this code as GPL V2 or later - so pop in the SPDX license identifier. Signed-off-by: Nicholas Mc Guire --- arch/arm/mach-imx/mach-mx27ads.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/mach-mx27ads.c b/arch/arm/mach-imx/mach-mx27ads.c index

[PATCH 2/4] ARM: imx legacy: declare unsigned int rather than unsigned

2019-04-13 Thread Nicholas Mc Guire
provide the proper type for unsigned int. Signed-off-by: Nicholas Mc Guire --- Problem reported by checkpatch Patch was compile-tested with: imx_v4_v5_defconfig (implies CONFIG_MACH_MX27ADS=y) Patch is against 5.1-rc4 (localversion-next is 20190412) arch/arm/mach-imx/mach-mx27ads.c | 4 ++--

[PATCH] ARM: ux500: add missing of_node_put()

2019-04-13 Thread Nicholas Mc Guire
of_find_compatible_node() returns a pointer with refcount incremented so both in the error path as well as after usage in soc_info_populate() respectively actually b8500_read_soc_id() an explicit of_node_put is needed to release backupram. Signed-off-by: Nicholas Mc Guire Fixes: commit

[PATCH 3/4 RFC] ARM: imx legacy: wrap complex macro in ()

2019-04-13 Thread Nicholas Mc Guire
Checkpatch suggests to place a parenthesis around this complex macro. Signed-off-by: Nicholas Mc Guire --- Problem reported by checkpatch I'm actually not sure this really is improving readability but by default checkpatch gets it right so... Patch was compile-tested with: imx_v4_v5_defconfig

[PATCH V2] ARM: STi: warn if scu mapping fails

2019-04-13 Thread Nicholas Mc Guire
If the device node is not found or the of_iomap() failed, calling scu_enable would not be safe and could lead to an undefined system state. So warn in both failure paths before returning. Signed-off-by: Nicholas Mc Guire Link: http://lkml.org/lkml/2018/7/16/219 Fixes: commit 65ebcc115889 ("ARM:

[PATCH 3/3] ARM: hisi: handle of_iomap and fix missing of_node_put

2019-04-13 Thread Nicholas Mc Guire
Relying on an unchecked of_iomap() which can return NULL is problematic here, an explicit check seems mandatory. Also the call to of_find_compatible_node() returns a device node with refcount incremented therefor an explicit of_node_put() is needed here. Signed-off-by: Nicholas Mc Guire Fixes:

[PATCH 2/3] ARM: hisi: check of_iomap and fix missing of_node_put

2019-04-13 Thread Nicholas Mc Guire
of_find_compatible_node() returns a device node with refcount incremented and thus needs an explicit of_node_put(). Further relying on an unchecked of_iomap() which can return NULL is problematic here, after all ctrl_base is critical enough for hix5hd2_set_cpu() to call BUG() if not available so a

[PATCH] ARM: imx: flag failure of of_iomap

2019-04-13 Thread Nicholas Mc Guire
imx_set_aips is assuming that the address returned from of_iomap is valid which it probably is in the normal case - as the call site is void error propagation is not possible but never the less at least a WARN_ON() seems warranted here. Signed-off-by: Nicholas Mc Guire Fixes: commit

[PATCH] ARM: STi: at least warn if of_iomap fails

2019-04-13 Thread Nicholas Mc Guire
The call to of_iomap() is unchecked but scu_enable(), which the returned address is passed on to, assumes a valid mapping. If the mapping is invalid this could probably lead to undefined system state so at least a warning should be issued. Signed-off-by: Nicholas Mc Guire Fixes: commit

[PATCH 1/4 RFC] ARM: imx legacy: warn on failed allocation

2019-04-13 Thread Nicholas Mc Guire
Even in init the allocation can fail and thus should at least warn so that the cause can be identified. Signed-off-by: Nicholas Mc Guire --- Problem located with an experimental coccinelle script Note sure if there is a better solution as this is early in the boot process so not that could be

[PATCH 3/4 RFC] ARM: imx legacy: wrap complex macro in ()

2019-04-13 Thread Nicholas Mc Guire
Checkpatch suggests to place a parenthesis around this complex macro. Signed-off-by: Nicholas Mc Guire --- Problem reported by checkpatch I'm actually not sure this really is improving readability but by default checkpatch gets it right so... Patch was compile-tested with: imx_v4_v5_defconfig

[PATCH 2/4] ARM: imx legacy: declare unsigned int rather than unsigned

2019-04-13 Thread Nicholas Mc Guire
provide the proper type for unsigned int. Signed-off-by: Nicholas Mc Guire --- Problem reported by checkpatch Patch was compile-tested with: imx_v4_v5_defconfig (implies CONFIG_MACH_MX27ADS=y) Patch is against 5.1-rc4 (localversion-next is 20190412) arch/arm/mach-imx/mach-mx27ads.c | 4 ++--

[PATCH 4/4] ARM: imx legacy: add an SPDX license identifier

2019-04-13 Thread Nicholas Mc Guire
The header clearly identifies this code as GPL V2 or later - so pop in the SPDX license identifier. Signed-off-by: Nicholas Mc Guire --- arch/arm/mach-imx/mach-mx27ads.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/mach-mx27ads.c b/arch/arm/mach-imx/mach-mx27ads.c index

[PATCH 0/4] ARM: imx legacy: cleanups

2019-04-13 Thread Nicholas Mc Guire
Sorry for the noise - I accidentally sent out a set of old patches along with this cleanups set. Only the ARM: imx legacy: should have goon out. While preparing a proposed fix for a missing check on zmalloc a few other checkpatch warnings poped up - this little set fixes those warnings. There is

[PATCH 1/4 RFC] ARM: imx legacy: warn on failed allocation

2019-04-13 Thread Nicholas Mc Guire
Even in init the allocation can fail and thus should at least warn so that the cause can be identified. Signed-off-by: Nicholas Mc Guire --- Problem located with an experimental coccinelle script Note sure if there is a better solution as this is early in the boot process so not that could be

[PATCH 2/2] regulator: tps6524x: Remove *rdev[N_REGULATORS] from struct tps6524x

2019-04-13 Thread Axel Lin
Current code is using devm_regulator_register() so we don't need to store *rdev for clean up, use a local variable instead. Signed-off-by: Axel Lin --- drivers/regulator/tps6524x-regulator.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

[PATCH 1/2] regulator: tps6524x: Constify regulator_ops

2019-04-13 Thread Axel Lin
The regulator_ops is never changed, make it const. Signed-off-by: Axel Lin --- drivers/regulator/tps6524x-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/tps6524x-regulator.c b/drivers/regulator/tps6524x-regulator.c index

[PATCH 3/3] RISC-V: Access CSRs using CSR numbers

2019-04-13 Thread Anup Patel
We should prefer accessing CSRs using their CSR numbers because: 1. It compiles fine with older toolchains. 2. We can use latest CSR names in #define macro names of CSR numbers as-per RISC-V spec. 3. We can access newly added CSRs even if toolchain does not recognize newly addes CSRs by

[PATCH 1/3] RISC-V: Add separate asm/encoding.h for spec related defines

2019-04-13 Thread Anup Patel
It's better to have all RISC-V spec related defines in one place so this patch adds separate asm/encoding.h for such defines which can be included in assembly as well as C code. Signed-off-by: Anup Patel --- arch/riscv/include/asm/csr.h | 52 +-

[PATCH 2/3] RISC-V: Add defines for CSR numbers

2019-04-13 Thread Anup Patel
Each CSR is encoded as 12bit number in RISC-V instructions. This patch adds defines for CSR numbers to allow us access CSRs using CSR numbers. Signed-off-by: Anup Patel --- arch/riscv/include/asm/encoding.h | 237 ++ 1 file changed, 237 insertions(+) diff --git

[PATCH 0/3] Allow accessing CSR using CSR number

2019-04-13 Thread Anup Patel
This patch series adds support to access CSR using both CSR name and CSR numbers. Also, we should prefer accessing CSRs using their CSR numbers because: 1. It compiles fine with older toolchains. 2. We can use latest CSR names in #define macro names of CSR numbers as-per RISC-V spec. (e.g.

Re: [PATCH 2/3] RISC-V: Add defines for CSR numbers

2019-04-13 Thread Christoph Hellwig
I think this should be merged with the next patch. Also please only add the CSRs that we actually use.

Re: [PATCH 1/3] RISC-V: Add separate asm/encoding.h for spec related defines

2019-04-13 Thread Christoph Hellwig
On Sat, Apr 13, 2019 at 07:39:35AM +, Anup Patel wrote: > It's better to have all RISC-V spec related defines in one place > so this patch adds separate asm/encoding.h for such defines which > can be included in assembly as well as C code. can be included from assembly just fine already. and

Re: [PATCH 3/3] RISC-V: Access CSRs using CSR numbers

2019-04-13 Thread Christoph Hellwig
On Sat, Apr 13, 2019 at 07:39:44AM +, Anup Patel wrote: > We should prefer accessing CSRs using their CSR numbers because: > 1. It compiles fine with older toolchains. > 2. We can use latest CSR names in #define macro names of CSR numbers >as-per RISC-V spec. > 3. We can access newly added

Re: [PATCH 0/4] ARM: imx legacy: cleanups

2019-04-13 Thread Joe Perches
On Sat, 2019-04-13 at 09:14 +0200, Nicholas Mc Guire wrote: > While preparing a proposed fix for a missing check on zmalloc a few > other checkpatch warnings poped up - this little set fixes those > warnings. There is one remaining checkpatch warning but that looks > like a false-positive to me: >

Re: [PATCH 2/3] riscv: Add support for perf registers sampling

2019-04-13 Thread Christoph Hellwig
On Fri, Apr 12, 2019 at 05:38:53PM +0800, Mao Han wrote: > > > > > + fp = user_backtrace(entry, fp, regs->ra); > > > + while ((entry->nr < entry->max_stack) && > > > + fp && !((unsigned long)fp & 0x3)) > > > + fp = user_backtrace(entry, fp, 0); > > > > Please don't indent the

Re: [PATCH 1/3] RISC-V: Add separate asm/encoding.h for spec related defines

2019-04-13 Thread Anup Patel
On Sat, Apr 13, 2019 at 1:23 PM Christoph Hellwig wrote: > > On Sat, Apr 13, 2019 at 07:39:35AM +, Anup Patel wrote: > > It's better to have all RISC-V spec related defines in one place > > so this patch adds separate asm/encoding.h for such defines which > > can be included in assembly as

Re: [PATCH 2/3] RISC-V: Add defines for CSR numbers

2019-04-13 Thread Anup Patel
On Sat, Apr 13, 2019 at 1:24 PM Christoph Hellwig wrote: > > I think this should be merged with the next patch. Also please > only add the CSRs that we actually use. Sure, will do. Regards, Anup

Re: [PATCH 3/3] RISC-V: Access CSRs using CSR numbers

2019-04-13 Thread Anup Patel
On Sat, Apr 13, 2019 at 1:25 PM Christoph Hellwig wrote: > > On Sat, Apr 13, 2019 at 07:39:44AM +, Anup Patel wrote: > > We should prefer accessing CSRs using their CSR numbers because: > > 1. It compiles fine with older toolchains. > > 2. We can use latest CSR names in #define macro names of

Re: [PATCH RFC 1/2] thermal/drivers/of: Add a get_temp_id callback function

2019-04-13 Thread Andrey Smirnov
On Thu, Apr 4, 2019 at 1:07 AM Daniel Lezcano wrote: > > Currently when we register a sensor, we specify the sensor id and a data > pointer to be passed when the get_temp function is called. However the > sensor_id is not passed to the get_temp callback forcing the driver to > do extra allocation

Re: [PATCH 2/3] rtc: ds1685: use correct device struct to get platform device struct

2019-04-13 Thread Thomas Bogendoerfer
On Sat, 13 Apr 2019 01:17:19 -0400 Joshua Kinard wrote: > On 4/12/2019 07:44, Thomas Bogendoerfer wrote: > > On Fri, 12 Apr 2019 12:11:06 +0200 > > Alexandre Belloni wrote: > > > >> Every patch need a commit message. Maybe you could indicate that this > >> never gave any issue because parent

[PATCH v4 00/12] QorIQ TMU multi-sensor and HWMON support

2019-04-13 Thread Andrey Smirnov
Everyone: This series contains patches adding support for HWMON integration, bug fixes and general improvements (hopefully) for TMU driver I made while working on it on i.MX8MQ. Feedback is welcome! Thanks, Andrey Smirnov Changes since [v3] - Series reabse on top of [rfc] - Fixed

[PATCH v4 01/12] thermal: qoriq: Remove unnecessary DT node is NULL check

2019-04-13 Thread Andrey Smirnov
It's impossible to use this driver outside of Device Tree, so if the probe function is called, the dev.of_node is guaranteed to not be NULL and guarding against that is pointless. Drop it. Signed-off-by: Andrey Smirnov Acked-by: Daniel Lezcano Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo

[PATCH v4 11/12] thermal_hwmon: Add devres wrapper for thermal_add_hwmon_sysfs()

2019-04-13 Thread Andrey Smirnov
Add devres wrapper for thermal_add_hwmon_sysfs() to simplify driver code. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org ---

[PATCH v4 12/12] thermal: qoriq: Add hwmon support

2019-04-13 Thread Andrey Smirnov
Expose thermal readings as a HWMON device, so that it could be accessed using lm-sensors. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc: linux...@vger.kernel.org Cc:

[PATCH v4 02/12] thermal: qoriq: Add local struct device pointer

2019-04-13 Thread Andrey Smirnov
Use a local "struct device *dev" for brevity. No functional change intended. Signed-off-by: Andrey Smirnov Acked-by: Daniel Lezcano Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc: linux...@vger.kernel.org Cc:

[PATCH v4 08/12] thermal: qoriq: Convert driver to use regmap API

2019-04-13 Thread Andrey Smirnov
Convert driver to use regmap API, drop custom LE/BE IO helpers and simplify bit manipulation using regmap_update_bits(). This also allows us to convert some register initialization to use loops and adds convenient debug access to TMU registers via debugfs. Signed-off-by: Andrey Smirnov Cc: Chris

[PATCH v4 09/12] thermal: qoriq: Enable all sensors before registering them

2019-04-13 Thread Andrey Smirnov
Tmu_get_temp will get called as a part of sensor registration via devm_thermal_zone_of_sensor_register(). To prevent it from retruning bogus data we need to enable sensor monitoring before that. Looking at the datasheet (i.MX8MQ RM) there doesn't seem to be any harm in enabling them all, so, for

[PATCH v4 06/12] thermal: qoriq: Pass data to qoriq_tmu_calibration() directly

2019-04-13 Thread Andrey Smirnov
We can simplify error cleanup code if instead of passing a "struct platform_device *" to qoriq_tmu_calibration() and deriving a bunch of pointers from it, we pass those pointers directly. This way we won't be force to call platform_set_drvdata() as early in qoriq_tmu_probe() and consequently would

[PATCH v4 10/12] thermal: qoriq: Do not report invalid temperature reading

2019-04-13 Thread Andrey Smirnov
Before returning measured temperature data to upper layer we need to make sure that the reading was marked as "valid" to avoid reporting bogus data. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc:

[PATCH v4 04/12] thermal: qoriq: Drop per-sensor data

2019-04-13 Thread Andrey Smirnov
Now that driver is converted to use get_temp_id() instead of get_temp() we no longer need per sensor data. Drop all of the code related to it. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc:

Re: [PATCH RFC 1/2] thermal/drivers/of: Add a get_temp_id callback function

2019-04-13 Thread Daniel Lezcano
On 13/04/2019 10:18, Andrey Smirnov wrote: > On Thu, Apr 4, 2019 at 1:07 AM Daniel Lezcano > wrote: >> >> Currently when we register a sensor, we specify the sensor id and a data >> pointer to be passed when the get_temp function is called. However the >> sensor_id is not passed to the get_temp

[PATCH v4 07/12] thermal: qoriq: Convert driver to use devm_ioremap()

2019-04-13 Thread Andrey Smirnov
Convert driver to use devm_ioremap() to simplify memory deallocation and error handling code. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc:

[PATCH v4 03/12] thermal: qoriq: Don't store struct thermal_zone_device reference

2019-04-13 Thread Andrey Smirnov
Struct thermal_zone_device reference stored as sensor's private data isn't really used anywhere in the code. Drop it. Signed-off-by: Andrey Smirnov Acked-by: Daniel Lezcano Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc:

[PATCH v4 05/12] thermal: qoriq: Pass data to qoriq_tmu_register_tmu_zone() directly

2019-04-13 Thread Andrey Smirnov
Pass all necessary data to qoriq_tmu_register_tmu_zone() directly instead of passing a paltform device and then deriving it. This is done as a first step to simplify resource deallocation code. Signed-off-by: Andrey Smirnov Acked-by: Daniel Lezcano Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo

Re: [PATCH] locking/lockdep: Make lockdep_register_key() ignore 'debug_locks'

2019-04-13 Thread Ingo Molnar
* Bart Van Assche wrote: > On Fri, 2019-04-12 at 07:47 +0200, Ingo Molnar wrote: > > So why don't we add a debug_locks test to lockdep_unregister_key() > > instead? The general principle to bring lockdep to a screeching halt when > > bugs are detected, ASAP. > > Hi Ingo, > > Since this

[PATCH 1/2] mtd: nandsim: Embed struct nand_chip in struct nandsim

2019-04-13 Thread Richard Weinberger
We well need struct nand_controller soon, so more stuff need to be parts of struct nandsim. While we are here, rename "nand" to "ns" to use the same naming scheme everywhere in nandsim. Signed-off-by: Richard Weinberger --- drivers/mtd/nand/raw/nandsim.c | 49 +-

[PATCH 2/2] mtd: nandsim: switch to exec_op interface

2019-04-13 Thread Richard Weinberger
Stop using the legacy interface. Signed-off-by: Richard Weinberger --- drivers/mtd/nand/raw/nandsim.c | 78 -- 1 file changed, 47 insertions(+), 31 deletions(-) diff --git a/drivers/mtd/nand/raw/nandsim.c b/drivers/mtd/nand/raw/nandsim.c index

Re: [PATCH] ELAN touchpad i2c_hid bugs fix

2019-04-13 Thread Kai-Heng Feng
at 16:40, wrote: Hi. I've applied this patch, but still getting incomplete report messages. Does the patch fix the other two issues: - Five finger tap kill's module so you have to restart it; - Two finger scoll is working incorrect and sometimes even when you raised one of two finger still

Re: [PATCH 1/2] mtd: nandsim: Embed struct nand_chip in struct nandsim

2019-04-13 Thread Sergei Shtylyov
Hello! On 13.04.2019 11:40, Richard Weinberger wrote: We well need struct nand_controller soon, so more stuff need to We will, maybe? be parts of struct nandsim. While we are here, rename "nand" to "ns" to use the same naming scheme everywhere in nandsim. Signed-off-by: Richard

[PATCH] MAINTAINERS: normalize Michael Hennerich's email address

2019-04-13 Thread Lukas Bulwahn
MAINTAINERS contains a lower-case and upper-case variant of Michael Hennerich' s email address. Only keep the lower-case variant in MAINTAINERS. Signed-off-by: Lukas Bulwahn --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH] MAINTAINERS: normalize Laurent Pinchart's email address

2019-04-13 Thread Lukas Bulwahn
MAINTAINERS contains lower-case and upper-case variants of Laurent Pinchart's email address. Only keep the lower-case variant in MAINTAINERS. Signed-off-by: Lukas Bulwahn --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [PATCH v2 2/7] dt: bindings: Add multicolor class dt bindings documention

2019-04-13 Thread Jacek Anaszewski
Dan, On 4/13/19 12:02 AM, Dan Murphy wrote: All On 4/12/19 2:10 PM, Jacek Anaszewski wrote: Dan, On 4/12/19 1:50 PM, Dan Murphy wrote: Marek On 4/11/19 5:07 PM, Marek Behun wrote: Hi Dan, this probaly was discussed, but I did not follow brightness model discussions: what will happen if I

MASSAGE FROM Ms Safi>> Reply

2019-04-13 Thread Ms Safi Kabore
Dear Friend, I am Ms Safi Kabore work with the department of Audit and accounting manager here in the Bank, There is this fund that was keep in my custody years ago,please i need your assistance for the transferring of thIs fund to your bank account for both of us benefit for life time

[RESEND PATCH 01/20] dt-bindings: imx-ocotp: Add i.MX8MQ compatible

2019-04-13 Thread Srinivas Kandagatla
From: Lucas Stach Add compatible for i.MX8MQ and add i.MX7D/S, i.MX7ULP and i.M8MQ to the description. Signed-off-by: Lucas Stach Reviewed-by: Rob Herring Reviewed-by: Abel Vesa Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 4 +++- 1 file

[RESEND PATCH 18/20] nvmem: sunxi-sid: add binding for H6's SID controller

2019-04-13 Thread Srinivas Kandagatla
From: Yangtao Li Add a binding for H6's SID controller. Acked-by: Maxime Ripard Reviewed-by: Rob Herring Signed-off-by: Yangtao Li Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[RESEND PATCH 11/20] nvmem: stm32: add support for STM32MP15 BSEC to control OTP data

2019-04-13 Thread Srinivas Kandagatla
From: Fabrice Gasnier On STM32MP15, OTP area may be read/written by using BSEC (boot, security and OTP control). BSEC registers set is composed of various regions, among which control registers and OTP shadow registers. Secure monitor calls are involved in this process to allow (or deny) access

[RESEND PATCH 07/20] nvmem: sunxi_sid: Read out data in native format

2019-04-13 Thread Srinivas Kandagatla
From: Chen-Yu Tsai Originally the SID e-fuses were thought to be in big-endian format. Later sources show that they are in fact native or little-endian. The most compelling evidence is the thermal sensor calibration data, which is a set of one to three 16-bit values. In native-endian they are in

[RESEND PATCH 19/20] nvmem: sunxi-sid: convert to SPDX license tags

2019-04-13 Thread Srinivas Kandagatla
From: Yangtao Li Updates license to use SPDX-License-Identifier. Acked-by: Maxime Ripard Signed-off-by: Yangtao Li Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/sunxi_sid.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/nvmem/sunxi_sid.c

[RESEND PATCH 00/20] nvmem: patches(set 1) for 5.2

2019-04-13 Thread Srinivas Kandagatla
Resending this with cc to linux-kernel@vger.kernel.org Hi Greg, Here are some nvmem patches for 5.2 which includes: - adding support to new stm32, sunix and imx providers - few general cleanups - fix for in place buffer reads. Can you please pick these for 5.2. thanks, srini Anson Huang (3):

[RESEND PATCH 20/20] nvmem: sunxi_sid: Support SID on H6

2019-04-13 Thread Srinivas Kandagatla
From: Yangtao Li Add support for H6's SID controller. It supports 4K-bit EFUSE, bigger than before. Signed-off-by: Yangtao Li Acked-by: Maxime Ripard Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/sunxi_sid.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[RESEND PATCH 06/20] nvmem: sunxi_sid: Dynamically allocate nvmem_config structure

2019-04-13 Thread Srinivas Kandagatla
From: Chen-Yu Tsai The sunxi_sid driver currently uses a statically allocated nvmem_config structure that is updated at probe time. This is sub-optimal as it limits the driver to one instance, and also takes up space even if the device is not present. Modify the driver to allocate the

[RESEND PATCH 17/20] nvmem: sunxi-sid: fix wrong description in kernel doc

2019-04-13 Thread Srinivas Kandagatla
From: Yangtao Li qfprom->sunxi-sid Acked-by: Maxime Ripard Reviewed-by: Rob Herring Signed-off-by: Yangtao Li Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[RESEND PATCH 04/20] nvmem: sunxi_sid: Read out SID for randomness without looping

2019-04-13 Thread Srinivas Kandagatla
From: Chen-Yu Tsai Since the reg_read callbacks already support arbitrary, but 4-byte aligned. offsets and lengths into the SID, there is no need for another for loop just to use it to read 1 byte at a time. Read out the whole SID block in one go. Signed-off-by: Chen-Yu Tsai Acked-by: Maxime

[RESEND PATCH 08/20] nvmem: sunxi_sid: Support SID on A83T and H5

2019-04-13 Thread Srinivas Kandagatla
From: Chen-Yu Tsai The device tree binding already lists compatible strings for these two SoCs. They don't have the defect as seen on the H3, and the size and register layout is the same as the A64. Furthermore, the driver does not include nvmem cell definitions. Add support for these two

[RESEND PATCH 13/20] nvmem: core: fix read buffer in place

2019-04-13 Thread Srinivas Kandagatla
From: Jorge Ramirez-Ortiz When the bit_offset in the cell is zero, the pointer to the msb will not be properly initialized (ie, will still be pointing to the first byte in the buffer). This being the case, if there are bits to clear in the msb, those will be left untouched while the mask will

[RESEND PATCH 14/20] nvmem: imx-ocotp: use devm_platform_ioremap_resource() to simplify code

2019-04-13 Thread Srinivas Kandagatla
From: Anson Huang Use the new helper devm_platform_ioremap_resource() which wraps the platform_get_resource() and devm_ioremap_resource() together, to simplify the code. Signed-off-by: Anson Huang Reviewed-by: Mukesh Ojha Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/imx-ocotp.c | 4

[RESEND PATCH 05/20] nvmem: sunxi_sid: Optimize register read-out method

2019-04-13 Thread Srinivas Kandagatla
From: Chen-Yu Tsai SID cells are 32-bit aligned, and a multiple of 32 bits in length. The only outlier is the thermal sensor calibration data, which is 16 bits per sensor. However a whole 64 bits is allocated for this purpose, so we could consider it conforming to the rule above. Also, the

[RESEND PATCH 16/20] nvmem: imx-iim: use devm_platform_ioremap_resource() to simplify code

2019-04-13 Thread Srinivas Kandagatla
From: Anson Huang Use the new helper devm_platform_ioremap_resource() which wraps the platform_get_resource() and devm_ioremap_resource() together, to simplify the code. Signed-off-by: Anson Huang Reviewed-by: Mukesh Ojha Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/imx-iim.c | 4

[RESEND PATCH 12/20] nvmem: core: add nvmem_cell_read_u16

2019-04-13 Thread Srinivas Kandagatla
From: Fabrice Gasnier Add nvmem_cell_read_u16() helper to ease read of an u16 value on consumer side. This is inspired by nvmem_cell_read_u32() function. This helper is useful on stm32 that has 16 bits data cells stored in non volatile memory. Signed-off-by: Fabrice Gasnier Signed-off-by:

[RESEND PATCH 09/20] dt-bindings: nvmem: Add STM32 factory-programmed romem

2019-04-13 Thread Srinivas Kandagatla
From: Fabrice Gasnier Add documentation for STMicroelectronics STM32 Factory-programmed read only memory area. Signed-off-by: Fabrice Gasnier Reviewed-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- .../bindings/nvmem/st,stm32-romem.txt | 31 +++ 1 file

[RESEND PATCH 03/20] nvmem: imx-ocotp: broaden Kconfig dependency

2019-04-13 Thread Srinivas Kandagatla
From: Lucas Stach The i.MX OCOTP controller is used in numerous Freescale/NXP SoCs from the MXC family, so the strict dependency on the i.MX6 SoC is too narrow. Broaden it to cover all the MXC familiy members. Signed-off-by: Lucas Stach Reviewed-by: Abel Vesa Signed-off-by: Srinivas

[RESEND PATCH 10/20] nvmem: Add driver for STM32 factory-programmed read only mem

2019-04-13 Thread Srinivas Kandagatla
From: Fabrice Gasnier Add a read only nvmem driver for STM32 factory-programmed memory area (on-chip non-volatile storage). Signed-off-by: Fabrice Gasnier Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/Kconfig | 10 + drivers/nvmem/Makefile | 2 +

[RESEND PATCH 15/20] nvmem: mxs-ocotp: use devm_platform_ioremap_resource() to simplify code

2019-04-13 Thread Srinivas Kandagatla
From: Anson Huang Use the new helper devm_platform_ioremap_resource() which wraps the platform_get_resource() and devm_ioremap_resource() together, to simplify the code. Signed-off-by: Anson Huang Reviewed-by: Mukesh Ojha Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/mxs-ocotp.c | 4

[RESEND PATCH 02/20] nvmem: imx-ocotp: add support for imx8mq

2019-04-13 Thread Srinivas Kandagatla
From: Lucas Stach The i.MX8MQ uses the same OCOTP block as the i.MX7D, but with fourfold increase in fuse banks. Signed-off-by: Lucas Stach Reviewed-by: Abel Vesa Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/imx-ocotp.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH] slimbus: fix a NULL pointer dereference in of_qcom_slim_ngd_register

2019-04-13 Thread Srinivas Kandagatla
From: Kangjie Lu In case platform_device_alloc fails, the fix returns an error code to avoid the NULL pointer dereference. Signed-off-by: Kangjie Lu Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/qcom-ngd-ctrl.c | 4 1 file changed, 4 insertions(+) diff --git

Re: [PATCH 2/3] pwm: meson: Add clock source configuration for Meson G12A

2019-04-13 Thread Martin Blumenstingl
Hi Neil, On Fri, Apr 12, 2019 at 11:24 AM Neil Armstrong wrote: > > For PWM controller in the Meson G12A SoC, the EE domain and AO domain > have different clock sources. This patch tries to describe them in the > DT compatible data. > > Signed-off-by: Neil Armstrong > --- >

Re: [PATCH 3/3] arm64: dts: meson-g12a: Add PWM nodes

2019-04-13 Thread Martin Blumenstingl
On Fri, Apr 12, 2019 at 11:24 AM Neil Armstrong wrote: > > This adds the EE and AO PWM nodes and the possible pinctrl settings. > > Signed-off-by: Neil Armstrong I reviewed the controller definitions and picked three pinctrl nodes - all of them are fine: Reviewed-by: Martin Blumenstingl that

Re: [PATCH v3 1/2] dt-bindings: clk: g12a-clkc: add Temperature Sensor clock ID

2019-04-13 Thread Martin Blumenstingl
On Fri, Apr 12, 2019 at 12:02 PM Guillaume La Roque wrote: > > Add clock id used by temperature sensor for G12A Socs nit-pick if you have to re-send if for some reason: "used by the temperature sensors for G12A SoCs" (because as far as I know the two temperature sensors share this clock) >

Re: [PATCH v3 2/2] clk: meson-g12a: Add Temperature Sensor clock

2019-04-13 Thread Martin Blumenstingl
On Fri, Apr 12, 2019 at 12:03 PM Guillaume La Roque wrote: > > Add TS clock used by two temperature sensor > > Signed-off-by: Guillaume La Roque Reviewed-by: Martin Blumenstingl

Re: [PATCH 1/3] arm64: dts: meson-g12a: Add IR nodes

2019-04-13 Thread Martin Blumenstingl
Hi Neil, On Fri, Apr 12, 2019 at 12:05 PM Neil Armstrong wrote: > > Amlogic G12A SoCs uses the exact same IR decoder as previous > families, add the IR node and the pintctrl setting. as far as I can tell there are either two IR decoders or one updated IR decoder in G12A and G12B. I'm using

Re: [PATCH 3/3] arm64: dts: meson-g12a-u200: enable IR decoder

2019-04-13 Thread Martin Blumenstingl
On Fri, Apr 12, 2019 at 12:05 PM Neil Armstrong wrote: > > Add support for the IR decoder input on the U200 Reference Design board. > > Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl

Re: [PATCH 2/3] arm64: dts: meson-g12a-x96-max: enable IR decoder

2019-04-13 Thread Martin Blumenstingl
On Fri, Apr 12, 2019 at 12:05 PM Neil Armstrong wrote: > > Add support for the IR decoder input on the X96 Max board. > > Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl

Re: [PATCH] selftests : netfilter: Wrote a error and exit code for a command which needed veth kernel module.

2019-04-13 Thread Jeffrin Thalakkottoor
Hello Shuah, did you get the mail related stuff below ? On Fri, Apr 5, 2019 at 10:17 PM Florian Westphal wrote: > > Jeffrin Jose T wrote: > > A test for the basic NAT functionality uses ip command which > > needs veth device.There is a condition where the kernel support > > for veth is not

Re: [PATCH] arm64: kaslr: Reserve size of ARM64_MEMSTART_ALIGN in linear region

2019-04-13 Thread Nicolas Boichat
Dear stable maintainers, I encountered a similar issue on a 4.19.33 kernel (Chromium OS). On my board, the system would not even be able to boot if KASLR decides to map the linear region to the top of the virtual address space. This happens every 253 boots on average (there are 0xfd possible

OK

2019-04-13 Thread Ahmed Ahmed
Greetings, I humbly solicit for your partnership to transfer €15 million Euros into your personal or company’s account .Contact me for more detailed explanation. Kindly send me the followings Full Names Address Occupation Direct Mobile Telephone Lines Nationality Ahmed Zama

[PATCH v2] ARM: dts: imx6qdl-udoo: Add Pincfgs for OTG

2019-04-13 Thread Markus Kueffner
Add Pincfgs to enable the i.MX6's OTG feature for UDOO Signed-off-by: Markus Kueffner --- Changes in v2: - put pinctrl_usbotg node after pinctrl_usbh as suggested - remove unsupported properties from arch/arm/boot/dts/imx6qdl-udoo.dtsi | 14 ++ 1 file changed, 14 insertions(+)

[PATCH] HID: fix compiling error in u2fzero_probe()

2019-04-13 Thread Mao Wenan
There is one compiling error in u2fzero_probe()->u2fzero_init_hwrng(), this is because HW_RANDOM is not set. drivers/hid/hid-u2fzero.o: In function `u2fzero_probe': hid-u2fzero.c:(.text+0xc70): undefined reference to `devm_hwrng_register' Fixes: 42337b9d4d958("HID: add driver for U2F Zero

Re: [PATCH] vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup()

2019-04-13 Thread Sasha Levin
On Sat, Apr 13, 2019 at 02:19:52AM +, Michael Kelley wrote: From: Dexuan Cui Sent: Friday, April 12, 2019 4:35 PM With CONFIG_DEBUG_PREEMPT=y, the put_cpu_ptr() triggiers an underflow warning in preempt_count_sub(). Fixes: 37cdd991fac8 ("vmbus: put related per-cpu variable together")

[PATCH] orangefs: Make some functions static

2019-04-13 Thread Yue Haibing
From: YueHaibing Fix sparse warnings: fs/orangefs/super.c:155:5: warning: symbol 'orangefs_write_inode' was not declared. Should it be static? fs/orangefs/inode.c:387:5: warning: symbol 'orangefs_write_begin' was not declared. Should it be static? fs/orangefs/inode.c:445:5: warning: symbol

Re: [PATCH v3 02/26] PCI: keystone: Cleanup error_irq configuration

2019-04-13 Thread Bjorn Helgaas
Hi Kishon, On Mon, Mar 25, 2019 at 03:09:23PM +0530, Kishon Vijay Abraham I wrote: > pci-keystone driver uses irq_of_parse_and_map to get irq number of > error_irq. Use platform_get_irq instead and move platform_get_irq() > and request_irq() of error_irq from ks_pcie_add_pcie_port to

  1   2   3   >