csky: Add perf callchin support

2019-03-31 Thread Mao Han
Hi, This patch set add perf callchain support for C-SKY. Including perf callchain support using frame pointer, perf registers definition, registers initiation for libdw unwinding and some build infrastructure. Regards, Mao Han >From c538e33c6705c9284264a5035185edb55ace1786 Mon Sep 17 00:00:00

Re: [PATCH 3/7] rtc: xgene: convert to SPDX identifier

2019-03-31 Thread Mukesh Ojha
On 3/20/2019 6:02 PM, Alexandre Belloni wrote: Use SPDX-License-Identifier instead of a verbose license text. Signed-off-by: Alexandre Belloni Please refer https://lkml.org/lkml/2019/2/13/570 for more discussion on this. once you fix that in all your SPDX license patches,you can take

Re: [PATCH 2/4] rtc: ps3: convert to SPDX identifier

2019-03-31 Thread Mukesh Ojha
On 3/20/2019 6:14 PM, Alexandre Belloni wrote: Use SPDX-License-Identifier instead of a verbose license text. The original text refers to version 2 so also update MODULE_LICENSE() to "GPL v2" instead of "GPL". Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ps3.c | 16

Re: [PATCH v4 2/2] PCI: iproc: Add outbound configuration for 32-bit I/O region

2019-03-31 Thread Srinath Mannam
Hi Lorenzo, Please see my reply below, On Fri, Mar 29, 2019 at 11:06 PM Lorenzo Pieralisi wrote: > > On Fri, Mar 01, 2019 at 10:22:16AM +0530, Srinath Mannam wrote: > > In the present driver outbound window configuration is done to map above > > 32-bit address I/O regions with corresponding PCI

[PATCH] rtc: snvs: use devm_platform_ioremap_resource() to simplify code

2019-03-31 Thread 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 --- drivers/rtc/rtc-snvs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH] input: keyboard: imx: use devm_platform_ioremap_resource() to simplify code

2019-03-31 Thread 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 --- drivers/input/keyboard/imx_keypad.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH] pwm: imx27: use devm_platform_ioremap_resource() to simplify code

2019-03-31 Thread 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 --- drivers/pwm/pwm-imx27.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH] rtc: mxc: use devm_platform_ioremap_resource() to simplify code

2019-03-31 Thread 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 --- drivers/rtc/rtc-mxc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH] input: imx6ul_tsc: use devm_platform_ioremap_resource() to simplify code

2019-03-31 Thread 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 --- drivers/input/touchscreen/imx6ul_tsc.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

[PATCH] mailbox: imx: use devm_platform_ioremap_resource() to simplify code

2019-03-31 Thread 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 --- drivers/mailbox/imx-mailbox.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [PATCH v3 6/7] fs: introduce write-hint start point for in-kernel hints

2019-03-31 Thread Dave Chinner
On Fri, Mar 29, 2019 at 01:23:51PM +0530, Kanchan Joshi wrote: > kernel-mode components can define own write-hints using > "WRITE_LIFE_KERN_MIN" as base. > > Signed-off-by: Kanchan Joshi > --- > include/linux/fs.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/fs.h

[PATCH] clk: imx: use devm_platform_ioremap_resource() to simplify code

2019-03-31 Thread 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 --- drivers/clk/imx/clk-imx8qxp-lpcg.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git

[PATCH] gpio: mxc: use devm_platform_ioremap_resource() to simplify code

2019-03-31 Thread 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 --- drivers/gpio/gpio-mxc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH] pinctrl: freescale: use devm_platform_ioremap_resource() to simplify code

2019-03-31 Thread 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 --- drivers/pinctrl/freescale/pinctrl-imx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH] watchdog: imx2_wdt: use devm_platform_ioremap_resource() to simplify code

2019-03-31 Thread 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 --- drivers/watchdog/imx2_wdt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

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

2019-03-31 Thread 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 --- drivers/nvmem/imx-iim.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH 1/3] nvmem: imx-ocotp: use devm_platform_ioremap_resource() to simplify code

2019-03-31 Thread 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 --- drivers/nvmem/imx-ocotp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH 2/3] nvmem: mxs-ocotp: use devm_platform_ioremap_resource() to simplify code

