Re: [PATCH 1/3] of: base: add support to get machine compatible string

2016-11-23 Thread Sudeep Holla
On 23/11/16 12:13, Sekhar Nori wrote: On Wednesday 23 November 2016 05:37 PM, Sudeep Holla wrote: So, the if(!of_node_get()) is just an expensive NULL pointer check. I think it is better to be explicit about it by not using of_node_get/put() at all. How about: Are we planning to use this in

Re: linux-next: remove the remoteproc tree?

2016-11-23 Thread Stephen Rothwell
Hi Ohad, On Wed, 23 Nov 2016 10:04:18 +0200 Ohad Ben-Cohen wrote: > > On Wed, Nov 23, 2016 at 6:41 AM, Stephen Rothwell > wrote: > > Should I remove it from linux-next? > > Yes, please. Done. -- Cheers, Stephen Rothwell

Re: [PATCH 0/8] lightnvm: simplify media manager V2

2016-11-23 Thread Javier González
> On 23 Nov 2016, at 13.06, Matias Bjørling wrote: > > On 11/21/2016 01:10 PM, Javier González wrote: >> V2: >> - Fix 2 bad memory free on error rrpc init error handling. Reported by >>kbuild. >> >> This patchset simplifies the generic media manager interface and moves >> lun and block func

Re: [PATCH v2 1/2] ARM64: dts: Add support for Meson GXM

2016-11-23 Thread Martin Blumenstingl
On Tue, Nov 22, 2016 at 11:00 AM, Neil Armstrong wrote: > Following the Amlogic Linux kernel, it seem the only differences > between the GXL and GXM SoCs are the CPU Clusters. > > This commit renames the gxl-s905d-p23x DTSI in a common file for > S905D p23x and S912 q20x boards. > > Then adds a me

[PATCH v3 1/2] usb: host: plat: Enable xhci plat runtime PM

2016-11-23 Thread Baolin Wang
Enable the xhci plat runtime PM for parent device to suspend/resume xhci. Also call pm_runtime_get_noresume() in probe() function in case the parent device doesn't call suspend/resume callback by runtime PM now. Signed-off-by: Baolin Wang --- Changes since v2: - Add pm_runtime_get_noresume() in

[PATCH v3 2/2] usb: dwc3: core: Support the dwc3 host suspend/resume

2016-11-23 Thread Baolin Wang
For some mobile devices with strict power management, we also want to suspend the host when the slave is detached for power saving. Thus we add the host suspend/resume functions to support this requirement. Signed-off-by: Baolin Wang --- Changes since v2: - Remove pm_children_suspended() and oth

Re: [PATCH v2] drm: check for NULL parameter in exported drm_get_format_name() function.

2016-11-23 Thread Daniel Vetter
On Wed, Nov 23, 2016 at 11:23:23AM +, Liviu Dudau wrote: > On Wed, Nov 23, 2016 at 01:00:07PM +0200, Jani Nikula wrote: > > On Wed, 23 Nov 2016, Liviu Dudau wrote: > > > drm_get_format_name() de-references the buf parameter without checking > > > if the pointer was not NULL. Given that the fun

Re: [PATCH v3 1/3] bus: da8xx-mstpri: drop the call to of_flat_dt_get_machine_name()

2016-11-23 Thread Sekhar Nori
Hi Bartosz, On Wednesday 23 November 2016 04:36 PM, Bartosz Golaszewski wrote: > In order to avoid a section mismatch use a locally implemented routine > instead of of_flat_dt_get_machine_name() when printing the error > message. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/bus/da8xx-

Re: [PATCH] PCI: Add information about describing PCI in ACPI

2016-11-23 Thread Lorenzo Pieralisi
On Wed, Nov 23, 2016 at 07:28:12AM +, Ard Biesheuvel wrote: > On 23 November 2016 at 01:06, Bjorn Helgaas wrote: > > On Tue, Nov 22, 2016 at 10:09:50AM +, Ard Biesheuvel wrote: > >> On 17 November 2016 at 17:59, Bjorn Helgaas wrote: > > > >> > +PCI host bridges are PNP0A03 or PNP0A08 devi

Re: [PATCH V3 0/9] PM / OPP: Multiple regulator support

2016-11-23 Thread Mark Brown
On Wed, Nov 23, 2016 at 09:16:57AM +0530, Viresh Kumar wrote: > On 22-11-16, 18:41, Mark Brown wrote: > > I'm really not at all clear why this has to be in DT. My understanding > > was that this is basically a helper library for more specific bindings > > which already have to hard code things li

[PATCH] lpfc: fix oops/BUG in lpfc_sli_ringtxcmpl_put()

2016-11-23 Thread Mauricio Faria de Oliveira
The BUG_ON() recently introduced in lpfc_sli_ringtxcmpl_put() is hit in the lpfc_els_abort() > lpfc_sli_issue_abort_iotag() > lpfc_sli_abort_iotag_issue() function path [similar names], due to 'piocb->vport == NULL': BUG_ON(!piocb || !piocb->vport); This happens because lpfc_sli_abort_io

Re: [RFC 2/2] mm, oom: do not enfore OOM killer for __GFP_NOFAIL automatically

2016-11-23 Thread Vlastimil Babka
On 11/23/2016 07:49 AM, Michal Hocko wrote: From: Michal Hocko __alloc_pages_may_oom makes sure to skip the OOM killer depending on the allocation request. This includes lowmem requests, costly high order requests and others. For a long time __GFP_NOFAIL acted as an override for all those rules

[PATCH KERNEL] xen/events: use xen_vcpu_id mapping for EVTCHNOP_status

