[PATCH] usb: gadget: composite: Fix function used to free memory

2016-07-15 Thread Christophe JAILLET
'cdev->os_desc_req' has been allocated with 'usb_ep_alloc_request' so 'usb_ep_free_request' should be used to free it. Signed-off-by: Christophe JAILLET --- drivers/usb/gadget/composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers

[PATCH] drm/cirrus: Delete an unnecessary check before drm_gem_object_unreference_unlocked()

2016-07-15 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Jul 2016 08:28:13 +0200 The drm_gem_object_unreference_unlocked() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Ma

[PATCH 2/2] usb: gadget: composite: Fix function used to free memory

2016-07-15 Thread Christophe JAILLET
'cdev->os_desc_req' has been allocated with 'usb_ep_alloc_request' so 'usb_ep_free_request' should be used to free it. Signed-off-by: Christophe JAILLET --- drivers/usb/gadget/composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers

[PATCH 1/2] usb: gadget: composite: Fix return value in case of error

2016-07-15 Thread Christophe JAILLET
In 'composite_os_desc_req_prepare', if one of the memory allocations fail, 0 will be returned, which means success. We should return -ENOMEM instead. Signed-off-by: Christophe JAILLET --- drivers/usb/gadget/composite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drive

Re: [PATCH net] bnxt_en: Fix potential race condition in bnxt_tx_enable()

