Re: v4l2-fwnode: status, plans for merge, any branch to merge against?

2017-06-13 Thread Sakari Ailus
Hi Pavel, On Tue, Jun 13, 2017 at 02:22:40PM +0200, Pavel Machek wrote: > Hi! > > Are there any news about the fwnode branch? > > I have quite usable camera, but it is still based on > 982e8e40390d26430ef106fede41594139a4111c (that's v4.10). It would be > good to see fwnode stuff upstream... are

Re: [PATCH] ARM64: Kconfig: Fix the missing hi655x common clk

2017-06-13 Thread Daniel Lezcano
On 12/06/2017 23:12, Arnd Bergmann wrote: > On Mon, Jun 12, 2017 at 11:38 AM, Daniel Lezcano > wrote: >> On Fri, Jun 09, 2017 at 10:48:13PM +0200, Arnd Bergmann wrote: >>> On Fri, Jun 9, 2017 at 10:15 PM, John Stultz wrote: On Fri, Jun 9, 2017 at 1:06 PM, Arnd Bergmann wrote: > On Fri,

[PATCH] xen/mce: don't issue error message for failed /dev/mcelog registration

2017-06-13 Thread Juergen Gross
When running under Xen as dom0 /dev/mcelog is being registered by Xen instead of the normal mcelog driver. Avoid an error message being issued by the mcelog driver in this case. Instead issue an informative message that Xen has registered the device. Signed-off-by: Juergen Gross --- arch/x86/ker

Re: WMI and Kernel:User interface

2017-06-13 Thread Pali Rohár
On Monday 12 June 2017 18:24:35 Darren Hart wrote: > > One thing is design of some system, another thing is real usage. We know > > that WMI is used for reporting events when some keys are pressed (e.g. > > Fn keys) or used for enabling/disabling of radio devices or controlling > > keyboard/LID

Re: [PATCH v4 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-06-13 Thread Matthias Brugger
On 13/06/17 12:24, Jun Gao wrote: On Tue, 2017-06-13 at 11:36 +0200, Matthias Brugger wrote: On 12/06/17 13:54, Jun Gao wrote: On Fri, 2017-05-26 at 15:35 +0800, Jun Gao wrote: From: Jun Gao Add MT2701 i2c device node. Signed-off-by: Jun Gao --- arch/arm/boot/dts/mt2701-evb.dts | 42

[PATCH] ARM: at91: remove atmel_nand_data

2017-06-13 Thread Alexandre Belloni
Since AVR32 is gone and the driver rework, struct atmel_nand_data is not used anywhere. Signed-off-by: Alexandre Belloni --- include/linux/platform_data/atmel.h | 21 - 1 file changed, 21 deletions(-) diff --git a/include/linux/platform_data/atmel.h b/include/linux/platform

[PATCH 0/3] printk/console: Simplify the logic and always have a preferred console

2017-06-13 Thread Petr Mladek
The regression caused by the commit cf39bf58afdaabc0b ("printk: fix double printing with earlycon") made me to investigate the console registration code from many angles. And it was not an easy reading. Especially the logic around the preferred console was somehow twisted. The first two patches tr

[PATCH 3/3] printk/console: Always have a preferred console

2017-06-13 Thread Petr Mladek
More consoles can be registered but one might be special. It is the one with CON_CONSDEV flag set. It must be the first in the console_drivers list. It is also sometimes called as a preferred one. It is the console that is associated with /dev/console. It is shown by "showconsole" binary. But if n

[PATCH 2/3] printk/console: Clean up logic around fallback console

2017-06-13 Thread Petr Mladek
register_console() has a fallback code that enables the first usable console when a preferred one is not set. Though the logic is really tangled by the variable "has_preferred" The only purpose of the variable is to decide whether we use the fallback code or not. It is set when the console setup s

[PATCH 1/3] printk/console: Remove superfluous setting of has_preferred state value

2017-06-13 Thread Petr Mladek
It is superfluous to set "has_preferred" when the really preferred console is enabled. The variable "i" is index of an array. Therefore "has_preferred" is set only when preferred_console is >= 0. But then it was already true because of the above code: if (!has_preferred || bcon || !console

Re: [PATCH 7/9] Staging: rtl8712: ieee80211: fixed camelcase coding style issue

2017-06-13 Thread Greg KH
On Sun, Jun 11, 2017 at 11:57:55PM +0530, Jaya Durga wrote: > Fixed coding style issue > > Renamed IEs to ie_s > > Signed-off-by: Jaya Durga Where are patches 1-6 for this series? Please fix and resend. thanks, greg k-h

Re: [PATCH 9/9] Staging: rtl8712: ieee80211: fixed camelcase coding style issue

2017-06-13 Thread Greg KH
On Sun, Jun 11, 2017 at 11:57:57PM +0530, Jaya Durga wrote: > Fixed coding style issue > > Renamed Ssid to ssid > Renamed Ssid_Length to ssid_length > > Signed-off-by: Jaya Durga Where are patches 1-8 of this series?

Re: [PATCH] staging: fsl-mc: fix misspelled comment identified by checkpatch

2017-06-13 Thread Greg KH
On Mon, Jun 12, 2017 at 03:43:35PM -0400, Gabriel L. Somlo wrote: > Signed-off-by: Gabriel Somlo > --- > drivers/staging/fsl-mc/bus/dpio/dpio-service.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I can't take patches without any changelog test at all, sorry. greg k-h

[PATCH] mtd: nand: atmel_nand: drop unused include

2017-06-13 Thread Alexandre Belloni
The Atmel NAND driver doesn't used anything from linux/platform_data/atmel.h, stop including it. Signed-off-by: Alexandre Belloni --- drivers/mtd/nand/atmel/nand-controller.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/nand/atmel/nand-controller.c b/drivers/mtd/nand/atmel/nan

Re: [PATCH 1/7] staging: rtl8723bs: wifi_regd.c: put spaces around binary operators

2017-06-13 Thread Greg KH
On Mon, Jun 12, 2017 at 12:46:10PM +0200, Fabian Wolff wrote: > This patch adds spaces around the binary operators '-' and '+', which > is the preferred style, and reformats a pointer argument declaration > to fix a false positive "spaces preferred around that '*'" message > reported by checkpatch.

[PATCH v2] exit: avoid undefined behaviour when call wait4

2017-06-13 Thread zhong jiang
From: zhongjiang wait4(-2147483648, 0x20, 0, 0xdd) triggers: UBSAN: Undefined behaviour in kernel/exit.c:1651:9 The related calltrace is as follows: [518871.435738] negation of -2147483648 cannot be represented in type 'int': [518871.442618] CPU: 9 PID: 16482 Comm: zj Tainted: GB

Re: udf: allow implicit blocksize specification during mount

2017-06-13 Thread Jan Kara
Hi, On Mon 12-06-17 22:40:14, Pali Rohár wrote: > Hi! I found that following UDF patch was included into linus tree: > https://patchwork.kernel.org/patch/9524557/ > > It is really a good improvement to recognize UDF file system which have > block size different from disk sector size and also dif

Re: [PATCH] Staging: vc04_services: bcm2835-audio: bcm2835-ctl.c: Fixed alignment to match open parenthesis.

2017-06-13 Thread Greg KH
On Sat, Jun 10, 2017 at 02:37:22AM +0530, srishti sharma wrote: > Fixed alignment so that it matched open parenthesis. > > Signed-off-by: srishti sharma > --- > drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/dri

Re: [PATCH] ARM: at91: remove atmel_nand_data

2017-06-13 Thread Boris Brezillon
On Tue, 13 Jun 2017 14:54:00 +0200 Alexandre Belloni wrote: > Since AVR32 is gone and the driver rework, struct atmel_nand_data is not > used anywhere. > > Signed-off-by: Alexandre Belloni Acked-by: Boris Brezillon > --- > include/linux/platform_data/atmel.h | 21 - > 1

Re: [PATCH] xen/mce: don't issue error message for failed /dev/mcelog registration

2017-06-13 Thread Borislav Petkov
On Tue, Jun 13, 2017 at 02:49:21PM +0200, Juergen Gross wrote: > When running under Xen as dom0 /dev/mcelog is being registered by Xen > instead of the normal mcelog driver. Avoid an error message being > issued by the mcelog driver in this case. Instead issue an informative > message that Xen has

Re: kernel BUG at net/ipv4/tcp_output.c:2748!

2017-06-13 Thread Greg KH
On Tue, Jun 13, 2017 at 07:39:00PM +0800, Dison River wrote: > Hi >I've got the following error report while fuzzing the kernel with > syzkaller on > linux-4.11.0-rc3. 4.11-rc3 is pretty old now, can you try 4.12-rc4 for this? thanks, greg k-h

Re: [PATCH v3 2/2] fs/fcntl: f_setown, avoid undefined behaviour

2017-06-13 Thread zhong jiang
On 2017/6/13 20:13, Jeff Layton wrote: > On Tue, 2017-06-13 at 13:35 +0200, Jiri Slaby wrote: >> fcntl(0, F_SETOWN, 0x8000) triggers: >> UBSAN: Undefined behaviour in fs/fcntl.c:118:7 >> negation of -2147483648 cannot be represented in type 'int': >> CPU: 1 PID: 18261 Comm: syz-executor Not tai

[PATCH][netdev-next] net: hns: make guid hns_dsaf_acpi_dsm_guid static

2017-06-13 Thread Colin King
From: Colin Ian King The guid hns_dsaf_acpi_dsm_guid does not need to be in global scope, so make it static. Cleans up sparse warning: "symbol 'hns_dsaf_acpi_dsm_guid' was not declared. Should it be static?" Signed-off-by: Colin Ian King --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c

Re: [PATCH] powerpc: dts: use #include "..." to include local DT

2017-06-13 Thread Anatolij Gustschin
Hi, On Wed, 24 May 2017 14:12:24 +0900 Masahiro Yamada yamada.masah...@socionext.com wrote: >Most of DT files in PowerPC use #include "..." to make pre-processor >include DT in the same directory, but we have 3 exceptional files >that use #include <...> for that. > >Fix them to remove -I$(srctree

Re: Ftrace vs perf user page fault statistics differences

2017-06-13 Thread Steven Rostedt
On Mon, 12 Jun 2017 22:05:05 -0400 Will Hawkins wrote: > > Can you supply this program. So I can see exactly what it does? > > I have attached the binary to this email. I also provided the source > so you can reproduce the situation directly. You can use the makefile > provided as long as you

Re: [PATCH v2 06/15] [media] cxd2880: Add tuner part of the driver

2017-06-13 Thread Mauro Carvalho Chehab
Em Fri, 14 Apr 2017 11:26:56 +0900 escreveu: > From: Yasunari Takiguchi > > This part of the driver has the main routines to handle > the tuner and demodulator functionality. The tnrdmd_mon.* files > have monitor functions for the driver. > This is part of the Sony CXD2880 DVB-T2/T tuner + dem

Re: [PATCH] powerpc: dts: use #include "..." to include local DT

2017-06-13 Thread Anatolij Gustschin
On Tue, 13 Jun 2017 20:21:45 +1000 Michael Ellerman m...@ellerman.id.au wrote: >Masahiro Yamada writes: ... >> Ping. >> I am not 100% sure who is responsible for this, >> but somebody, could take a look at this patch, please? > >Have you tested it actually works? > >It sounds reasonable, and if

Re: [v2 1/1] usb:host:xhci support option to disable xHCI 1.0 USB2 HW LPM

2017-06-13 Thread Mathias Nyman
On 06.06.2017 09:33, Thang Q. Nguyen wrote: On Mon, Jun 5, 2017 at 9:33 PM, Mathias Nyman wrote: On 05.06.2017 15:57, Thang Q. Nguyen wrote: On Mon, Jun 5, 2017 at 6:14 PM, Mathias Nyman wrote: On 20.05.2017 10:24, Thang Q. Nguyen wrote: XHCI specification 1.1 does not require xHCI 1.0

Re: [PATCH 1/7] staging: rtl8723bs: wifi_regd.c: put spaces around binary operators

2017-06-13 Thread Greg KH
On Tue, Jun 13, 2017 at 02:58:43PM +0200, Greg KH wrote: > On Mon, Jun 12, 2017 at 12:46:10PM +0200, Fabian Wolff wrote: > > This patch adds spaces around the binary operators '-' and '+', which > > is the preferred style, and reformats a pointer argument declaration > > to fix a false positive "sp

Re: next/master build: 208 builds: 2 failed, 206 passed, 2 errors, 147 warnings (next-20170613)

2017-06-13 Thread gregkh
On Tue, Jun 13, 2017 at 01:59:40PM +0200, Arnd Bergmann wrote: > On Tue, Jun 13, 2017 at 11:56 AM, kernelci.org bot wrote: > > > > next/master build: 208 builds: 2 failed, 206 passed, 2 errors, 147 warnings > > (next-20170613) > > Full Build Summary: > > https

Re: [PATCH] regulator: core: Prioritise consumer mappings over regulator name

2017-06-13 Thread Charles Keepax
On Tue, Jun 13, 2017 at 11:15:56AM +0100, Mark Brown wrote: > On Tue, Jun 13, 2017 at 09:07:31AM +0100, Charles Keepax wrote: > > On Mon, Jun 12, 2017 at 05:38:56PM +0100, Mark Brown wrote: > > > On Mon, Jun 12, 2017 at 04:17:52PM +0100, Charles Keepax wrote: > > > > > r = regulator_lookup

Re: [PATCH] mtd: nand: atmel_nand: drop unused include

2017-06-13 Thread Boris Brezillon
On Tue, 13 Jun 2017 14:58:42 +0200 Alexandre Belloni wrote: > The Atmel NAND driver doesn't used anything from > linux/platform_data/atmel.h, stop including it. > Applied. Thanks, Boris > Signed-off-by: Alexandre Belloni > --- > drivers/mtd/nand/atmel/nand-controller.c | 1 - > 1 file chan

Re: [PATCH] xen/mce: don't issue error message for failed /dev/mcelog registration

2017-06-13 Thread Juergen Gross
On 13/06/17 15:02, Borislav Petkov wrote: > On Tue, Jun 13, 2017 at 02:49:21PM +0200, Juergen Gross wrote: >> When running under Xen as dom0 /dev/mcelog is being registered by Xen >> instead of the normal mcelog driver. Avoid an error message being >> issued by the mcelog driver in this case. Inste

[PATCH][mmc-next] mmc: sdhci-pci: make guid intel_dsm_guid static

2017-06-13 Thread Colin King
From: Colin Ian King The guid intel_dsm_guid does not need to be in global scope, so make it static. Cleans up sparse warning: "symbol 'intel_dsm_guid' was not declared. Should it be static?" Signed-off-by: Colin Ian King --- drivers/mmc/host/sdhci-pci-core.c | 2 +- 1 file changed, 1 inserti

Re: [PATCH] xen/mce: don't issue error message for failed /dev/mcelog registration

2017-06-13 Thread Borislav Petkov
On Tue, Jun 13, 2017 at 03:14:53PM +0200, Juergen Gross wrote: > I'd rather avoid the pr_err() in the -EBUSY case. What about: > > if (err) { > if (err == -EBUSY) > pr_info("Unable to init device /dev/mcelog, already > registered"); > else > pr_err("Unable

Re: [PATCH v9 1/5] firmware: add extensible driver data params

2017-06-13 Thread Greg KH
On Tue, Jun 13, 2017 at 12:31:04PM +0200, Rafał Miłecki wrote: > On 2017-06-13 11:05, Greg KH wrote: > > On Mon, Jun 05, 2017 at 02:39:33PM -0700, Luis R. Rodriguez wrote: > > > As the firmware API evolves we keep extending functions with more > > > arguments. > > > Stop this nonsense by proving an

Re: [PATCH v4 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-06-13 Thread Jun Gao
On Tue, 2017-06-13 at 14:52 +0200, Matthias Brugger wrote: > > On 13/06/17 12:24, Jun Gao wrote: > > On Tue, 2017-06-13 at 11:36 +0200, Matthias Brugger wrote: > >> > >> On 12/06/17 13:54, Jun Gao wrote: > >>> On Fri, 2017-05-26 at 15:35 +0800, Jun Gao wrote: > From: Jun Gao > > Ad

Re: [RFC PATCH v3 09/11] [media] vimc: Subdevices as modules

2017-06-13 Thread Helen Koike
Hi Hans, On 2017-06-13 03:49 AM, Hans Verkuil wrote: On 06/12/2017 10:35 PM, Helen Koike wrote: Hi Hans, Thank you for your review. Please check my comments below On 2017-06-12 07:37 AM, Hans Verkuil wrote: On 06/03/2017 04:58 AM, Helen Koike wrote: +static struct component_match *vimc_add_

[PATCH][target-devel-next] tcmu: make array tcmu_attrib_attrs static const

2017-06-13 Thread Colin King
From: Colin Ian King The guid intel_dsm_guid does not need to be in global scope, so make it static. Cleans up sparse warning: "symbol 'tcmu_attrib_attrs' was not declared. Should it be static?" Signed-off-by: Colin Ian King --- drivers/target/target_core_user.c | 2 +- 1 file changed, 1 inse

Re: [PATCH 6/6] mac80211/wpa: use constant time memory comparison for MACs

2017-06-13 Thread Jason A. Donenfeld
On Tue, Jun 13, 2017 at 10:20 AM, Johannes Berg wrote: > I'm not really sure that this is actually true, since you don't get > much feedback on your frame that's dropped, especially if you're > attacking from remote. Basically, I don't see how you can observe the > timing of this operation? There

Re: [PATCH 1/2] dt-bindings: mfd: Add DT bindings documentation for the max7360 mfd driver

2017-06-13 Thread Vladimir Zapolskiy
Hi Valentin, On 06/13/2017 03:20 PM, Valentin Sitdikov wrote: > This patch adds documentation for the max7360 bindings. > The max7360 is Multi-functional Device containing gpio, > keypad, pwm and rotary encoder submodules. > > Signed-off-by: Andrei Dranitca > Signed-off-by: Valentin Sitdikov >

[PATCH][V2][target-devel-next] tcmu: make array tcmu_attrib_attrs static const

2017-06-13 Thread Colin King
From: Colin Ian King The array tcmu_attrib_attrs does not need to be in global scope, so make it static. Cleans up sparse warning: "symbol 'tcmu_attrib_attrs' was not declared. Should it be static?" Signed-off-by: Colin Ian King --- drivers/target/target_core_user.c | 2 +- 1 file changed, 1

Re: [PATCH v2 08/15] [media] cxd2880: Add top level of the driver

2017-06-13 Thread Mauro Carvalho Chehab
Em Fri, 14 Apr 2017 11:31:50 +0900 escreveu: > From: Yasunari Takiguchi > > This provides the main dvb frontend operation functions > for the Sony CXD2880 DVB-T2/T tuner + demodulator driver. For now, I'll do only a quick review on patches 6-15, as there are several things to be ajusted on the

Re: [4.4.70 REGRESSION] Nouveau hangs up at boot

2017-06-13 Thread Takashi Iwai
On Tue, 13 Jun 2017 08:08:17 +0200, Takashi Iwai wrote: > > On Tue, 13 Jun 2017 00:40:26 +0200, > Ben Skeggs wrote: > > > > On 06/10/2017 06:25 AM, Takashi Iwai wrote: > > > Hi, > > > > > > we've received a bug report about 4.4.70 kernel showing the hang up at > > > boot. And, this turned out t

Re: [PATCH 1/7] staging: rtl8723bs: wifi_regd.c: put spaces around binary operators

2017-06-13 Thread Ian W MORRISON
On 12 June 2017 at 20:46, Fabian Wolff wrote: > This patch adds spaces around the binary operators '-' and '+', which > is the preferred style, and reformats a pointer argument declaration > to fix a false positive "spaces preferred around that '*'" message > reported by checkpatch.pl. > > Signed-

[PATCH 2/2] tty/serial: atmel: make the driver DT only

2017-06-13 Thread Alexandre Belloni
Now that AVR32 is gone, platform_data are not used to initialize the driver anymore, remove that path from the driver. Also remove the now unused struct atmel_uart_data. Signed-off-by: Alexandre Belloni --- drivers/tty/serial/atmel_serial.c | 97 + include/l

[PATCH 1/2] tty/serial: atmel: remove atmel_default_console_device handling

2017-06-13 Thread Alexandre Belloni
atmel_default_console_device was only used by AVR32, in particular arch/avr32/mach-at32ap/at32ap700x.c which is now gone. Remove it from the driver. Signed-off-by: Alexandre Belloni --- drivers/tty/serial/atmel_serial.c | 43 --- 1 file changed, 43 deletions(-

Re: [PATCH 2/2] mfd: max7360: Add mfd core device driver

2017-06-13 Thread Vladimir Zapolskiy
Hi Valentin, On 06/13/2017 03:20 PM, Valentin Sitdikov wrote: > From: Andrei Dranitca > > This patch adds core/irq driver to support MAX7360 i2c chip > which contains keypad, gpio, pwm, gpo and rotary encoder submodules. > > Signed-off-by: Andrei Dranitca > Signed-off-by: Valentin Sitdikov >

Re: [RFC v2 1/3] interconnect: Add generic interconnect controller API

2017-06-13 Thread Greg KH
On Mon, Jun 12, 2017 at 05:13:57PM +0300, Georgi Djakov wrote: > This patch introduce a new API to get the requirement and configure the > interconnect buses across the entire chipset to fit with the current demand. > > The API is using a consumer/provider-based model, where the providers are > th

[PATCH] Add printk for bonding module packets_per_slave parameter

2017-06-13 Thread Michael Dilmore
The packets per slave parameter used by round robin mode does not have a printk debug message in its set function in bond_options.c. Adding such a function would aid debugging of round-robin mode and allow the user to more easily verify that the parameter has been set correctly. I should add tha

Re: [PATCH] base/memory: pass the base_section in add_memory_block

2017-06-13 Thread Greg KH
On Wed, Jun 07, 2017 at 04:52:12PM +0800, Wei Yang wrote: > The second parameter of init_memory_block() is used to calculate the > start_section_nr of this block, which means any section in the same block > would get the same start_section_nr. > > This patch passes the base_section to init_memory_

[PATCH v2] xen/mce: don't issue error message for failed /dev/mcelog registration

2017-06-13 Thread Juergen Gross
When running under Xen as dom0 /dev/mcelog is being registered by Xen instead of the normal mcelog driver. Avoid an error message being issued by the mcelog driver in this case. Instead issue an informative message that Xen has registered the device. Signed-off-by: Juergen Gross --- arch/x86/ker

Re: [PATCH v4 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-06-13 Thread Matthias Brugger
On 13/06/17 15:23, Jun Gao wrote: On Tue, 2017-06-13 at 14:52 +0200, Matthias Brugger wrote: On 13/06/17 12:24, Jun Gao wrote: On Tue, 2017-06-13 at 11:36 +0200, Matthias Brugger wrote: On 12/06/17 13:54, Jun Gao wrote: On Fri, 2017-05-26 at 15:35 +0800, Jun Gao wrote: From: Jun Gao Ad

Re: [char-misc-next 3/3] mei: me: use an index instead of a pointer for private data

2017-06-13 Thread Greg Kroah-Hartman
On Mon, Jun 12, 2017 at 12:15:57PM +0300, Tomas Winkler wrote: > +static const struct mei_cfg *const mei_cfg_list[] = { > + NULL, > + &mei_me_legacy_cfg, > + &mei_me_ich_cfg, > + &mei_me_pch_cfg, > + &mei_me_pch_cpt_pbg_cfg, > + &mei_me_pch8_cfg, > + &mei_me_pch8_sps_cfg

[PATCH v2 1/2] iopoll: Avoid namespace collision within macros & tidyup

2017-06-13 Thread Ramesh Shanmugasundaram
Renamed variable "timeout" to "__timeout" to avoid namespace collision. Tidy up macro arguments with paranthesis. Signed-off-by: Ramesh Shanmugasundaram --- include/linux/iopoll.h | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/include/linux/iopoll.h b/include/li

[PATCH v2 2/2] regmap: Avoid namespace collision within macro & tidyup

2017-06-13 Thread Ramesh Shanmugasundaram
Renamed variable "timeout" to "__timeout" & "pollret" to "__ret" to avoid namespace collision. Tidy up macro arguments with paranthesis. Signed-off-by: Ramesh Shanmugasundaram --- include/linux/regmap.h | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/include

[PATCH v2 0/2] Avoid namespace collision within macros & tidyup

2017-06-13 Thread Ramesh Shanmugasundaram
t is based on top of today's linux-next repo. commit bc4c75f41a1c ("Add linux-next specific files for 20170613") Change history: v2: - iopoll.h: - Enclosed timeout_us & sleep_us arguments with paranthesis - regmap.h: - Enclosed timeout_us & sleep_us

[PATCH][drm-next] drm/i915/cnl: make function cnl_ddi_dp_set_dpll_hw_state static

2017-06-13 Thread Colin King
From: Colin Ian King The function cnl_ddi_dp_set_dpll_hw_state does not need to be in global scope, so make it static. Cleans up sparse warning: "symbol 'cnl_ddi_dp_set_dpll_hw_state' was not declared. Should it be static?" Signed-off-by: Colin Ian King --- drivers/gpu/drm/i915/intel_dpll_mg

[PATCH v7 07/16] mtd: nand: denali: use interrupt instead of polling for bank reset

2017-06-13 Thread Masahiro Yamada
The current bank reset implementation polls the INTR_STATUS register until interested bits are set. This is not good because: - polling simply wastes time-slice of the thread - The while() loop may continue eternally if no bit is set, for example, due to the controller problem. The denali_wai

[PATCH v7 10/16] mtd: nand: denali: use flag instead of register macro for direction

2017-06-13 Thread Masahiro Yamada
It is not a good idea to re-use macros that represent a specific register bit field for the transfer direction. It is true that bit 8 indicates the direction for the MAP10 pipeline operation and the data DMA operation, but this is not valid across the IP. Use a simple flag (write: 1, read: 0) for

[PATCH v7 13/16] mtd: nand: denali: skip driver internal bounce buffer when possible

2017-06-13 Thread Masahiro Yamada
For ecc->read_page() and ecc->write_page(), it is possible to call dma_map_single() against the given buffer. This bypasses the driver internal bounce buffer and save the memcpy(). Signed-off-by: Masahiro Yamada --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: -

[PATCH v7 05/16] mtd: nand: denali: switch over to cmd_ctrl instead of cmdfunc

2017-06-13 Thread Masahiro Yamada
The NAND_CMD_SET_FEATURES support is missing from denali_cmdfunc(). We also see /* TODO: Read OOB data */ comment. It would be possible to add more commands along with the current implementation, but having ->cmd_ctrl() seems a better approach from the discussion with Boris [1]. Rely on the defau

[PATCH v7 08/16] mtd: nand: denali: propagate page to helpers via function argument

2017-06-13 Thread Masahiro Yamada
This driver stores the currently addressed page into denali->page, which is later read out by helper functions. While I am tackling on this driver, I often missed to insert "denali->page = page;" where needed. This makes page_read/write callbacks to get access to a wrong page, which is a bug hard

[PATCH v7 15/16] mtd: nand: denali: enable bad block table scan

2017-06-13 Thread Masahiro Yamada
Now this driver is ready to remove NAND_SKIP_BBTSCAN. The BBT descriptors in denali.c are equivalent to the ones in nand_bbt.c. There is no need to duplicate the equivalent structures. The with-oob decriptors do not work for this driver anyway. The bbt_pattern (offs = 8) and the version (veroffs

[PATCH v7 01/16] mtd: nand: denali: set NAND_ECC_CUSTOM_PAGE_ACCESS

2017-06-13 Thread Masahiro Yamada
The denali_cmdfunc() actually does nothing valuable for NAND_CMD_{PAGEPROG,READ0,SEQIN}. For NAND_CMD_{READ0,SEQIN}, it copies "page" to "denali->page", then denali_read_page(_raw) compares them just for the sanity check. (Inconsistently, this check is missing from denali_write_page(_raw).) The D

[PATCH v7 16/16] mtd: nand: denali: avoid magic numbers and rename for clarification

2017-06-13 Thread Masahiro Yamada
Introduce some macros and helpers to avoid magic numbers and rename macros/functions for clarification. - We see '| 2' in several places. This means Data Cycle in MAP11 mode. The Denali User's Guide says bit[1:0] of MAP11 is like follows: b'00 = Command Cycle b'01 = Address Cycle b'10 =

[PATCH v7 14/16] mtd: nand: denali: use non-managed kmalloc() for DMA buffer

2017-06-13 Thread Masahiro Yamada
As Russell and Lars stated in the discussion [1], using devm_k*alloc() with DMA is not a good idea. Let's use kmalloc (not kzalloc because no need for zero-out). Also, allocate the buffer as late as possible because it must be freed for any error that follows. [1] https://lkml.org/lkml/2017/3/8/6

[PATCH v7 04/16] mtd: nand: denali: rework interrupt handling

2017-06-13 Thread Masahiro Yamada
Simplify the interrupt handling and fix issues: - The register field view of INTR_EN / INTR_STATUS is different among IP versions. The global macro DENALI_IRQ_ALL is hard-coded for Intel platforms. The interrupt mask should be determined at run-time depending on the running platform. - wa

[PATCH v7 02/16] mtd: nand: denali: remove unneeded find_valid_banks()

2017-06-13 Thread Masahiro Yamada
The function find_valid_banks() issues the Read ID (0x90) command, then compares the first byte (Manufacturer ID) of each bank with the one of bank0. This is equivalent to what nand_scan_ident() does. The number of chips is detected there, so this is unneeded. What is worse for find_valid_banks(

[PATCH v7 11/16] mtd: nand: denali: fix raw and oob accessors for syndrome page layout

2017-06-13 Thread Masahiro Yamada
The Denali IP adopts the syndrome page layout; payload and ECC are interleaved, with BBM area always placed at the beginning of OOB. The figure below shows the page organization for ecc->steps == 2: |||---| ||| | ||

Re: [PATCHv2 0/5] OMAP4: crypto support

2017-06-13 Thread Tero Kristo
On 13/06/17 12:28, Sebastian Reichel wrote: Hi, This adds crypto support for OMAP4, which was missing for some reason. This fixes error about missing hwmod on Droid 4. IP-Cores for AES and DES are working according to selftest. Changes since PATCHv1: * remove patch adding des_fck to DT * ad

[PATCH v7 03/16] mtd: nand: denali: handle timing parameters by setup_data_interface()

2017-06-13 Thread Masahiro Yamada
Handling timing parameters in a driver's own way should be avoided because it duplicates efforts of drivers/mtd/nand/nand_timings.c Besides, this driver hard-codes Intel specific parameters such as CLK_X=5, CLK_MULTI=4. Taking a certain device (Samsung K9WAG08U1A) into account by get_samsung_nand_

[PATCH v2] staging: fsl-mc: fix typo in comment

2017-06-13 Thread Gabriel L. Somlo
Resolving checkpatch issue: CHECK: 'successfuly' may be misspelled - perhaps 'successfully'? Signed-off-by: Gabriel Somlo --- On Tue, Jun 13, 2017 at 02:57:40PM +0200, Greg KH wrote: > On Mon, Jun 12, 2017 at 03:43:35PM -0400, Gabriel L. Somlo wrote: > > Signed-off-by: Gabriel Somlo > > --- > >

[PATCH v7 06/16] mtd: nand: denali: fix bank reset function to detect the number of chips

2017-06-13 Thread Masahiro Yamada
The nand_scan_ident() iterates over maxchips, and calls nand_reset() for each. This driver currently passes the maximum number of banks (=chip selects) supported by the controller as maxchips. So, maxchips is typically 4 or 8. Usually, less number of NAND chips are connected to the controller.

[PATCH v7 00/16] mtd: nand: denali: Denali NAND IP improvements

2017-06-13 Thread Masahiro Yamada
This patch series intends to solve various problems. [1] The driver just retrieves the OOB area as-is whereas the controller uses syndrome page layout. [2] ONFi devices are not working [3] It can not read Bad Block Marker Outstanding changes are: - Fix raw/oob callbacks for syndrome page la

[PATCH v7 09/16] mtd: nand: denali: merge struct nand_buf into struct denali_nand_info

2017-06-13 Thread Masahiro Yamada
Now struct nand_buf has only two members, so I see no reason for the separation. Signed-off-by: Masahiro Yamada --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - Newly added drivers/mtd/nand/denali.c | 29 ++--

[PATCH v7 12/16] mtd: nand: denali: support hardware-assisted erased page detection

2017-06-13 Thread Masahiro Yamada
Recent versions of this IP support automatic erased page detection. If an erased page is detected on reads, the controller does not set INTR__ECC_UNCOR_ERR, but INTR__ERASED_PAGE. The detection of erased pages is based on the number of zeros in a page; if the number of zeros is less than the value

Re: [PATCH V2 2/2] timer: imx-tpm: add imx tpm timer support

2017-06-13 Thread Daniel Lezcano
On 13/06/2017 09:58, Dong Aisheng wrote: > IMX Timer/PWM Module (TPM) supports both timer and pwm function while > this patch only adds the timer support. PWM would be added later. > > The TPM counter, compare and capture registers are clocked by an > asynchronous clock that can remain enabled in

[PATCH v6 1/3] PCI: Add DT binding for tango PCIe controller

2017-06-13 Thread Marc Gonzalez
Binding for the Sigma Designs SMP8759 SoC. Signed-off-by: Marc Gonzalez --- Changes from v5 to v6 o Delete links to elinux.org o Use explicit hex numbers instead of symbolic constants for sizes (in the example) o Add bus-range to "Required properties" --- .../devicetree/bindings/pci/tango-pcie.

Re: [next-20170609] WARNING: CPU: 3 PID: 71167 at lib/idr.c:157 idr_replace

2017-06-13 Thread Tejun Heo
Cc'ing David Airlie. This is from drm driver calling in idr_replace() w/ a negative id. Probably a silly bug in error handling path? Thanks. On Mon, Jun 12, 2017 at 08:10:54PM +0530, Abdul Haleem wrote: > Hi, > > WARN_ON_ONCE is being called from idr_replace() function in file > lib/idr.c at li

Re: [PATCH v2 1/1] PCI: imx6: Add pcie compliance test option

2017-06-13 Thread Bjorn Helgaas
On Tue, Jun 13, 2017 at 05:43:14AM +, Schöfegger Stefan wrote: > On Monday, June 12, 2017 6:49:24 PM CEST Bjorn Helgaas wrote: > > On Wed, Jun 07, 2017 at 01:36:11PM +0200, Stefan Schoefegger wrote: > > > Link speed must not be limited to gen1 during link test for compliance > > > tests > > >

[PATCH 1/2] regulator: include 'enabled' status in debugfs/regulator_summary

2017-06-13 Thread Michał Mirosław
Signed-off-by: Michał Mirosław --- drivers/regulator/core.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index c0d9ae8d0860e..ba4d121ae07fc 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c

[PATCH 2/2] regulator: use consumer->supply_name in debugfs/regulator_summary

2017-06-13 Thread Michał Mirosław
Before: regulator ena use open bypass voltage current min max --- regulator-dummy 1 02 0 0mV 0mA 0mV 0mV 1-0010

[PATCH 1/2] regulator: tps65910: check TPS65910_NUM_REGS at build time

2017-06-13 Thread Michał Mirosław
Signed-off-by: Michał Mirosław --- drivers/regulator/tps65910-regulator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/tps65910-regulator.c b/drivers/regulator/tps65910-regulator.c index 696116ebdf50a..81672a58fcc23 100644 --- a/drivers/regulator/tps

[PATCH 2/2] regulator: tps65910: Allow supply references to the same chip

2017-06-13 Thread Michał Mirosław
This allows for (acyclic) references from tps6591x supplies to its outputs. Signed-off-by: Michał Mirosław --- drivers/regulator/tps65910-regulator.c | 39 -- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/drivers/regulator/tps65910-regulator.c b/

[PATCH v6 3/3] PCI: Add tango MSI controller support

2017-06-13 Thread Marc Gonzalez
The MSI controller in Tango supports 256 message-signaled interrupts, and a single doorbell address. Signed-off-by: Marc Gonzalez --- Changes from v5 to v6 o Rename 'used' bitmap to 'used_msi' o Rename 'lock' spinlock to 'used_msi_lock' o Take lock in interrupt handler o Remove irq_dom in error p

Re: [PATCH 1/2] regulator: tps65910: check TPS65910_NUM_REGS at build time

2017-06-13 Thread Keerthy
On Tuesday 13 June 2017 07:28 PM, Michał Mirosław wrote: Missing commit log? > Signed-off-by: Michał Mirosław > --- > drivers/regulator/tps65910-regulator.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/regulator/tps65910-regulator.c > b/drivers/regul

Re: [PATCH 1/1] uio: Fix uio_device memory leak

2017-06-13 Thread Greg KH
On Wed, Jun 07, 2017 at 03:06:44PM -0500, Mike Christie wrote: > It looks like there might be 2 issues with the uio_device allocation, or it > looks like we are leaking the device for possibly a specific type of device > case that I could not find but one of you may know about. > > Issues: > 1. We

Re: [PATCH] goldfish_pipe: allocate memory with GFP_ATOMIC in spinlock context

2017-06-13 Thread Greg Kroah-Hartman
On Sat, Jun 10, 2017 at 02:18:26AM +0300, Alexey Khoroshilov wrote: > get_free_pipe_id_locked() is called with spinlock held, so > the patch replaces GFP_KERNEL with GFP_ATOMIC to avoid > sleeping in atomic spinlock context. > > Found by Linux Driver Verification project (linuxtesting.org). > > S

[PATCH v2 12/12] ARC: [plat-eznps] avoid toggling of DPC register

2017-06-13 Thread Noam Camus
From: Elad Kanfi HW bug description: in case of HW thread context switch the dpc configuration of the exiting thread is dragged one cycle into the next thread. In order to avoid the consequences of this bug, the DPC register is set to an initial value, and not changed afterwards. Signed-off-by:

[PATCH v2 05/12] ARC: Add CPU topology

2017-06-13 Thread Noam Camus
From: Noam Camus Now it is used for NPS SoC for multi-core of 256 cores and SMT of 16 HW threads per core. This way with topology the scheduler is much efficient in creating domains and later using them. Signed-off-by: Noam Camus --- arch/arc/Kconfig| 27 arch/arc/i

[PATCH v2 02/12] ARC: set level of log per CPU during boot to be debug level

2017-06-13 Thread Noam Camus
From: Noam Camus The reasons are: 1) speeding up boot time, becomes critical for many CPUs machine, e.g. NPS400 with 4K CPUs 2) shorten kernel log at boot time, again easy to scan for large scale machines such NPS400 Signed-off-by: Noam Camus --- arch/arc/kernel/setup.c |6 +++--- ar

Re: [PATCH 1/3] PCI: ensure the PCI device is locked over ->reset_notify calls

2017-06-13 Thread Bjorn Helgaas
On Tue, Jun 13, 2017 at 09:08:10AM +0200, Christoph Hellwig wrote: > On Mon, Jun 12, 2017 at 06:14:23PM -0500, Bjorn Helgaas wrote: > > My main concern is being able to verify the locking. I think that is > > much easier if the locking is adjacent to the method invocation. But > > if you just add

[PATCH v2 04/12] ARC: Allow irq threading

2017-06-13 Thread Noam Camus
From: Noam Camus Working with NPS400 we noticed that there is a possibility of L1 interrupt nesting that may run out kernel stack. The scenario include serving invoke_softirqs() from irq_exit() and once local_irq_enable() called can hit another one before we managed to restore last one and pop so

[PATCH v2 11/12] ARC: [plat-eznps] handle dedicated AUX registers

2017-06-13 Thread Noam Camus
From: Liav Rehana Preserve eflags and gpa1 auxiliaries during exception Registers used by compare exchange instructions. GPA1 is used for compare value, and EFLAGS got bit reflects atomic operation response. EFLAGS is zeroed for each new user task so it won't get its parent value. Signed-off-by

[PATCH v2 03/12] ARC: send ipi to all cpus sharing task mm in case of page fault

2017-06-13 Thread Noam Camus
From: Noam Camus This patch is derived due to performance issue. The use case is a page fault that resides on more than the local cpu. Trying to broadcast all CPUs results on performance degradation. So we try to avoid this by sending only to the relevant CPUs. Signed-off-by: Noam Camus Reviewe

[PATCH v2 00/12] plat-eznps upstream cont. set 2

2017-06-13 Thread Noam Camus
From: Noam Camus Chanlog: V1 -> V2 1) I added "Handle memory error as an exception" patch from previous set It now turn do_memory_error() into weak sybol. It is then overriden by NPS400 platform, to simply call die(). 2) This set is now based on arc-next branch Summary: With this patch set

[PATCH v2 01/12] ARC: [plat-eznps] Handle memory error as an exception

2017-06-13 Thread Noam Camus
From: Noam Camus On ARC700, user mode memory error is treated as L2 interrupt, but NPS hardware treats it as Machine Check exception. Address this by defining an NPS specific bus error handler. Signed-off-by: Noam Camus Signed-off-by: Elad Kanfi --- arch/arc/kernel/traps.c |2 +- arc

[PATCH v2 08/12] ARC: [plat-eznps] new command line argument for HW scheduler at MTM

2017-06-13 Thread Noam Camus
From: Noam Camus We add ability for all cores at NPS SoC to control the number of cycles HW thread can execute before it is replace with another eligible HW thread within the same core. The replacement is done by the HE scheduler. Signed-off-by: Noam Camus --- Documentation/admin-guide/kernel-

[PATCH v2 07/12] ARC: [NUMA] added CONFIG_NUMA for plat-eznps

2017-06-13 Thread Noam Camus
From: Noam Camus This is needed for NPS400 where high memory is assigned to node1 where the associated addresses are lower than node0. This use case is not typical and just using discontigmem is not enough since nodes assumed to have increasing address range. i.e. address range of node0 assumed t

<    1   2   3   4   5   6   7   8   9   10   >