Re: [PATCH] arm64: dts: sdm845: Include the interconnect resources DT header

2019-03-23 Thread Bjorn Andersson
On Mon 11 Mar 07:06 PDT 2019, Georgi Djakov wrote: > Include the device tree header for the on-chip interconnect endpoint > resources on sdm845 devices. This will allow using the "interconnects" > property in DT nodes to describe the interconnect path resources they use. > > The sdm845

Re: [PATCH] kobject: Add support for default attribute groups to kobj_type

2019-03-23 Thread Greg Kroah-Hartman
On Sat, Mar 23, 2019 at 11:48:21PM -0400, Kimberly Brown wrote: > On Sat, Mar 23, 2019 at 07:07:37AM +0100, Greg Kroah-Hartman wrote: > > On Fri, Mar 22, 2019 at 04:14:40PM -0400, Kimberly Brown wrote: > > > kobj_type currently uses a list of individual attributes to store > > > default

RE: [PATCH V3 01/10] mmc: tegra: fix ddr signaling for non-ddr modes

2019-03-23 Thread Sowjanya Komatineni
> > > > ddr_signaling is set to true for DDR50 and DDR52 modes but is not > > set back to false for other modes. This programs incorrect host > > clock when mode change happens from DDR52/DDR50 to other SDR or HS > > modes like incase of mmc_retune where it switches from HS400 to HS > > DDR

[PATCH V4 05/10] arm64: tegra: fix default tap and trim values

2019-03-23 Thread Sowjanya Komatineni
Default tap and trim values are incorrect for Tegra186 SDMMC4. This patch fixes it. Tested-by: Jon Hunter Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH V4 10/10] arm64: tegra: enable command queue for tegra186 sdmmc4

2019-03-23 Thread Sowjanya Komatineni
This patch enables command queue support for Tegra186 SDMMC4. Tested-by: Jon Hunter Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi

[PATCH V4 09/10] mmc: tegra: fix CQE enable and resume sequence

2019-03-23 Thread Sowjanya Komatineni
Tegra CQHCI/SDHCI design prevents write access to SDHCI block size register when CQE is enabled and unhalted. CQHCI driver enables CQE prior to invoking sdhci_cqe_enable which violates this Tegra specific host requirement. This patch fixes this by configuring sdhci block registers prior to CQE

[PATCH V4 03/10] mmc: tegra: update hw tuning process

2019-03-23 Thread Sowjanya Komatineni
This patch includes below HW tuning related fixes. configures tuning parameters as per Tegra TRM WAR fix for manual tap change HW auto-tuning post process As per Tegra TRM, SDR50 mode tuning execution takes upto maximum of 256 tuning iterations and SDR104/HS200/HS400 modes tuning

[PATCH V4 06/10] mmc: cqhci: allow hosts to update dcmd cmd desc

2019-03-23 Thread Sowjanya Komatineni
This patch adds update_dcmd_desc interface to cqhci_host_ops to allow hosts to update any of the DCMD task descriptor attributes and parameters. Tested-by: Jon Hunter Reviewed-by: Ritesh Harjani Signed-off-by: Sowjanya Komatineni --- [V4]: Minor fix of missing declaration of mmc_request

[PATCH V4 08/10] mmc: cqhci: add CQHCI_SSC1 register CBC field mask

2019-03-23 Thread Sowjanya Komatineni
This patch adds define for CBC field mask of the register CQHCI_SSC1. Tested-by: Jon Hunter Acked-by: Adrian Hunter Signed-off-by: Sowjanya Komatineni --- drivers/mmc/host/cqhci.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/cqhci.h b/drivers/mmc/host/cqhci.h index

[PATCH V4 07/10] mmc: tegra: add Tegra186 WAR for CQE

2019-03-23 Thread Sowjanya Komatineni
Tegra186 CQHCI host has a known bug where CQHCI controller selects DATA_PRESENT_SELECT bit to 1 for DCMDs with R1B response type and since DCMD does not trigger any data transfer, DCMD task complete happens leaving the DATA FSM of host controller in wait state for the data. This effects the data

[PATCH V4 02/10] mmc: sdhci: allow host to specify maximum tuning loops

2019-03-23 Thread Sowjanya Komatineni
As per the Host Controller Standard Specification Version 4.20, limitation of tuning iteration count is removed as PLL locking time can be longer than UHS-1 tuning due to larger PVT fluctuation and it will result in increase of tuning iteration to complete the tuning. This patch creates

[PATCH V4 01/10] mmc: tegra: fix ddr signaling for non-ddr modes

2019-03-23 Thread Sowjanya Komatineni
ddr_signaling is set to true for DDR50 and DDR52 modes but is not set back to false for other modes. This programs incorrect host clock when mode change happens from DDR52/DDR50 to other SDR or HS modes like incase of mmc_retune where it switches from HS400 to HS DDR and then from HS DDR to HS