2016-11-23 Thread Vitaly Kuznetsov
EVTCHNOP_status hypercall returns Xen's idea of vcpu id so we need to compare it against xen_vcpu_id mapping, not the Linux cpu id. Suggested-by: Radim Krcmar Signed-off-by: Vitaly Kuznetsov --- drivers/xen/events/events_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH] [trivial][linux-next] treewide: Fix typos in printk

2016-11-23 Thread Masanari Iida
This patch fix some spelling typos found in printk. Signed-off-by: Masanari Iida --- arch/arm64/kernel/hibernate.c | 4 ++-- drivers/gpu/drm/sti/sti_compositor.c| 2 +- drivers/media/dvb-frontends/horus3a.c | 2 +- drivers/media/platform/mtk-vp

Re: Tearing down DMA transfer setup after DMA client has finished

2016-11-23 Thread Mason
On 23/11/2016 13:13, Måns Rullgård wrote: > Mason wrote: > >> On my platform, setting up a DMA transfer is a two-step process: >> >> 1) configure the "switch box" to connect a device to a memory channel >> 2) configure the transfer details (address, size, command) >> >> When the transfer is done,

Re: [PATCH] lpfc: fix oops/BUG in lpfc_sli_ringtxcmpl_put()

2016-11-23 Thread Mauricio Faria de Oliveira
Due credit; an oversight. On 11/23/2016 10:33 AM, Mauricio Faria de Oliveira wrote: Reported-by: Harsha Thyagaraja Cc: sta...@vger.kernel.org # v4.8 Fixes: 22466da5b4b7 ("lpfc: Fix possible NULL pointer dereference") Signed-off-by: Mauricio Faria de Oliveira -- Mauricio Faria de Oliveira

Re: [PATCH v6 1/2] Input: synaptics-rmi4 - add support for F34 device reflash

2016-11-23 Thread Benjamin Tissoires
On Nov 23 2016 or thereabouts, Nick Dyer wrote: > On Wed, Nov 23, 2016 at 12:20:41PM +0100, Benjamin Tissoires wrote: > > On Nov 20 2016 or thereabouts, Nick Dyer wrote: > > > Add support for updating firmware, triggered by a sysfs attribute. > > > > > > This patch has been tested on Synaptics S73

Re: [PATCH v2] drm: check for NULL parameter in exported drm_get_format_name() function.

2016-11-23 Thread Jani Nikula
On Wed, 23 Nov 2016, Daniel Vetter wrote: > On Wed, Nov 23, 2016 at 11:23:23AM +, Liviu Dudau wrote: >> On Wed, Nov 23, 2016 at 01:00:07PM +0200, Jani Nikula wrote: >> > On Wed, 23 Nov 2016, Liviu Dudau wrote: >> > > drm_get_format_name() de-references the buf parameter without checking >> >

Re: [PATCH 1/4] locking/ww_mutex: Fix a deadlock affecting ww_mutexes

2016-11-23 Thread Daniel Vetter
On Wed, Nov 23, 2016 at 12:25:22PM +0100, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > Fix a race condition involving 4 threads and 2 ww_mutexes as indicated in > the following example. Acquire context stamps are ordered like the thread > numbers, i.e. thread #1 should back off when it encoun

Re: [PATCH] [trivial][linux-next] treewide: Fix typos in printk

