Re: [PATCH v2 2/3] input: touchscreen mc13xxx: Make platform data optional

2019-07-16 Thread Lukasz Majewski
Hi Dmitry, > On Mon, Jul 15, 2019 at 10:43:44AM +0200, Lukasz Majewski wrote: > > Hi Dmitry, > > > > Thank you for your reply. > > > > > On Fri, Jul 12, 2019 at 12:23:45AM +0200, Lukasz Majewski wrote: > > > > From: Sascha Hauer > > > > > > > > The platform data once was optional, make it

Re: [PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition

2019-07-16 Thread Masahiro Yamada
On Tue, Jul 16, 2019 at 3:16 AM Segher Boessenkool wrote: > > On Mon, Jul 15, 2019 at 09:03:46PM +0900, Masahiro Yamada wrote: > > On Mon, Jul 15, 2019 at 4:30 PM Segher Boessenkool > > wrote: > > > > > > On Mon, Jul 15, 2019 at 05:05:34PM +1000, Michael Ellerman wrote: > > > > Segher Boessenkool

[PATCH] net/sched: Make NET_ACT_CT depends on NF_NAT

2019-07-16 Thread YueHaibing
If NF_NAT is m and NET_ACT_CT is y, build fails: net/sched/act_ct.o: In function `tcf_ct_act': act_ct.c:(.text+0x21ac): undefined reference to `nf_ct_nat_ext_add' act_ct.c:(.text+0x229a): undefined reference to `nf_nat_icmp_reply_translation' act_ct.c:(.text+0x233a): undefined reference to `nf_nat

Re: [PATCH] dt-bindings: Ensure child nodes are of type 'object'

2019-07-16 Thread Miquel Raynal
Hi Rob, Rob Herring wrote on Mon, 15 Jul 2019 17:04:57 -0600: > Properties which are child node definitions need to have an explict > type. Otherwise, a matching (DT) property can silently match when an > error is desired. Fix this up tree-wide. Once this is fixed, the > meta-schema will enforce

[RFC PATCH 2/5] PTP: add a callback for counting timestamp events

2019-07-16 Thread Felipe Balbi
This will be used for frequency discipline adjustments. Signed-off-by: Felipe Balbi --- include/linux/ptp_clock_kernel.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/ptp_clock_kernel.h b/include/linux/ptp_clock_kernel.h index 28eb9c792522..1a4e3f916128 100644 -

[RFC PATCH 1/5] x86: tsc: add tsc to art helpers

2019-07-16 Thread Felipe Balbi
Signed-off-by: Felipe Balbi --- arch/x86/include/asm/tsc.h | 2 ++ arch/x86/kernel/tsc.c | 32 2 files changed, 34 insertions(+) diff --git a/arch/x86/include/asm/tsc.h b/arch/x86/include/asm/tsc.h index 8a0c25c6bf09..b7a9f4385a82 100644 --- a/arch/x86/incl

[RFC PATCH 5/5] PTP: Add support for Intel PMC Timed GPIO Controller

2019-07-16 Thread Felipe Balbi
Add a driver supporting Intel Timed GPIO controller available as part of some Intel PMCs. Signed-off-by: Felipe Balbi --- drivers/ptp/Kconfig | 8 + drivers/ptp/Makefile | 1 + drivers/ptp/ptp-intel-pmc-tgpio.c | 378 ++ 3 files changed,

[RFC PATCH 3/5] PTP: implement PTP_EVENT_COUNT_TSTAMP ioctl

2019-07-16 Thread Felipe Balbi
With this, we can request the underlying driver to count the number of events that have been captured. Signed-off-by: Felipe Balbi --- drivers/ptp/ptp_chardev.c | 15 +++ include/uapi/linux/ptp_clock.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/drivers/ptp/ptp_char

[RFC PATCH 4/5] PTP: Add flag for non-periodic output

2019-07-16 Thread Felipe Balbi
When this new flag is set, we can use single-shot output. Signed-off-by: Felipe Balbi --- include/uapi/linux/ptp_clock.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/ptp_clock.h b/include/uapi/linux/ptp_clock.h index 674db7de64f3..439cbdfc3d9b 100644

[RFC PATCH 0/5] PTP: add support for Intel's TGPIO controller

2019-07-16 Thread Felipe Balbi
TGPIO is a new IP which allows for time synchronization between systems without any other means of synchronization such as PTP or NTP. The driver is implemented as part of the PTP framework since its features covered most of what this controller can do. There are a few things that made me send thi

Re: [PATCH V5 11/18] clk: tegra210: Add support for Tegra210 clocks

2019-07-16 Thread Joseph Lo
On 7/16/19 2:35 PM, Sowjanya Komatineni wrote: On 7/15/19 10:37 PM, Dmitry Osipenko wrote: В Mon, 15 Jul 2019 21:37:09 -0700 Sowjanya Komatineni пишет: On 7/15/19 8:50 PM, Dmitry Osipenko wrote: 16.07.2019 6:00, Sowjanya Komatineni пишет: On 7/15/19 5:35 PM, Sowjanya Komatineni wrote:

[PATCH] rtc: snvs: fix possible race condition

2019-07-16 Thread Anson . Huang
From: Anson Huang The RTC IRQ is requested before the struct rtc_device is allocated, this may lead to a NULL pointer dereference in IRQ handler. To fix this issue, allocating the rtc_device struct before requesting the RTC IRQ using devm_rtc_allocate_device, and use rtc_register_device to regis

[PATCH 0/2] panic/printk/x86: Prevent some more printk-related deadlocks in panic()

2019-07-16 Thread Petr Mladek
Hi, I have found some spare duct tape and wrapped some more printk-related deadlocks in panic(). More seriously, someone reported a deadlock in panic(). Some non-trivial debugging pointed out a problem with the following combination: + x86_64 architecture + panic() + pstore config

[PATCH 1/2] printk/panic: Access the main printk log in panic() only when safe

2019-07-16 Thread Petr Mladek
Kernel tries hard to store and show printk messages when panicking. Even logbuf_lock gets re-initialized when only one CPU is running after smp_send_stop(). Unfortunately, smp_send_stop() might fail on architectures that do not use NMI as a fallback. Then printk log buffer might stay locked and a

[PATCH 2/2] printk/panic/x86: Allow to access printk log buffer after crash_smp_send_stop()

2019-07-16 Thread Petr Mladek
crash_smp_send_stop() is a special variant of smp_send_stop(). It is used when crash_kexec_post_notifiers are enabled. CPUs are stopped but cpu_online_mask is not updated so that the original information is visible in crashdump. See the commit 0ee59413c967c35a6dd ("x86/panic: replace smp_send_stop(

Re: [LINUX PATCH v18 1/2] mtd: rawnand: nand_micron: Do not over write driver's read_page()/write_page()

2019-07-16 Thread Boris Brezillon
On Mon, 15 Jul 2019 23:30:51 -0600 Naga Sureshkumar Relli wrote: > Add check before assigning chip->ecc.read_page() and chip->ecc.write_page() > > Signed-off-by: Naga Sureshkumar Relli > --- > Changes in v18 > - None > --- > drivers/mtd/nand/raw/nand_micron.c | 7 +-- > 1 file changed, 5

[PATCH v2] mmc: host: sdhci-sprd: Fix the incorrect soft reset operation when runtime resuming

2019-07-16 Thread Baolin Wang
In sdhci_runtime_resume_host() function, we will always do software reset for all, which will cause Spreadtrum host controller work abnormally after resuming. Thus for Spreadtrum platform that do not power down the SD/eMMC card during runtime suspend, we should not do software reset for all. To fi

[PATCH] mips: fix cacheinfo

2019-07-16 Thread Vladimir Kondratiev
Because CONFIG_OF defined for MIPS, cacheinfo attempts to fill information from DT, ignoring data filled by architecture routine. This leads to error reported cacheinfo: Unable to detect cache hierarchy for CPU 0 Way to fix this provided in commit fac51482577d ("drivers: base: cacheinfo: fix x86

memory leak in new_inode_pseudo (2)

2019-07-16 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:fec88ab0 Merge tag 'for-linus-hmm' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15a3da1fa0 kernel config: https://syzkaller.appspot.com/x/.config?x=8422fa55ce69212c da

Re: [PATCH v2] kernel/printk: prevent deadlock at unexpected call kmsg_dump in NMI context

2019-07-16 Thread Petr Mladek
On Mon 2019-07-15 11:04:55, Konstantin Khlebnikov wrote: > Kernel message dumper - function kmsg_dump() is called on various oops or > panic paths which could happen in unpredictable context including NMI. > > Panic in NMI is handled especially by stopping all other cpus with > smp_send_stop() and

[PATCH] hid-logitech-dj: rename "gaming" receiver to "lightspeed"

2019-07-16 Thread Filipe Laíns
this should help people identify the receiver. there are several receivers used in gaming mice. the "lightspeed" technology is pretty well advertise so this won't just be an obscure name. Signed-off-by: Filipe Laíns --- drivers/hid/hid-ids.h | 2 +- drivers/hid/hid-logitech-dj.c | 4 ++--

Re: [LINUX PATCH v18 1/2] mtd: rawnand: nand_micron: Do not over write driver's read_page()/write_page()

2019-07-16 Thread Boris Brezillon
On Tue, 16 Jul 2019 09:31:37 +0200 Boris Brezillon wrote: > On Mon, 15 Jul 2019 23:30:51 -0600 > Naga Sureshkumar Relli wrote: > > > Add check before assigning chip->ecc.read_page() and chip->ecc.write_page() > > > > Signed-off-by: Naga Sureshkumar Relli > > --- > > Changes in v18 > > - None

[PATCH] hid-logitech-dj: add the Powerplay receiver

2019-07-16 Thread Filipe Laíns
Signed-off-by: Filipe Laíns --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-logitech-dj.c | 4 2 files changed, 5 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index ab9d382b067d..884356feb016 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h

[PATCH] hid-logitech-hidpp: add USB PID for some mice

2019-07-16 Thread Filipe Laíns
Signed-off-by: Filipe Laíns --- drivers/hid/hid-logitech-hidpp.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c index e3b6245bf4b2..21268c9fa71a 100644 --- a/drivers/hid/hid-l

Re: [PATCH] ARM: dts: imx6ul-kontron-ul2: Add Exceet/Kontron iMX6-UL2 SoM

2019-07-16 Thread Krzysztof Kozlowski
On Fri, 12 Jul 2019 at 17:21, Schrempf Frieder wrote: > > Hi Krzysztof, > > On 12.07.19 16:12, Krzysztof Kozlowski wrote: > > Add support for iMX6-UL2 modules from Kontron Electronics GmbH (before > > acquisition: Exceet Electronics) and evalkit boards based on it: > > > > 1. i.MX6 UL System-on-Mo

Re: [PATCH v2] kernel/printk: prevent deadlock at unexpected call kmsg_dump in NMI context

2019-07-16 Thread Konstantin Khlebnikov
On 16.07.2019 10:41, Petr Mladek wrote: On Mon 2019-07-15 11:04:55, Konstantin Khlebnikov wrote: Kernel message dumper - function kmsg_dump() is called on various oops or panic paths which could happen in unpredictable context including NMI. Panic in NMI is handled especially by stopping all ot

Re: [RFC PATCH 1/5] x86: tsc: add tsc to art helpers

2019-07-16 Thread Thomas Gleixner
Felipe, On Tue, 16 Jul 2019, Felipe Balbi wrote: -ENOCHANGELOG As you said in the cover letter: > (3) The change in arch/x86/kernel/tsc.c needs to be reviewed at length > before going in. So some information what those interfaces are used for and why they are needed would be really helpf

Re: [PATCH] ARM: dts: imx6ul-kontron-ul2: Add Exceet/Kontron iMX6-UL2 SoM

2019-07-16 Thread Schrempf Frieder
On 16.07.19 09:50, Krzysztof Kozlowski wrote: > On Fri, 12 Jul 2019 at 17:21, Schrempf Frieder > wrote: >> >> Hi Krzysztof, >> >> On 12.07.19 16:12, Krzysztof Kozlowski wrote: >>> Add support for iMX6-UL2 modules from Kontron Electronics GmbH (before >>> acquisition: Exceet Electronics) and evalki

Re: [PATCH V5 11/18] clk: tegra210: Add support for Tegra210 clocks

2019-07-16 Thread Peter De Schrijver
On Tue, Jul 16, 2019 at 03:24:26PM +0800, Joseph Lo wrote: > > OK, Will add to CPUFreq driver... > > > > > > The other thing that also need attention is that T124 CPUFreq driver > > > implicitly relies on DFLL driver to be probed first, which is icky. > > > > > Should I add check for successful d

Re: [v2 PATCH 1/2] mm: mempolicy: make the behavior consistent when MPOL_MF_MOVE* and MPOL_MF_STRICT were specified

2019-07-16 Thread Vlastimil Babka
On 6/22/19 2:20 AM, Yang Shi wrote: > When both MPOL_MF_MOVE* and MPOL_MF_STRICT was specified, mbind() should > try best to migrate misplaced pages, if some of the pages could not be > migrated, then return -EIO. > > There are three different sub-cases: > 1. vma is not migratable > 2. vma is migr

Re: [PATCH v1] clk: Add devm_clk_{prepare,enable,prepare_enable}

2019-07-16 Thread Marc Gonzalez
On 16/07/2019 02:25, Guenter Roeck wrote: > On 7/15/19 8:34 AM, Marc Gonzalez wrote: > >> Provide devm variants for automatic resource release on device removal. >> probe() error-handling is simpler, and remove is no longer required. >> >> Signed-off-by: Marc Gonzalez > > Again ? > > https://l

Re: [PATCH v2] mmc: host: sdhci-sprd: Fix the incorrect soft reset operation when runtime resuming

2019-07-16 Thread Adrian Hunter
On 16/07/19 10:31 AM, Baolin Wang wrote: > In sdhci_runtime_resume_host() function, we will always do software reset > for all, which will cause Spreadtrum host controller work abnormally after > resuming. > > Thus for Spreadtrum platform that do not power down the SD/eMMC card during > runtime su

Re: memory leak in new_inode_pseudo (2)

2019-07-16 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:be8454af Merge tag 'drm-next-2019-07-16' of git://anongit... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13d5f75060 kernel config: https://syzkaller.appspot.com/x/.config?x=d23a1a

Re: [PATCH v2] mmc: host: sdhci-sprd: Fix the incorrect soft reset operation when runtime resuming

2019-07-16 Thread Baolin Wang
On Tue, 16 Jul 2019 at 16:24, Adrian Hunter wrote: > > On 16/07/19 10:31 AM, Baolin Wang wrote: > > In sdhci_runtime_resume_host() function, we will always do software reset > > for all, which will cause Spreadtrum host controller work abnormally after > > resuming. > > > > Thus for Spreadtrum pla

Re: [PATCH] dt-bindings: Ensure child nodes are of type 'object'

2019-07-16 Thread Maxime Ripard
On Mon, Jul 15, 2019 at 05:04:57PM -0600, Rob Herring wrote: > Properties which are child node definitions need to have an explict > type. Otherwise, a matching (DT) property can silently match when an > error is desired. Fix this up tree-wide. Once this is fixed, the > meta-schema will enforce thi

Re: [PATCH v4] PM / wakeup: show wakeup sources stats in sysfs

2019-07-16 Thread Rafael J. Wysocki
On Tue, Jul 16, 2019 at 4:13 AM Greg Kroah-Hartman wrote: > > On Mon, Jul 15, 2019 at 11:48:27PM +0200, Rafael J. Wysocki wrote: > > On Mon, Jul 15, 2019 at 11:44 PM Tri Vo wrote: > > > > > > Userspace can use wakeup_sources debugfs node to plot history of suspend > > > blocking wakeup sources ov

RE: [PATCH v2 5/6] staging: fsl-dpaa2/ethsw: Add switch driver documentation

2019-07-16 Thread Ioana Ciornei
> Subject: Re: [PATCH v2 5/6] staging: fsl-dpaa2/ethsw: Add switch driver > documentation > > On Fri, Jul 05, 2019 at 05:27:15PM +0300, Ioana Ciornei wrote: > > From: Razvan Stefanescu > > > > Add a switch driver entry in the dpaa2 overview documentation. > > > > Signed-off-by: Razvan Stefanescu

Re: [PATCH v4] PM / wakeup: show wakeup sources stats in sysfs

2019-07-16 Thread Greg Kroah-Hartman
On Tue, Jul 16, 2019 at 10:30:48AM +0200, Rafael J. Wysocki wrote: > On Tue, Jul 16, 2019 at 4:13 AM Greg Kroah-Hartman > wrote: > > > > On Mon, Jul 15, 2019 at 11:48:27PM +0200, Rafael J. Wysocki wrote: > > > On Mon, Jul 15, 2019 at 11:44 PM Tri Vo wrote: > > > > > > > > Userspace can use wakeup

[PATCH v3] mmc: host: sdhci-sprd: Fix the incorrect soft reset operation when runtime resuming

2019-07-16 Thread Baolin Wang
In sdhci_runtime_resume_host() function, we will always do software reset for all, which will cause Spreadtrum host controller work abnormally after resuming. Thus for Spreadtrum platform that do not power down the SD/eMMC card during runtime suspend, we should not do software reset for all. To fi

Re: [PATCH] staging: kpc2000: whitespace and line length cleanup

2019-07-16 Thread Greg Kroah-Hartman
On Mon, Jul 15, 2019 at 02:21:23PM -0700, john.hubb...@gmail.com wrote: > From: John Hubbard > > This commit was created by running indent(1): > `indent -linux` > > ...and then applying some manual corrections and > cleanup afterward, to keep it sane. No functional changes > were made. > >

[PATCH] x86/realmode: remove trampoline_status flag

2019-07-16 Thread Pingfan Liu
In current code, there is no reader of trampoline_status. It turns out that after commit ce4b1b16502b ("x86/smpboot: Initialize secondary CPU only if master CPU will wait for it"), trampoline_status is not needed any more. Signed-off-by: Pingfan Liu Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Boris

Re: [PATCH v2] KVM: x86: PMU Event Filter

2019-07-16 Thread Wei Wang
On 07/16/2019 08:10 AM, Eric Hankland wrote: I think just disabling guest cpuid might not be enough, since guest could write to the msr without checking the cpuid. Why not just add a bitmap for fixed counter? e.g. fixed_counter_reject_bitmap At the beginning of reprogram_fixed_counter, we could

[PATCH] NFS: fix 'passing zero to PTR_ERR()' warning

2019-07-16 Thread Ding Xiang
Fix a static code checker warning: fs/nfs/nfs4idmap.c:331 nfs_idmap_get_key() warn: passing zero to 'PTR_ERR' Signed-off-by: Ding Xiang --- fs/nfs/nfs4idmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/nfs4idmap.c b/fs/nfs/nfs4idmap.c index 1e72963..f71bb7

Re: [PATCH 10/18] drivers: firmware: psci: Add hierarchical domain idle states converter

2019-07-16 Thread Ulf Hansson
Lorenzo, Just wanted to give some feedback to you in public, even if we have already discussed this series, offlist, last week. On Tue, 9 Jul 2019 at 17:31, Lorenzo Pieralisi wrote: > > On Mon, May 13, 2019 at 09:22:52PM +0200, Ulf Hansson wrote: > > If the hierarchical CPU topology is used, but

Re: [PATCH v6 3/4] iio: cros_ec_accel_legacy: Use cros_ec_sensors_core

2019-07-16 Thread Enric Balletbo i Serra
On 16/7/19 1:14, Gwendal Grignou wrote: > Remove duplicate code in cros-ec-accel-legacy, > use cros-ec-sensors-core functions and structures when possible. > > On glimmer, check the 2 accelerometers are presented and working. > > Signed-off-by: Gwendal Grignou > Acked-by: Jonathan Cameron A

Re: [PATCH 1/3] perf: Add capability-related utilities

2019-07-16 Thread Jiri Olsa
On Tue, Jul 02, 2019 at 08:10:03PM -0400, Igor Lubashev wrote: > Add utilities to help checking capabilities of the running process. > Make perf link with libcap. > > Signed-off-by: Igor Lubashev > --- > tools/perf/Makefile.config | 2 +- > tools/perf/util/Build | 1 + > t

Re: [PATCH v3 10/11] mm/memory_hotplug: Make unregister_memory_block_under_nodes() never fail

2019-07-16 Thread Oscar Salvador
On Mon, Jul 15, 2019 at 01:10:33PM +0200, David Hildenbrand wrote: > On 01.07.19 12:27, Michal Hocko wrote: > > On Mon 01-07-19 11:36:44, Oscar Salvador wrote: > >> On Mon, Jul 01, 2019 at 10:51:44AM +0200, Michal Hocko wrote: > >>> Yeah, we do not allow to offline multi zone (node) ranges so the c

Re: [v2 PATCH 1/2] mm: mempolicy: make the behavior consistent when MPOL_MF_MOVE* and MPOL_MF_STRICT were specified

2019-07-16 Thread Vlastimil Babka
On 7/16/19 10:12 AM, Vlastimil Babka wrote: >> --- a/mm/mempolicy.c >> +++ b/mm/mempolicy.c >> @@ -429,11 +429,14 @@ static inline bool queue_pages_required(struct page >> *page, >> } >> >> /* >> - * queue_pages_pmd() has three possible return values: >> + * queue_pages_pmd() has four possible

Re: [PATCH 2/3] perf: Use CAP_SYS_ADMIN with perf_event_paranoid checks

2019-07-16 Thread Jiri Olsa
On Tue, Jul 02, 2019 at 08:10:04PM -0400, Igor Lubashev wrote: > The kernel is using CAP_SYS_ADMIN instead of euid==0 to override > perf_event_paranoid check. Make perf do the same. I see another geteuid check in __cmd_ftrace, perhaps we should cover this one as well jirka

[PATCH -next] keyboard: remove set but not used variables 'sts'

2019-07-16 Thread Mao Wenan
Fixes gcc '-Wunused-but-set-variable' warning: drivers/input/keyboard/applespi.c: In function applespi_set_bl_level: drivers/input/keyboard/applespi.c:902:6: warning: variable sts set but not used [-Wunused-but-set-variable] Fixes: b426ac0452093d ("Input: add Apple SPI keyboard and trackpad driv

Re: [PATCH] perf diff: Report noisy for cycles diff

2019-07-16 Thread Jiri Olsa
On Fri, Jul 12, 2019 at 03:53:55PM +0800, Jin Yao wrote: > This patch prints the stddev and hist for the cycles diff of > program block. It can help us to understand if the cycles diff > is noisy or not. I'm getting compile error: CC builtin-diff.o builtin-diff.c: In function ‘compute_cyc

Re: [PATCH v2 4/4] dt-bindings: devfreq: exynos-bus: remove unused property

2019-07-16 Thread Chanwoo Choi
Hi, On 19. 7. 15. 오후 9:04, Kamil Konieczny wrote: > Remove unused DT property "exynos,voltage-tolerance". > > Signed-off-by: Kamil Konieczny > --- > Documentation/devicetree/bindings/devfreq/exynos-bus.txt | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/Documentation/devicetree/bindi

Re: [PATCH v4 1/1] iio: common: cros_ec_sensors: Expose cros_ec_sensors frequency range via iio sysfs

2019-07-16 Thread Fabien Lahoudere
Le dimanche 14 juillet 2019 à 18:31 +0100, Jonathan Cameron a écrit : > On Tue, 9 Jul 2019 13:53:45 +0200 > Fabien Lahoudere wrote: > > > Embedded controller return minimum and maximum frequencies, > > unfortunately > > we have no way to know the step for all available frequencies. > > Even if n

Re: [PATCH] MIPS: Kconfig: remove HAVE_LATENCYTOP_SUPPORT

2019-07-16 Thread Sergei Shtylyov
Hello! On 15.07.2019 19:08, Fabian Mewes wrote: HAVE_LATENCYTOP_SUPPORT was removed all together in da48d094ce5d7. You need to also specify that commit's summary enclosed in (""). This commit removes a leftover in the MIPS Kconfig. Signed-off-by: Fabian Mewes MBR, Sergei

[PATCH v2] media: dvb: Provide 4 devm variants

2019-07-16 Thread Marc Gonzalez
Provide devm variants for automatic resource release on device removal. Makes error-handling in probe() much simpler, thus less error-prone. And once all resources are devmanaged, remove() is no longer needed. Signed-off-by: Marc Gonzalez --- Changes from v1: x Simplify devm_dvb_register_adapter(

Re: [PATCH v4 1/1] iio: common: cros_ec_sensors: determine protocol version

2019-07-16 Thread Fabien Lahoudere
Le dimanche 14 juillet 2019 à 17:19 +0100, Jonathan Cameron a écrit : > On Tue, 2 Jul 2019 10:49:38 +0200 > Fabien Lahoudere wrote: > > > This patch adds a function to determine which version of the > > protocol is used to communicate with EC. > > > > Signed-off-by: Fabien Lahoudere > > Signed

Re: [PATCH v2 3/4] ARM: dts: exynos: add initial data for coupled regulators for Exynos5422/5800

2019-07-16 Thread Chanwoo Choi
Hi, On 19. 7. 15. 오후 9:04, Kamil Konieczny wrote: > Declare Exynos5422/5800 voltage ranges for opp points for big cpu core and > bus wcore and couple their voltage supllies as vdd_arm and vdd_int should > be in 300mV range. > > Signed-off-by: Marek Szyprowski > Signed-off-by: Kamil Konieczny >

Re: [PATCH 4/4] debian: add generic rule file

2019-07-16 Thread Masahiro Yamada
On Tue, Jul 16, 2019 at 4:13 AM Theodore Y. Ts'o wrote: > > On Mon, Jul 15, 2019 at 08:56:25PM +0200, Enrico Weigelt, metux IT consult > wrote: > > On 15.07.19 14:28, Masahiro Yamada wrote: > > > > >> The rule file contains a rule for creating debian/control and > > >> other metadata - this is do

Re: [PATCH v6] cpufreq/pasemi: fix an use-after-free inpas_cpufreq_cpu_init()

2019-07-16 Thread Viresh Kumar
On 16-07-19, 16:26, wen.yan...@zte.com.cn wrote: > Okay thank you. > Now this patch > (https://lore.kernel.org/lkml/ee8cf5fb4b4a01fdf9199037ff6d835b935cfd13.1562902877.git.viresh.ku...@linaro.org/) > > seems to have not been merged into the linux-next. > > In order to avoid code conflicts, we wi

[PATCH] habanalabs: add comments on INFO IOCTL

2019-07-16 Thread Oded Gabbay
This patch adds some in-code documentation on the different opcodes of the INFO IOCTL. Signed-off-by: Oded Gabbay --- include/uapi/misc/habanalabs.h | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/include/uapi/misc/habanalabs.h b/include/uapi/misc/habanalabs.h

Re: [PATCH 1/2] ASoC: samsung: odroid: fix an use-after-free issue for codec

2019-07-16 Thread Krzysztof Kozlowski
On Sat, 13 Jul 2019 at 05:48, Wen Yang wrote: > > The codec variable is still being used after the of_node_put() call, > which may result in use-after-free. > > Fixes: bc3cf17b575a ("ASoC: samsung: odroid: Add support for secondary CPU > DAI") > Signed-off-by: Wen Yang > Cc: Krzysztof Kozlowski

Re: [PATCH 2/2] ASoC: samsung: odroid: fix a double-free issue for cpu_dai

2019-07-16 Thread Krzysztof Kozlowski
On Sat, 13 Jul 2019 at 05:48, Wen Yang wrote: > > The cpu_dai variable is still being used after the of_node_put() call, > which may result in double-free: > > of_node_put(cpu_dai);---> released here > > ret = devm_snd_soc_register_card(dev, card); > if (ret < 0

Re: [PATCH v1 03/50] clk: samsung: change parent of dout_aclk400_wcore in Exynos5420

2019-07-16 Thread Chanwoo Choi
On 19. 7. 15. 오후 9:43, Lukasz Luba wrote: > Change parent of dout_aclk400_wcore to mout_aclk400_wcore which reflects > topology described in the RM. > > Signed-off-by: Lukasz Luba > --- > drivers/clk/samsung/clk-exynos5420.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH] Fix perf test data race for tsan build

2019-07-16 Thread Jiri Olsa
On Wed, Jul 10, 2019 at 03:16:20PM -0700, Numfor Mbiziwo-Tiapo wrote: > The tsan build of perf gives a data race warning in hi, what's 'tsan build of perf' ? thanks, jirka > mmap-thread-lookup.c when perf test is run on our local machines. > This is because there is no lock around the "go_away"

[PATCH v5 0/1] Expose cros_ec_sensors frequency range via iio sysfs

2019-07-16 Thread Fabien Lahoudere
Chromebooks EC sensors must expose a range of frequencies for each sensors using the standard ABI sampling_frquency_available. This patch needs https://lkml.org/lkml/2019/7/2/345 Changes since v4: - Remove trailing whitespace - Use checkpatch.pl successfully Changes since v3: - Split patch 6 - D

[PATCH v5 1/1] iio: common: cros_ec_sensors: Expose cros_ec_sensors frequency range via iio sysfs

2019-07-16 Thread Fabien Lahoudere
Embedded controller return minimum and maximum frequencies, unfortunately we have no way to know the step for all available frequencies. Even if not complete, we can return a list of known values using the standard read_avail callback (IIO_CHAN_INFO_SAMP_FREQ) to provide them to userland. Now cros

Re: [PATCH v1 04/50] clk: samsung: add IDs to manage aclk400_mscl in Exynos5420

2019-07-16 Thread Chanwoo Choi
Hi, The patch4~patch7 just add the ID to control the clock from DT. You can squash them to one patch instead of splitting out according to the type of clock. On 19. 7. 15. 오후 9:43, Lukasz Luba wrote: > Add needed IDs to MUXes which are used from DT to properly set clock > hierarchy. > > Signed-o

Re: [PATCH AUTOSEL 4.19 123/158] cpufreq: Don't skip frequency validation for has_target() drivers

2019-07-16 Thread Rafael J. Wysocki
On 7/15/2019 4:17 PM, Sasha Levin wrote: From: Viresh Kumar [ Upstream commit 9801522840cc1073f8064b4c979b7b6995c74bca ] CPUFREQ_CONST_LOOPS was introduced in a very old commit from pre-2.6 kernel release by commit 6a4a93f9c0d5 ("[CPUFREQ] Fix 'out of sync' issue"). Basically, that commit doe

Re: [PATCH v1 02/50] clk: samsung: add IDs for Exynos5420 NoC clocks

2019-07-16 Thread Chanwoo Choi
Hi, You don't need to make the separate patches according to the type of clock just in order to add the ID by handling them from devicetree. Please merge following patches to one patch - patch2, patch4~patch7, patch9, patch11, patch12, patch14, patch17 and separate from patch13, patch15, patch16

Re: [PATCH v2 3/4] ARM: dts: exynos: add initial data for coupled regulators for Exynos5422/5800

2019-07-16 Thread Krzysztof Kozlowski
On Mon, 15 Jul 2019 at 14:04, Kamil Konieczny wrote: > > Declare Exynos5422/5800 voltage ranges for opp points for big cpu core and > bus wcore and couple their voltage supllies as vdd_arm and vdd_int should > be in 300mV range. > > Signed-off-by: Marek Szyprowski > Signed-off-by: Kamil Konieczny

Re: [PATCH AUTOSEL 4.14 086/105] PCI / ACPI: Use cached ACPI device state to get PCI device power state

2019-07-16 Thread Rafael J. Wysocki
On 7/15/2019 4:28 PM, Sasha Levin wrote: From: Mika Westerberg [ Upstream commit 83a16e3f6d70da99896c7a2639c0b60fff13afb8 ] The ACPI power state returned by acpi_device_get_power() may depend on the configuration of ACPI power resources in the system which may change any time after acpi_device

Re: [PATCH AUTOSEL 5.2 190/249] cpufreq: Avoid calling cpufreq_verify_current_freq() from handle_update()

2019-07-16 Thread Rafael J. Wysocki
On 7/15/2019 3:45 PM, Sasha Levin wrote: From: Viresh Kumar [ Upstream commit 70a59fde6e69d1d8579f84bf4555bfffb3ce452d ] On some occasions cpufreq_verify_current_freq() schedules a work whose callback is handle_update(), which further calls cpufreq_update_policy() which may end up calling cpuf

Re: [PATCH v1 13/50] clk: samsung: add DPLL rate table in Exynos5420

2019-07-16 Thread Chanwoo Choi
Hi, Also, you better to merge patch13/patch15/patch16 to one patch in order to add the PLL table for DPLL/MPLL/SPLL. And I have a question. Are there any use-case to change the PLL frequency for DPLL/MPLL/SPLL? On 19. 7. 15. 오후 9:43, Lukasz Luba wrote: > The DPLL has fixed frequency left by the

Re: [PATCH] driver core: Remove device link creation limitation

2019-07-16 Thread Marek Szyprowski
Hi Rafael, On 2019-07-10 12:19, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > If device_link_add() is called for a consumer/supplier pair with an > existing device link between them and the existing link's type is > not in agreement with the flags passed to that function by its > caller,

Re: [PATCH 2/3] nvme: Retrieve the required IO queue entry size from the controller

2019-07-16 Thread Christoph Hellwig
On Tue, Jul 16, 2019 at 04:21:14PM +1000, Benjamin Herrenschmidt wrote: > > Actually, this doesn't work on a "real" nvme controller, to change CC > > values the controller needs to be disabled. > > Not really. The specs says that MPS, AMD and CSS need to be set before > enabling, but IOCQES and IO

[PATCHv2 2/3] iio: imu: st_lsm6dsx: add support for accel/gyro unit of lsm9sd1

2019-07-16 Thread Martin Kepplinger
The LSM9DS1's accelerometer / gyroscope unit and it's magnetometer (separately supported in iio/magnetometer/st_magn*) are located on a separate i2c addresses on the bus. For the datasheet, see https://www.st.com/resource/en/datasheet/lsm9ds1.pdf Treat it just like the LSM6* devices and, despite

[PATCH 3/3] dt-bindings: iio: imu: st_lsm6dsx: add lsm9ds1 device bindings

2019-07-16 Thread Martin Kepplinger
Signed-off-by: Martin Kepplinger --- Documentation/devicetree/bindings/iio/imu/st_lsm6dsx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/imu/st_lsm6dsx.txt b/Documentation/devicetree/bindings/iio/imu/st_lsm6dsx.txt index 92b48f242356..fd1722fc93af 1

[PATCHv2 1/3] iio: imu: st_lsm6sdx: move register definitions to sensor_settings struct

2019-07-16 Thread Martin Kepplinger
Move some register definitions to the per-device array of struct st_lsm6dsx_sensor_settings in order to simplify adding new sensor devices to the driver. Also, remove completely unused register definitions. Signed-off-by: Martin Kepplinger --- This is already based on Lorenzo's recent changes:

Re: [PATCH v4] PM / wakeup: show wakeup sources stats in sysfs

2019-07-16 Thread Rafael J. Wysocki
On Tue, Jul 16, 2019 at 10:39 AM Greg Kroah-Hartman wrote: > > On Tue, Jul 16, 2019 at 10:30:48AM +0200, Rafael J. Wysocki wrote: > > On Tue, Jul 16, 2019 at 4:13 AM Greg Kroah-Hartman > > wrote: > > > > > > On Mon, Jul 15, 2019 at 11:48:27PM +0200, Rafael J. Wysocki wrote: > > > > On Mon, Jul 15

[GIT PULL] dmaengine updates for v5.3-rc1

2019-07-16 Thread Vinod Koul
Hello Linus, Here is the update for v5.3-rc1. Please note there will be trivial merge conflict with your tree due to a) SPDX conflicts and b) removal of sudmac driver and addition of spdx tags to it. The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (20

Re: [PATCH v1 01/50] clk: samsung: add new IDs for Exynos5420 clocks

2019-07-16 Thread Chanwoo Choi
Hi, Usually, when developing the clock controller driver, define the same sequence between the definition sequence in dt-bibing and clock driver. As I replied, if you squash patches, it is easy. For example, This series add clock id as following.

Re: [PATCHv2 2/3] iio: imu: st_lsm6dsx: add support for accel/gyro unit of lsm9sd1

2019-07-16 Thread Lorenzo Bianconi
> The LSM9DS1's accelerometer / gyroscope unit and it's magnetometer (separately > supported in iio/magnetometer/st_magn*) are located on a separate i2c > addresses > on the bus. > > For the datasheet, see https://www.st.com/resource/en/datasheet/lsm9ds1.pdf > > Treat it just like the LSM6* devi

[PATCH 01/10] cpufreq: Add policy create/remove notifiers

2019-07-16 Thread Viresh Kumar
This reverts commit f9f41e3ef99ac9d4e91b07634362e393fb929aad. We have a new use case for policy create/remove notifiers (for allocating/freeing QoS requests per policy), lets add them back. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 15 ++- include/linux/cpufreq.h

[PATCH] ata: libahci_platform: remove redundant dev_err message

2019-07-16 Thread Ding Xiang
devm_ioremap_resource already contains error message, so remove the redundant dev_err message Signed-off-by: Ding Xiang --- drivers/ata/libahci_platform.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c index 72312ad..3a36e76 100

[GIT PULL] RTC for 5.3

2019-07-16 Thread Alexandre Belloni
Hello Linus, A quiet cycle this time. I'm a bit late for this PR but I threw in a few fixes instead of waiting for -rc1. The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) are available in the Git repository at: git://git.

[PATCH 04/10] arch_topology: Use CPUFREQ_CREATE_POLICY instead of CPUFREQ_NOTIFY

2019-07-16 Thread Viresh Kumar
CPUFREQ_NOTIFY is going to get removed soon, lets use CPUFREQ_CREATE_POLICY instead of that here. CPUFREQ_CREATE_POLICY is called only once (which is exactly what we want here) for each cpufreq policy when it is first created. Signed-off-by: Viresh Kumar --- drivers/base/arch_topology.c | 2 +-

[PATCH 09/10] cpufreq: Remove CPUFREQ_ADJUST and CPUFREQ_NOTIFY policy notifier events

2019-07-16 Thread Viresh Kumar
No driver makes reference to these events now, remove them and the code related to them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 36 +++- include/linux/cpufreq.h | 6 ++ 2 files changed, 9 insertions(+), 33 deletions(-) diff --git a/dri

[PATCH 05/10] thermal: cpu_cooling: Switch to QoS requests instead of cpufreq notifier

2019-07-16 Thread Viresh Kumar
The cpufreq core now takes the min/max frequency constraints via QoS requests and the CPUFREQ_ADJUST notifier shall get removed later on. Switch over to using the QoS request for maximum frequency constraint for cpu_cooling driver. Signed-off-by: Viresh Kumar --- drivers/thermal/cpu_cooling.c |

[PATCH 08/10] ACPI: cpufreq: Switch to QoS requests instead of cpufreq notifier

2019-07-16 Thread Viresh Kumar
The cpufreq core now takes the min/max frequency constraints via QoS requests and the CPUFREQ_ADJUST notifier shall get removed later on. Switch over to using the QoS request for maximum frequency constraint for acpi driver. Signed-off-by: Viresh Kumar --- drivers/acpi/processor_driver.c | 44

[PATCH 07/10] cpufreq: powerpc_cbe: Switch to QoS requests instead of cpufreq notifier

2019-07-16 Thread Viresh Kumar
The cpufreq core now takes the min/max frequency constraints via QoS requests and the CPUFREQ_ADJUST notifier shall get removed later on. Switch over to using the QoS request for maximum frequency constraint for ppc_cbe_cpufreq driver. Signed-off-by: Viresh Kumar --- drivers/cpufreq/ppc_cbe_cpu

[PATCH 06/10] powerpc: macintosh: Switch to QoS requests instead of cpufreq notifier

2019-07-16 Thread Viresh Kumar
The cpufreq core now takes the min/max frequency constraints via QoS requests and the CPUFREQ_ADJUST notifier shall get removed later on. Switch over to using the QoS request for maximum frequency constraint for windfarm_cpufreq_clamp driver. Signed-off-by: Viresh Kumar --- drivers/macintosh/wi

[PATCH 10/10] Documentation: cpufreq: Update policy notifier documentation

2019-07-16 Thread Viresh Kumar
Update documentation with the recent policy notifier updates. Signed-off-by: Viresh Kumar --- Documentation/cpu-freq/core.txt | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Documentation/cpu-freq/core.txt b/Documentation/cpu-freq/core.txt index 073f128af5a7

[PATCH] ASoC: cs42xx8: Fix MFREQ selection issue for async mode

2019-07-16 Thread shengjiu . wang
From: Shengjiu Wang When sample rate of TX is different with sample rate of RX in async mode, the MFreq selection will be wrong. For example, sysclk = 24.576MHz, TX rate = 96000Hz, RX rate = 48000Hz. Then ratio of TX = 256, ratio of RX = 512, For MFreq is shared by TX and RX instance, the correc

[PATCH 03/10] video: pxafb: Remove cpufreq policy notifier

2019-07-16 Thread Viresh Kumar
The cpufreq policy notifier's CPUFREQ_ADJUST notification is going to get removed soon. The notifier callback pxafb_freq_policy() isn't doing anything apart from printing a debug message on CPUFREQ_ADJUST notification. There is no point in keeping an otherwise empty callback and registering the no

Re: [PATCH v1 6/6] virtio-balloon: Add support for aerating memory via hinting

2019-07-16 Thread Michael S. Tsirkin
On Wed, Jun 19, 2019 at 03:33:38PM -0700, Alexander Duyck wrote: > From: Alexander Duyck > > Add support for aerating memory using the hinting feature provided by > virtio-balloon. Hinting differs from the regular balloon functionality in > that is is much less durable than a standard memory ball

Re: [PATCH v1 10/50] clk: samsung: change ACLK100_NOC clocks definitions Exynos5x

2019-07-16 Thread Chanwoo Choi
Hi, I checked the range of ratio as following: Looks good to me. But, you better to make it to fix the ratio range without adding ID. Please merge the code related to adding IDs into one patch. - Exynos5422 TRM ACLK_100_NOC_RATIO [23:20] - Exynos5420 TRM ACLK_100_NOC_RATIO [22:20] On 19. 7. 15. 오

Re: [PATCH v2 1/4] opp: core: add regulators enable and disable

2019-07-16 Thread Viresh Kumar
On 15-07-19, 14:04, Kamil Konieczny wrote: > Add enable regulators to dev_pm_opp_set_regulators() and disable > regulators to dev_pm_opp_put_regulators(). This prepares for > converting exynos-bus devfreq driver to use dev_pm_opp_set_rate(). > > Signed-off-by: Kamil Konieczny > -- > Changes in v2

Re: [PATCH v4 03/11] mfd / platform: cros_ec: Miscellaneous character device to talk with the EC

2019-07-16 Thread Enric Balletbo i Serra
Hi Gwendal, On 15/7/19 19:08, Gwendal Grignou wrote: > On Thu, Jun 27, 2019 at 3:40 AM Enric Balletbo i Serra > wrote: >> >> That's a driver to talk with the ChromeOS Embedded Controller via a >> miscellaneous character device, it creates an entry in /dev for every >> instance and implements basi

Re: [PATCH v2 2/4] devfreq: exynos-bus: convert to use dev_pm_opp_set_rate()

2019-07-16 Thread Bartlomiej Zolnierkiewicz
Hi Chanwoo, On 7/16/19 5:56 AM, Chanwoo Choi wrote: > Hi Kamil, > > Looks good to me. But, this patch has some issue. > I added the detailed reviews. > > I recommend that you make the separate patches as following > in order to clarify the role of which apply the dev_pm_opp_* function. > > Fi

Re: [PATCH v1 08/50] clk: samsung: change aclk266_isp clocks definitions Exynos5420

2019-07-16 Thread Chanwoo Choi
Hi, On 19. 7. 15. 오후 9:43, Lukasz Luba wrote: > The ACLK266_ISP has different topology in Exynos5420 and 5422/5800. In > Exynos5420 this clock does not have dedicated MUX which chooses PLL instead > it takes the clock from 2-level mux from ACLK266. In Exynos5422 there is a > dedicated clock tree

  1   2   3   4   5   6   7   >