[PATCH V4 04/10] dt-bindings: mmc: tegra: document Tegra194 compatible string

2019-03-23 Thread Sowjanya Komatineni
SDHCI controller of Tegra194 is similar to SDHCI controller in Tegra186. This patch documents Tegra194 sdhci compatible string. Signed-off-by: Sowjanya Komatineni --- Documentation/devicetree/bindings/mmc/nvidia,tegra20-sdhci.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v18 3/3] pps: pps-gpio PPS ECHO implementation

2019-03-23 Thread Tom Burkart
This patch implements the PPS ECHO functionality for pps-gpio, that sysfs claims is available already. Configuration is done via device tree bindings. No changes are made to userspace interfaces. This patch was originally written by Lukas Senger as part of a masters thesis project and modified

[PATCH v18 0/3] PPS: pps-gpio PPS ECHO implementation

2019-03-23 Thread Tom Burkart
Hi Andrew, would you please add this patch set to the kernel tree at the next opportunity? Hopefully I have addressed all the changes you have requested and the linkages are correct. Tom Tom Burkart (3): pps: descriptor-based gpio dt-bindings: pps: pps-gpio PPS ECHO implementation pps:

[PATCH v18 2/3] dt-bindings: pps: pps-gpio PPS ECHO implementation

2019-03-23 Thread Tom Burkart
This patch implements the device tree binding changes required for the PPS ECHO functionality for pps-gpio, that sysfs claims is available already. It adds two DT properties for configuring the PPS ECHO functionality. This patch is provided separated from the rest of the patch per

[PATCH v18 1/3] pps: descriptor-based gpio

2019-03-23 Thread Tom Burkart
This patch changes the GPIO access for the pps-gpio driver from the integer based API to the descriptor based API. The integer based API is considered deprecated and the descriptor based API is the preferred way to access GPIOs as per Documentation/driver-api/gpio/intro.rst No changes are made

Re: [PATCH v2 3/5] RISC-V: Allow booting kernel from any 4KB aligned address

2019-03-23 Thread Anup Patel
On Sat, Mar 23, 2019 at 10:54 PM Christoph Hellwig wrote: > > On Sat, Mar 23, 2019 at 05:40:12PM +0200, Mike Rapoport wrote: > > I have no general objection, but I presume the patch will be significantly > > simplified if the addition of 4K pages support will follow the removal of > > the

Re: [BUG] gpiolib: spi chip select legacy support breaks modern chip select and whitens the GTA04 LCD panel