2019-03-31 Thread 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 --- drivers/nvmem/mxs-ocotp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [PATCHv8 07/10] acpi/hmat: Register processor domain to its memory

2019-03-31 Thread Keith Busch
On Fri, Mar 29, 2019 at 02:15:03PM -0700, Dan Williams wrote: > On Mon, Mar 11, 2019 at 1:55 PM Keith Busch wrote: > > +static __init struct memory_target *find_mem_target(unsigned int mem_pxm) > > +{ > > + struct memory_target *target; > > + > > + list_for_each_entry(target, , node)

Re: [PATCH v2] nvmem: core: Set no-read-write provider to avoid userspace read/write

2019-03-31 Thread Gaurav Kohli
Hi Srinivas, Thanks for the patch, Can you please merge , So will cherry pick the same. Regards Gaurav On 3/25/2019 11:45 AM, Gaurav Kohli wrote: On 3/22/2019 11:42 PM, Gaurav Kohli wrote: Hi Srinivas, Thanks for the patch, Something like this only i have tested in the morning, instead

Fwd: [PATCH] secdesc-ui.py: a UI to view the security descriptors on SMB2+ shares

2019-03-31 Thread Steve French
The tool that Ronnie proposed below looks useful (see below) and attached screenshot. With this as a sample (along with 'smbinfo' tool in cifs-utils) and a starting point, those with python/GUI interest should be able to extend it in very interesting ways now that we have the ability to query

[PATCH 3/3] mtd: devices: m25p80: Share code between m25p80_read() and m25p80_write()

2019-03-31 Thread Andrey Smirnov
Move shared parts of m25p80_read() and m25p80_write() into a separate subroutine and convert the rest of the code to use it. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Brian Norris Cc: Boris Brezillon Cc: Marek Vasut Cc: Chris Healy Cc: linux-...@lists.infradead.org Cc:

[PATCH 2/3] mtd: devices: m25p80: Drop extra length clamping in m25p80_write()

2019-03-31 Thread Andrey Smirnov
All of the needed length clamping should already be taken care of by spi_mem_adjust_op_size(). No check like this is done in read path, so this extra check in write doesn't appear to be necessary. Drop it. Signed-off-by: Andrey Smirnov Cc: Brian Norris Cc: Boris Brezillon Cc: Marek Vasut Cc:

[PATCH 1/3] mtd: devices: m25p80: Simplify m25p80_read()

2019-03-31 Thread Andrey Smirnov
Spi_nor_read() already has an appropriate loop around .read() callback to handle the case when not all of the data requested was written in a signle ->read() call. Drop extra code doing the same thing in m25p80_read(). Signed-off-by: Andrey Smirnov Cc: Brian Norris Cc: Boris Brezillon Cc:

Re: [PATCH v3 00/36] thunderbolt: Software connection manager improvements

2019-03-31 Thread Lukas Wunner
On Thu, Mar 28, 2019 at 06:56:21PM +0200, Mika Westerberg wrote: > On Thu, Mar 28, 2019 at 03:17:57PM +, mario.limoncie...@dell.com wrote: > > > From: Mika Westerberg > > > Sent: Thursday, March 28, 2019 7:36 AM > > > * Do not automatically create PCIe tunnels. Instead we implement "user" >

[PATCH v3 06/11] PCI: imx6: Make use of BIT() in constant definitions

2019-03-31 Thread Andrey Smirnov
Avoid using explicit left shifts and convert various definitions to use BIT() instead. No functional change intended. Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com Cc:

[PATCH v3 01/11] PCI: imx6: Simplify imx7d_pcie_wait_for_phy_pll_lock()

2019-03-31 Thread Andrey Smirnov
Make use of regmap_read_poll_timeout() to simplify imx7d_pcie_wait_for_phy_pll_lock(). No functional change intended. Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com Cc:

[PATCH v3 08/11] PCI: imx6: Simplify pcie_phy_poll_ack()

2019-03-31 Thread Andrey Smirnov
Simplify pcie_phy_poll_ack() by incorporating shifting into constant definition and convert the code to use 'bool'. No functional change intended. Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu

[PATCH v3 03/11] PCI: imx6: Return -ETIMEOUT from imx6_pcie_wait_for_speed_change()

2019-03-31 Thread Andrey Smirnov
Change error code from EINVAL to ETIMEDOUT in imx6_pcie_wait_for_speed_change() since that error code seems more appropriate. Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com

[PATCH v3 04/11] PCI: imx6: Remove PCIE_PL_PFLR_* constants

2019-03-31 Thread Andrey Smirnov
Code using these constants was removed in commit a71280722eeb ("PCI: imx6: Remove LTSSM disable workaround"). No functional change intended. Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc:

[PATCH v3 05/11] PCI: dwc: imx6: Share PHY debug register definitions

2019-03-31 Thread Andrey Smirnov
Both pcie-designware.c and pci-imx6.c contain custom definitions for PHY debug registers R0/R1 and on top of that there's already a definition for R0 in pcie-designware.h. Move all of the definitions to pcie-designware.h. No functional change intended. Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas

[PATCH v3 09/11] PCI: imx6: Restrict PHY register data to 16-bit

2019-03-31 Thread Andrey Smirnov
PHY registers on i.MX6 are 16-bit wide, so we can get rid of explicit masking if we restrict pcie_phy_read/pcie_phy_write to use 'u16' instead of 'int'. No functional change intended. Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard

[PATCH v3 00/11] i.MX6, DesignWare PCI improvements

2019-03-31 Thread Andrey Smirnov
Everyone: This is the series containing various small improvements that I made while reading the code and researching commit history of pci-imx6.c and pcie-designware*.c files. All changes are optional, so commits that don't seem like an improvement can be easily dropped. Hopefully each patch is

[PATCH v3 02/11] PCI: imx6: Remove redundant debug tracing

2019-03-31 Thread Andrey Smirnov
All calls to imx6_pcie_wait_for_link() share the same error path and the state of PHY debug registers will already be printed there. Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc:

[PATCH v3 07/11] PCI: imx6: Simplify bit operations in PHY functions

2019-03-31 Thread Andrey Smirnov
Simplify the code by incorporating left shifts into constant defnitions as well as using FIELD_PREP/GENMASK. No functional change intended. Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc:

[PATCH v3] arch_topology: Make cpu_capacity sysfs node as ready-only

2019-03-31 Thread Lingutla Chandrasekhar
If user updates any cpu's cpu_capacity, then the new value is going to be applied to all its online sibling cpus. But this need not to be correct always, as sibling cpus (in ARM, same micro architecture cpus) would have different cpu_capacity with different performance characteristics. So,

RE: [PATCH v2 4/4] devfreq: add mediatek cci devfreq

2019-03-31 Thread MyungJoo Ham
>This adds a devfreq driver for the Cache Coherent Interconnect (CCI) >of the Mediatek MT8183. > >On the MT8183 the CCI is supplied by the same regulator as the LITTLE >cores. The driver is notified when the regulator voltage changes >(driven by cpufreq) and adjusts the CCI frequency to the

(.init.text+0x134): multiple definition of `plat_irq_setup'

2019-03-31 Thread kbuild test robot
Hi Takashi, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 63fc9c23488d6cf34e4c233e24ba59b7e5548412 commit: c97617a81a7616d49bc3700959e08c6c6f447093 ALSA: hda/ca0132 - Fix build error without CONFIG_PCI date: 8

[PATCH v3 04/13] thermal: qoriq: Add local struct qoriq_sensor pointer

2019-03-31 Thread Andrey Smirnov
Add local struct qoriq_sensor pointer in qoriq_tmu_register_tmu_zone() for brevity. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas Stach Cc: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc: linux...@vger.kernel.org Cc:

[PATCH v3 02/13] thermal: qoriq: Add local struct device pointer

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

[PATCH v3 08/13] thermal: qoriq: Convert driver to use devm_ioremap()

2019-03-31 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: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com

[PATCH v3 10/13] thermal: qoriq: Enable all sensors before registering them

2019-03-31 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 v3 06/13] thermal: qoriq: Pass data to qoriq_tmu_register_tmu_zone() directly

2019-03-31 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 Cc: Chris Healy Cc: Lucas Stach Cc: Zhang Rui Cc: Eduardo Valentin

[PATCH v3 11/13] thermal: qoriq: Do not report invalid temperature reading

2019-03-31 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: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism)

[PATCH v3 09/13] thermal: qoriq: Convert driver to use regmap API

2019-03-31 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 v3 07/13] thermal: qoriq: Pass data to qoriq_tmu_calibration() directly

2019-03-31 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 v3 03/13] thermal: qoriq: Don't store struct thermal_zone_device reference

2019-03-31 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 Cc: Chris Healy Cc: Lucas Stach Cc: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc:

[PATCH v3 12/13] thermal_hwmon: Add devres wrapper for thermal_add_hwmon_sysfs()

2019-03-31 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: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc: linux...@vger.kernel.org Cc:

[PATCH v3 13/13] thermal: qoriq: Add hwmon support

2019-03-31 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: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc: linux...@vger.kernel.org Cc:

[PATCH v3 01/13] thermal: qoriq: Remove unnecessary DT node is NULL check

2019-03-31 Thread Andrey Smirnov
This driver is meant to be used with Device Tree and there's no use-case where device's DT node is going to be NULL. Remove code protecting against that. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas Stach Cc: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie

[PATCH v3 00/13] QorIQ TMU multi-sensor and HWMON support

2019-03-31 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 [v2] - Patches rebased on v5.1-rc1 Changes since

[PATCH v3 05/13] thermal: qoriq: Embed per-sensor data into struct qoriq_tmu_data

2019-03-31 Thread Andrey Smirnov
Embed per-sensor data into struct qoriq_tmu_data so we can drop the code allocating it. This also allows us to get rid of per-sensor back reference to struct qoriq_tmu_data since now its address can be caluclated using container_of(). Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas

Re: [PATCH] thermal/drivers/core: Remove the module Kconfig's option

2019-03-31 Thread Guenter Roeck
On Sun, Mar 31, 2019 at 8:24 PM Daniel Lezcano wrote: > > The module support for the thermal subsystem does have a little sense: Do you mean "makes little sense" ? > - some subsystems relying on it are not modules, thus forcing the >framework to be compiled in > - it is compiled in for

Re: [patch 00/14] x86/exceptions: Add guard patches to IST stacks

2019-03-31 Thread Andy Lutomirski
On Sun, Mar 31, 2019 at 3:10 PM Thomas Gleixner wrote: > > Hi! > > While looking for something different I stumbled over the comment in struct > cpu_entry_area: > > * Exception stacks used for IST entries. > * > * In the future, this should have a separate slot for each

Re: [patch 02/14] x86/idt: Remove unused macro SISTG

2019-03-31 Thread Andy Lutomirski
On Sun, Mar 31, 2019 at 3:10 PM Thomas Gleixner wrote: > > d8ba61ba58c8 ("x86/entry/64: Don't use IST entry for #BP stack") removed > the last user but left the macro around. Reviewed-by: Andy Lutomirski > > Signed-off-by: Thomas Gleixner > --- > arch/x86/kernel/idt.c |4 > 1 file

[PATCH] Bluetooth: hci_bcm: Fix empty regulator supplies for Intel Macs

2019-03-31 Thread Chen-Yu Tsai
From: Chen-Yu Tsai The code path for Macs goes through bcm_apple_get_resources(), which skips over the code that sets up the regulator supplies. As a result, the call to regulator_bulk_enable() / regulator_bulk_disable() results in a NULL pointer dereference. This was reported on the kernel.org

[PATCH v4] arm64: dts: ls1088a: add one more thermal zone node

2019-03-31 Thread Yuantian Tang
Ls1088a has 2 thermal sensors, core cluster and SoC platform. Core cluster sensor is used to monitor the temperature of core and SoC platform is for platform. The current dts only support the first sensor. This patch adds the second sensor node to dts to enable it. Signed-off-by: Yuantian Tang

[PATCH v4 4/4] pinctrl: add drive for I2C related pins on MT8183

2019-03-31 Thread Zhiyong Tao
This patch provides the advanced drive for I2C used pins on MT8183. The detail strength specification description of the I2C pin: When E1=0/E0=0, the strength is 0.125mA. When E1=0/E0=1, the strength is 0.25mA. When E1=1/E0=0, the strength is 0.5mA. When E1=1/E0=1, the strength is 1mA. For I2C

[PATCH v4 2/4] arm64: dts: mt8183: add pinctrl file

2019-03-31 Thread Zhiyong Tao
This patch adds pinctrl file for mt8183. Signed-off-by: Zhiyong Tao Signed-off-by: Erin Lo Reviewed-by: Rob Herring --- This patch is based on patch "https://patchwork.kernel.org/patch/10814251/;. --- arch/arm64/boot/dts/mediatek/mt8183-pinfunc.h | 1120 + 1 file

[PATCH v4 1/4] dt-bindings: pinctrl: mt8183: add binding document

2019-03-31 Thread Zhiyong Tao
The commit adds mt8183 compatible node in binding document. Signed-off-by: Zhiyong Tao Signed-off-by: Erin Lo Reviewed-by: Rob Herring --- This patch is based on patch "https://patchwork.kernel.org/patch/10778511/;. --- .../devicetree/bindings/pinctrl/pinctrl-mt8183.txt | 132

[PATCH v4 3/4] arm64: dts: mt8183: add pinctrl device node

2019-03-31 Thread Zhiyong Tao
The commit adds pinctrl device node for mt8183 Signed-off-by: Zhiyong Tao Signed-off-by: Erin Lo --- This patch is based on patch "https://patchwork.kernel.org/patch/10814239/;. --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 26 +- 1 file changed, 25 insertions(+), 1

[PATCH v4 0/4] PINCTRL: Mediatek pinctrl patch on mt8183

2019-03-31 Thread Zhiyong Tao
This series includes 4 patches: 1.add pinctrl binding document on mt8183. 2.add pinctrl file on mt8183. 3.add pinctrl device node on mt8183. 4.add drive for I2C related pins on MT8183. Changes in patch v4: 1)patch [1/4] is based on patch "https://patchwork.kernel.org/patch/10778511/;. 2)patch

[PATCH] ALSA: hda/realtek: Enable headset MIC of Acer TravelMate B114-21 with ALC233

2019-03-31 Thread Jian-Hong Pan
The Acer TravelMate B114-21 laptop cannot detect and record sound from headset MIC. This patch adds the ALC233_FIXUP_ACER_HEADSET_MIC HDA verb quirk chained with ALC233_FIXUP_ASUS_MIC_NO_PRESENCE pin quirk to fix this issue. Signed-off-by: Jian-Hong Pan Signed-off-by: Daniel Drake ---

Re: [PATCH] max98357a:add dai without triggered by pcm

2019-03-31 Thread Mark Brown
On Fri, Mar 29, 2019 at 09:51:59AM +0800, tony.zou...@gmail.com wrote: > max98357a's enable pin need setting independently > when max98357a is shared I2S with other codec. > add dai "max98357a-hifi" without pcm trigger, > and use "Spk PA Switch" to set the enable pin. This sounds like a really

[PATCH] thermal/drivers/core: Remove the module Kconfig's option

2019-03-31 Thread Daniel Lezcano
The module support for the thermal subsystem does have a little sense: - some subsystems relying on it are not modules, thus forcing the framework to be compiled in - it is compiled in for almost every configs, the remaining ones are a few platforms where I don't see why we can not switch

linux-next: Tree for Apr 1

2019-03-31 Thread Stephen Rothwell
Hi all, Changes since 20190329: The net-next tree gained a conflict against the net tree. The sound-asoc tree gained a conflict against the hwmon-staging tree. Non-merge commits (relative to Linus' tree): 3800 3480 files changed, 113652 insertions(+), 51617 deletions(-)

Re: [PATCH] spi: oc-tiny: fix negative loop bound error on for loop

2019-03-31 Thread Mark Brown
On Sat, Mar 30, 2019 at 09:23:00PM +, Colin King wrote: > Fixes: ca632f556697 ("spi: reorganize drivers") Please think about the fixes tags you're applying, this is obviously not the source of the issue. signature.asc Description: PGP signature

Re: INFO: task hung in evdev_release

2019-03-31 Thread Mark Brown
On Wed, Mar 27, 2019 at 06:24:01PM -0700, syzbot wrote: > syzbot has bisected this bug to: This bug being... > commit e32d99af6830c9a8f37b4f2637ef0cdc60fa79fb > Author: Jerome Brunet > Date: Tue Jul 17 15:42:50 2018 + > > ASoC: meson: add axg fifos DT binding documentation This is

[PATCH V2] arm/mach-at91/pm : fix possible object reference leak

2019-03-31 Thread Peng Hao
of_find_device_by_node() takes a reference to the struct device when it finds a match via get_device. When returning error we should call put_device. Signed-off-by: Peng Hao --- arch/arm/mach-at91/pm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH] ARM: dts: imx6sll: add cooling-cells for cpu-freq cooling device

2019-03-31 Thread Anson Huang
Add #cooling-cells for i.MX6SLL cpu-freq cooling device usage. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sll.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/imx6sll.dtsi b/arch/arm/boot/dts/imx6sll.dtsi index 62847c6..bffdad1 100644 ---

RE: [PATCH V5 1/4] dt-bindings: fsl: scu: add general interrupt support

2019-03-31 Thread Anson Huang
Ping... Best Regards! Anson Huang > -Original Message- > From: Anson Huang [mailto:anson.hu...@nxp.com] > Sent: 2019年3月18日 11:10 > To: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; >

RE: [PATCH v2 2/4] opp: add API which get max freq by voltage

2019-03-31 Thread MyungJoo Ham
>This API will get voltage as input parameter. >Search all opp items for the item which with max frequency, >and the voltae is smaller than provided voltage. > >Signed-off-by: Andrew-sh.Cheng >--- > drivers/opp/core.c | 55 ++ >

[PATCH v4 3/5] arm64: dts: imx8mq: Combine PCIE power domains

2019-03-31 Thread Andrey Smirnov
According to NXP's FAE feedback and a comment in ATF firmware, PCIE1 and PCIE2 power domains can't really be used independently. Due to shared reset line both power domains have to be turned on at the same time. Account for that quirk by combining PCIE power domains into a single 'pgc_pcie' power

[PATCH v4 5/5] arm64: dts: imx8mq-evk: Enable PCIE0 interface

2019-03-31 Thread Andrey Smirnov
Enable PCIE0 interface connected to BCM4356 WiFi/Bluetooth module. Signed-off-by: Andrey Smirnov Reviewed-by: Lucas Stach Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com Cc:

[PATCH v4 0/5] PCIE support for i.MX8MQ (DT changes)

2019-03-31 Thread Andrey Smirnov
Everyone: This series contains all of the i.MX Device Tree changes I made to enable support of PCIe on i.MX8MQ EVK. Feedback is welcome! Changes since [v3]: - Added "num-viewport" to PCIE nodes in "arm64: dts: imx8mq: Add nodes for PCIe IP blocks" - Rebased on latest

[PATCH v4 2/5] arm64: dts: imx8mq: Add a node for SRC IP block

2019-03-31 Thread Andrey Smirnov
Add a node for reset controller IP block found on i.MX8MQ. Signed-off-by: Andrey Smirnov Reviewed-by: Lucas Stach Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com Cc:

[PATCH v4 1/5] arm64: dts: imx8mq: Mark iomuxc_gpr as i.MX6Q compatible

2019-03-31 Thread Andrey Smirnov
Mark iomuxc_gpr as compatible with "fsl,imx6q-iomuxc-gpr" in order for to allow i.MX6 PCIe driver to use it. Signed-off-by: Andrey Smirnov Acked-by: Lucas Stach Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc:

[PATCH v4 4/5] arm64: dts: imx8mq: Add nodes for PCIe IP blocks

2019-03-31 Thread Andrey Smirnov
Add nodes for two PCIe controllers found on i.MX8MQ. Signed-off-by: Andrey Smirnov Reviewed-by: Lucas Stach Cc: Shawn Guo Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com Cc: linux-arm-ker...@lists.infradead.org

Re: [PATCH v5 00/11] tracing: common error_log for ftrace

2019-03-31 Thread Masami Hiramatsu
Hi Tom, On Sun, 31 Mar 2019 18:48:14 -0500 Tom Zanussi wrote: > From: Tom Zanussi > > Hi, > > This is v5 of the frace error_log patchset. This version updates the > patches according to suggestions from Masami and Namhyung and moves > some of the selftest code from the kprobe/uprobe

Re: [PATCH 7/7] irqchip/al-msi: Add ACPI support

2019-03-31 Thread Marc Zyngier
On Sun, 31 Mar 2019 13:35:33 +0100, Hanna Hawa wrote: > > This patch adds ACPI support for AL-MSIx driver. > > The AL-MSIx controller is not standard, is not included in the UEFI > specification, and will not be added. The driver ACPI binding is > performed when the following conditions are

Re: [PATCH v2 0/5] pid: add pidfd_open()

2019-03-31 Thread Andy Lutomirski
> On Mar 31, 2019, at 3:17 PM, Linus Torvalds > wrote: > >> On Sun, Mar 31, 2019 at 2:10 PM Christian Brauner >> wrote: >> >> I don't think that we want or can make them equivalent since that would >> mean we depend on procfs. > > Sure we can. > > If /proc is enabled, then you always do

Re: [PATCH] clk: asr: clock driver support for ASR AquilaC Soc

2019-03-31 Thread 周侨
On 2019/3/30 上午6:18, Stephen Boyd wrote: > Quoting qiaozhou (2019-03-23 07:08:35) >> From: Qiao Zhou >> >> add clock driver support for ASR AquilaC SoC. >> >> We add clk-gate, clk-mix, and clk-pll drivers: >> 1. clk-gate driver is for regisers which have different enable/disable bits >> to

Re: [PATCH 0/7] al-msi: Rename driver and add support for ACPI

2019-03-31 Thread Marc Zyngier
On Sun, 31 Mar 2019 13:34:08 +0100, Hanna Hawa wrote: > > This series includes three major changes: > 1. IOMMU DMA mapping MSI message fix. > 2. Re-name the AL-MSIx driver to new name convention. > 3. Add ACPI support for the driver. > > Alpine is the name of the SoC family, while AL stands for

Re: [PATCH 3/7] irqchip/al-msi: Rename AL-MSIx driver

2019-03-31 Thread Marc Zyngier
On Sun, 31 Mar 2019 13:34:11 +0100, Hanna Hawa wrote: > > Alpine is the name of the SoC family, while AL stands for Annapurna > Labs. Rename to the latter since the driver will appear in other SoC > families other than Alpine. > > Add device tree match for "amazon/al-msix". > > Signed-off-by:

[PATCH 1/7] cpufreq: ap806: fix possible object reference leak

2019-03-31 Thread Wen Yang
The call to of_find_compatible_node returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/cpufreq/armada-8k-cpufreq.c:187:1-7: ERROR: missing of_node_put; acquired a node pointer

[PATCH 7/7] cpufreq: ppc_cbe: fix possible object reference leak

2019-03-31 Thread Wen Yang
The call to of_get_cpu_node returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/cpufreq/ppc_cbe_cpufreq.c:89:2-8: ERROR: missing of_node_put; acquired a node pointer with

[PATCH 3/7] cpufreq: kirkwood: fix possible object reference leak

2019-03-31 Thread Wen Yang
The call to of_get_child_by_name returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/cpufreq/kirkwood-cpufreq.c:127:2-8: ERROR: missing of_node_put; acquired a node pointer

[PATCH 6/7] cpufreq: pmac32: fix possible object reference leak

2019-03-31 Thread Wen Yang
The call to of_find_node_by_name returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/cpufreq/pmac32-cpufreq.c:557:2-8: ERROR: missing of_node_put; acquired a node pointer with

[PATCH 0/7] fix possible object reference leaks in cpufreq

2019-03-31 Thread Wen Yang
The call to of_get_cpu_node/of_find_compatible_node/of_parse_phandle... returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. This patch series fix those possible object reference leaks in cpufreq. Wen Yang (7): cpufreq: ap806: fix

[PATCH 4/7] cpufreq: maple: fix possible object reference leak

2019-03-31 Thread Wen Yang
The call to of_cpu_device_node_get returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/cpufreq/maple-cpufreq.c:213:2-8: ERROR: missing of_node_put; acquired a node pointer with

[PATCH 2/7] cpufreq: imx6q: fix possible object reference leak

2019-03-31 Thread Wen Yang
The call to of_node_get returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/cpufreq/imx6q-cpufreq.c:391:4-10: ERROR: missing of_node_put; acquired a node pointer with refcount

Re: general protection fault in _vm_normal_page

2019-03-31 Thread syzbot
syzbot has bisected this bug to: commit 4a110365f1da9d5cabbd0a01796027c0a6d5e80b Author: Kirill A. Shutemov Date: Wed Jul 11 00:45:42 2018 + mm: drop unneeded ->vm_ops checks bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=10b0650f20 start commit: 98be4506 Add

Re: [PATCH 01/17] kbuild: Disable -Waddress-of-packed-member for gcc 9

2019-03-31 Thread Masahiro Yamada
Hi, On Fri, Mar 22, 2019 at 10:59 PM Arnd Bergmann wrote: > > On Thu, Mar 21, 2019 at 11:00 PM Andi Kleen wrote: > > > > From: Andi Kleen > > > > This warning is very noisy in a default build with gcc 9. > > Move it into W=2 only. > > > > Cc: a...@arndb.de > > Cc: Masahiro Yamada > >

Re: [PATCH v2 0/5] pid: add pidfd_open()

2019-03-31 Thread Jann Horn
On Mon, Apr 1, 2019 at 12:33 AM Christian Brauner wrote: > On Sun, Mar 31, 2019 at 03:16:47PM -0700, Linus Torvalds wrote: > > On Sun, Mar 31, 2019 at 3:03 PM Christian Brauner > > wrote: > > > Thanks for the input. The problem Jann and I saw with this is that it > > > would be awkward to have

Re: [PATCH v2 0/5] pid: add pidfd_open()

2019-03-31 Thread Linus Torvalds
On Sun, Mar 31, 2019 at 5:09 PM Al Viro wrote: > > Ugh... Which vfsmount would you have to go with it? I'd literally just do a lookup of "/proc" in the current root directory in the lookup() function for that special pseudo-dentry. If it's not mounted, or not a /proc filesystem, screw it. >

Re: [PATCH v2 0/5] pid: add pidfd_open()

2019-03-31 Thread Christian Brauner
On Sun, Mar 31, 2019 at 05:18:10PM -0700, Linus Torvalds wrote: > On Sun, Mar 31, 2019 at 5:09 PM Al Viro wrote: > > > > Ugh... Which vfsmount would you have to go with it? > > I'd literally just do a lookup of "/proc" in the current root > directory in the lookup() function for that special

Re: [PATCH v2 0/5] pid: add pidfd_open()

2019-03-31 Thread Al Viro
On Sun, Mar 31, 2019 at 04:40:15PM -0700, Linus Torvalds wrote: > The clever alternative, which might be the RightWay(tm) is to just > create a completely unattached dentry, and basically tie it into the > actual /proc filesystem hierarchy at lookup() time when somebody does > the openat() using

[PATCH] x86/traps: print faulty addresses on stack overflow

2019-03-31 Thread Matteo Croce
Since commit ad67b74d2469d9b8 ("printk: hash addresses printed with %p"), when a stack overflow happens "ptrval" is printed instead of the real addresses: BUG: stack guard page was hit at (ptrval) (stack is (ptrval)..(ptrval)) Even if leaking kernel layout

[PATCH v5 03/11] tracing: Use tracing error_log with hist triggers

2019-03-31 Thread Tom Zanussi
From: Tom Zanussi Replace hist_err() and hist_err_event() with tracing_log_err() from the new tracing error_log mechanism. Also add a couple related helper functions and remove most of the old hist_err()-related code. With this change, users no longer read the hist files for hist trigger error

[PATCH v5 06/11] selftests/ftrace: Add error_log testcase for probe errors

2019-03-31 Thread Tom Zanussi
From: Masami Hiramatsu Add error_log testcase for error logs on probe events. This tests most of error cases and checks the error position is correct. Signed-off-by: Masami Hiramatsu [tom.zanu...@linux.intel.com: changed >& redirection to 2>] Signed-off-by: Tom Zanussi Acked-by: Namhyung Kim

  1   2   3   4   >