2016-07-15 Thread David Miller
From: Florian Fainelli Date: Fri, 15 Jul 2016 16:42:01 -0700 > @@ -4599,7 +4599,9 @@ static void bnxt_tx_enable(struct bnxt *bp) > for (i = 0; i < bp->tx_nr_rings; i++) { > txr = &bp->tx_ring[i]; > txq = netdev_get_tx_queue(bp->dev, i); > + __netif_tx

Re: [Nouveau] [PATCH v3] drm/nouveau/fb/nv50: set DMA mask before mapping scratch page

2016-07-15 Thread Alexandre Courbot
On Sat, Jul 16, 2016 at 4:45 AM, Ard Biesheuvel wrote: > On 15 July 2016 at 07:52, Alexandre Courbot wrote: >> On Fri, Jul 8, 2016 at 1:59 AM, Ard Biesheuvel >> wrote: >>> The 100c08 scratch page is mapped using dma_map_page() before the TTM >>> layer has had a chance to set the DMA mask. This m

[PATCH -v5 2/2] printk: Add kernel parameter to control writes to /dev/kmsg

2016-07-15 Thread Borislav Petkov
From: Borislav Petkov Add a "printk.devkmsg" kernel command line parameter which controls how userspace writes into /dev/kmsg. It has three options: * ratelimit - ratelimit logging from userspace. * on - unlimited logging from userspace * off - logging from userspace gets ignored The default s

[PATCH -v5 1/2] ratelimit: Extend to print suppressed messages on release

2016-07-15 Thread Borislav Petkov
From: Borislav Petkov Extend the ratelimiting facility to print the amount of suppressed lines when it is being released. This use case is aimed at short-termed, burst-like users for which we want to output the suppressed lines stats only once, after it has been disposed of. For an example, see

[PATCH -v5 0/2] printk.devkmsg: Ratelimit it by default

2016-07-15 Thread Borislav Petkov
From: Borislav Petkov Hi guys, here's v5 with Andrew's review comments addressed (I hope all). I've unified the setting names for both sysctl(2) and the kernel cmdline to "on", "off" and "ratelimit" so that there's no confusion anymore as to which sysctl number corresponds to what string. This

Re: [patch] mtd: pmcmsp-flash: Allocating too much in init_msp_flash()

2016-07-15 Thread Brian Norris
On Thu, Jul 14, 2016 at 01:44:56PM +0300, Dan Carpenter wrote: > There is a cut and paste issue here. The bug is that we are allocating > more memory than necessary for msp_maps. We should be allocating enough > space for a map_info struct (144 bytes) but we instead allocate enough > for an mtd_i

[PATCH] drm/tegra: Delete an unnecessary check before the function call "vunmap"

2016-07-15 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Jul 2016 07:23:42 +0200 The vunmap() function performs also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/tegra/fb.c | 2 +-

Re: [PATCH 1/2] iio: humidity: hdc100x: move lock on config updates to single function

2016-07-15 Thread Alison Schofield
On Sun, Jul 10, 2016 at 02:30:01PM -0700, Alison Schofield wrote: > Move the config register locking to the config update function. This > continues to protect updates to heater and integration times. It puts > the lock in one place, right where it needs to occur. Since creating this patch, I've

Re: [PATCH] clk: probe common clock drivers earlier

2016-07-15 Thread Masahiro Yamada
2016-07-16 11:11 GMT+09:00 Michael Turquette : > Quoting Masahiro Yamada (2016-05-05 00:57:17) >> Several SoCs implement platform drivers for clocks rather than >> CLK_OF_DECLARE(). Clocks should come earlier because they are >> prerequisites for many of other drivers. It will help to mitigate >>

Re: [RESEND PATCH 05/14] eeprom: at24: hide the read/write loop behind a macro

2016-07-15 Thread Wolfram Sang
> > >> +#define loop_until_timeout(tout, op_time)\ > > >> + for (tout = jiffies + msecs_to_jiffies(write_timeout), \ > > >> + op_time = jiffies; \ > > >> + time_before(op_time, tout);

Re: [RFC][PATCH 0/7] Add HDMI audio support for HiKey

2016-07-15 Thread John Stultz
On Fri, Jul 15, 2016 at 8:15 PM, Andy Green wrote: > On Fri, 2016-07-15 at 19:13 -0700, John Stultz wrote: >> This patch set is required for HDMI audio support on HiKey. >> >> This patchset hasn't yet seen the light of lkml, so I suspect >> there will be a few revisions, but I wanted to send it ou

Re: [patch] tools/vm/slabinfo: fix an unintentional printf

2016-07-15 Thread Sergey Senozhatsky
On (07/16/16 00:12), Dan Carpenter wrote: > The curly braces are missing here so we print stuff unintentionally. > > Fixes: 9da4714a2d4f ('slub: slabinfo update for cmpxchg handling') Hello, a minor correction: it's9da4714a2d44 not 9da4714a2d4f -ss > Signed-off-by: Dan Carpen

Re: [RFC][PATCH 0/7] Add HDMI audio support for HiKey

2016-07-15 Thread Andy Green
On Fri, 2016-07-15 at 19:13 -0700, John Stultz wrote: > This patch set is required for HDMI audio support on HiKey. > > This patchset hasn't yet seen the light of lkml, so I suspect > there will be a few revisions, but I wanted to send it out for > an initial review. > > The work is mostly that o

RE: Memory and IO space Enabling different in x86 and ARM64

2016-07-15 Thread Bharat Kumar Gogada
> Subject: Re: Memory and IO space Enabling different in x86 and ARM64 > > On Fri, Jul 15, 2016 at 08:29:49AM +, Bharat Kumar Gogada wrote: > > Hi, > > > > I observe that memory and IO space are enabled by BIOS in x86. > > > > In ARM64 we need to call pci_enable_device form End Point to enable

[ANNOUNCE] 3.14.73-rt78

2016-07-15 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.14.73-rt78 stable release. Due to a bug in a backport, I had to make a quick update. Reported-by: Arnd Bergmann You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.14-r

RE: Memory and IO space Enabling different in x86 and ARM64

2016-07-15 Thread Bharat Kumar Gogada
> Subject: Re: Memory and IO space Enabling different in x86 and ARM64 > > On Friday, July 15, 2016 8:29:49 AM CEST Bharat Kumar Gogada wrote: > > I observe that memory and IO space are enabled by BIOS in x86. > > > > In ARM64 we need to call pci_enable_device form End Point to enable > these resou

Re: [PATCH v2 4/4] hwmon: iio: add label for channels read by iio_hwmon

2016-07-15 Thread Guenter Roeck
On 07/15/2016 07:36 AM, Quentin Schulz wrote: On 15/07/2016 16:03, Guenter Roeck wrote: On 07/15/2016 02:59 AM, Quentin Schulz wrote: [...] +static ssize_t iio_hwmon_read_label(struct device *dev, +struct device_attribute *attr, +char *buf) +{ +struc

Re: [PATCH v4.1 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-15 Thread Yakir Yang
Sean, On 07/15/2016 09:13 PM, Sean Paul wrote: On Fri, Jul 15, 2016 at 06:55:17PM +0800, Yakir Yang wrote: The full name of PSR is Panel Self Refresh, panel device could refresh itself with the hardware framebuffer in panel, this would make lots of sense to save the power consumption. This pat

Re: [PATCH 1/1] tracing, bpf: Implement function bpf_probe_write

2016-07-15 Thread Alexei Starovoitov
On Fri, Jul 15, 2016 at 07:16:01PM -0700, Sargun Dhillon wrote: > > > On Thu, 14 Jul 2016, Alexei Starovoitov wrote: > > >On Wed, Jul 13, 2016 at 01:31:57PM -0700, Sargun Dhillon wrote: > >> > >> > >>On Wed, 13 Jul 2016, Alexei Starovoitov wrote: > >> > >>>On Wed, Jul 13, 2016 at 03:36:11AM -070

Re: [PATCH v4.1 1/4] drm/rockchip: vop: export line flag function

2016-07-15 Thread Yakir Yang
Sean, On 07/15/2016 09:04 PM, Sean Paul wrote: On Fri, Jul 15, 2016 at 6:55 AM, Yakir Yang wrote: VOP have integrated a hardware counter which indicate the exact display line that vop is scanning. And if we're interested in a specific line, we can set the line number to vop line_flag register,

[PATCH] staging: iio: light: isl29018/28: remove I2C_CLASS_HWMON .class setting

2016-07-15 Thread Alison Schofield
I2C_CLASS_HWMON is for a hardware monitoring chip wanting auto-detection. IIO drivers don't typically use .class. Remove it. Signed-off-by: Alison Schofield Cc: Daniel Baluta --- drivers/staging/iio/light/isl29018.c | 1 - drivers/staging/iio/light/isl29028.c | 1 - 2 files changed, 2 deletio

Re: [PATCH v7 4/9] acpi/arm64: Add GTDT table parse driver

2016-07-15 Thread Fu Wei
Hi Rafeal, On 16 July 2016 at 05:22, Rafael J. Wysocki wrote: > On Saturday, July 16, 2016 12:32:14 AM Fu Wei wrote: >> Hi Rafael, >> >> On 15 July 2016 at 21:07, Rafael J. Wysocki wrote: >> > On Friday, July 15, 2016 02:15:27 PM Rafael J. Wysocki wrote: >> >> On Friday, July 15, 2016 03:32:35 P

Re: [PATCH 1/1] tracing, bpf: Implement function bpf_probe_write

2016-07-15 Thread Sargun Dhillon
On Thu, 14 Jul 2016, Alexei Starovoitov wrote: On Wed, Jul 13, 2016 at 01:31:57PM -0700, Sargun Dhillon wrote: On Wed, 13 Jul 2016, Alexei Starovoitov wrote: On Wed, Jul 13, 2016 at 03:36:11AM -0700, Sargun Dhillon wrote: Provides BPF programs, attached to kprobes a safe way to write to

[RFC][PATCH 4/7] k3dma: Add cyclic mode for audio

2016-07-15 Thread John Stultz
From: Andy Green Currently the k3dma driver doesn't offer the cyclic mode necessary for handling audio. This patch adds it. Cc: Zhangfei Gao Cc: Jingoo Han Cc: Krzysztof Kozlowski Cc: Maxime Ripard Cc: Vinod Koul Cc: Dan Williams Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc:

[RFC][PATCH 2/7] k3dma: Fix dma err offsets

2016-07-15 Thread John Stultz
From: Andy Green The offsets for ERR1 and ERR2 are wrong actually. That's why you can never clear an error. Cc: Zhangfei Gao Cc: Jingoo Han Cc: Krzysztof Kozlowski Cc: Maxime Ripard Cc: Vinod Koul Cc: Dan Williams Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc

[RFC][PATCH 5/7] Kconfig: Allow k3dma driver to be selected for more then HISI3xx platforms

2016-07-15 Thread John Stultz
This allows the k3dma driver to be selected on HiKey Cc: Zhangfei Gao Cc: Jingoo Han Cc: Krzysztof Kozlowski Cc: Maxime Ripard Cc: Vinod Koul Cc: Dan Williams Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Wei Xu Cc: Rob Herring Cc: Andy Green Cc: Dave Long

[RFC][PATCH 1/7] k3dma: Fix hisi burst clipping

2016-07-15 Thread John Stultz
From: Andy Green Max burst len is a 4-bit field, but at the moment it's clipped with a 5-bit constant... reduce it to that which can be expressed Cc: Zhangfei Gao Cc: Jingoo Han Cc: Krzysztof Kozlowski Cc: Maxime Ripard Cc: Vinod Koul Cc: Dan Williams Cc: Liam Girdwood Cc: Mark Brown Cc:

[RFC][PATCH 6/7] ASoC: hisilicon: Add hi6210 i2s audio driver for hdmi audio

2016-07-15 Thread John Stultz
From: Andy Green Add driver for hi6210 i2s controller found on hi6220 boards. Cc: Zhangfei Gao Cc: Jingoo Han Cc: Krzysztof Kozlowski Cc: Maxime Ripard Cc: Vinod Koul Cc: Dan Williams Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Wei Xu Cc: Rob Herring Cc:

[RFC][PATCH 0/7] Add HDMI audio support for HiKey

2016-07-15 Thread John Stultz
This patch set is required for HDMI audio support on HiKey. This patchset hasn't yet seen the light of lkml, so I suspect there will be a few revisions, but I wanted to send it out for an initial review. The work is mostly that of Andy Green's, but I've taking a swing at forward porting and clean

[RFC][PATCH 3/7] k3dma: Fix "nobody cared" message seen on any error

2016-07-15 Thread John Stultz
From: Andy Green As it was before, as soon as the DMAC IP felt there was an error he would return IRQ_NONE since no actual transfer had completed. After spinning on that for 100K interrupts, Linux yanks the IRQ with a "nobody cared" error. This patch lets it handle the interrupt and keep the IR

[PATCH 7/7] dts: hi6220: Add k3-dma and i2s/hdmi audio support

2016-07-15 Thread John Stultz
Add entry for k3-dma driver and i2s/hdmi audio devices. This enables HDMI audio output. Cc: Zhangfei Gao Cc: Jingoo Han Cc: Krzysztof Kozlowski Cc: Maxime Ripard Cc: Vinod Koul Cc: Dan Williams Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Wei Xu Cc: Rob Her

Re: [PATCH] clk: probe common clock drivers earlier

2016-07-15 Thread Michael Turquette
Quoting Masahiro Yamada (2016-05-05 00:57:17) > Several SoCs implement platform drivers for clocks rather than > CLK_OF_DECLARE(). Clocks should come earlier because they are > prerequisites for many of other drivers. It will help to mitigate > EPROBE_DEFER issues. > > Also, drop the comment sin

[PATCH v4] locking/pvqspinlock: Fix double hash race

2016-07-15 Thread Wanpeng Li
From: Wanpeng Li When the lock holder vCPU is racing with the queue head vCPU: lock holder vCPU queue head vCPU === node->locked = 1; READ_ONCE(node->locked) ... pv_wait_head_or_lock():

Re: [patch] mtd: maps: sa1100-flash: potential NULL dereference

2016-07-15 Thread Brian Norris
Hi, On Sat, Jul 16, 2016 at 09:48:25AM +0900, Greg Kroah-Hartman wrote: > On Fri, Jul 15, 2016 at 05:32:09PM -0700, Brian Norris wrote: > > + stable > > > > Hi Dan, > > > > Patch looks good, but one question. > > > > On Fri, Jul 15, 2016 at 02:06:30PM +0300, Dan Carpenter wrote: > > > We check

Re: [RCF 1/3] hwmon: Add ads1118 driver

2016-07-15 Thread Guenter Roeck
On 07/15/2016 05:18 PM, Joshua Clayton wrote: Add new driver for Texas Instruments ADS1118 and and ADS1018. This driver works with ADS1018, because of code borrowed from asd1015, which is similar, but I can only test ADS1118 Browsing through the datasheet, I think this should probably be imple

Re: [PATCH 1/1] irqdomain: Export __irq_domain_alloc_irqs() and irq_domain_free_irqs()

2016-07-15 Thread Alexander Popov
On 08.07.2016 11:34, Alexander Popov wrote: > On 06.07.2016 14:17, Thomas Gleixner wrote: >> On Fri, 1 Jul 2016, Alexander Popov wrote: >> >>> Export __irq_domain_alloc_irqs() and irq_domain_free_irqs() for being >>> able to work with irq_domain hierarchy in modules. >> >> We usually export only wh

Re: [PATCH 1/2] ipc/sem.c: Fix complex_count vs. simple op race

2016-07-15 Thread Davidlohr Bueso
On Wed, 13 Jul 2016, Manfred Spraul wrote: -static void sem_wait_array(struct sem_array *sma) +static void complexmode_enter(struct sem_array *sma) { int i; struct sem *sem; - if (sma->complex_count) { - /* The thread that increased sma->complex_count waited

Re: [PATCH V9 4/9] vfio: platform: add support for ACPI probe

2016-07-15 Thread Sinan Kaya
On 7/14/2016 5:41 PM, Alex Williamson wrote: > On Wed, 13 Jul 2016 22:06:30 -0400 > Sinan Kaya wrote: > >> The code is using the compatible DT string to associate a reset driver >> with the actual device itself. The compatible string does not exist on >> ACPI based systems. HID is the unique iden

Re: [PATCH v2 2/5] locking/pvqspinlock: Fix missed PV wakeup problem

2016-07-15 Thread Boqun Feng
On Fri, Jul 15, 2016 at 06:35:56PM +0200, Peter Zijlstra wrote: > On Fri, Jul 15, 2016 at 12:07:03PM +0200, Peter Zijlstra wrote: > > > So if we are kicked by the unlock_slowpath, and the lock is stealed by > > > someone else, we need hash its node again and set l->locked to > > > _Q_SLOW_VAL, the

Re: [PATCH v3] locking/pvqspinlock: restore/set vcpu_hashed state after failing adaptive locking spinning

2016-07-15 Thread Wanpeng Li
2016-07-16 0:44 GMT+08:00 Waiman Long : > On 07/15/2016 03:45 AM, Wanpeng Li wrote: >> >> 2016-07-15 15:09 GMT+08:00 Peter Zijlstra: >>> >>> On Fri, Jul 15, 2016 at 05:26:40AM +0800, Wanpeng Li wrote: 2016-07-14 22:52 GMT+08:00 Waiman Long: [...] > > As pv_kick_node() is call

Re: [PATCH V9 6/9] vfio: platform: call _RST method when using ACPI

2016-07-15 Thread Sinan Kaya
On 7/14/2016 6:04 PM, Alex Williamson wrote: >> +static inline >> > +bool vfio_platform_acpi_has_reset(struct vfio_platform_device *vdev) >> > +{ >> > +#ifdef CONFIG_ACPI >> > + struct device *dev = vdev->device; >> > + acpi_handle handle = ACPI_HANDLE(dev); >> > + >> > + return acpi_has_method(

Re: [PATCH V9 7/9] vfio, platform: make reset driver a requirement by default

2016-07-15 Thread Sinan Kaya
On 7/14/2016 6:24 PM, Alex Williamson wrote: >> struct vfio_platform_device { >> > + boolreset_required; >> >struct vfio_platform_region *regions; >> >u32 num_regions; >> >struct vfio_platform_irq*irqs; > Either you ha

Re: [PATCH] dmaengine: qcom_hidma: release the descriptor before the callback

2016-07-15 Thread Sinan Kaya
Hi Vinod, On 7/13/2016 10:57 PM, Sinan Kaya wrote: > There is a race condition between data transfer callback and descriptor > free code. The callback routine may decide to clear the resources even > though the descriptor has not yet been freed. > > Instead of calling the callback first and then

Re: [PATCH v2] cpufreq: powernv: Replacing pstate_id with frequency table index

2016-07-15 Thread Rafael J. Wysocki
On Monday, July 11, 2016 11:47:53 AM Viresh Kumar wrote: > On 30-06-16, 11:53, Akshay Adiga wrote: > > Refactoring code to use frequency table index instead of pstate_id. > > This abstraction will make the code independent of the pstate values. > > > > - No functional changes > > - The highest fre

Re: [UPDATE PATCH v2 1/3] ACPICA: Events: Introduce acpi_mask_gpe() to implement GPE masking mechanism

2016-07-15 Thread Rafael J. Wysocki
On Monday, July 04, 2016 03:59:07 PM Rafael J. Wysocki wrote: > On Thursday, June 23, 2016 03:05:47 PM Lv Zheng wrote: > > (remove acpi_unmask_gpe() from the patch description) > > > > There is a facility in Linux, developers can control the enabling/disabling > > of a GPE via /sys/firmware/acpi/i

Re: [patch] mtd: maps: sa1100-flash: potential NULL dereference

2016-07-15 Thread Greg Kroah-Hartman
On Fri, Jul 15, 2016 at 05:32:09PM -0700, Brian Norris wrote: > + stable > > Hi Dan, > > Patch looks good, but one question. > > On Fri, Jul 15, 2016 at 02:06:30PM +0300, Dan Carpenter wrote: > > We check for NULL but then dereference "info->mtd" on the next line. > > > > Fixes: 72169755cf36 ('

Re: [RFC PATCH 3/3] ACPI / PM: Fix EC polling issue by implementing prepare_late/finish_early suspend_ops callbacks

2016-07-15 Thread Rafael J. Wysocki
On Tuesday, June 28, 2016 04:04:46 PM Lv Zheng wrote: > _PTS/_WAK may contain EC transactions, it is better to have them handled > with IRQ enabled. This patch moves the 2 suspend PM ops from noirq stage > to late/early stage. > > Signed-off-by: Lv Zheng There are systems that won't work with th

Re: [PATCH 2/2] mtd: atmel-quadspi: add driver for Atmel QSPI controller

2016-07-15 Thread Brian Norris
Hi Cyrille, On Wed, Jul 13, 2016 at 06:32:42PM -0700, Brian Norris wrote: > On Mon, Jun 13, 2016 at 05:10:26PM +0200, Cyrille Pitchen wrote: > > This driver add support to the new Atmel QSPI controller embedded into > > sama5d2x SoCs. It expects a NOR memory to be connected to the QSPI > > control

[PATCH 1/6] arm64: dts: qcom: msm8916: Add smsm and smp2p nodes

2016-07-15 Thread Bjorn Andersson
This patch adds the smsm and smp2p nodes for the hexagon and wcnss cores. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 82 +++ 1 file changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts

[PATCH 2/6] arm64: dts: qcom: msm8916: Add mba memory reserve

2016-07-15 Thread Bjorn Andersson
The modem boot authenticator needs space to play in, this is supposed to be relocatable and as such could later be replaced with a dynamically allocated chunk of memory. But let's give it a reserve for now, as we know that works. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/msm891

[PATCH 4/6] arm64: dts: qcom: msm8916: Add tcsr syscon

2016-07-15 Thread Bjorn Andersson
The TCSR memory segment includes various functionality, among other things the halt-registers for the Hexagon. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boo

[PATCH 3/6] arm64: dts: qcom: msm8916: Make scm a reset-controller

2016-07-15 Thread Bjorn Andersson
On msm8916 SCM acts as a controller for the MSS_RESET found in the GCC, update the DT node so that we can address this. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916.

[PATCH 6/6] arm64: dts: qcom: msm8916: Add Hexagon remoteproc node

2016-07-15 Thread Bjorn Andersson
Add the remoteproc node that allows us to control the life cycle of the Hexagon core found in the msm8916 SoC. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 43 ++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/arch/arm

[GIT PULL] Late MTD fix for v4.7

2016-07-15 Thread Brian Norris
Hi Linus, The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Linux 4.7-rc1 (2016-05-29 09:29:24 -0700) are available in the git repository at: git://git.infradead.org/linux-mtd.git tags/for-linus-20160715 for you to fetch changes up to

[PATCH 5/6] arm64: dts: qcom: msm8916: Add Hexagon SMD edge

2016-07-15 Thread Bjorn Andersson
Add the Hexagon SMD edge so that SMD channels provided by the Hexagon is recognized. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi

Re: [PATCH v2 4/5] phy: DT binding documentation for qoriq usb 2.0 phy

2016-07-15 Thread Rob Herring
On Sat, Jul 09, 2016 at 10:00:55AM +0530, Rajesh Bhagat wrote: > Describes the qoriq usb 2.0 phy driver binding, currently used > for LS1021A and LS1012A platform. > > Signed-off-by: Rajesh Bhagat > --- > Changes in v2: > - Adds DT binding documentation for qoriq usb 2.0 phy > - Changed the com

Re: [patch] mtd: maps: sa1100-flash: potential NULL dereference

2016-07-15 Thread Brian Norris
+ stable Hi Dan, Patch looks good, but one question. On Fri, Jul 15, 2016 at 02:06:30PM +0300, Dan Carpenter wrote: > We check for NULL but then dereference "info->mtd" on the next line. > > Fixes: 72169755cf36 ('mtd: maps: sa1100-flash: show parent device in sysfs') What am I supposed to do a

Re: [PATCH v2 2/5] usb: DT binding documentation for qoriq usb 2.0 controller

2016-07-15 Thread Rob Herring
On Sat, Jul 09, 2016 at 10:00:53AM +0530, Rajesh Bhagat wrote: > Describes the qoriq usb 2.0 controller driver binding, currently used > for LS1021A and LS1012A platform. > > Signed-off-by: Rajesh Bhagat > --- > Changes in v2: > - Adds DT binding documentation for qoriq usb 2.0 controller > -

Re: [PATCH v9 2/7] ACPI / processor_idle: Add support for Low Power Idle(LPI) states

2016-07-15 Thread Rafael J. Wysocki
On Friday, July 08, 2016 06:07:53 PM Sudeep Holla wrote: > ACPI 6.0 introduced an optional object _LPI that provides an alternate > method to describe Low Power Idle states. It defines the local power > states for each node in a hierarchical processor topology. The OSPM can > use _LPI object to sel

[PATCH] mm-kasan-switch-slub-to-stackdepot-enable-memory-quarantine-for-slub-fix

2016-07-15 Thread Andrey Ryabinin
- Remove CONFIG_SLAB ifdefs. The code works just fine with both allocators. - Reset metada offsets if metadata doesn't fit. Otherwise kasan_metadata_size() will give us the wrong results. Signed-off-by: Andrey Ryabinin --- mm/kasan/kasan.c | 17 + 1 file changed, 5 insertions(+),

[BUG] Slab corruption during XFS writeback under memory pressure

2016-07-15 Thread Calvin Owens
Hello all, I've found a nasty source of slab corruption. Based on seeing similar symptoms on boxes at Facebook, I suspect it's been around since at least 3.10. It only reproduces under memory pressure so far as I can tell: the issue seems to be that XFS reclaims pages from buffers that are still

[RCF 1/3] hwmon: Add ads1118 driver

2016-07-15 Thread Joshua Clayton
Add new driver for Texas Instruments ADS1118 and and ADS1018. This driver works with ADS1018, because of code borrowed from asd1015, which is similar, but I can only test ADS1118 Signed-off-by: Joshua Clayton --- drivers/hwmon/Kconfig | 11 ++ drivers/hwmon/Makefile | 1 + drivers/hwmon/ad

[RCF 3/3] ARM: imx6q-evi: ads ads1118 support

2016-07-15 Thread Joshua Clayton
add support to imx6q-evi for the 3 ADS1118 temperature/adc units, now that is has has a kernel driver Signed-off-by: Joshua Clayton --- arch/arm/boot/dts/imx6q-evi.dts | 90 + 1 file changed, 90 insertions(+) diff --git a/arch/arm/boot/dts/imx6q-evi.dts

[RCF 2/3] hwmon: Document bindings for ads1118 adc driver

2016-07-15 Thread Joshua Clayton
ads1118 is a 4 input 16 bit adc with a buit-in temperature gauge Signed-off-by: Joshua Clayton --- .../devicetree/bindings/hwmon/ads1118.txt | 81 ++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/ads1118.txt diff --git

[RCF 0/3] hwmon: add driver for TI ADS1118

2016-07-15 Thread Joshua Clayton
This is a new driver for the TI ADS1118 and ADS1018. It works, and is somewhat based on the work that went into ads1015, except for the sysfs code, which I hope is more correct and up to date. The main reason this is an RFC, rather than a submission is that I pulled several new dts properies out o

Re: [PATCH v3 2/2] Bindings documentation for ISSI is31fl319x driver

2016-07-15 Thread Rob Herring
On Fri, Jul 08, 2016 at 09:49:38PM +0200, H. Nikolaus Schaller wrote: > Signed-off-by: H. Nikolaus Schaller > --- > .../devicetree/bindings/leds/is31fl319x.txt| 52 > ++ > 1 file changed, 52 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/is

Re: [PATCH -next] mtd: nand: omap2: fix return value check in omap_nand_probe()

2016-07-15 Thread Brian Norris
On Thu, Jul 14, 2016 at 12:06:45PM +, weiyj...@163.com wrote: > From: Wei Yongjun > > In case of error, the function dma_request_chan() returns ERR_PTR() and > never returns NULL. The NULL test in the return value check should be > replaced with IS_ERR(). > > Fixes: aa7abd312c11 ('mtd: nand:

Re: [PULL v2] mtd: nand: Changes for 4.8

2016-07-15 Thread Brian Norris
Hi Boris, On Wed, Jul 13, 2016 at 09:56:40AM +0200, Boris Brezillon wrote: > Hi Brian, > > Here is the 2nd version of my first PR for 4.8. I removed the duplicate > SoB tag on one of my patch, and the static specifier in "mtd: brcmnand: > Detect sticky ucorr ecc error on dma reads" > > Let me kn

Re: System freezes after OOM

2016-07-15 Thread Mikulas Patocka
On Fri, 15 Jul 2016, David Rientjes wrote: > Kworkers are processing writeback, ext4_writepages() relies on kmem that ext4_writepages is above device mapper, not below, so how it could block device mapper progress? Do you use device mapper on the top of block loop device? Writing to loop is

Re: [tip:x86/headers 6/9] arch/x86/platform/ts5500/ts5500.c:349:16: error: expected declaration specifiers or '...' before string constant

2016-07-15 Thread Paul Gortmaker
[[tip:x86/headers 6/9] arch/x86/platform/ts5500/ts5500.c:349:16: error: expected declaration specifiers or '...' before string constant] On 16/07/2016 (Sat 03:53) kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > x86/headers > head: eb008eb6f8b68

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-15 Thread Greg Kroah-Hartman
On Fri, Jul 15, 2016 at 03:41:10PM -0700, Bin Gao wrote: > On Fri, Jul 15, 2016 at 02:21:48PM +0300, Felipe Balbi wrote: > > Greg Kroah-Hartman writes: > > > On Fri, Jul 15, 2016 at 01:38:12PM +0300, Felipe Balbi wrote: > > >> > > >> Hi, > > >> > > >> Bin Gao writes: > > >> > +static void print

Re: [PATCH 1/2] net: ethernet: xilinx: axienet: use phydev from struct net_device

2016-07-15 Thread David Miller
From: Philippe Reynes Date: Thu, 14 Jul 2016 19:45:57 +0200 > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phy in the private structure, and update the driver to use the > one contained in struct net

Re: [PATCH 1/2] net: ethernet: pasemi_mac: use phydev from struct net_device

2016-07-15 Thread David Miller
From: Philippe Reynes Date: Thu, 14 Jul 2016 23:44:52 +0200 > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phy in the private structure, and update the driver to use the > one contained in struct net

Re: [PATCH 1/2] usb: typec: Add USB Power Delivery sink port support

2016-07-15 Thread Bin Gao
On Fri, Jul 15, 2016 at 10:25:36AM +0300, Felipe Balbi wrote: > Bin Gao writes: > > > This patch implements a simple USB Power Delivery sink port state machine. > > It assumes the hardware only handles PD packet transmitting and receiving > > over the CC line of the USB Type-C connector. The stat

Re: [PATCH 1/2] net: ethernet: smsc9420: use phydev from struct net_device

2016-07-15 Thread David Miller
From: Philippe Reynes Date: Fri, 15 Jul 2016 10:36:20 +0200 > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phy in the private structure, and update the driver to use the > one contained in struct net

Re: [PATCH 2/2] net: ethernet: smsc9420: use phy_ethtool_{get|set}_link_ksettings

2016-07-15 Thread David Miller
From: Philippe Reynes Date: Fri, 15 Jul 2016 10:36:21 +0200 > There are two generics functions phy_ethtool_{get|set}_link_ksettings, > so we can use them instead of defining the same code in the driver. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH 2/2] net: ethernet: pasemi_mac: use phy_ethtool_{get|set}_link_ksettings

2016-07-15 Thread David Miller
From: Philippe Reynes Date: Thu, 14 Jul 2016 23:44:53 +0200 > There are two generics functions phy_ethtool_{get|set}_link_ksettings, > so we can use them instead of defining the same code in the driver. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH v2 1/2] net: ethernet: ethoc: use phydev from struct net_device

2016-07-15 Thread David Miller
From: Philippe Reynes Date: Fri, 15 Jul 2016 09:59:11 +0200 > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phy in the private structure, and update the driver to use the > one contained in struct net

Re: [PATCH v2 2/2] net: ethernet: ethoc: use phy_ethtool_{get|set}_link_ksettings

2016-07-15 Thread David Miller
From: Philippe Reynes Date: Fri, 15 Jul 2016 09:59:12 +0200 > There are two generics functions phy_ethtool_{get|set}_link_ksettings, > so we can use them instead of defining the same code in the driver. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH 2/2] net: ethernet: xilinx: axienet: use phy_ethtool_{get|set}_link_ksettings

2016-07-15 Thread David Miller
From: Philippe Reynes Date: Thu, 14 Jul 2016 19:45:58 +0200 > There are two generics functions phy_ethtool_{get|set}_link_ksettings, > so we can use them instead of defining the same code in the driver. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH 1/2] net: ethernet: ti: cpmac: use phydev from struct net_device

2016-07-15 Thread David Miller
From: Philippe Reynes Date: Fri, 15 Jul 2016 12:39:01 +0200 > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phy in the private structure, and update the driver to use the > one contained in struct net

Re: [PATCH 2/2] net: ethernet: ti: cpmac: use phy_ethtool_{get|set}_link_ksettings

2016-07-15 Thread David Miller
From: Philippe Reynes Date: Fri, 15 Jul 2016 12:39:02 +0200 > There are two generics functions phy_ethtool_{get|set}_link_ksettings, > so we can use them instead of defining the same code in the driver. > > There was a check on CAP_NET_ADMIN in cpmac_set_settings, but this > check is already don

Re: [PATCH 1/2] net: ethernet: tc35815: use phydev from struct net_device

2016-07-15 Thread David Miller
From: Philippe Reynes Date: Thu, 14 Jul 2016 15:20:46 +0200 > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phy in the private structure, and update the driver to use the > one contained in struct net

Re: [PATCH 2/2] net: ethernet: tc35815: use phy_ethtool_{get|set}_link_ksettings

2016-07-15 Thread David Miller
From: Philippe Reynes Date: Thu, 14 Jul 2016 15:20:47 +0200 > There are two generics functions phy_ethtool_{get|set}_link_ksettings, > so we can use them instead of defining the same code in the driver. > > Signed-off-by: Philippe Reynes Applied.

[PATCH net] net: cavium: liquidio: Avoid dma_unmap_single on uninitialized ndata

2016-07-15 Thread Florian Fainelli
The label lio_xmit_failed is used 3 times through liquidio_xmit() but it always makes a call to dma_unmap_single() using potentially uninitialized variables from "ndata" variable. Out of the 3 gotos, 2 run after ndata has been initialized, and had a prior dma_map_single() call. Fix this by adding

[PATCH net] bnxt_en: Fix potential race condition in bnxt_tx_enable()

2016-07-15 Thread Florian Fainelli
txr->dev_state is always manipulated after acquiring the transmit queue lock, except in bnxt_tx_enable(), which seems suspicious here, so also acquire the transmit queue lock before changing the value. Reported-by: coverity (CID 1339583) Fixes: c0c050c58d840 ("bnxt_en: New Broadcom ethernet driver

[PATCH net] net: nb8800: Fix SKB leak in nb8800_receive()

2016-07-15 Thread Florian Fainelli
In case nb8800_receive() fails to allocate a fragment, we would leak the SKB freshly allocated and just return, instead, free it. Reported-by: coverity (CID 1341750) Signed-off-by: Florian Fainelli --- drivers/net/ethernet/aurora/nb8800.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drive

[PATCH net] et131x: Fix logical vs bitwise check in et131x_tx_timeout()

2016-07-15 Thread Florian Fainelli
We should be using a logical check here instead of a bitwise operation to check if the device is closed already in et131x_tx_timeout(). Reported-by: coverity (CID 146498) Fixes: 38df6492eb511 ("et131x: Add PCIe gigabit ethernet driver et131x to drivers/net") Signed-off-by: Florian Fainelli ---

[PATCH] i2c: efm32: fix a failure path in efm32_i2c_probe()

2016-07-15 Thread Alexey Khoroshilov
There is the only failure path in efm32_i2c_probe(), where clk_disable_unprepare() is missed. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/i2c/busses/i2c-efm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH v4 1/4] mfd: cros_ec: Add cros_ec_cmd_xfer_status helper

2016-07-15 Thread Brian Norris
From: Tomeu Vizoso So that callers of cros_ec_cmd_xfer don't have to repeat boilerplate code when checking for errors from the EC side. Signed-off-by: Tomeu Vizoso Reviewed-by: Benson Leung Signed-off-by: Brian Norris Acked-by: Lee Jones Tested-by: Enric Balletbo i Serra --- v4: * return -

[PATCH v4 2/4] mfd: cros_ec: add EC_PWM function definitions

2016-07-15 Thread Brian Norris
The EC_CMD_PWM_{GET,SET}_DUTY commands allow us to control a PWM that is attached to the EC, rather than the main host SoC. The API provides functionality-based (e.g., keyboard light, backlight) or index-based addressing of the PWM(s). Duty cycles are represented by a 16-bit value, where 0 maps to

[PATCH v4 0/4] pwm: add support for ChromeOS EC PWM

2016-07-15 Thread Brian Norris
Hi, This is the 4th (and final?) version of my series to support the new ChromeOS EC PWM API, so we can control, e.g., a PWM backlight when its PWM is attached to the EC. It uses Boris's latest "atomic" hooks for the PWM API (i.e., the ->apply() callback), which were recently merged. Pulled and a

[PATCH v4 3/4] doc: dt: pwm: add binding for ChromeOS EC PWM

2016-07-15 Thread Brian Norris
The ChromeOS Embedded Controller can support controlling its attached PWMs via its host-command interface. The number of supported PWMs varies on a per-board basis, but we can autodetect this by checking the error codes, so we don't need an extra property for this. And because the EC only allows sp

[PATCH v4 4/4] pwm: add ChromeOS EC PWM driver

2016-07-15 Thread Brian Norris
Use the new ChromeOS EC EC_CMD_PWM_{GET,SET}_DUTY commands to control one or more PWMs attached to the Embedded Controller. Because the EC allows us to modify the duty cycle (as a percentage, where U16_MAX is 100%) but not the period, we assign the period a fixed value of EC_PWM_MAX_DUTY and reject

[PULL] lkdtm update (next)

2016-07-15 Thread Kees Cook
Hi, Please pull these lkdtm fixes for next. Thanks! -Kees The following changes since commit 80f76319634fc62befd440b328042dbd54e3b6f8: Merge tag 'stm-for-greg-20160714' of git://git.kernel.org/pub/scm/linux/kernel/git/ash/stm into char-misc-next (2016-07-15 14:19:11 +0900) are available i

[PATCH 2/2] net: ethernet: octeon: use phy_ethtool_{get|set}_link_ksettings

2016-07-15 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. There was a check on CAP_NET_ADMIN in cvm_oct_set_settings, but this check is already done in dev_ethtool, so no need to repeat it before calling the generic f

  1   2   3   4   5   6   7   8   9   >