2019-03-23 Thread Linus Walleij
On Sat, Mar 23, 2019 at 3:40 PM H. Nikolaus Schaller wrote: > (1) c1c04cea13dc gpio: of: Fix logic inversion > > together with the basic patch > > (2) 6953c57ab172 gpio: of: Handle SPI chipselect legacy bindings > > leads to a severe regression for our GTA04 board. Sorry! :( I found the same

Re: [PATCH v10 00/10] Introduce the for_each_set_clump8 macro

2019-03-23 Thread William Breathitt Gray
On Fri, Mar 22, 2019 at 09:12:02PM +0200, Andy Shevchenko wrote: > On Thu, Mar 14, 2019 at 09:29:32PM +0900, William Breathitt Gray wrote: > > Changes in v10: > > - Fix off-by-one error in bitmap initialization in the > > test_for_each_set_clump8 function > > - Fix typos in clump_exp array

Re: [PATCH] kobject: Add support for default attribute groups to kobj_type

2019-03-23 Thread Kimberly Brown
On Sat, Mar 23, 2019 at 07:07:37AM +0100, Greg Kroah-Hartman wrote: > On Fri, Mar 22, 2019 at 04:14:40PM -0400, Kimberly Brown wrote: > > kobj_type currently uses a list of individual attributes to store > > default attributes. Attribute groups are more flexible than a list of > > attributes

Re: [PATCH v10 10/10] thermal: intel: intel_soc_dts_iosf: Utilize for_each_set_clump8 macro

2019-03-23 Thread William Breathitt Gray
On Fri, Mar 22, 2019 at 09:02:43PM +0200, Andy Shevchenko wrote: > On Thu, Mar 14, 2019 at 09:32:57PM +0900, William Breathitt Gray wrote: > > Utilize for_each_set_clump8 macro, and the bitmap_set_value8 and > > bitmap_get_value8 functions, where appropriate. In addition, remove the > > now

Re: [PATCH 09/24] mmc: mtk-sd: check for valid optional memory resource

2019-03-23 Thread Yingjoe Chen
On Sat, 2019-03-23 at 22:15 +0100, Fabien Parent wrote: > 'top_base' memory region is optional. Check that the resource is valid > before using it. This avoid getting a "invalid resource" error message > printed by the kernel. > > Signed-off-by: Fabien Parent > --- > drivers/mmc/host/mtk-sd.c |

Re: [PATCH v2 3/5] RISC-V: Allow booting kernel from any 4KB aligned address

2019-03-23 Thread Anup Patel
On Sat, Mar 23, 2019 at 9:10 PM Mike Rapoport wrote: > > On Thu, Mar 21, 2019 at 09:47:51AM +, Anup Patel wrote: > > Currently, we have to boot RISCV64 kernel from a 2MB aligned physical > > address and RISCV32 kernel from a 4MB aligned physical address. This > > constraint is because initial

Re: [RFCv2] string: Use faster alternatives when constant arguments are used

2019-03-23 Thread Nathan Chancellor
On Sat, Mar 23, 2019 at 07:24:06PM -0700, Sultan Alsawaf wrote: > I messed up the return value for strcat in the first patch. Here's a fixed > version, ready for some scathing reviews. > > From: Sultan Alsawaf > > When strcpy, strcat, and strcmp are used with a literal string, they can > be

[GIT PULL] SMB3 Fixes

2019-03-23 Thread Steve French
Please pull the following changes since commit a5ed1e96cafde5ba48638f486bfca0685dc6ddc9: Merge tag 'powerpc-5.1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux (2019-03-22 14:15:11 -0700) are available in the Git repository at: git://git.samba.org/sfrench/cifs-2.6.git

Re: [RFC] [PATCH 0/5] procfs: reduce duplication by using symlinks

2019-03-23 Thread Jeff Mahoney
On 3/23/19 11:56 AM, Eric W. Biederman wrote: > Jeff Mahoney writes: > >> On 4/24/18 10:14 AM, Eric W. Biederman wrote: >>> je...@suse.com writes: >>> From: Jeff Mahoney Hi all - I recently encountered a customer issue where, on a machine with many TiB of memory

Re: [RFC PATCH v2] x86/cpu/hygon: Fix phys_proc_id calculation logic for multi-die processor

2019-03-23 Thread Pu Wen
On 2019/3/24 0:40, Borislav Petkov wrote: On Sat, Mar 23, 2019 at 11:42:20PM +0800, Pu Wen wrote: v1->v2: - Define bit 6 of ApicId with a descriptive name. - Add description about why Hygon need to do something different than what AMD does. In the future, such patch changelogs

[RFCv2] string: Use faster alternatives when constant arguments are used

2019-03-23 Thread Sultan Alsawaf
I messed up the return value for strcat in the first patch. Here's a fixed version, ready for some scathing reviews. From: Sultan Alsawaf When strcpy, strcat, and strcmp are used with a literal string, they can be optimized to memcpy or memcmp calls. These alternatives are faster since knowing

Re: [PATCH v2] kbuild: gitignore output directory

2019-03-23 Thread Masahiro Yamada
On Sat, Mar 23, 2019 at 12:53 AM Andre Przywara wrote: > > Hi, > > > When compiling into output directory using O=, many files > > created under KBUILD_OUTPUT that git considers > > as new ones; git clients, ex. "git gui" lists it, and it clutters > > file list making it difficult to see what was

[PATCH] regulator: tps65218: Constify regulator_ops

2019-03-23 Thread Axel Lin
These regulator_ops variables never need to be modified, make them const so compiler can put them to .rodata. Signed-off-by: Axel Lin --- drivers/regulator/tps65218-regulator.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/tps65218-regulator.c

[RFC] string: Use faster alternatives when constant arguments are used

2019-03-23 Thread Sultan Alsawaf
From: Sultan Alsawaf When strcpy, strcat, and strcmp are used with a literal string, they can be optimized to memcpy or memcmp calls. These alternatives are faster since knowing the length of a string argument beforehand allows traversal through the string word at a time without being concerned

Re: [PATCH 1/3] rtc: sun4v: switch to rtc_time64_to_tm/rtc_tm_to_time64

2019-03-23 Thread David Miller
From: Alexandre Belloni Date: Fri, 22 Mar 2019 08:22:54 +0100 > Call the 64bit versions of rtc_tm time conversion as the hypervisor handles > 64bit values. > > Signed-off-by: Alexandre Belloni Acked-by: David S. Miller

Re: [PATCH 3/3] rtc: sun4v: switch to SPDX identifier

2019-03-23 Thread David Miller
From: Alexandre Belloni Date: Fri, 22 Mar 2019 08:22:56 +0100 > Use SPDX-License-Identifier to be clearer on the license. Choose the v2 > only as this is the default Linux license. > > Signed-off-by: Alexandre Belloni Acked-by: David S. Miller

Re: [PATCH 2/3] rtc: sun4v: set range

2019-03-23 Thread David Miller
From: Alexandre Belloni Date: Fri, 22 Mar 2019 08:22:55 +0100 > The Sun4v Hypervisor Core API Specification states: > Time is described by a single unsigned 64-bit word equivalent to a time_t > for the POSIX time(2) system call. The word contains the time since the > Epoch (00:00:00 UTC, January

[PATCH] arm64: add support for ASR AquilaC SoC

2019-03-23 Thread qiaozhou
From: Qiao Zhou Add ARCH_ASR Signed-off-by: qiaozhou --- arch/arm64/Kconfig.platforms | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 70498a0..da8d43a 100644 --- a/arch/arm64/Kconfig.platforms +++

Re: BUG: soft lockup in kvm_vm_release

2019-03-23 Thread Thomas Gleixner
On Sat, 23 Mar 2019, syzbot wrote: > syzbot has bisected this bug to: > > commit 80eb865768703c0f85a0603762742ae1dedf21f0 > Author: Andrea Parri > Date: Tue Nov 27 11:01:10 2018 + > >sched/fair: Clean up comment in nohz_idle_balance() I.m pretty sure that this bisect is bogus. The

Re: [PATCH] infiniband: cxgb4: fix a potential NULL pointer dereference

2019-03-23 Thread Bart Van Assche
On 3/22/19 7:37 PM, Kangjie Lu wrote: On Mar 8, 2019, at 11:19 PM, Kangjie Lu wrote: get_skb may fail and return NULL. The fix returns "ENOMEM" when it fails to avoid NULL dereference. Signed-off-by: Kangjie Lu --- drivers/infiniband/hw/cxgb4/cm.c | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [RFC] [PATCH v2 0/5] Intel Virtual PMU Optimization

2019-03-23 Thread Andi Kleen
> > We optimize the current vPMU to work in this manner: > > > > (1) rely on the existing host perf (perf_event_create_kernel_counter) > > to allocate counters for in-use vPMC and always try to reuse events; > > (2) vPMU captures guest accesses to the eventsel and fixctrl msr directly > >

Re: [PATCH] sound: rt5645: fix a NULL pointer dereference

2019-03-23 Thread Aditya Pakki
On 3/14/19 10:48 PM, Kangjie Lu wrote: > devm_kcalloc() may fail and return NULL. The fix returns ENOMEM > in case it fails to avoid NULL pointer dereference. > > Signed-off-by: Kangjie Lu > --- > sound/soc/codecs/rt5645.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git

[PATCH v2] tty: 8250: fix a missing check for pci_ioremap_bar

2019-03-23 Thread Aditya Pakki
pci_ioremap_bar could fail. The fix captures the failure and pass an error code upstream. This can avoid potential NULL pointer dereferences in the future. Signed-off-by: Aditya Pakki --- v1: Missed return by default in CONFIG_SERIAL_8250_DMA, suggested by Jiri Slaby ---

[PATCH] dma: ti: fix a missing check in omap_dma_prep_dma_cyclic

2019-03-23 Thread Kangjie Lu
It is invalid when "buf_len" is not aligned with "period_len". The fix adds a check for the alignment. Signed-off-by: Kangjie Lu --- drivers/dma/ti/omap-dma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/ti/omap-dma.c b/drivers/dma/ti/omap-dma.c index

[PATCH] firmware: edd: fix a NULL pointer dereference

2019-03-23 Thread Kangjie Lu
As other functions in this module do, edev should be checked to ensure that it is not NULL. The fix inserts such as check to avoid potential NULL pointer dereference. Signed-off-by: Kangjie Lu --- drivers/firmware/edd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH] pinctrl: axp209: Fix NULL pointer dereference after allocation

2019-03-23 Thread Aditya Pakki
Gentle reminder, Can someone review this patch. On 3/12/19 10:19 AM, Aditya Pakki wrote: > axp20x_build_funcs_groups allocates groups via devm_kcalloc and tries to > dereference without checking for NULL. This patch avoids such a > scenario. > > Signed-off-by: Aditya Pakki > --- >

Re: [PATCH v19,RESEND 24/27] x86/vdso: Add __vdso_sgx_enter_enclave() to wrap SGX enclave transitions

2019-03-23 Thread Andy Lutomirski
> On Mar 23, 2019, at 10:36 AM, Xing, Cedric wrote: > > Hi Sean, > >> Although its just 9 LOC, consider its impact on someone who is looking >> at >> the kernel's SGX support for the first time. Questions they may have >> when >> looking at the vDSO code/documentation: >> >> - What's an exit

[PATCH 06/24] mfd: mt6397: Add support for MT6397 pmic

2019-03-23 Thread Fabien Parent
Update the MT6397 MFD driver to support the MT6392 PMIC. Signed-off-by: Fabien Parent --- drivers/mfd/mt6397-core.c| 96 ++ include/linux/mfd/mt6392/core.h | 42 +++ include/linux/mfd/mt6392/registers.h | 487 +++ 3 files changed, 625 insertions(+)

[PATCH 05/24] soc: mediatek: pwrap: add support for MT8516 pwrap

2019-03-23 Thread Fabien Parent
Add the code to support the pwrap IP on the MediaTek MT8516 SoC. Signed-off-by: Fabien Parent --- drivers/soc/mediatek/mtk-pmic-wrap.c | 106 +++ 1 file changed, 106 insertions(+) diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c

[PATCH 10/24] mmc: mtk-sd: add support for MT8516

2019-03-23 Thread Fabien Parent
Add the MSDC configuration for the MT8516 SoC. Signed-off-by: Fabien Parent --- drivers/mmc/host/mtk-sd.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 573aa127d00b..51139275b1b2 100644 ---

[PATCH 17/24] dt-bindings: wdog: mtk-wdt: add support for MT851

2019-03-23 Thread Fabien Parent
Add binding documentation of mtk-wdt for MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt

[PATCH 14/24] clk: mediatek: add clock driver for MT8516

2019-03-23 Thread Fabien Parent
Add the clock driver for the MT8516 SoC. Signed-off-by: Fabien Parent --- drivers/clk/mediatek/Kconfig | 9 + drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8516.c | 815 ++ 3 files changed, 825 insertions(+) create mode 100644

[PATCH 13/24] dt-bindings: mediatek: apmixedsys: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of apmixedsys for MT8516 SoC. Signed-off-by: Fabien Parent --- .../bindings/arm/mediatek/mediatek,apmixedsys.txt | 1 + include/dt-bindings/clock/mt8516-clk.h | 10 ++ 2 files changed, 11 insertions(+) diff --git

[PATCH 22/24] dt-bindings: i2c: i2c-mtk: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of i2c-mtk for MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/i2c/i2c-mtk.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mtk.txt b/Documentation/devicetree/bindings/i2c/i2c-mtk.txt

[PATCH 24/24] arm64: dts: mediatek: add pumpkin board dts

2019-03-23 Thread Fabien Parent
The pumpkin board is made by Gossamer Engineering and is using a MediaTek SoC. The board currently comes in two available version: MT8516 SoC and MT8167 SoC. The board provides the following IOs: eMMC, NAND, SD card, USB type-A, Ethernet, Wi-Fi, Bluetooth, Audio (jack out, 2 PDM port, 1 analog

[PATCH 18/24] dt-bindings: timer: mtk-timer: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of mtk-timer for MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt

[PATCH 02/24] regulator: mt6392: Add support for MT6392 regulator

2019-03-23 Thread Fabien Parent
The MT6392 is a regulator found on boards based on the MediaTek MT8167, MT8516, and probably other SoCs. It is a so called PMIC and connectcts as a slave to a SoC using SPI, wrapped inside PWRAP. Signed-off-by: Fabien Parent --- drivers/regulator/Kconfig | 9 +

[PATCH 07/24] arm64: dts: mt6392: Add PMIC mt6392 dtsi

2019-03-23 Thread Fabien Parent
Add the regulator nodes for the MT6392 PMIC. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt6392.dtsi | 208 +++ 1 file changed, 208 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6392.dtsi diff --git

[PATCH 15/24] dt-bindings: pinctrl: pinctrl-mt65xx: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of pinctrl-mt65xx for MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt

[PATCH 03/24] dt-bindings: pwrap: mediatek: add pwrap support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of pwrap for MT8516 SoCs. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/mediatek/pwrap.txt

[PATCH 09/24] mmc: mtk-sd: check for valid optional memory resource

2019-03-23 Thread Fabien Parent
'top_base' memory region is optional. Check that the resource is valid before using it. This avoid getting a "invalid resource" error message printed by the kernel. Signed-off-by: Fabien Parent --- drivers/mmc/host/mtk-sd.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff

[PATCH 08/24] dt-bindings: mmc: mtk-sd: add mtk-sd support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of mtk-sd for MT8516 SoCs. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/mmc/mtk-sd.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.txt b/Documentation/devicetree/bindings/mmc/mtk-sd.txt index

[PATCH 11/24] dt-bindings: mediatek: topckgen: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of topckgen for MT8516 SoC. Signed-off-by: Fabien Parent --- .../arm/mediatek/mediatek,topckgen.txt| 1 + include/dt-bindings/clock/mt8516-clk.h| 192 ++ 2 files changed, 193 insertions(+) create mode 100644

[PATCH 21/24] dt-bindings: irq: mtk,sysirq: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of mediatek,sysirq for MT8516 SoC. Signed-off-by: Fabien Parent --- .../bindings/interrupt-controller/mediatek,sysirq.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 19/24] dt-bindings: spi: spi-mt65xx: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of spi-mt65xx for MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/spi/spi-mt65xx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt

[PATCH 23/24] arm64: dts: mediatek: add dtsi for MT8516

2019-03-23 Thread Fabien Parent
The MT8516 SoC provides the following peripherals: GPIO, UART, USB2, SPI, eMMC, SDIO, NAND, Flash, ADC, I2C, PWM, Timers, IR, Ethernet, and Audio (I2S, SPDIF, TDM). This commit is adding the basic dtsi file with the support of the following IOs: GPIO, UART, SPI, eMMC, I2C, Timers. Signed-off-by:

[PATCH 20/24] dt-bindings: serial: mtk-uart: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of mtk-uart for MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/serial/mtk-uart.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/mtk-uart.txt

[PATCH 16/24] pinctrl: mediatek: Add MT8516 Pinctrl driver

2019-03-23 Thread Fabien Parent
Signed-off-by: Fabien Parent --- drivers/pinctrl/mediatek/Kconfig |7 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pinctrl/mediatek/pinctrl-mt8516.c | 384 ++ drivers/pinctrl/mediatek/pinctrl-mtk-mt8516.h | 1182 + 4 files changed,

[PATCH 12/24] dt-bindings: mediatek: infracfg: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of infracfg for MT8516 SoC. Signed-off-by: Fabien Parent --- .../bindings/arm/mediatek/mediatek,infracfg.txt | 1 + include/dt-bindings/clock/mt8516-clk.h | 9 + 2 files changed, 10 insertions(+) diff --git

[PATCH 01/24] dt-bindings: regulator: add support for MT6392

2019-03-23 Thread Fabien Parent
Add binding documentation of the regulator for MT6392 SoCs. Signed-off-by: Fabien Parent --- .../bindings/regulator/mt6392-regulator.txt | 220 ++ 1 file changed, 220 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mt6392-regulator.txt diff

[PATCH 00/24] arm64: mediatek: add support for Pumpkin MT8516 board

2019-03-23 Thread Fabien Parent
The pumpkin board is designed by Gossamer Engineering and is using a MediaTek SoC. The board currently comes in two available version: MT8516 SoC and MT8167 SoC. The board provides the following IOs: eMMC, NAND, SD card, USB 2 type-A, Ethernet, Wi-Fi, Bluetooth, Audio (jack out, 2 PDM port, 1

[PATCH 04/24] soc: mediatek: pwrap: add missing check on rstc

2019-03-23 Thread Fabien Parent
The variable rstc is set only when the SoC PWRAP have the PWRAP_CAP_RESET capability. Check whether rstc is set before using it to avoid errors. Signed-off-by: Fabien Parent --- drivers/soc/mediatek/mtk-pmic-wrap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v2] pci: pcie-xilinx: fix a missing-check bug for __get_free_pages

2019-03-23 Thread Aditya Pakki
In case __get_free_pages fail, the fix returns error upstream to avoid NULL pointer dereference. Signed-off-by: Aditya Pakki --- v1: Return error upstream as suggested by Steven --- drivers/pci/controller/pcie-xilinx.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff

Pagefault in fuse_do_ioctl

2019-03-23 Thread Edwin Zimmerman
On 5.0.0-rc4+, I encountered a pagefault in fuse_do_ioctl when fuzzing with trinity on a ntfs filesystem mounted with fuse. I have not been able to reproduce it on other filesystem types. The following python script will reproduce this bug when run on a fuse-mounted ntfs path. >import fcntl

Re: [PATCH] ARCH: Use the correct style for SPDX License Identifier

2019-03-23 Thread Uwe Kleine-König
Hello, On Sat, Mar 23, 2019 at 06:58:14PM +0530, Nishad Kamdar wrote: > This patch corrects the SPDX License Identifier style > in the Hardware Architecture subsystem. > > Changes made by using a script provided by Joe Perches here: > https://lkml.org/lkml/2019/2/7/46 > and making some manual

[PATCH v2] thunderbolt: Fix to check the return value of kmemdup

2019-03-23 Thread Aditya Pakki
uuid in add_switch is allocted via kmemdup which can fail. The patch logs the error and cleans up the allocated memory for switch. Signed-off-by: Aditya Pakki --- v1: Change error handling from WARN_ONCE to return after clean up. --- drivers/thunderbolt/icm.c | 5 + 1 file changed, 5

Re: WARNING in request_end

2019-03-23 Thread syzbot
Hello, syzbot has tested the proposed patch but the reproducer still triggered crash: WARNING in request_end WARNING: CPU: 0 PID: 16992 at fs/fuse/dev.c:390 request_end+0x836/0xac0 fs/fuse/dev.c:390 kobject: '0:49' (1562c524): kobject_uevent_env Kernel panic - not syncing:

Possible UDF locking error?

2019-03-23 Thread Steve Magnani
Hi, I have been hunting a UDF bug that occasionally results in generation of an Allocation Extent Descriptor with an incorrect tagLocation. So far I haven't been able to see a path through the code that could cause that. But, I noticed some inconsistency in locking during AED generation and

Re: [PATCH 1/3] ARM: use arch_extension directive instead of arch argument

2019-03-23 Thread Arnd Bergmann
On Sat, Mar 23, 2019 at 4:52 PM Stefan Agner wrote: > > The LLVM Target parser currently does not allow to specify the security > extension as part of -march (see also LLVM Bug 40186 [0]). When trying > to use Clang with LLVM's integrated assembler, this leads to a build > errors such as this: >

Re: BUG: soft lockup in kvm_vm_release

2019-03-23 Thread syzbot
syzbot has bisected this bug to: commit 80eb865768703c0f85a0603762742ae1dedf21f0 Author: Andrea Parri Date: Tue Nov 27 11:01:10 2018 + sched/fair: Clean up comment in nohz_idle_balance() bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1362209b20 start commit:

Re: WARNING in request_end

2019-03-23 Thread Miklos Szeredi
On Sat, Mar 23, 2019 at 4:52 PM Eric W. Biederman wrote: > > syzbot writes: > > > syzbot has bisected this bug to: > > Nope. syzbot got it wrong. > > At most that commit will allow a larger class of users to mount fuse > and thus be able to reproduce the problem. > > It does look like syzbot

Re: [PATCH 0/5] *** SUBJECT HERE ***

2019-03-23 Thread Matt Ranostay
You may want to change "*** SUBJECT HERE ***" in the future :) - Matt On Sat, Mar 23, 2019 at 5:53 AM Cristian Sicilia wrote: > > Some source refactoring, parameters aligment and camel case clearing. > > Replacement of bool to bitfield in a struct, but not found > the population to check if it