2016-11-23 Thread Joe Perches
On Wed, 2016-11-23 at 21:39 +0900, Masanari Iida wrote: > This patch fix some spelling typos found in printk. [] > diff --git a/drivers/media/dvb-frontends/horus3a.c > b/drivers/media/dvb-frontends/horus3a.c [] > @@ -405,6 +405,6 @@ struct dvb_frontend *horus3a_attach(struct dvb_frontend > *fe, >

[PATCH v2 1/2] pinctrl: sx150x: various spelling fixes and some white-space cleanup

2016-11-23 Thread Peter Rosin
Acked-by: Neil Armstrong Signed-off-by: Peter Rosin --- drivers/pinctrl/pinctrl-sx150x.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/pinctrl/pinctrl-sx150x.c b/drivers/pinctrl/pinctrl-sx150x.c index 63778058eec7..ef4ef88e0ee9 100644 --- a/drivers/pin

[PATCH 3/7] arm/efi: Allow invocation of arbitrary runtime services [ver #3]

2016-11-23 Thread David Howells
efi_call_runtime() is provided for x86 to be able abstract mixed mode support. Provide this for ARM also so that common code work in mixed mode also. Suggested-by: Lukas Wunner Signed-off-by: David Howells --- arch/arm/include/asm/efi.h |1 + arch/arm64/include/asm/efi.h |1 + 2 fil

[PATCH 4/7] efi: Add SHIM and image security database GUID definitions [ver #3]

2016-11-23 Thread David Howells
Add the definitions for shim and image security database, both of which are used widely in various Linux distros. Signed-off-by: Josh Boyer Signed-off-by: David Howells Reviewed-by: Ard Biesheuvel --- include/linux/efi.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/

[PATCH 7/7] efi: Add EFI_SECURE_BOOT bit [ver #3]

2016-11-23 Thread David Howells
From: Josh Boyer UEFI machines can be booted in Secure Boot mode. Add a EFI_SECURE_BOOT bit that can be passed to efi_enabled() to find out whether secure boot is enabled. This will be used by the SysRq+x handler, registered by the x86 arch, to find out whether secure boot mode is enabled so th

[PATCH 6/7] efi: Disable secure boot if shim is in insecure mode [ver #3]

2016-11-23 Thread David Howells
From: Josh Boyer A user can manually tell the shim boot loader to disable validation of images it loads. When a user does this, it creates a UEFI variable called MokSBState that does not have the runtime attribute set. Given that the user explicitly disabled validation, we can honor that and no

[PATCH 5/7] efi: Get the secure boot status [ver #3]

2016-11-23 Thread David Howells
Get the firmware's secure-boot status in the kernel boot wrapper and stash it somewhere that the main kernel image can find. The efi_get_secureboot() function is extracted from the arm stub and (a) generalised so that it can be called from x86 and (b) made to use efi_call_runtime() so that it can

Re: [RFC 2/2] mm, oom: do not enfore OOM killer for __GFP_NOFAIL automatically

2016-11-23 Thread Michal Hocko
On Wed 23-11-16 13:19:20, Vlastimil Babka wrote: > On 11/23/2016 07:49 AM, Michal Hocko wrote: > > From: Michal Hocko > > > > __alloc_pages_may_oom makes sure to skip the OOM killer depending on > > the allocation request. This includes lowmem requests, costly high > > order requests and others.

[PATCH 2/7] x86/efi: Allow invocation of arbitrary runtime services [ver #3]

2016-11-23 Thread David Howells
Provide the ability to perform mixed-mode runtime service calls for x86 in the same way that commit 0a637ee61247bd4bed9b2a07568ef7a1cfc76187 ("x86/efi: Allow invocation of arbitrary boot services") provides the ability to invoke arbitrary boot services. Suggested-by: Lukas Wunner Signed-off-by: D

[PATCH 1/7] efi: use typed function pointers for runtime services table [ver #3]

2016-11-23 Thread David Howells
From: Ard Biesheuvel Instead of using void pointers, and casting them to correctly typed function pointers upon use, declare the runtime services pointers as function pointers using their respective prototypes, for which typedefs are already available. Signed-off-by: Ard Biesheuvel Signed-off-b

[PATCH 0/7] efi: Pass secure boot mode to kernel [ver #3]

2016-11-23 Thread David Howells
l.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=efi-secure-boot at tag: efi-secure-boot-20161123-2 Note that the patches are not terminal on the branch. David --- Ard Biesheuvel (1): efi: use typed function pointers for runtime services table David Howells (4): x86/

Re: [PATCH] Lock down drivers that can have io ports, io mem, irqs and dma changed

2016-11-23 Thread David Howells
Dominik Brodowski wrote: > You might also need to disable CIS overrides and CIS firmware loading for > PCMCIA drivers, I presume. That needs two changes: > > - Abort in drivers/pcmcia/ds.c::pcmcia_load_firmware() or disable > the CONFIG_PCMCIA_LOAD_CIS config option permanently. T

Re: [PATCH 1/4] locking/ww_mutex: Fix a deadlock affecting ww_mutexes

2016-11-23 Thread Peter Zijlstra
On Wed, Nov 23, 2016 at 12:25:22PM +0100, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > Fix a race condition involving 4 threads and 2 ww_mutexes as indicated in > the following example. Acquire context stamps are ordered like the thread > numbers, i.e. thread #1 should back off when it encoun

Re: [PATCH] dt-bindings: mfd: Improve readability for TPS65217 interrupt sources

2016-11-23 Thread Milo Kim
On 11/23/2016 08:51 PM, Arnd Bergmann wrote: Ah, the numbers come from the data sheet. Please just remove the header then, there is no need to keep them as an ABI, in particular when the driver doesn't even include that header today. Got it. What matters here is the binding documentation in D

[PATCH] auxdisplay: ht16k33: select CONFIG_FB_SYS_FOPS

2016-11-23 Thread Arnd Bergmann
The new driver caused a rare randconfig failure: drivers/auxdisplay/ht16k33.o:(.data.ht16k33_fb_ops+0xc): undefined reference to `fb_sys_read' drivers/auxdisplay/ht16k33.o:(.data.ht16k33_fb_ops+0x10): undefined reference to `fb_sys_write' This selects the respective helper module, like all othe

Re: [PATCH net-next 1/4] net: mvneta: Convert to be 64 bits compatible

2016-11-23 Thread Gregory CLEMENT
Hi Jisheng, Arnd, Thanks for your feedback. On mer., nov. 23 2016, Arnd Bergmann wrote: > On Wednesday, November 23, 2016 5:53:41 PM CET Jisheng Zhang wrote: >> On Tue, 22 Nov 2016 22:04:12 +0100 Arnd Bergmann wrote: >> >> > On Tuesday, November 22, 2016 5:48:41 PM CET Gregory CLEMENT wrote

Re: [PATCH 1/4] locking/ww_mutex: Fix a deadlock affecting ww_mutexes

2016-11-23 Thread Daniel Vetter
On Wed, Nov 23, 2016 at 02:00:46PM +0100, Peter Zijlstra wrote: > On Wed, Nov 23, 2016 at 12:25:22PM +0100, Nicolai Hähnle wrote: > > From: Nicolai Hähnle > > > > Fix a race condition involving 4 threads and 2 ww_mutexes as indicated in > > the following example. Acquire context stamps are ordere

Re: [PATCH v8 1/8] sched: Extend scheduler's asym packing

2016-11-23 Thread Peter Zijlstra
On Tue, Nov 22, 2016 at 12:23:53PM -0800, Tim Chen wrote: > We generalize the scheduler's asym packing to provide an ordering > of the cpu beyond just the cpu number. This allows the use of the > ASYM_PACKING scheduler machinery to move loads to preferred CPU in a > sched domain. The preference is

Re: [PATCH 1/4] locking/ww_mutex: Fix a deadlock affecting ww_mutexes

2016-11-23 Thread Daniel Vetter
On Wed, Nov 23, 2016 at 02:08:48PM +0100, Daniel Vetter wrote: > On Wed, Nov 23, 2016 at 02:00:46PM +0100, Peter Zijlstra wrote: > > On Wed, Nov 23, 2016 at 12:25:22PM +0100, Nicolai Hähnle wrote: > > > From: Nicolai Hähnle > > > > > > Fix a race condition involving 4 threads and 2 ww_mutexes as

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains

2016-11-23 Thread Rafael J. Wysocki
On Wed, Nov 23, 2016 at 10:29 AM, Jon Hunter wrote: > > On 22/11/16 21:55, Rafael J. Wysocki wrote: >> On Tue, Nov 22, 2016 at 7:26 PM, Kevin Hilman wrote: >>> Jon Hunter writes: >>> On 16/11/16 12:53, Rafael J. Wysocki wrote: > On Wed, Nov 16, 2016 at 11:48 AM, Jon Hunter wrote: >

Re: [PATCH v6 7/8] drivers:input:ads7846(+tsc2046): fix spi module table

2016-11-23 Thread Javier Martinez Canillas
Hello Dmitry, On 11/19/2016 03:18 PM, Dmitry Torokhov wrote: > On Thu, Oct 27, 2016 at 10:44:20AM +0200, H. Nikolaus Schaller wrote: >> Fix module table so that the driver is loaded if compiled >> as module and requested by DT. > > We really need to fix it between spi/i23c core and module utils i

Re: [PATCH v3 0/7] mux controller abstraction and iio/i2c muxes

2016-11-23 Thread Peter Rosin
On 2016-11-22 21:58, Lars-Peter Clausen wrote: > On 11/21/2016 02:17 PM, Peter Rosin wrote: > [...] >> I have a piece of hardware that is using the same 3 GPIO pins >> to control four 8-way muxes. Three of them control ADC lines >> to an ADS1015 chip with an iio driver, and the last one >> controls

Re: [PATCH] gpio: tegra186: Add support for T186 GPIO

2016-11-23 Thread Linus Walleij
On Tue, Nov 22, 2016 at 6:30 PM, Thierry Reding wrote: > So I don't really know how to go about merging both. I'll reply to this > email later with a copy of the patch that I wrote, maybe we can take it > from there. I trust you nVidia people to sort this out. I guess in worst case you can have

[PATCH 1/1] of: of_reserved_mem: Ensure cma reserved region not cross the low/high memory

2016-11-23 Thread Jason Liu
Need ensure the cma reserved region not cross the low/high memory boundary when using the dynamic allocation methond through device-tree, otherwise, kernel will fail to boot up when cma reserved region cross how/high mem. Signed-off-by: Jason Liu Cc: Laura Abbott Cc: Frank Rowand Cc: Rob Herrin

Problem with USB driver using two devices

2016-11-23 Thread Wolfgang Wilhelm
Dear Sir, we are a small company FAST ComTec GmbH (www.fastcomtec.com) and produce multichannel analyzers with Windows software. I am the software developer and would like to get our software working also under Linux with the help of WINE. I was already successfull with our USB devices and mo

Re: [PATCH v2] x86/mce: Include the PPIN in machine check records when it is available

2016-11-23 Thread Henrique de Moraes Holschuh
On Wed, 23 Nov 2016, Borislav Petkov wrote: > + /* if PPIN is disabled, but not locked, try to enable: */ > + if (!(val & 3ul)) { > + wrmsrl_safe(MSR_PPIN_CTL, val | 2ul); > + rdmsrl_safe(MSR_PPIN_CTL, &val); > + } Actual

[PATCH 0/2] add support for AXP209 GPIOs functions

2016-11-23 Thread Quentin Schulz
The AXP209 PMIC has three GPIOs. Two of them can be muxed in other modes (namely adc or regulator)[1] which cannot be used while the pin is in one of GPIO modes. This adds the possibility to use all functions of the GPIOs present in the AXP209 PMIC thanks to the pinctrl subsystem. An upcoming ADC

[PATCH 1/2] gpio: axp209: use correct register for GPIO input status

2016-11-23 Thread Quentin Schulz
The GPIO input status was read from control register (AXP20X_GPIO[210]_CTRL) instead of status register (AXP20X_GPIO20_SS). Signed-off-by: Quentin Schulz --- drivers/gpio/gpio-axp209.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-axp209.c b/driver

[PATCH 2/2] regulator: twl6030: Remove unused fields from struct twlreg_info

2016-11-23 Thread Axel Lin
The table_len, *table, remap and max_mV fields are not used, so remove them. Signed-off-by: Axel Lin --- drivers/regulator/twl6030-regulator.c | 46 +-- 1 file changed, 17 insertions(+), 29 deletions(-) diff --git a/drivers/regulator/twl6030-regulator.c b/driver

[PATCH 1/2] regulator: twl: Remove unused fields from struct twlreg_info

2016-11-23 Thread Axel Lin
The min_mV, max_mV and flags fields are not used, so remove them. Signed-off-by: Axel Lin --- drivers/regulator/twl-regulator.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index d572b8a..6c9ec84 100644 --- a/dri

Re: [PATCH] gpio: Add Tegra186 support

2016-11-23 Thread Linus Walleij
On Tue, Nov 22, 2016 at 6:55 PM, Thierry Reding wrote: > From: Thierry Reding > > Tegra186 has two GPIO controllers that are largely register compatible > between one another but are completely different from the controller > found on earlier generations. > > Signed-off-by: Thierry Reding I wo

[PATCH 2/2] gpio: axp209: add pinctrl support

2016-11-23 Thread Quentin Schulz
The GPIOs present in the AXP209 PMIC have multiple functions. They typically allow a pin to be used as GPIO input or output and can also be used as ADC or regulator for example.[1] This adds the possibility to use all functions of the GPIOs present in the AXP209 PMIC thanks to pinctrl subsystem.

Re: [PATCH 1/2] power: supply: add sbs-charger driver

2016-11-23 Thread Sebastian Reichel
Hi, On Wed, Nov 23, 2016 at 12:20:43PM +0100, Nicolas Saenz Julienne wrote: > This adds support for sbs-charger compilant chips as defined here: > http://sbs-forum.org/specs/sbc110.pdf > > This was tested on a arm board connected to an LTC41000 battery charger > chip. > > Signed-off-by: Nicolas

Re: [PATCH v2 7/8] perf sched timehist: Add -V/--cpu-visual option

2016-11-23 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 23, 2016 at 02:34:40PM +0900, Namhyung Kim escreveu: > On Tue, Nov 22, 2016 at 03:33:26PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Wed, Nov 16, 2016 at 03:06:33PM +0900, Namhyung Kim escreveu: > > > From: David Ahern > > > > > > The -V option provides a visual aid for sched switc

Re: [PATCH v2] x86/mce: Include the PPIN in machine check records when it is available

2016-11-23 Thread Borislav Petkov
On Wed, Nov 23, 2016 at 11:29:51AM -0200, Henrique de Moraes Holschuh wrote: > 1. Assuming we can do it, always lock it when it is found to be unlocked >at kernel boot. Because...? > 2. Not attempt to change its state from disabled to enabled *unless* >given a command line parameter autho

Re: [PATCH v2] drm: check for NULL parameter in exported drm_get_format_name() function.

2016-11-23 Thread Liviu Dudau
On Wed, Nov 23, 2016 at 02:47:53PM +0200, Jani Nikula wrote: > On Wed, 23 Nov 2016, Daniel Vetter wrote: > > On Wed, Nov 23, 2016 at 11:23:23AM +, Liviu Dudau wrote: > >> On Wed, Nov 23, 2016 at 01:00:07PM +0200, Jani Nikula wrote: > >> > On Wed, 23 Nov 2016, Liviu Dudau wrote: > >> > > drm_g

Re: [RFC PATCH v2 1/2] macb: Add 1588 support in Cadence GEM.

2016-11-23 Thread Andrei Pistirica
On 20.11.2016 20:18, Richard Cochran wrote: On Fri, Nov 18, 2016 at 03:21:51PM +0100, Andrei Pistirica wrote: - Frequency adjustment is not directly supported by this IP. This statement still makes no sense. Doesn't the following text... This statement is inherited from original patch, an

Re: [RFC PATCH v2 2/2] macb: Enable 1588 support in SAMA5D2 platform.

2016-11-23 Thread Andrei Pistirica
On 20.11.2016 20:54, Richard Cochran wrote: On Fri, Nov 18, 2016 at 03:21:52PM +0100, Andrei Pistirica wrote: diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index d975882..eb66b76 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethern

Re: [PATCH 5/6] efi: Disable secure boot if shim is in insecure mode [ver #2]

2016-11-23 Thread Mark Rutland
On Wed, Nov 23, 2016 at 12:23:04AM +, David Howells wrote: > + /* See if a user has put shim into insecure mode. If so, and if the > + * variable doesn't have the runtime attribute set, we might as well > + * honor that. > + */ > + size = sizeof(moksbstate); > + stat

Re: [PATCH 2/6] arm/efi: Allow invocation of arbitrary runtime services [ver #2]

2016-11-23 Thread Mark Rutland
On Wed, Nov 23, 2016 at 11:46:38AM +, David Howells wrote: > Mark Rutland wrote: > > On Wed, Nov 23, 2016 at 12:22:43AM +, David Howells wrote: > > > Provide the ability to perform mixed-mode runtime service calls for arm in > > > the same way that commit 0a637ee61247bd4bed9b2a07568ef7a1cf

[PATCH v4 1/2] bus: da8xx-mstpri: drop the call to of_flat_dt_get_machine_name()

2016-11-23 Thread Bartosz Golaszewski
In order to avoid a section mismatch drop the call to of_flat_dt_get_machine_name() when printing the error message. While we're at it: fix a typo. Signed-off-by: Bartosz Golaszewski --- drivers/bus/da8xx-mstpri.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/bu

[PATCH v4 2/2] memory: da8xx-ddrctl: drop the call to of_flat_dt_get_machine_name()

2016-11-23 Thread Bartosz Golaszewski
In order to avoid a section mismatch drop the call to of_flat_dt_get_machine_name() when printing the error message. Signed-off-by: Bartosz Golaszewski --- drivers/memory/da8xx-ddrctl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/memory/da8xx-ddrctl.c b/drivers

[PATCH v4 0/2] da8xx: fix section mismatch in new drivers

2016-11-23 Thread Bartosz Golaszewski
Sekhar noticed there's a section mismatch in the da8xx-mstpri and da8xx-ddrctl drivers. This is caused by calling of_flat_dt_get_machine_name() which has an __init annotation. This series makes the drivers drop the call and not print the machine name in the error message. v1 -> v2: - drop patch [

Re: [RFC PATCH v2 1/2] macb: Add 1588 support in Cadence GEM.

2016-11-23 Thread Andrei Pistirica
On 20.11.2016 20:37, Richard Cochran wrote: On Fri, Nov 18, 2016 at 03:21:51PM +0100, Andrei Pistirica wrote: +#ifdef CONFIG_MACB_USE_HWSTAMP +void macb_ptp_init(struct net_device *ndev); +#else +void macb_ptp_init(struct net_device *ndev) { } static inline ^^^ I can do static inline only

Re: [PATCH net 1/2] r8152: fix the sw rx checksum is unavailable

2016-11-23 Thread Mark Lord
What does this code do: >static void r8153_set_rx_early_size(struct r8152 *tp) >{ >u32 mtu = tp->netdev->mtu; >u32 ocp_data = (agg_buf_sz - mtu - VLAN_ETH_HLEN - VLAN_HLEN) / 4; > >ocp_write_word(tp, MCU_TYPE_USB, USB_RX_EARLY_SIZE, ocp_data); >} How is ocp_data used by th

Re: [PATCH 4/6] efi: Get the secure boot status [ver #2]

2016-11-23 Thread Mark Rutland
On Wed, Nov 23, 2016 at 11:25:57AM +, David Howells wrote: > Mark Rutland wrote: > > > int secure_boot = efi_get_secureboot(sys_table); > > > > if (secure_boot > 0) > > pr_efi(sys_table, "UEFI Secure Boot is enabled.\n"); > > if (secure_boot < 0) > > pr_ef

Re: [PATCH 1/4] locking/ww_mutex: Fix a deadlock affecting ww_mutexes

2016-11-23 Thread Maarten Lankhorst
Op 23-11-16 om 14:11 schreef Daniel Vetter: > On Wed, Nov 23, 2016 at 02:08:48PM +0100, Daniel Vetter wrote: >> On Wed, Nov 23, 2016 at 02:00:46PM +0100, Peter Zijlstra wrote: >>> On Wed, Nov 23, 2016 at 12:25:22PM +0100, Nicolai Hähnle wrote: From: Nicolai Hähnle Fix a race conditi

[PATCH/v2] [trivial][linux-next] treewide: Fix typos in printk

2016-11-23 Thread Masanari Iida
This patch fix some spelling typos found in printk. Signed-off-by: Masanari Iida --- arch/arm64/kernel/hibernate.c | 4 ++-- drivers/gpu/drm/sti/sti_compositor.c| 2 +- drivers/media/dvb-frontends/horus3a.c | 2 +- drivers/media/platform/mtk-vp

Re: [PATCH 1/2] gpio: axp209: use correct register for GPIO input status

2016-11-23 Thread Thomas Petazzoni
Hello, On Wed, 23 Nov 2016 14:27:48 +0100, Quentin Schulz wrote: > The GPIO input status was read from control register > (AXP20X_GPIO[210]_CTRL) instead of status register (AXP20X_GPIO20_SS). > > Signed-off-by: Quentin Schulz This smells like a bug fix, so perhaps Cc: stable? Thomas -- Thoma

Re: [PATCH 2/2] dt-bindings: power: add bindings for sbs-charger

2016-11-23 Thread Sebastian Reichel
Hi, On Wed, Nov 23, 2016 at 12:20:44PM +0100, Nicolas Saenz Julienne wrote: > Adds device tree documentation for SBS charger compilant devices as defined > here: http://sbs-forum.org/specs/sbc110.pdf > > Signed-off-by: Nicolas Saenz Julienne > --- > .../bindings/power/supply/sbs_sbs-charger.txt

Re: [PATCH 2/2] gpio: axp209: add pinctrl support

2016-11-23 Thread Thomas Petazzoni
Hello, By far not a full review, just a few things that I saw while scrolling through the code. On Wed, 23 Nov 2016 14:27:49 +0100, Quentin Schulz wrote: > +static struct axp20x_desc_function * > +axp20x_pinctrl_desc_find_func_by_name(struct axp20x_pctl *pctl, > +

[PATCH v2] [hv] storvsc: Payload buffer incorrectly sized for 32 bit kernels.

2016-11-23 Thread Cathy Avery
On a 32 bit kernel sizeof(void *) is not 64 bits as hv_mpb_array requires. Also the buffer needs to be cleared or the upper bytes will contain junk. Suggested-by: Vitaly Kuznetsov Signed-off-by: Cathy Avery ChangeLog: v1) Initial submission v2) Remove memset and replace kmalloc with kzalloc. -

Re: [patch] sched/autogroup: Fix 64bit kernel nice adjustment

2016-11-23 Thread Michael Kerrisk (man-pages)
Hello Mike, On 11/23/2016 11:33 AM, Mike Galbraith wrote: > On Tue, 2016-11-22 at 16:59 +0100, Michael Kerrisk (man-pages) wrote: > >>┌─┐ >>│FIXME│ >>├──

Re: [PATCH v2 1/2] pinctrl: sx150x: various spelling fixes and some white-space cleanup

2016-11-23 Thread Linus Walleij
On Wed, Nov 23, 2016 at 11:18 AM, Peter Rosin wrote: > Acked-by: Neil Armstrong > Signed-off-by: Peter Rosin Patch applied. Yours, Linus Walleij

Re: RFC: documentation of the autogroup feature

2016-11-23 Thread Michael Kerrisk (man-pages)
Hi Mike, First off, I better say that I'm not at all intimate with the details of the scheduler, so bear with me... On 11/23/2016 12:39 PM, Mike Galbraith wrote: > On Tue, 2016-11-22 at 16:59 +0100, Michael Kerrisk (man-pages) wrote: > >>┌─

[PATCH v2] i2c: i2c-mux-gpio: update mux with gpiod_set_array_value_cansleep

2016-11-23 Thread Peter Rosin
If the gpio controller supports it and the gpio lines are concentrated to one gpio chip, the mux controller pins will get updated simultaneously. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-gpio.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) Sorry about an

RE: [PATCH V6 2/2] PCI/ACPI: hisi: Add ACPI support for HiSilicon SoCs Host Controllers

2016-11-23 Thread Gabriele Paoloni
Hi Graeme > -Original Message- > From: Graeme Gregory [mailto:g...@slimlogic.co.uk] > Sent: 23 November 2016 09:44 > To: Gabriele Paoloni > Cc: Tomasz Nowicki; liudongdong (C); helg...@kernel.org; a...@arndb.de; > raf...@kernel.org; lorenzo.pieral...@arm.com; Wangzhou (B); > pratyush.an...

Re: [PATCH] lpfc: fix oops/BUG in lpfc_sli_ringtxcmpl_put()

2016-11-23 Thread Johannes Thumshirn
On Wed, Nov 23, 2016 at 10:33:19AM -0200, Mauricio Faria de Oliveira wrote: > The BUG_ON() recently introduced in lpfc_sli_ringtxcmpl_put() > is hit in the lpfc_els_abort() > lpfc_sli_issue_abort_iotag() > > lpfc_sli_abort_iotag_issue() function path [similar names], > due to 'piocb->vport == NULL

[PATCH RESEND 2/2] gpio: axp209: add pinctrl support

2016-11-23 Thread Quentin Schulz
The GPIOs present in the AXP209 PMIC have multiple functions. They typically allow a pin to be used as GPIO input or output and can also be used as ADC or regulator for example.[1] This adds the possibility to use all functions of the GPIOs present in the AXP209 PMIC thanks to pinctrl subsystem.

Re: [patch] sched/autogroup: Fix 64bit kernel nice adjustment

2016-11-23 Thread Mike Galbraith
On Wed, 2016-11-23 at 14:47 +0100, Michael Kerrisk (man-pages) wrote: > Hello Mike, > > On 11/23/2016 11:33 AM, Mike Galbraith wrote: > > On Tue, 2016-11-22 at 16:59 +0100, Michael Kerrisk (man-pages) > > wrote: > > > > >┌─┐ > > >

[PATCH RESEND 1/2] gpio: axp209: use correct register for GPIO input status

2016-11-23 Thread Quentin Schulz
The GPIO input status was read from control register (AXP20X_GPIO[210]_CTRL) instead of status register (AXP20X_GPIO20_SS). Signed-off-by: Quentin Schulz --- drivers/gpio/gpio-axp209.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpio-axp209.c b/driver

[PATCH RESEND 0/2] add support for AXP209 GPIOs functions

2016-11-23 Thread Quentin Schulz
The AXP209 PMIC has three GPIOs. Two of them can be muxed in other modes (namely adc or regulator)[1] which cannot be used while the pin is in one of GPIO modes. This adds the possibility to use all functions of the GPIOs present in the AXP209 PMIC thanks to the pinctrl subsystem. An upcoming ADC

Re: [PATCH 4/6] efi: Get the secure boot status [ver #2]

2016-11-23 Thread David Howells
Mark Rutland wrote: > > > if (secure_boot < 0) > > > pr_efi_err(sys_table, > > > "could not determine UEFI Secure Boot status.\n"); > > > > In which case, should this be moved into efi_get_secureboot() and it return > > a > > bool? > > That would make sense to me,

Re: [PATCH V5 3/3] ARM64 LPC: LPC driver implementation on Hip06

2016-11-23 Thread Arnd Bergmann
On Friday, November 18, 2016 5:03:11 PM CET Gabriele Paoloni wrote: > > On Friday, November 18, 2016 4:18:07 PM CET Gabriele Paoloni wrote: > > > From: Arnd Bergmann [mailto:a...@arndb.de] > > > > On Friday, November 18, 2016 12:53:08 PM CET Gabriele Paoloni > > wrote: > > > > For the ISA/LPC space

Re: [PATCH] usb: musb: mark PM functions as __maybe_unused

2016-11-23 Thread Tony Lindgren
* Arnd Bergmann [161122 06:30]: > Building without CONFIG_PM causes a harmless warning: > > drivers/usb/musb/musb_core.c:2041:12: error: ‘musb_run_resume_work’ defined > but not used [-Werror=unused-function] > > Removing the #ifdef around the PM code and instead marking the suspend/resume > fu

Re: [patch] sched/autogroup: Fix 64bit kernel nice adjustment

2016-11-23 Thread Michael Kerrisk (man-pages)
On 11/23/2016 03:12 PM, Mike Galbraith wrote: > On Wed, 2016-11-23 at 14:47 +0100, Michael Kerrisk (man-pages) wrote: >> Hello Mike, >> >> On 11/23/2016 11:33 AM, Mike Galbraith wrote: >>> On Tue, 2016-11-22 at 16:59 +0100, Michael Kerrisk (man-pages) >>> wrote: >>> ┌───

Re: [PATCH] v4l: async: make v4l2 coexists with devicetree nodes in a dt overlay

2016-11-23 Thread Javier Martinez Canillas
Hello Javi, On 11/23/2016 07:09 AM, Javi Merino wrote: > In asd's configured with V4L2_ASYNC_MATCH_OF, if the v4l2 subdev is in > a devicetree overlay, its of_node pointer will be different each time > the overlay is applied. We are not interested in matching the > pointer, what we want to match

Re: [PATCH 1/4] locking/ww_mutex: Fix a deadlock affecting ww_mutexes

2016-11-23 Thread Daniel Vetter
On Wed, Nov 23, 2016 at 03:03:36PM +0100, Peter Zijlstra wrote: > On Wed, Nov 23, 2016 at 12:25:22PM +0100, Nicolai Hähnle wrote: > > @@ -473,7 +476,14 @@ void __sched ww_mutex_unlock(struct ww_mutex *lock) > > */ > > mutex_clear_owner(&lock->base); > > #endif > > - __mutex_fastpath_unl

[PATCH 2/4] ARM: dts: exynos: specify snps,dwmac in compatible string for gmac

2016-11-23 Thread Niklas Cassel
From: Niklas Cassel devicetree binding for stmmac states: - compatible: Should be "snps,dwmac-", "snps,dwmac" For backwards compatibility: "st,spear600-gmac" is also supported. No functional change intended. Signed-off-by: Niklas Cassel --- arch/arm/boot/dts/exynos5440.dtsi | 2 +- 1

[PATCH 3/4] net: stmmac: dwmac-generic: add missing compatible strings

2016-11-23 Thread Niklas Cassel
From: Niklas Cassel devicetree binding for stmmac states: - compatible: Should be "snps,dwmac-", "snps,dwmac" For backwards compatibility: "st,spear600-gmac" is also supported. Since dwmac-generic.c calls stmmac_probe_config_dt explicitly, another alternative would have been to remove al

[PATCH] PNP: drop duplicate header pci.h

2016-11-23 Thread Geliang Tang
Drop duplicate header pci.h from quirks.c. Signed-off-by: Geliang Tang --- drivers/pnp/quirks.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pnp/quirks.c b/drivers/pnp/quirks.c index d28e3ab..4001275 100644 --- a/drivers/pnp/quirks.c +++ b/drivers/pnp/quirks.c @@ -226,8 +226,6 @@

Re: [PATCH 2/2] x86/intel_rdt: Update task closid immediately on CPU in rmdir and unmount

2016-11-23 Thread Thomas Gleixner
On Fri, 18 Nov 2016, Fenghua Yu wrote: > > When removing a sub directory/rdtgroup by rmdir or umount, closid in a > task in the sub directory is set to default rdtgroup's closid which is 0. > If the task is running on a CPU, the PQR_ASSOC MSR is only updated > when the task runs through a context

Re: [PATCH 3/3] ARM: dts: sunxi: enable SDIO Wi-Fi on Orange Pi Zero

2016-11-23 Thread Chen-Yu Tsai
On Wed, Nov 23, 2016 at 3:59 PM, Maxime Ripard wrote: > Hi, > > On Tue, Nov 22, 2016 at 12:24:21AM +0800, Icenowy Zheng wrote: >> There's a Allwinner's XR819 SDIO Wi-Fi module soldered on the board of >> Orange Pi Zero, which used a dedicated regulator to power. >> >> Add the device tree node of t

[PATCH v2 1/5] thermal: rockchip: improve conversion error messages

2016-11-23 Thread Caesar Wang
From: Brian Norris These error messages don't give much information about what went wrong. It would be nice, for one, to see what invalid temperature was being requested when conversion fails. It's also good to return an error when we can't handle a conversion properly. While we're at it, fix th

[PATCH v2 2/5] thermal: rockchip: don't pass table structs by value

2016-11-23 Thread Caesar Wang
From: Brian Norris This driver passes struct chip_tsadc_table by value throughout; this is inefficient, and AFAICT, there is no reason for it. Let's pass pointers instead. Signed-off-by: Brian Norris Reviewed-by: Caesar Wang Signed-off-by: Caesar Wang --- Changes in v2: None Changes in v1: -

[PATCH v2 3/5] thermal: rockchip: fixes invalid temperature case

2016-11-23 Thread Caesar Wang
The temp_to_code function will return 0 when we set the temperature to a invalid value (e.g. 61C, 62C, 63C), that's unpractical. This patch will prevent this case happening. That will return the max analog value to indicate the temperature is invalid or over table temperature range. Signed-off

[PATCH v2 4/5] thermal: rockchip: optimize the conversion table

2016-11-23 Thread Caesar Wang
In order to support the valid temperature can conver to analog value. The rockchip thermal driver has not supported the all valid temperature to convert the analog value. (e.g.: 61C, 62C, 63C) For example: In some cases, we need adjust the trip point. $cd /sys/class/thermal/thermal_zone* $echo

Re: [PATCH] drm/sun4i: Only count TCON endpoints as valid outputs

2016-11-23 Thread Chen-Yu Tsai
On Tue, Nov 22, 2016 at 11:37 PM, Maxime Ripard wrote: > Hi, > > On Fri, Nov 18, 2016 at 10:22:40AM +0800, Chen-Yu Tsai wrote: >> On Fri, Nov 18, 2016 at 3:02 AM, Maxime Ripard >> wrote: >> > On Wed, Nov 16, 2016 at 05:37:31PM +0800, Chen-Yu Tsai wrote: >> >> The sun4i DRM driver counts the numbe

[PATCH v2 5/5] thermal: rockchip: handle set_trips without the trip points

2016-11-23 Thread Caesar Wang
In some cases, some sensors didn't need the trip points, the set_trips will return {-INT_MAX, INT_MAX} to trigger thermal alarm. Signed-off-by: Caesar Wang --- Changes in v2: - Fixes something as Brian comments on https://patchwork.kernel.org/patch/9440989. Changes in v1: None drivers/therm

Re: [PATCH 3/3] ARM: dts: sunxi: enable SDIO Wi-Fi on Orange Pi Zero

2016-11-23 Thread Hans de Goede
Hi, On 23-11-16 15:25, Chen-Yu Tsai wrote: On Wed, Nov 23, 2016 at 3:59 PM, Maxime Ripard wrote: Hi, On Tue, Nov 22, 2016 at 12:24:21AM +0800, Icenowy Zheng wrote: There's a Allwinner's XR819 SDIO Wi-Fi module soldered on the board of Orange Pi Zero, which used a dedicated regulator to power

Re: [RFC 2/2] mm, oom: do not enfore OOM killer for __GFP_NOFAIL automatically

2016-11-23 Thread Tetsuo Handa
Michal Hocko wrote: > From: Michal Hocko > > __alloc_pages_may_oom makes sure to skip the OOM killer depending on > the allocation request. This includes lowmem requests, costly high > order requests and others. For a long time __GFP_NOFAIL acted as an > override for all those rules. This is not

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