Re: [PATCH v4 27/35] mtd: rawnand: sm_common: convert driver to nand_scan_with_ids()

2018-07-21 Thread Boris Brezillon
On Fri, 20 Jul 2018 17:15:19 +0200 Miquel Raynal wrote: > Two helpers have been added to the core to make ECC-related > configuration between the detection phase and the final NAND scan. Use > these hooks and convert the driver to just use nand_scan_with_ids() > (alternative to nand_scan() for pa

Re: [PATCH v4 26/35] mtd: rawnand: atmel: convert driver to nand_scan()

2018-07-21 Thread Boris Brezillon
On Fri, 20 Jul 2018 17:15:18 +0200 Miquel Raynal wrote: > Two helpers have been added to the core to make ECC-related > configuration between the detection phase and the final NAND scan. Use > these hooks and convert the driver to just use nand_scan() instead of > both nand_scan_ident() and nand_

[PATCH v6 1/5] dt-bindings: mailbox: allow mbox-cells to be equal to 0

2018-07-21 Thread Oleksij Rempel
From: Dong Aisheng Mailbox devices may have only one channel which means the mbox-cells at least 1 does not make sense for this type devices. Let's remove that limitation to allow the mbox-cells to be equal to 0. Cc: Mark Rutland Cc: Sudeep Holla Cc: devicet...@vger.kernel.org Cc: linux-kernel

Re: [PATCH] drivers/memory/Kconfig: Add CONFIG_OF dependency

2018-07-21 Thread Boris Brezillon
+Arnd, Rob and the DT ML. On Sat, 21 Jul 2018 14:53:47 -0700 Randy Dunlap wrote: > On 07/21/2018 01:00 PM, Anders Roxell wrote: > > JZ4780_NEMC doesn't depend on OF, and if OF isn't enabled we get this > > error: > > drivers/memory/jz4780-nemc.c: In function ‘jz4780_nemc_num_banks’: > > drivers/

[PATCH linux-next] driver/gpu: Fix mismatch in funciton argument type

2018-07-21 Thread zhong jiang
Fix the following warning: drivers/gpu/drm/nouveau/dispnv50/wndw.c:570:1: error: symbol 'nv50_wndw_new_' redeclared with different type (originally declared at drivers/gpu/drm/nouveau/dispnv50/wndw.h:39) - incompatible argument 7 (different signedness) Signed-off-by: zhong jiang --- drivers/g

Re: [PATCH v7 01/10] counter: Introduce the Generic Counter interface

2018-07-21 Thread Andrew Morton
On Sat, 21 Jul 2018 12:26:10 -0400 William Breathitt Gray wrote: > >Also, many many drivers deal with signals-as-an-electrical-thing - is > >it appropriate for this particular driver to take that namespace? > > In the context of the Generic Counter paradigm, a "Signal" is an > abstraction for t

[PATCH linux-next] kernel/exit: fix mismatch in function argument types

2018-07-21 Thread zhong jiang
Fix following warning: kernel/exit.c:1634:6: error: symbol 'kernel_wait4' redeclared with different type (originally declared at ./include/linux/sched/task.h:78) - incompatible argument 2 (different address spaces) Signed-off-by: zhong jiang --- include/linux/sched/task.h | 2 +- 1 file change

Re: [PATCH v2 12/12] sched/core: uclamp: use percentage clamp values

2018-07-21 Thread Suren Baghdasaryan
On Mon, Jul 16, 2018 at 1:29 AM, Patrick Bellasi wrote: > The utilization is a well defined property of tasks and CPUs with an > in-kernel representation based on power-of-two values. > The current representation, in the [0..SCHED_CAPACITY_SCALE] range, > allows efficient computations in hot-paths

Re: [PATCH] mm: thp: remove use_zero_page sysfs knob

2018-07-21 Thread Matthew Wilcox
On Fri, Jul 20, 2018 at 02:05:52PM -0700, David Rientjes wrote: > The huge zero page can be reclaimed under memory pressure and, if it is, > it is attempted to be allocted again with gfp flags that attempt memory > compaction that can become expensive. If we are constantly under memory > pressu

HELLO.

2018-07-21 Thread Donova
HELLO. This might come to you as a surprise, especially since we have never met or discuss before, basically the message might sound strange but it is factual in reality if only you care to listen to me. The truth is that I should have notified you first through a more confidential means, (ev

Re: [PATCH v2 11/12] sched/core: uclamp: update CPU's refcount on TG's clamp changes

2018-07-21 Thread Suren Baghdasaryan
On Mon, Jul 16, 2018 at 1:29 AM, Patrick Bellasi wrote: > When a task group refcounts a new clamp group, we need to ensure that > the new clamp values are immediately enforced to all its tasks which are > currently RUNNABLE. This is to ensure that all currently RUNNABLE task tasks > are boosted

Re: [lkp-robot] [tracing] ecadccb31b: kernel_selftests.ftrace.ftracetest.fail

2018-07-21 Thread Masami Hiramatsu
On Sat, 21 Jul 2018 18:40:32 +0900 Masami Hiramatsu wrote: > Hi, > > OK, I'll handle this. > The reason why this error is that kprobe event tests probe ftrace itself for > test. So one possible fix is below patch. Another possible way to fix is to allow instrumentation on trace_kprobe.c as sa

Re: [PATCH v2 10/12] sched/core: uclamp: use TG's clamps to restrict Task's clamps

2018-07-21 Thread Suren Baghdasaryan
On Mon, Jul 16, 2018 at 1:29 AM, Patrick Bellasi wrote: > When a task's util_clamp value is configured via sched_setattr(2), this > value has to be properly accounted in the corresponding clamp group > every time the task is enqueued and dequeued. When cgroups are also in > use, per-task clamp val

[PATCH] sparc: fix header problem in sparc32 build

2018-07-21 Thread Randy Dunlap
From: Randy Dunlap Add a "struct page;" "stub" to fix a build error in sparc32. Fixes this error: ../include/linux/highmem.h: In function 'clear_user_highpage': ../include/linux/highmem.h:137:31: error: passing argument 1 of 'sparc_flush_page_to_ram' from incompatible pointer type [-Werror=inc

Re: kernel %rsp code at sysenter PTI vs no-PTI

2018-07-21 Thread Andy Lutomirski
On Thu, Jul 5, 2018 at 10:14 AM, Dave Hansen wrote: > The PTI path does this: > > ... > SWITCH_TO_KERNEL_CR3 scratch_reg=%rsp > /* Load the top of the task stack into RSP */ > movqCPU_ENTRY_AREA_tss + TSS_sp1 + CPU_ENTRY_AREA, %rsp > > And the non-PTI entry path

Re: [PATCH] x86: vdso: Use $LD instead of $CC to link

2018-07-21 Thread Andy Lutomirski
On Wed, Jul 18, 2018 at 3:41 PM, Alistair Strachan wrote: > The vdso{32,64}.so can fail to link with CC=clang when clang tries to > find a suitable GCC toolchain to link these libraries with. > > /usr/bin/ld: arch/x86/entry/vdso/vclock_gettime.o: > access beyond end of merged section (782) > > T

Re: [GIT PULL 3/3] ARM: uniphier: UniPhier SoC updates for v4.19

2018-07-21 Thread Masahiro Yamada
Hi Olof, 2018-07-22 6:24 GMT+09:00 Olof Johansson : > On Thu, Jul 19, 2018 at 08:05:03AM +0900, Masahiro Yamada wrote: >> Hi Arnd, Olof, >> >> Please pull UniPhier SoC changes for the v4.19 MW. >> >> Thanks! >> >> >> The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: >> >

regulator: bcm590xx: of_node_put(np) missing

2018-07-21 Thread Alexey Khoroshilov
Hello, bcm590xx_parse_dt_reg_data() calls of_node_get(np), but there is nowhere of_node_put(np) in the driver. Should we add of_node_put(np) and what is timeframe of_node_get(np) required for? Found by Linux Driver Verification project (linuxtesting.org). -- Alexey Khoroshilov Linux Verificatio

[PATCH] x86: czc-tablet: add driver that fixes the buttons on CZC P10T tablet

2018-07-21 Thread Lubomir Rintel
This driver switches the P10T tablet to "Android" mode, where the Home button sends a single sancode instead of a Windows-specific key combination and the other button doesn't disable the Wi-Fi. The driver also supports the ViewSonic ViewPad 10 which is almost identical to P10T. Complementary hwd

Re: [GIT PULL 3/3] ARM: uniphier: UniPhier SoC updates for v4.19

2018-07-21 Thread Olof Johansson
On Thu, Jul 19, 2018 at 08:05:03AM +0900, Masahiro Yamada wrote: > Hi Arnd, Olof, > > Please pull UniPhier SoC changes for the v4.19 MW. > > Thanks! > > > The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: > > Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) > > are avai

Re: [GIT PULL] ARM: at91: DT for 4.19

2018-07-21 Thread Olof Johansson
On Fri, Jul 20, 2018 at 10:18:59AM +0200, Alexandre Belloni wrote: > Arnd, Olof, > > Here are the unusually large DT PR for AT91. It contains mainly new DTs. > > There is a pm.c change that I'm including here so it is along with the > corresponding DT changes. > > The following changes since com

Re: [GIT PULL] ARM: at91: SoC for 4.19

2018-07-21 Thread Olof Johansson
On Fri, Jul 20, 2018 at 10:20:30AM +0200, Alexandre Belloni wrote: > Arnd, Olof, > > Here is the SoC PR for 4.19. It is a cleanup of pm.c and the addition of > a new low power mode. > > The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: > > Linux 4.18-rc1 (2018-06-17

Re: [GIT PULL 2/3] arm64: dts: uniphier: UniPhier DT updates for v4.19

2018-07-21 Thread Olof Johansson
On Thu, Jul 19, 2018 at 08:01:44AM +0900, Masahiro Yamada wrote: > Hi Arnd, Olof, > > Please pull UniPhier DT (64bit) updates for the v4.19 MW. > > Thanks! > > > > The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: > > Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) >

Re: [GIT PULL 1/3] ARM: dts: uniphier: UniPhier DT updates for v4.19

2018-07-21 Thread Olof Johansson
On Thu, Jul 19, 2018 at 08:01:06AM +0900, Masahiro Yamada wrote: > Hi Arnd, Olof, > > Please pull UniPhier DT (32bit) updates for the v4.19 MW. > > Thanks! > > > > The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: > > Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) >

Re: [PATCH] drivers/memory/Kconfig: Add CONFIG_OF dependency

2018-07-21 Thread Randy Dunlap
On 07/21/2018 01:00 PM, Anders Roxell wrote: > JZ4780_NEMC doesn't depend on OF, and if OF isn't enabled we get this > error: > drivers/memory/jz4780-nemc.c: In function ‘jz4780_nemc_num_banks’: > drivers/memory/jz4780-nemc.c:72:10: error: implicit declaration of > function ‘of_read_number’; did y

[PATCH] drivers/pci/probe: Move variable bridge inside ifdef

2018-07-21 Thread Anders Roxell
When CONFIG_PCI_QUIRKS isn't enabled we get the warning below: drivers/pci/probe.c: In function ‘pci_bus_read_dev_vendor_id’: drivers/pci/probe.c:2221:18: warning: unused variable ‘bridge’ [-Wunused-variable] struct pci_dev *bridge = bus->self; ^~ Move the declaration of v

Re: [PATCH 1/2] x86/entry/64: Do not clear %rbx under Xen

2018-07-21 Thread Andy Lutomirski
On Sat, Jul 21, 2018 at 12:49 PM, M. Vefa Bicakci wrote: > Commit 3ac6d8c787b8 ("x86/entry/64: Clear registers for > exceptions/interrupts, to reduce speculation attack surface") unintendedly > broke Xen PV virtual machines by clearing the %rbx register at the end of > xen_failsafe_callback before

Re: [PATCH 0/6] vt: no blinking on console, 256/24-bit color improvements

2018-07-21 Thread Adam Borowski
On Sat, Jul 21, 2018 at 09:43:19AM +0200, Greg Kroah-Hartman wrote: > On Wed, Jul 18, 2018 at 05:01:52AM +0200, Adam Borowski wrote: > > Here's a patchset with two entangled improvements: > > > > * it'd be good to get rid of blinking where possible. Even CGA (thus VGA) > > allows disabling it,

Re: [PATCH 2/3] clk: meson: clk-pll: remove od parameters

2018-07-21 Thread Martin Blumenstingl
Hi Jerome, On Sat, Jul 21, 2018 at 10:42 PM Jerome Brunet wrote: > > On Sat, 2018-07-21 at 22:01 +0200, Martin Blumenstingl wrote: > > > +static struct clk_regmap gxbb_hdmi_pll_od = { > > > + .data = &(struct clk_regmap_div_data){ > > > + .offset = HHI_HDMI_PLL_CNTL2, > > > +

Re: [PATCH 3/3] clk: meson: clk-pll: drop hard-coded rates from pll tables

2018-07-21 Thread Martin Blumenstingl
Hi Jerome, On Sat, Jul 21, 2018 at 10:46 PM Jerome Brunet wrote: > > On Sat, 2018-07-21 at 22:16 +0200, Martin Blumenstingl wrote: > > > We could even add ranges instead of table when we know the PLL supports a > > > well-known continuous dividers range. > > > > I had a look at the sys_pll setti

[PATCH 1/1] x86/apic: Future-proof TSC_DEADLINE quirk for SKX

2018-07-21 Thread Len Brown
From: Len Brown All SKX with stepping higher than 4 support the TSC_DEADLINE, no matter the microcode version. Fixes: 616dd5872e ("x86/apic: Update TSC_DEADLINE quirk with additional SKX stepping") Signed-off-by: Len Brown --- Without this patch, upcoming SKX steppings will not be able to use

Re: [PATCH 1/3] iio: adc: add support for mcp3911

2018-07-21 Thread Peter Meerwald-Stadler
Hello, > MCP3911 is a dual channel Analog Front End (AFE) containing two > synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). some comments below... > Signed-off-by: Marcus Folkesson > Signed-off-by: Kent Gustavsson > --- > drivers/iio/adc/Kconfig | 10 ++ > drivers/iio/

[GIT PULL] ARM: SoC fixes

2018-07-21 Thread Olof Johansson
Hi Linus, The following changes since commit 13e66ceea1600f1061181acc2d4e0fac1a7d0333: Merge tag 'omap-for-v4.18/fixes-rc4-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes (2018-07-14 15:14:02 -0700) are available in the git repository at: git://git.ke

Re: [PATCH 1/3] perf/core: Make sure the ring-buffer is mapped in all page-tables

2018-07-21 Thread Linus Torvalds
On Fri, Jul 20, 2018 at 3:20 PM Andy Lutomirski wrote: > Thanks for digging! The problem was presumably that vmalloc_fault() will > IRET and re-enable NMIs on the way out. > But we’ve supported page faults on user memory in NMI handlers on 32-bit and > 64-bit for quite a while, and it’s fine n

Re: [PATCH 0/3] clk: meson: clk-pll driver update

2018-07-21 Thread Jerome Brunet
On Sat, 2018-07-21 at 22:17 +0200, Martin Blumenstingl wrote: > > This series has been tested on the gxl libretech cc and axg s400. > > I did not test it on meson8b yet. > > I had some comments on patch #2 > once that is fixed I can help testing on Meson8b (if you give me a few > days...) I don'

Re: [PATCH 3/3] clk: meson: clk-pll: drop hard-coded rates from pll tables

2018-07-21 Thread Jerome Brunet
On Sat, 2018-07-21 at 22:16 +0200, Martin Blumenstingl wrote: > > We could even add ranges instead of table when we know the PLL supports a > > well-known continuous dividers range. > > I had a look at the sys_pll settings on Meson8b, here's what > Meson8/Meson8b/Meson8m2 support for sys_pll: > -

Re: [PATCH 2/3] clk: meson: clk-pll: remove od parameters

2018-07-21 Thread Jerome Brunet
On Sat, 2018-07-21 at 22:01 +0200, Martin Blumenstingl wrote: > > +static struct clk_regmap gxbb_hdmi_pll_od = { > > + .data = &(struct clk_regmap_div_data){ > > + .offset = HHI_HDMI_PLL_CNTL2, > > + .shift = 16, > > + .width = 2, > > +

Re: [PATCH 1/3] clk: meson: clk-pll: add enable bit

2018-07-21 Thread Jerome Brunet
On Sat, 2018-07-21 at 21:48 +0200, Martin Blumenstingl wrote: > > @@ -250,11 +264,15 @@ static const struct reg_sequence axg_hifi_init_regs[] > > = { > > { .reg = HHI_HIFI_PLL_CNTL3,.def = 0x0a6a3a88 }, > > { .reg = HHI_HIFI_PLL_CNTL4,.def = 0xc04d }, > > { .

[PATCH 2/3] dt-bindings: iio: adc: add bindings for mcp3911

2018-07-21 Thread Marcus Folkesson
MCP3911 is a dual channel Analog Front End (AFE) containing two synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). Signed-off-by: Marcus Folkesson Signed-off-by: Kent Gustavsson --- .../devicetree/bindings/iio/adc/mcp3911.txt| 33 ++ 1 file changed,

[PATCH 3/3] MAINTAINERS: Add entry for mcp3911 ADC driver

2018-07-21 Thread Marcus Folkesson
Add an entry for mcp3911 ADC driver and add myself and Kent Gustavsson as maintainers of this driver. Signed-off-by: Marcus Folkesson Signed-off-by: Kent Gustavsson --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 79bb02ff812f..9276da91

[PATCH 1/3] iio: adc: add support for mcp3911

2018-07-21 Thread Marcus Folkesson
MCP3911 is a dual channel Analog Front End (AFE) containing two synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). Signed-off-by: Marcus Folkesson Signed-off-by: Kent Gustavsson --- drivers/iio/adc/Kconfig | 10 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/mcp3911.

Re: [PATCH 0/3] clk: meson: clk-pll driver update

2018-07-21 Thread Martin Blumenstingl
Hi Jerome, On Tue, Jul 17, 2018 at 11:56 AM Jerome Brunet wrote: > > This patchset is yet another round of update to the amlogic pll driver. > > 1) Enable bit is added so we don't rely on the bootloader or the init > value to enable to pll device. > 2) OD post dividers are removed from the

Re: [PATCH 3/3] clk: meson: clk-pll: drop hard-coded rates from pll tables

2018-07-21 Thread Martin Blumenstingl
On Thu, Jul 19, 2018 at 10:44 AM Neil Armstrong wrote: > > On 17/07/2018 11:56, Jerome Brunet wrote: > > Putting hard-coded rates inside the parameter tables assumes that > > the parent is known and will never change. That's a big assumption > > we should not make. > > > > We have everything we ne

Re: [PATCH 2/3] clk: meson: clk-pll: remove od parameters

2018-07-21 Thread Martin Blumenstingl
Hi Jerome, On Tue, Jul 17, 2018 at 11:56 AM Jerome Brunet wrote: > > Remove od parameters from pll clocks and add post dividers clocks > instead. Some clock, especially the one which feature several ods, > may provide output between those ods. Also, some drivers, such > as the hdmi driver, may re

[PATCH] drivers/memory/Kconfig: Add CONFIG_OF dependency

2018-07-21 Thread Anders Roxell
JZ4780_NEMC doesn't depend on OF, and if OF isn't enabled we get this error: drivers/memory/jz4780-nemc.c: In function ‘jz4780_nemc_num_banks’: drivers/memory/jz4780-nemc.c:72:10: error: implicit declaration of function ‘of_read_number’; did you mean ‘down_read_nested’? [-Werror=implicit-function

Re: [PATCH 1/3] clk: meson: clk-pll: add enable bit

2018-07-21 Thread Martin Blumenstingl
Hi Jerome, On Tue, Jul 17, 2018 at 11:56 AM Jerome Brunet wrote: > > Add the enable the bit of the pll clocks. > These pll clocks may be disabled but we can't model this as an external > gate since the pll needs to lock when enabled. > > Signed-off-by: Jerome Brunet I have some questions inline,

Re: UBSAN: Undefined behaviour in arch/x86/events/amd/ibs.c:582:24: member access within null pointer of type 'struct perf_event'

2018-07-21 Thread Paul Menzel
Dear Thomas, Am 20.07.2018 um 10:39 schrieb Thomas Gleixner: On Fri, 20 Jul 2018, Paul Menzel wrote: Enabling the undefined behavior sanitizer and building GNU/Linux 4.18-rc5+ (with some unrelated commits) with GCC 8.1.0 from Debian Sid/unstable, the warning below is shown. [2.111913] =

[PATCH v2 0/2] iio: adc: ti-ads7950: allow simultaneous use of buffer and direct mode

2018-07-21 Thread David Lechner
v2 changes: - add new patch to use SPDX-License-Identifier (since we are touching this file anyway) - don't add struct iio_device *indio_dev as field to private data - fix indent on return statement David Lechner (2): iio: adc: ti-ads7950: use SPDX-License-Identifier iio: adc: ti-ads7950: al

[PATCH v2 1/2] iio: adc: ti-ads7950: use SPDX-License-Identifier

2018-07-21 Thread David Lechner
This updates the ti-ads7950.c file to use SPDX-License-Identifier instead of more verbose license text. Signed-off-by: David Lechner --- drivers/iio/adc/ti-ads7950.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/iio/adc/ti-ads7950.c b/drivers/iio/adc/ti-ad

[PATCH v2 2/2] iio: adc: ti-ads7950: allow simultaneous use of buffer and direct mode

2018-07-21 Thread David Lechner
This modifies the TI ADS7950 A/DC driver to allow the simultaneous use of both the triggered buffer and reading channels directly (via in- kernel API or sysfs). The use case for this is on LEGO MINDSTORMS EV3. Two of the voltage channels are used in-kernel by a power supply driver, which reads the

[PATCH] mtd: solutionengine.c: fix printk format warnings

2018-07-21 Thread Randy Dunlap
From: Randy Dunlap Fix 2 printk format warnings (this driver is currently SUPERH only) by using "%pap" instead of "%lx". (or we could just cast the physical addresses to unsigned int) Fixes these build warnings: ../drivers/mtd/maps/solutionengine.c: In function 'init_soleng_maps': ../include/li

[PATCH v2 05/10] staging:rtl8192u: Rename CountryIeLen > country_ie_len - Style

2018-07-21 Thread John Whitmore
Rename CountryIeLen to country_ie_len, coding style change to clear checkpatch issue with CamelCase naming. The change should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/dot11d.c | 6 +++--- drivers/staging/rtl8192u/ieee80211/dot1

[PATCH v2 04/10] staging:rtl8192u: Rename bEnabled > enabled - Style

2018-07-21 Thread John Whitmore
Rename the member variable bEnabled to enabled. This change clears the checkpatch issue with CamelCase. Purely a coding style change which should not impact runtime execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/dot11d.c | 2 +- drivers/staging/rtl8192u/ieee80211/

[PATCH v2 00/10] staging:rtl8192u: Coding style changes

2018-07-21 Thread John Whitmore
These patches are previously failed patches from two seperate series of coding style changes. I've just combined the failed from both into this series. I compiled the patches with 'format-patch -v2' Never used the '-v' option previously so hope it's not a mistake to do so. Guess I'll find out if i

[PATCH v2 09/10] staging:rtl8192u: Rename MaxTxPwrDbmList > max_tx_pwr_dbm_list - Style

2018-07-21 Thread John Whitmore
Rename the member variable MaxTxPwrDbmList to max_tx_pwr_dbm_list. This change clears the checkpatch issue with CamelCase naming. The change is a simple coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/dot11d.

[PATCH v2 10/10] staging:rtl8192u: Rename variable State > state - Style

2018-07-21 Thread John Whitmore
Rename the variable State to state, this clears the checkpatch issue with CamelCase naming. The change is purely coding style and should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/dot11d.c | 10 +- drivers/staging/rtl8192u/ieee8

[PATCH v2 08/10] staging:rtl8192u: Rename CountryIeWatchdog > country_ie_watchdog - Style

2018-07-21 Thread John Whitmore
Rename the member variable CountryIeWatchdog to country_ie_watchdog, this change clears the checkpatch issue with CamelCase naming of variables. The change is a simple coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ie

[PATCH v2 03/10] staging:rtl8192u: Remove typedef and rename struct RT_DOT11D_INFO - Style

2018-07-21 Thread John Whitmore
Removed the typedef from structure RT_DOT11D_INFO. This change clears the checkpatch issue with declaring new types. Rename the structure from RT_DOT11D_INFO to rt_dot11d_info. Coding style changes which should not impact runtime execution of code. Signed-off-by: John Whitmore --- drivers/stag

[PATCH v2 06/10] staging:rtl8192u: Rename CountryIeBuf to country_ie_buf - Style

2018-07-21 Thread John Whitmore
Rename the member variable CountryIeBuf to country_ie_buf. This change clears the checkpatch issue with CamelCase. The change is purely coding style and should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/dot11d.c | 2 +- drivers/staging/

[PATCH v2 07/10] staging:rtl8192u: Rename variable CountryIeSrcAddr - Style

2018-07-21 Thread John Whitmore
Rename the member variable CountryIeSrcAddr to country_ie_src_addr, this clears the checkpatch issue with CamelCase naming. The change is purely a coding style change and should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/dot11d.h | 6 ++

[PATCH v2 02/10] staging:rtl8192u: Rename TClasNum > t_clas_num - Style

2018-07-21 Thread John Whitmore
Rename the struct TS_COMMON_INFO member variable TClasNum to t_clas_num. This change clears the checkpatch issue with CamelCase naming. There should be no impact on runtime execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 2 +- drivers/staging/rtl

[PATCH v2 01/10] staging:rtl8192u: Rename TClasProc > t_clas_proc - Style

2018-07-21 Thread John Whitmore
Rename the struct TS_COMMON_INFO member variable TClasProc to t_clas_proc. This change clears the checkpatch issue with CamelCase variable names. There should be no impact on runtime execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 2 +- drivers/s

Re: [PATCH v8 0/7] thermal: tsens: Refactoring for TSENSv2 IP

2018-07-21 Thread Amit Kucheria
Andy, Eduardo: Please consider this a gentle ping to understand how this will get merged. Andy, I guess you'll take the DT patches 2,4 and 7 and the rest will go through Eduardo's thermal tree? Regards, Amit On Wed, Jul 18, 2018 at 12:13 PM, Amit Kucheria wrote: > Here is a repost of the series

[PATCH 01/11] touchscreen: ft5x06: Use octal permissions

2018-07-21 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IWUSR | S_IRUGO' are not preferred. Consider using octal permissions '0644'. +static EDT_ATTR(gain, S_IWUSR | S_IRUGO, WORK_REGISTER_GAIN, WARNING: Symbolic permissions 'S_IWUSR | S_IRUGO' are not preferred. Consider using octal permissions '0644'. +static EDT_AT

[PATCH 09/11] touchscreen: raydium_ts: Use octal permissions

2018-07-21 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(fw_version, S_IRUGO, raydium_i2c_fw_ver_show, NULL); WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(hw_

[PATCH 11/11] touchscreen: tsc200x: Use octal permissions

2018-07-21 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(selftest, S_IRUGO, tsc200x_selftest_show, NULL); Signed-off-by: dev-harsh1998 --- drivers/input/touchscreen/tsc200x-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[PATCH 10/11] touchscreen: sun4i_ts: Use octal permissions

2018-07-21 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(temp1_input, S_IRUGO, show_temp, NULL); WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(temp1_label, S_I

[PATCH 04/11] touchscreen: amtel: Use octal permissions

2018-07-21 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(fw_version, S_IRUGO, mxt_fw_version_show, NULL); WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(hw_vers

[PATCH 08/11] touchscreen: melfas: Use octal permissions

2018-07-21 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IWUSR' are not preferred. Consider using octal permissions '0200'. +static DEVICE_ATTR(update_fw, S_IWUSR, NULL, mip4_sysfs_fw_update); WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(fw_vers

[PATCH 05/11] touchscreen: elants: Use octal permissions

2018-07-21 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(iap_mode, S_IRUGO, show_iap_mode, NULL); WARNING: Symbolic permissions 'S_IWUSR' are not preferred. Consider using octal permissions '0200'. +static DEVICE_ATTR(update_fw, S_IW

[PATCH 03/11] touchscreen: ad7846: Use octal permissions

2018-07-21 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(name, S_IRUGO, name ## _show, NULL); WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(pen_down, S_IRUGO,

[PATCH 06/11] touchscreen: ili210x: Use octal permissions

2018-07-21 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IWUSR' are not preferred. Consider using octal permissions '0200'. +static DEVICE_ATTR(calibrate, S_IWUSR, NULL, ili210x_calibrate); Signed-off-by: dev-harsh1998 --- drivers/input/touchscreen/ili210x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 02/11] touchscreen: ad7877: Use octal permissions

2018-07-21 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. +static DEVICE_ATTR(name, S_IRUGO, name ## _show, NULL); Signed-off-by: dev-harsh1998 --- drivers/input/touchscreen/ad7877.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr

[PATCH 07/11] touchscreen: mc13783: Use octal permissions

2018-07-21 Thread dev-harsh1998
WARNING: Symbolic permissions 'S_IRUGO | S_IWUSR' are not preferred. Consider using octal permissions '0644'. +module_param(sample_tolerance, uint, S_IRUGO | S_IWUSR); Signed-off-by: dev-harsh1998 --- drivers/input/touchscreen/mc13783_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(

Re: [PATCH 4/4] iio: adc: ti-ads7950: use SPI_CS_WORD to reduce CPU usage

2018-07-21 Thread David Lechner
On 07/21/2018 12:51 PM, Jonathan Cameron wrote: On Mon, 16 Jul 2018 22:20:52 -0500 David Lechner wrote: This changes how the SPI message for the triggered buffer is setup in the TI ADS7950 A/DC driver. By using the SPI_CS_WORD flag, we can read multiple samples in a single SPI transfer. If the

[PATCH 4/8] staging: rtl8188eu: change return type to bool

2018-07-21 Thread Michael Straube
Both rtw_is_cckrates_included() and rtw_is_cckratesonly_included() return true or false. Change the return type from uint to bool. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 4 ++-- drivers/staging/rtl8188eu/include/ieee80211.h | 4 ++-- 2 files changed,

[PATCH 2/8] staging: rtl8188eu: refactor rtw_is_cckrates_included()

2018-07-21 Thread Michael Straube
Refactor rtw_is_cckrates_included() to improve readability and slightly reduce object file size. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_iee

[PATCH 1/8] staging: rtl8188eu: remove blank lines

2018-07-21 Thread Michael Straube
Remove unrequired blank lines reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm.c | 1 - drivers/staging/rtl8188eu/hal/phy.c | 3 --- drivers/staging/rtl8188eu/hal/rf.c | 1 - drivers/staging/rtl8188eu/hal/rtl8188

[PATCH 7/8] staging: rtl8188eu: replace tabs with spaces

2018-07-21 Thread Michael Straube
Replace tabs with spaces or just remove tabs where appropriate. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/drivers/staging/rtl

[PATCH 6/8] staging: rtl8188eu: remove unnecessary parentheses

2018-07-21 Thread Michael Straube
Remove unnecessary parentheses. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/core/rtw_ieee80211.c| 20 +-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c b/drivers/staging/rtl8188eu/core/rtw_ieee8021

[PATCH 3/8] staging: rtl8188eu: refactor rtw_is_cckratesonly_included()

2018-07-21 Thread Michael Straube
Refactor rtw_is_cckratesonly_included() to improve readability and slightly reduce object file size. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_i

[PATCH 8/8] staging: rtl8188eu: fix lines over 80 characters

2018-07-21 Thread Michael Straube
Fix two lines over 80 characters by removing unnecessary parentheses. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c b/drivers/staging/rt

[PATCH 5/8] staging: rtl8188eu: fix comparsions to true

2018-07-21 Thread Michael Straube
Use if(x) instead of if(x == true). Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 6 +++--- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ieee80211.c

Re: [PATCH 14/15] arm: dts: qcom: Add missing OPP properties for CPUs

2018-07-21 Thread Andy Gross
On Wed, Jul 18, 2018 at 03:52:26PM +0530, Amit Kucheria wrote: > On Fri, May 25, 2018 at 4:02 PM, Viresh Kumar wrote: > > The OPP properties, like "operating-points", should either be present > > for all the CPUs of a cluster or none. If these are present only for a > > subset of CPUs of a cluster

Re: [PATCH] arm64: dts: msm8916: drop legacy suffix for clocks used by MSM DRM driver

2018-07-21 Thread Niklas Cassel
On Sat, Jul 21, 2018 at 01:51:47PM -0500, Andy Gross wrote: > On Thu, Jul 19, 2018 at 12:53:04PM +0200, Nicolas Dechesne wrote: > > hi Niklas, > > > > On Wed, Jul 18, 2018 at 4:53 PM Niklas Cassel > > wrote: > > > > > > Drop legacy suffix for clocks used by MSM DRM driver. > > > > I had the sam

Re: [PATCH] arm64: dts: msm8916: drop legacy suffix for clocks used by MSM DRM driver

2018-07-21 Thread Andy Gross
On Thu, Jul 19, 2018 at 12:53:04PM +0200, Nicolas Dechesne wrote: > hi Niklas, > > On Wed, Jul 18, 2018 at 4:53 PM Niklas Cassel > wrote: > > > > Drop legacy suffix for clocks used by MSM DRM driver. > > I had the same patch locally, which I forgot to send.. so thanks for > sending it ;) > > y

Re: [PATCH -next 0/2] fs/epoll: loosen irq safety when possible

2018-07-21 Thread Davidlohr Bueso
On Sat, 21 Jul 2018, Peter Zijlstra wrote: On Sat, Jul 21, 2018 at 10:21:20AM -0700, Davidlohr Bueso wrote: On Fri, 20 Jul 2018, Andrew Morton wrote: > We could open-code it locally. Add a couple of > WARN_ON_ONCE(irqs_disabled())? That might need re-benchmarking with > Xen but surely just r

KASAN: stack-out-of-bounds Read in locks_remove_posix

2018-07-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8ae71e76cf1f Merge branch 'bpf-offload-sharing' git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=17724d1c40 kernel config: https://syzkaller.appspot.com/x/.config?x=89129667b46496c3 dashboard link:

Re: [PATCH v8 00/11] Introduce the Counter subsystem

2018-07-21 Thread William Breathitt Gray
On Sat, Jul 21, 2018 at 07:01:34PM +0100, Jonathan Cameron wrote: >On Sun, 15 Jul 2018 16:44:24 -0400 >William Breathitt Gray wrote: > >> Changes in v8: >> - Add counter_enum.h file >> - Simplify COUNTER Kconfig option help text >> - Rename generic-counter.c to the more straightforward counter.

Re: [PATCH] fs/buffer.c: Optimize grow_buffer function.

2018-07-21 Thread Al Viro
On Sun, Jul 22, 2018 at 01:30:17AM +0800, Sean Fu wrote: > Use PAGE_SHIFT and i_blkbits of bd_inode directly to avoid ugly sizebits > calculation. > Remove ugly sizebits calculation. > Remove unnecessary sizebits parameter of grow_dev_page. > > Reduces code size: > > Before: > > sean@linux-zmni:

[RFC PATCH 4/4] clk: qcom: sdm845: Add Power Domain to RCGs and PLL

2018-07-21 Thread Taniya Das
Test code for GCC Power Domain Voting for root clocks/plls. Signed-off-by: Taniya Das --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 + drivers/clk/qcom/gcc-sdm845.c| 83 +--- drivers/clk/qcom/vdd-level.h | 31 ++ 3 files changed, 101 in

[RFC PATCH 3/4] clk: qcom: Add prepare/unprepare clock ops for PLL/RCG

2018-07-21 Thread Taniya Das
To put across power domain votes associated with a PLL or RCG, add the prepare/unprepare clock ops which would map the corresponding performance state corners for a clock frequency when the clk_prepare/clk_unprepare is being invoked. Also update the set_rate clock ops to send across the performance

[RFC PATCH 2/4] clk: qcom: Initialize the power domain class for each clock

2018-07-21 Thread Taniya Das
The power domain class is being initialized for clocks which has an associated power domains before registering the clocks with the clock framework. Signed-off-by: Taniya Das --- drivers/clk/qcom/clk-regmap.h | 5 + drivers/clk/qcom/common.c | 17 +++-- 2 files changed, 12 i

[RFC PATCH 0/4] clk: qcom: Add support to vote to genpd

2018-07-21 Thread Taniya Das
A clock controller could be connected to single or multiple power domains. Add support for powerdomain_class which would help associate these power domains to the RCGs and PLLs in the clock controller. Map the domain and the corresponding frequencies to the clock(RCG/PLL). The clock frequency reque

[RFC PATCH 1/4] clk: qcom: Add support to request power domain state

2018-07-21 Thread Taniya Das
There could be single power domain or multiple power domains associated with a clock controller. Add powerdomain_class support which would help vote/unvote for any power domain performance state for a clock frequency to the genpd framework. A clock frequency request from a consumer would look for t

Re: [PATCH 0/5] ti_am335x_tsc: Enable wakeup capability

2018-07-21 Thread Jonathan Cameron
On Wed, 18 Jul 2018 17:09:02 + Dmitry Torokhov wrote: > On Wed, Jul 18, 2018 at 08:47:36AM +0100, Lee Jones wrote: > > On Tue, 17 Jul 2018, Vignesh R wrote: > > > > > Hi Dmitry, > > > > > > On Saturday 30 June 2018 04:03 PM, Vignesh R wrote: > > > > On AM335x, resistive TSC can wakeup t

Re: [PATCH v4 25/35] mtd: rawnand: vf610: convert driver to nand_scan()

2018-07-21 Thread Boris Brezillon
On Fri, 20 Jul 2018 17:15:17 +0200 Miquel Raynal wrote: > Two helpers have been added to the core to make ECC-related > configuration between the detection phase and the final NAND scan. Use > these hooks and convert the driver to just use nand_scan() instead of > both nand_scan_ident() and nand_

Re: [PATCH v4 24/35] mtd: rawnand: txx9ndfmc: convert driver to nand_scan()

2018-07-21 Thread Boris Brezillon
On Fri, 20 Jul 2018 17:15:16 +0200 Miquel Raynal wrote: > Two helpers have been added to the core to make ECC-related > configuration between the detection phase and the final NAND scan. Use > these hooks and convert the driver to just use nand_scan() instead of > both nand_scan_ident() and nand_

Re: [PATCH v8 00/11] Introduce the Counter subsystem

2018-07-21 Thread Jonathan Cameron
On Sun, 15 Jul 2018 16:44:24 -0400 William Breathitt Gray wrote: > Changes in v8: > - Add counter_enum.h file > - Simplify COUNTER Kconfig option help text > - Rename generic-counter.c to the more straightforward counter.c > - Update copyright and license boilerplate (use recommended SPDX lin

Re: [PATCH] iio: adc: ti-ads7950: allow simultaneous use of buffer and direct mode

2018-07-21 Thread Jonathan Cameron
On Mon, 16 Jul 2018 18:35:50 -0500 David Lechner wrote: > This modifies the TI ADS7950 A/DC driver to allow the simultaneous use > of both the triggered buffer and reading channels directly (via in- > kernel API or sysfs). > > The use case for this is on LEGO MINDSTORMS EV3. Two of the voltage >

  1   2   3   >