[PATCH v2 5/5] staging: iio: adc: Remove CamelCase notation

2019-03-23 Thread Cristian Sicilia
Fix CamelCase naming. Signed-off-by: Cristian Sicilia --- drivers/staging/iio/adc/ad7280a.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c index 5d848aa..c02454c 100644 ---

[PATCH v2 4/5] staging: iio: adc: Adding temp var to improve readability

2019-03-23 Thread Cristian Sicilia
Creating a temporary variable to improve readability Signed-off-by: Cristian Sicilia --- drivers/staging/iio/adc/ad7280a.c | 55 ++- 1 file changed, 25 insertions(+), 30 deletions(-) diff --git a/drivers/staging/iio/adc/ad7280a.c

[PATCH v2 0/5] staging: iio: adc: Code refactoring and bool to bitfield change

2019-03-23 Thread Cristian Sicilia
Some source refactoring, parameters alignment and camel case clearing. Replacement of bool to bitfield in a struct, but not found the population to check if it is done correctly. Cristian Sicilia (5): staging: iio: adc: Tab alignment staging: iio: adc: Converted bool to bitfield format

[PATCH v2 3/5] staging: iio: adc: Avoid precedence issues in macro

2019-03-23 Thread Cristian Sicilia
Enclosing parameter with parenthesis due to avoid possible precedence issue. Signed-off-by: Cristian Sicilia --- drivers/staging/iio/adc/ad7280a.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c

[PATCH v2 2/5] staging: iio: adc: Converted bool to bitfield format

2019-03-23 Thread Cristian Sicilia
Changed bool format to bitfield format to save space. Signed-off-by: Cristian Sicilia --- The strange thing is that this struct seems not populated using a DTS binding function. --- drivers/staging/iio/adc/ad7192.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff

[PATCH v2 1/5] staging: iio: adc: Tab alignment

2019-03-23 Thread Cristian Sicilia
Aligned some parameters. Signed-off-by: Cristian Sicilia --- drivers/staging/iio/adc/ad7280a.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c index d9df126..55b5879

Re: [PATCH v2 2/3] lib: logic_pio: Reject access to unregistered CPU MMIO regions

2019-03-23 Thread Andy Shevchenko
On Wed, Mar 20, 2019 at 8:14 PM John Garry wrote: > > Currently when accessing logical indirect PIO addresses in > logic_{in, out}{,s}, we first ensure that the region is registered. > > However, no such check exists for CPU MMIO regions. The CPU MMIO regions > would be registered by the PCI host

Re: [PATCH v2 3/3] lib: logic_pio: Make some prints explicitly hex

2019-03-23 Thread Andy Shevchenko
On Wed, Mar 20, 2019 at 8:14 PM John Garry wrote: > > Some prints in the code are for a hex number, but don't prefix "0x". Add > the prefix, as is the norm. > - pr_err("addr %llx not registered in io_range_list\n", > + pr_err("addr 0x%llx not registered in io_range_list\n", >

Re: [PATCH 1/1] x86/mm: Fix limit mmap() of /dev/mem to valid physical addresses

2019-03-23 Thread Thomas Gleixner
Ralph, On Mon, 18 Mar 2019, rcampb...@nvidia.com wrote: > From: Ralph Campbell > > If CONFIG_DEBUG_VIRTUAL is enabled, a read or write to /dev/mem can > trigger a VIRTUAL_BUG_ON() depending on the value of high_memory. > For example: > > read_mem() > valid_phys_addr_range(p=401f1550,

[PATCH] ftrace: fix warning using plain integer as NULL & spelling corrections

2019-03-23 Thread Hariprasad Kelam
Changed 0 --> NULL to avoid sparse warning Corrected spelling mistakes reported by checkpatch.pl Sparse warning below: sudo make C=2 CF=-D__CHECK_ENDIAN__ M=kernel/trace CHECK kernel/trace/ftrace.c kernel/trace/ftrace.c:3007:24: warning: Using plain integer as NULL pointer

Re: [PATCH 3/3] ARM: mvebu: prefix coprocessor operand with p

2019-03-23 Thread nicolas . pitre
On Sat, 23 Mar 2019, Stefan Agner wrote: > In every other instance where mrc is used the coprocessor operand > is prefix with p (e.g. p15). Use the p prefix in this case too. > This fixes a build issue when using LLVM's integrated assembler: > arch/arm/mach-mvebu/coherency_ll.S:69:6: error:

Re: [PATCH 2/3] ARM: mvebu: drop unnecessary label

2019-03-23 Thread nicolas . pitre
On Sat, 23 Mar 2019, Stefan Agner wrote: > The label mvebu_boot_wa_start is not necessary and causes a build > issue when building with LLVM's integrated assembler: > AS arch/arm/mach-mvebu/pmsu_ll.o > arch/arm/mach-mvebu/pmsu_ll.S:59:1: error: invalid symbol redefinition >

Re: [GIT PULL] Ceph fixes for 5.1-rc2

2019-03-23 Thread pr-tracker-bot
The pull request you sent on Fri, 22 Mar 2019 17:19:47 +0100: > https://github.com/ceph/ceph-client.git tags/ceph-for-5.1-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/9a1050ad83e2a5db84436b11e10facd7d4a5ab26 Thank you! -- Deet-doot-dot, I am a bot.

RE: [PATCH v19,RESEND 24/27] x86/vdso: Add __vdso_sgx_enter_enclave() to wrap SGX enclave transitions

2019-03-23 Thread Xing, Cedric
Hi Sean, > Although its just 9 LOC, consider its impact on someone who is looking > at > the kernel's SGX support for the first time. Questions they may have > when > looking at the vDSO code/documentation: > > - What's an exit handler? > - Why is an exit handler optional? Don't I always

[PATCH v2 1/4] iio: inkern: API for reading available iio channel attribute values

2019-03-23 Thread Artur Rojek
Extend the inkern API with a function for reading available attribute values of iio channels. Signed-off-by: Artur Rojek --- Changes: v2: no change drivers/iio/inkern.c | 20 include/linux/iio/consumer.h | 14 ++ 2 files changed, 34 insertions(+)

[tip:timers/core] tick: Remove outgoing CPU from broadcast masks

2019-03-23 Thread tip-bot for Thomas Gleixner
Commit-ID: 1b72d43237980eab9b6ae6bb8181e51c840377e6 Gitweb: https://git.kernel.org/tip/1b72d43237980eab9b6ae6bb8181e51c840377e6 Author: Thomas Gleixner AuthorDate: Thu, 21 Mar 2019 16:39:20 +0100 Committer: Thomas Gleixner CommitDate: Sat, 23 Mar 2019 18:26:43 +0100 tick: Remove

[PATCH v1 2/2] lib/math: Move int_pow() from pwm_bl.c for wider use

2019-03-23 Thread Andy Shevchenko
The integer exponentiation is used in few places and might be used in the future by other call sites. Move it to wider use. Signed-off-by: Andy Shevchenko --- drivers/video/backlight/pwm_bl.c | 15 --- include/linux/kernel.h | 1 + lib/math/Makefile| 2 +-

[PATCH v2 2/4] iio: inkern: Convert iio_read_avail_channel_raw into a wrapper

2019-03-23 Thread Artur Rojek
Convert "iio_read_avail_channel_raw" over to a wrapper around "iio_read_avail_channel_attribute". With the introduction of "iio_read_avail_channel_attribute", the necessity of having a separate call to read raw channel values became redundant. Signed-off-by: Artur Rojek --- Changes: v2: new

[PATCH v2 4/4] power: supply: add Ingenic JZ47xx battery driver.

2019-03-23 Thread Artur Rojek
Add a driver for battery present on Ingenic JZ47xx SoCs. Signed-off-by: Artur Rojek --- Changes: v2: - rework the return logic in ingenic_battery_get_property, - make index offsets point forward in ingenic_battery_set_scale, - fix spacing around scale_raw[best_idx + 1]

[PATCH v2 3/4] dt-bindings: power: supply: Add docs for Ingenic JZ47xx SoCs battery.

2019-03-23 Thread Artur Rojek
Add documentation for the ingenic-battery driver, used on JZ47xx SoCs. Signed-off-by: Artur Rojek --- Changes: v2: no change .../bindings/power/supply/ingenic,battery.txt | 31 +++ 1 file changed, 31 insertions(+) create mode 100644

  1   2   3   >