[PATCH 03/22] mtd: nand: cs553x: return error code of nand_scan() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/cs553x_nand.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/cs553x_nand.c b/drivers/mt

[PATCH 06/22] mtd: nand: tmio: return error code of nand_scan() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENODEV. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/tmio_nand.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/tmio_nand.c b/drivers/mtd/

[PATCH 19/22] mtd: nand: hisi504: return error code of nand_scan_ident() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan_ident() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENODEV. (This driver is already doing so for nand_scan_tail().) Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/hisi504_nand.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletio

[PATCH 00/22] mtd: nand: return error code of nand_scan(_ident,_tail) on error

2016-11-04 Thread Masahiro Yamada
nand_scan(), nand_scan_ident(), nand_scan_tail() return an appropriate negative value on error. Most of drivers return the value from them on error, but some of them return the fixed error code -ENXIO (and a few return -ENODEV). This series make those drivers return more precise error code. Ma

[PATCH 22/22] mtd: nand: socrates: use nand_scan() for nand_scan_ident/tail() combo

2016-11-04 Thread Masahiro Yamada
For this driver, there is nothing between nand_scan_ident() and nand_scan_tail(). They can be merged into nand_scan(). Also, nand_scan() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/socrate

[PATCH 17/22] mtd: nand: vf610: return error code of nand_scan_ident/tail() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan_ident/tail() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/vf610_nfc.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/nand/vf610_nfc.

[PATCH 11/22] mtd: nand: brcmnand: return error code of nand_scan_ident/tail() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan_ident/tail() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/brcmnand/brcmnand.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/br

[PATCH 13/22] mtd: nand: lpc32xx: return error code of nand_scan_ident/tail() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan_ident/tail() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/lpc32xx_mlc.c | 10 -- drivers/mtd/nand/lpc32xx_slc.c | 9 +++-- 2 files changed, 7 insertions(+), 12 del

[PATCH 05/22] mtd: nand: mpc5121: return error code of nand_scan() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/mpc5121_nfc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd

[PATCH 14/22] mtd: nand: mediatek: return error code of nand_scan_ident/tail() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan_ident/tail() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENODEV. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/mtk_nand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/mtk_nand.c b/driv

[PATCH 21/22] mtd: nand: nandsim: remove unneeded checks for nand_scan_ident/tail()

2016-11-04 Thread Masahiro Yamada
The nand_scan_ident/tail() never returns a positive value when it fails. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/nandsim.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c index 1eb9344..c76287a 100644 --- a/drivers/mtd/n

[PATCH 20/22] mtd: nand: pxa3xx: return error code of nand_scan_ident() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan_ident() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENODEV. (This driver is already doing so for nand_scan_tail().) Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/pxa3xx_nand.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deleti

[PATCH 18/22] mtd: nand: cafe: return error code of nand_scan_ident() on error

2016-11-04 Thread Masahiro Yamada
The nand_scan_ident() returns an appropriate error value when it fails. Use it instead of the fixed error code -ENXIO. (This driver is already doing so for nand_scan_tail().) Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/cafe_nand.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions

Re: [PATCH] scripts: get_maintainer.pl, remove \xa0 from the script

2016-11-04 Thread Jiri Slaby
On 11/04/2016, 11:27 AM, Jiri Slaby wrote: > My perl v5.24.0 complains when running the get_maintainer.pl script as > follows: > Unrecognized character \xA0; marked by <-- HERE after <-- HERE near column 1 > at ./scripts/get_maintainer.pl line 277. > > It is weird to have ascii non-breaking space

[PATCH] scripts: get_maintainer.pl, remove \xa0 from the script

2016-11-04 Thread Jiri Slaby
My perl v5.24.0 complains when running the get_maintainer.pl script as follows: Unrecognized character \xA0; marked by <-- HERE after <-- HERE near column 1 at ./scripts/get_maintainer.pl line 277. It is weird to have ascii non-breaking spaces in a script, so do: s/\xa0/ /g Signed-off-by: Jiri S

[PATCH] scripts: get_maintainer.pl, remove \xa0 from the script

2016-11-04 Thread Jiri Slaby
My perl v5.24.0 complains when running the get_maintainer.pl script as follows: Unrecognized character \xA0; marked by <-- HERE after <-- HERE near column 1 at ./scripts/get_maintainer.pl line 277. It is weird to have ascii non-breaking spaces in a script, so do: s/\xa0/ /g Signed-off-by: Jiri S

Re: [PATCH 10/13] ARM: dts: exynos: replace to "max-frequecy" instead of "clock-freq-min-max"

2016-11-04 Thread Jaehoon Chung
On 11/04/2016 03:41 AM, Krzysztof Kozlowski wrote: > On Thu, Nov 03, 2016 at 03:21:32PM +0900, Jaehoon Chung wrote: >> In drivers/mmc/core/host.c, there is "max-frequency" property. >> It should be same behavior. So Use the "max-frequency" instead of >> "clock-freq-min-max". >> >> Signed-off-by: Ja

Re: [PATCH 1/6] staging: iio: set proper supply name to devm_regulator_get()

2016-11-04 Thread Eva Rachel Retuya
Hello Matt, On Mon, Oct 31, 2016 at 09:03:57PM -0700, Matt Ranostay wrote: > On Mon, Oct 31, 2016 at 10:04 AM, Eva Rachel Retuya > wrote: > > The name passed to devm_regulator_get() should match the name of the > > supply as specified in the device datasheet. This makes it clear what > > power s

Re: [PATCH 1/2] ARM: dts: stm32f429: add LSI and LSE clocks

2016-11-04 Thread Gabriel Fernandez
Hi Alexandre, On 11/04/2016 11:15 AM, Alexandre Torgue wrote: Gabriel, On 11/04/2016 09:52 AM, gabriel.fernan...@st.com wrote: From: Gabriel Fernandez This patch adds lsi / lse oscillators. These clocks can be use by RTC clocks. The clock drivers needs to disable the power domain write prot

Re: [PATCH 1/2] ARM: dts: stm32f429: add LSI and LSE clocks

2016-11-04 Thread Alexandre Torgue
Gabriel, On 11/04/2016 09:52 AM, gabriel.fernan...@st.com wrote: From: Gabriel Fernandez This patch adds lsi / lse oscillators. These clocks can be use by RTC clocks. The clock drivers needs to disable the power domain write protection using syscon / regmap to enable these clocks. Is it the

Re: [PATCH] media: s5p-mfc include buffer size in error message

2016-11-04 Thread Sylwester Nawrocki
On 10/18/2016 02:43 AM, Shuah Khan wrote: > Include buffer size in s5p_mfc_alloc_priv_buf() the error message when it > fails to allocate the buffer. Remove the debug message that does the same. > > Signed-off-by: Shuah Khan > --- > drivers/media/platform/s5p-mfc/s5p_mfc_opr.c | 5 ++--- > 1 fil

Re: [PATCH 6/6] ARM: dts: rockchip: add rockchip RK1108 Evaluation board

2016-11-04 Thread Heiko Stuebner
Am Donnerstag, 3. November 2016, 20:43:59 CET schrieb Andy Yan: > RK1108EVB is designed by Rockchip for CVR field. > This patch add basic support for it, which can boot with > initramfs into shell. > > Signed-off-by: Andy Yan looks good, the only thing I can also change myself is moving the boar

Re: [PATCH] vfio: Fix build break when SPAPR_TCE_IOMMU=n

2016-11-04 Thread Paolo Bonzini
On 04/11/2016 06:48, Michael Ellerman wrote: > Currently the kconfig logic for VFIO_IOMMU_SPAPR_TCE and VFIO_SPAPR_EEH > is broken when SPAPR_TCE_IOMMU=n. Leading to: > > warning: (VFIO) selects VFIO_IOMMU_SPAPR_TCE which has unmet direct > dependencies (VFIO && SPAPR_TCE_IOMMU) > warni

[PATCH] usbnet: prevent device rpm suspend in usbnet_probe function

2016-11-04 Thread Kai-Heng Feng
Sometimes cdc_mbim failed to probe if runtime pm is enabled: [9.305626] cdc_mbim: probe of 2-2:1.12 failed with error -22 This can be solved by increase its pm usage counter. Signed-off-by: Kai-Heng Feng --- drivers/net/usb/usbnet.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-

Re: [PATCH v3 0/3] modversions: Fix CRC mangling under CONFIG_RELOCATABLE=y

2016-11-04 Thread Ard Biesheuvel
On 27 October 2016 at 17:27, Ard Biesheuvel wrote: > This series is a followup to the single patch 'modversions: treat symbol > CRCs as 32 bit quantities on 64 bit archs', of which two versions have > been sent out so far [0][1] > > As pointed out by Michael, GNU ld behaves a bit differently betwe

Re: [RFC v2 1/8] sched/tune: add detailed documentation

2016-11-04 Thread Viresh Kumar
On 27-10-16, 18:41, Patrick Bellasi wrote: > +This last requirement is especially important if we consider that schedutil > can > +potentially replace all currently available CPUFreq policies. Since schedutil > +is event based, as opposed to the sampling driven governors, it is already > more > +

Re: [PATCH 2/5] KVM: x86: do not scan IRR twice on APICv vmentry

2016-11-04 Thread Paolo Bonzini
On 03/11/2016 21:16, Radim Krčmář wrote: > > + if (!pi_test_on(&vmx->pi_desc)) > > We don't call vmx_hwapic_irr_update() when returning early. This might be a good start, but it's on purpose: IRR is not changing and the invariant _should_ be that RVI=highest-bit(IRR): - IRR cleared by process

[GIT PULL] overlayfs fixes for 4.9-rc3

2016-11-04 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-linus Fix two more POSIX ACL bugs introduced in 4.8 and add a missing fsync during copy up to prevent possible data loss. Also introduce the concept of feature flags to allow backward incompat

Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-04 Thread Viresh Kumar
On 04-11-16, 10:26, Pavel Machek wrote: > How would I know if it is thermal capping? There's nothing in dmesg. I am not sure what code is responsible for doing that in case of x86, maybe Rafael and Rui can explain it that better. But surely it involves userspace in this case as scaling_max_freq i

Re: [PATCH net-next v2 00/11] net: dsa: mv88e6xxx: refine port operations

2016-11-04 Thread Andrew Lunn
On Fri, Nov 04, 2016 at 03:23:25AM +0100, Vivien Didelot wrote: > The Marvell chips have one internal SMI device per port, containing a > set of registers used to configure a port's link, STP state, default > VLAN or addresses database, etc. Reviewed-by: Andrew Lunn Andrew

[PATCH 1/3] MIPS: smp: Use a completion event to signal CPU up

2016-11-04 Thread Matt Redfearn
If a secondary CPU failed to start, for any reason, the CPU requesting the secondary to start would get stuck in the loop waiting for the secondary to be present in the cpu_callin_map. Rather than that, use a completion event to signal that the secondary CPU has started and is waiting to synchroni

Re: [PATCH net-next v2 07/11] net: dsa: mv88e6xxx: add port link setter

2016-11-04 Thread Andrew Lunn
On Fri, Nov 04, 2016 at 03:23:32AM +0100, Vivien Didelot wrote: > Most of the chips will have a port register control bits to force the > port's link up, down, or let normal link detection occurs. > > Implement such operation to use it later when setting duplex, etc. > > Signed-off-by: Vivien Did

Re: [PATCH 3/3] ovl: redirect on rename-dir

2016-11-04 Thread Amir Goldstein
On Thu, Nov 3, 2016 at 5:50 PM, Miklos Szeredi wrote: > On Fri, Oct 28, 2016 at 6:15 PM, Al Viro wrote: >> On Tue, Oct 25, 2016 at 09:34:47AM +0200, Miklos Szeredi wrote: ... >> >> I'm not sure if vfs_path_lookup() is the right tool here. It might be >> usable for making such a tool, but as it i

[PATCH 2/3] MIPS: smp: Remove cpu_callin_map

2016-11-04 Thread Matt Redfearn
The previous commit made cpu_callin_map redundant, since it is no longer used to signal secondary CPUs starting, or going offline. Remove it now. Signed-off-by: Matt Redfearn --- arch/mips/cavium-octeon/smp.c | 1 - arch/mips/include/asm/smp.h | 2 -- arch/mips/kernel/smp-bmip

[PATCH 3/3] MIPS: smp-cps: Don't BUG if a CPU fails to start

2016-11-04 Thread Matt Redfearn
If there is no online CPU within a core which could receive the IPI to start another VP in that core, a BUG() is triggered. Instead print a warning and gracefully handle the failure such that the system remains usable, albeit without the requested secondary CPU. Signed-off-by: Matt Redfearn ---

[PATCH 0/3] SMP Startup Improvements

2016-11-04 Thread Matt Redfearn
This series improves the startup of SMP processors for MIPS. Firstly, replace the use of a bitmask of CPUs to detect secondard CPUs starting with a completion event. This change means that secondary CPUs can fail to start, and this will be detected and handled rather than hanging the kernel. The s

Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-04 Thread Pavel Machek
Hi! > I am really confused about where the problem is. 4.8 or 4.9 ? :) Well, v4.8 runs at too low frequency without explanation, and v4.9 overheats. Both are a problem :-). But it starts to look like v4.9 is the one where the real problem is. > On 04-11-16, 09:58, Pavel Machek wrote: > > On Fri

Re: [RFC PATCH 1/3] ARM64: meson: Add Amlogic Meson GX PM Suspend

2016-11-04 Thread Neil Armstrong
On 11/03/2016 10:53 PM, Sudeep Holla wrote: > > Short response to this patch: NAK > > To be constructive, since this system lacks PSCI system suspend, it just > can't support. Alternatively, this can be normal cpuidle state and you > can use suspend to idle to achieve the same and you need not ha

Re: [PATCH v3 1/2] remoteproc: Add a sysfs interface for firmware and state

2016-11-04 Thread Matt Redfearn
Hi Wendy, Replies inline On 03/11/16 23:40, Wendy Liang wrote: HI Matt, Thanks for your patch. I am trying it. Please see my questions inline. Thanks, Wendy On Wed, Oct 19, 2016 at 5:05 AM, Matt Redfearn wrote: This patch adds a sysfs interface to rproc allowing the firmware name and pro

Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-04 Thread Viresh Kumar
Hi Pavel, I am really confused about where the problem is. 4.8 or 4.9 ? :) On 04-11-16, 09:58, Pavel Machek wrote: > On Fri 2016-11-04 09:38:49, Pavel Machek wrote: > > Hi! > > > > I'm debugging overheats on v4.9-rc1... which did not seem to happen in > > v4.8-rc1. I'm running basically "nice ma

RE: [PATCH 3/3] clk: qcom: Set BRANCH_HALT_DELAY flags for venus core0/1 clks

2016-11-04 Thread Sricharan
Hi, > >A better design would be to check if the associated GDSC is in hw >control mode and then skip the checks because the clocks are no >longer under the control of the registers. I presume we only >enable the clocks here to turn on parent clocks which don't turn >on/off automatically, i.e. the P

Re: [PATCH] staging: st-cec: add parentheses around complex macros

2016-11-04 Thread Benjamin Gaignard
Thanks, Acked-by: Benjamin Gaignard 2016-11-04 8:58 GMT+01:00 Maninder Singh : > This patch fixes the following checkpatch.pl error: > ERROR: Macros with complex values should be enclosed in parentheses > > Signed-off-by: Maninder Singh > --- > drivers/staging/media/st-cec/stih-cec.c |4 ++

Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-04 Thread Pavel Machek
On Fri 2016-11-04 09:38:49, Pavel Machek wrote: > Hi! > > I'm debugging overheats on v4.9-rc1... which did not seem to happen in > v4.8-rc1. I'm running basically "nice make -j 3" on kernel... cpus are > fully loaded. > > %Cpu(s): 7.5 us, 18.5 sy, 72.6 ni, 0.0 id, 0.0 wa, 0.0 hi, 1.5 > si,

[PATCH 0/2] STM32F4 Enable RTC & QSPI clocks

2016-11-04 Thread gabriel.fernandez
From: Gabriel Fernandez This patch-set enables RTC & QSPI clocks. Gabriel Fernandez (2): ARM: dts: stm32f429: add LSI and LSE clocks ARM: dts: stm32f429: Add QSPI clock arch/arm/boot/dts/stm32f429.dtsi | 18 ++ arch/arm/boot/dts/stm32f469-disco.dts | 4 2 files c

[PATCH 2/2] ARM: dts: stm32f429: Add QSPI clock

2016-11-04 Thread gabriel.fernandez
From: Gabriel Fernandez This patch adds the QSPI clock for stm32f469 discovery board. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32f469-disco.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dt

[PATCH 1/2] ARM: dts: stm32f429: add LSI and LSE clocks

2016-11-04 Thread gabriel.fernandez
From: Gabriel Fernandez This patch adds lsi / lse oscillators. These clocks can be use by RTC clocks. The clock drivers needs to disable the power domain write protection using syscon / regmap to enable these clocks. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32f429.dtsi | 18 ++

RE: [patch v3 1/1] i2c: add master driver for mellanox systems

2016-11-04 Thread Vadim Pasternak
Hi Vladimir, Thank you very much for your reviews. > -Original Message- > From: Vladimir Zapolskiy [mailto:v...@mleia.com] > Sent: Friday, November 04, 2016 12:34 AM > To: Vadim Pasternak ; w...@the-dreams.de > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; j...@resnulli.us;

[PATCH] mtd: nand: change return type of nand_get_flash_type() to int

2016-11-04 Thread Masahiro Yamada
Since commit d1e1f4e42b5d ("mtd: nand: add support for reading ONFI parameters from NAND device"), the returned "type" is never used in nand_scan_ident(). Make nand_get_flash_type() simply return an integer value in order to avoid unnecessary ERR_PTR/PTR_ERR dance. Signed-off-by: Masahiro Yamada

v4.8-rc1: thinkpad x60: running at low frequency even during kernel build

2016-11-04 Thread Pavel Machek
Hi! I'm debugging overheats on v4.9-rc1... which did not seem to happen in v4.8-rc1. I'm running basically "nice make -j 3" on kernel... cpus are fully loaded. %Cpu(s): 7.5 us, 18.5 sy, 72.6 ni, 0.0 id, 0.0 wa, 0.0 hi, 1.5 si, 0.0 st KiB Mem: 3087096 total, 2993076 used,94020 free,

Re: [patch v1 1/1] leds: verify vendor and change license in mlxcpld driver

2016-11-04 Thread Jacek Anaszewski
Hi Vadim, On 11/03/2016 08:17 PM, Vadim Pasternak wrote: Verify that vendor is Mellanox as the first step of initialization. If it is not - return ENODEV. Change module license from "GPL v2" to "Dual BSD/GPL". Signed-off-by: Vadim Pasternak --- drivers/leds/leds-mlxcpld.c | 5 - 1 file ch

Re: arm64 build failure with CONFIG_ARM64_LSE_ATOMICS=y

2016-11-04 Thread Artem Savkov
On Thu, Nov 03, 2016 at 06:46:25PM +, Catalin Marinas wrote: > On Thu, Nov 03, 2016 at 12:12:38PM +0100, Artem Savkov wrote: > > On Thu, Nov 03, 2016 at 10:39:43AM +, Suzuki K Poulose wrote: > > > On 02/11/16 23:28, Will Deacon wrote: > > > > On Wed, Nov 02, 2016 at 05:44:27PM +0100, Artem

Re: [PATCH 2/2] f2fs: don't skip recovering inode depend on i_times

2016-11-04 Thread Chao Yu
On 2016/11/4 2:02, Jaegeuk Kim wrote: > On Fri, Nov 04, 2016 at 12:26:56AM +0800, Chao Yu wrote: >> From: Chao Yu >> >> i_times of inode will be set with current system time which can be >> configured through 'date', so it's not safe to judge dnode block as >> garbage data depend on i_times. > >

Re: [PATCH v3 00/18] Synaptics RMI4 and SMBus implementation

2016-11-04 Thread Benjamin Tissoires
Hi Dmitry, On Thu, Oct 13, 2016 at 5:50 PM, Benjamin Tissoires wrote: > Hi guys, > > This is the third submission of this series, with some addition of RMI4 > patches > currently waiting on the list. > > I integrated Bjorn's patch because in the end, it seems to be the right thing > to do. We ca

Re: [PATCH v2 13/14] ARM: dts: sun6i: hummingbird: Enable internal audio codec

2016-11-04 Thread Chen-Yu Tsai
On Thu, Nov 3, 2016 at 4:45 PM, Maxime Ripard wrote: > On Thu, Nov 03, 2016 at 03:55:55PM +0800, Chen-Yu Tsai wrote: >> The Hummingbird A31 has headset and line in audio jacks and an onboard >> mic routed to the pins for the SoC's internal codec. The line out pins >> are routed to an onboard speak

Re: [PATCH 3/3] [media] au0828-video: Move two assignments in au0828_init_isoc()

2016-11-04 Thread Hans Verkuil
On 03/11/16 20:56, SF Markus Elfring wrote: From: Markus Elfring Date: Mon, 24 Oct 2016 22:44:02 +0200 Move the assignment for the data structure members "isoc_copy" and "num_bufs" behind the source code for memory allocations by this function. I don't see the point, Another explanation try

Re: [PATCH 4/6] ARM: dts: add basic support for Rockchip RK1108 SOC

2016-11-04 Thread Heiko Stuebner
Am Donnerstag, 3. November 2016, 20:40:48 CET schrieb Andy Yan: > RK1108 is embedded with an ARM Cortex-A7 single core and a DSP core. > It is designed for varies application scenario such as car DVR, sports > DV, secure camera and UAV camera. > > This patch add basic support for it with DMAC / UA

Re: [PATCH 10/34] [media] DaVinci-VPBE: Check return value of a setup_if_config() call in vpbe_set_output()

2016-11-04 Thread Hans Verkuil
On 03/11/16 21:54, SF Markus Elfring wrote: From: Markus Elfring Date: Wed, 12 Oct 2016 09:56:56 +0200 * A function was called over the pointer "setup_if_config" in the data structure "venc_platform_data". But the return value was not used so far. Thus assign it to the local variable "ret"

Re: [PATCH 17/34] [media] DaVinci-VPFE-Capture: Improve another size determination in vpfe_enum_input()

2016-11-04 Thread Hans Verkuil
On 03/11/16 22:05, SF Markus Elfring wrote: @@ -1091,7 +1091,7 @@ static int vpfe_enum_input(struct file *file, void *priv, return -EINVAL; } sdinfo = &vpfe_dev->cfg->sub_devs[subdev]; -memcpy(inp, &sdinfo->inputs[index], sizeof(struct v4l2_input)); +memcpy(inp, &sdinfo

Re: [PATCH v3] console: use first console if stdout-path device doesn't appear

2016-11-04 Thread Andreas Schwab
On Nov 03 2016, Paul Burton wrote: > If a device tree specified a preferred device for kernel console output > via the stdout-path or linux,stdout-path chosen node properties there's > no guarantee that it will have specified a device for which we have a > driver. It may also be the case that we

Re: [PATCH RESEND] media: omap3isp: Use dma_request_chan() to requesting DMA channel

2016-11-04 Thread Peter Ujfalusi
Hi Laurent, On 11/03/2016 05:12 PM, Laurent Pinchart wrote: >> It is a bit misleading that it used dma_request_slave_channel_compat() >> for getting the channel. >> >> I think what would be correct is: >> dma_cap_mask_t mask; >> >> dma_cap_zero(mask); >> dma_cap_set(DMA_SLAVE, mask); >> hist->dma_

Re: [PATCH 5/6] ARM: add low level debug uart for rk1108

2016-11-04 Thread Heiko Stuebner
Am Freitag, 4. November 2016, 15:58:35 CET schrieb Andy Yan: > Hi Heiko: > > On 2016年11月04日 15:36, Heiko Stuebner wrote: > > Am Donnerstag, 3. November 2016, 20:42:21 CET schrieb Andy Yan: > >> RK1108 UARTs are Synopsis DesignWare 8250 compatible. > >> Only with different register addresses. > >>

Re: [PATCH 4/6] ARM: dts: add basic support for Rockchip RK1108 SOC

2016-11-04 Thread Heiko Stuebner
Am Donnerstag, 3. November 2016, 20:40:48 CET schrieb Andy Yan: > RK1108 is embedded with an ARM Cortex-A7 single core and a DSP core. > It is designed for varies application scenario such as car DVR, sports > DV, secure camera and UAV camera. > > This patch add basic support for it with DMAC / UA

[PATCH] staging: st-cec: add parentheses around complex macros

2016-11-04 Thread Maninder Singh
This patch fixes the following checkpatch.pl error: ERROR: Macros with complex values should be enclosed in parentheses Signed-off-by: Maninder Singh --- drivers/staging/media/st-cec/stih-cec.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/st-ce

Re: [PATCH 5/6] ARM: add low level debug uart for rk1108

2016-11-04 Thread Andy Yan
Hi Heiko: On 2016年11月04日 15:36, Heiko Stuebner wrote: Am Donnerstag, 3. November 2016, 20:42:21 CET schrieb Andy Yan: RK1108 UARTs are Synopsis DesignWare 8250 compatible. Only with different register addresses. Signed-off-by: Andy Yan --- arch/arm/Kconfig.debug | 30 +

[PATCH v2] media: omap3isp: Use dma_request_chan_by_mask() to request the DMA channel

2016-11-04 Thread Peter Ujfalusi
When requesting the DMA channel it was mandatory that we do not have DMA resource nor valid DMA channel via DT. In this case the dma_request_slave_channel_compat() would fall back and request any channel with SW trigger. The same can be achieved with the dma_request_chan_by_mask() without the misl

[PATCH] leds: Add mutex protection in brightness_show()

2016-11-04 Thread Jacek Anaszewski
Initially the claim about no need for lock in brightness_show() was valid as the function was just returning unchanged LED brightness. After the addition of led_update_brightness() this is no longer true, as the function can change the brightness if a LED class driver implements brightness_get op.

Re: [PATCH] clk: sunxi: Fix M factor computation for APB1

2016-11-04 Thread Maxime Ripard
On Fri, Nov 04, 2016 at 12:53:56AM +0100, Stéphan Rafin wrote: > commit cfa636886033 ("clk: sunxi: factors: Consolidate get_factors > parameters into a struct") introduced a regression for m factor > computation in sun4i_get_apb1_factors function. > > The old code reassigned the "parent_rate" para

Re: [PATCH] drm/sun4i: Propagate error to the caller

2016-11-04 Thread Maxime Ripard
On Fri, Nov 04, 2016 at 07:13:52AM +0100, Christophe JAILLET wrote: > If 'sun4i_layers_init()' returns an error, propagate it instead of > returning -EINVAL unconditionally. > > Signed-off-by: Christophe JAILLET Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel

Re: [PATCHv6] support for AD5820 camera auto-focus coil

2016-11-04 Thread Pavel Machek
Hi! > > > I have to admit I mostly use an N9. > > > > Well, if you compare that to development on PC, I prefer PC. > > > > Even arm development boards are usually easier, as they don't need too > > complex userspace, and do have working serial ports. > > > > But I do have a serial adapter for N

[PATCH v15 2/4] reset: mediatek: Add MT2701 reset driver

2016-11-04 Thread Erin Lo
From: Shunli Wang In infrasys and perifsys, there are many reset control bits for kinds of modules. These bits are used as actual reset controllers to be registered into kernel's generic reset controller framework. Signed-off-by: Shunli Wang Signed-off-by: James Liao Signed-off-by: Erin Lo Te

[PATCH v15 3/4] arm: dts: mt2701: Add clock controller device nodes

2016-11-04 Thread Erin Lo
From: James Liao Add clock controller nodes for MT2701, include topckgen, infracfg, pericfg and apmixedsys. This patch also add two oscillators that provide clocks for MT2701. Signed-off-by: James Liao Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 42 +

[PATCH v15 4/4] arm: dts: mt2701: Use real clock for UARTs

2016-11-04 Thread Erin Lo
We used to use a fixed rate clock for the UARTs. Now that we have clock support we can associate the correct clocks to the UARTs and drop the 26MHz fixed rate UART clock. Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 18 -- 1 file changed, 8 insertions(+), 10 deletio

[PATCH v15 1/4] clk: mediatek: Add MT2701 clock support

2016-11-04 Thread Erin Lo
From: Shunli Wang Add MT2701 clock support, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Shunli Wang Signed-off-by: James Liao Signed-off-by: Erin Lo Tested-by: John Crispin --- drivers/clk/mediatek/Kconfig | 43 ++ drivers/clk/mediatek/Ma

[PATCH v15 0/4] Add clock support for Mediatek MT2701

2016-11-04 Thread Erin Lo
This series is based on v4.9-rc1, add clock and reset controller support for Mediatek MT2701. changes since v14: - Correct commit messages of dts. - Refine style of init/probe functions. - Get reg addresses from platform_get_resouce() and devm_ioremap_resource(). - Minor coding style changes. cha

Re: [PATCH 5/6] ARM: add low level debug uart for rk1108

2016-11-04 Thread Heiko Stuebner
Am Donnerstag, 3. November 2016, 20:42:21 CET schrieb Andy Yan: > RK1108 UARTs are Synopsis DesignWare 8250 compatible. > Only with different register addresses. > > Signed-off-by: Andy Yan > --- > > arch/arm/Kconfig.debug | 30 ++ > 1 file changed, 30 insertions(+)

Re: [PATCH 3/6] clk: rockchip: add clock controller for rk1108

2016-11-04 Thread Heiko Stuebner
Hi Andy, Am Donnerstag, 3. November 2016, 20:38:33 CET schrieb Andy Yan: > From: Shawn Lin > > Add the clock tree definition and driver for rk1108 SoC. > > Signed-off-by: Shawn Lin > Signed-off-by: Andy Yan > --- > > drivers/clk/rockchip/Makefile | 1 + > drivers/clk/rockchip/clk

Re: [PATCH RFC 0/2] Generalize tpm2_get_tpm_pt to tpm2_get_cap

2016-11-04 Thread Jarkko Sakkinen
Nayna, I've already sent these earlier this month as we had this discussion. Please look up your emails. I can apply these if they look good for you. Please review them. /Jarkko On Sun, Oct 09, 2016 at 01:14:14PM +0300, Jarkko Sakkinen wrote: > We need to generalize tpm2_get_tpm_pt to tpm2_get_

Re: [PATCH] z3fold: make pages_nr atomic

2016-11-04 Thread Vitaly Wool
On Thu, Nov 3, 2016 at 11:17 PM, Andrew Morton wrote: > On Thu, 3 Nov 2016 22:24:07 +0100 Vitaly Wool wrote: > >> On Thu, Nov 3, 2016 at 10:14 PM, Andrew Morton >> wrote: >> > On Thu, 3 Nov 2016 22:00:58 +0100 Vitaly Wool wrote: >> > >> >> This patch converts pages_nr per-pool counter to atomic

Re: [tpmdd-devel] [PATCH 3/3] tpm: Get rid of TPM_CHIP_FLAG_REGISTERED

2016-11-04 Thread Jarkko Sakkinen
On Wed, Nov 02, 2016 at 04:33:03AM -0600, Jarkko Sakkinen wrote: > On Wed, Oct 26, 2016 at 04:28:46PM -0600, Jason Gunthorpe wrote: > > This is no longer necessary, all calls to tpm_chip_unregister happen > > in remove() callbacks. > > > > Signed-off-by: Jason Gunthorpe > > Reviewed-by: Jarkko S

Re: [tpmdd-devel] [PATCH 1/3] tpm tis: Do not print timeout messages twice

2016-11-04 Thread Jarkko Sakkinen
On Wed, Nov 02, 2016 at 04:26:17AM -0600, Jarkko Sakkinen wrote: > On Wed, Oct 26, 2016 at 04:28:44PM -0600, Jason Gunthorpe wrote: > > The tis driver does a tpm_get_timeouts out side of tpm_chip_register, > > and tpm_get_timeouts can print a message, resulting in two prints, eg: > > > > tpm tpm0

[patch v4 1/1] i2c: add master driver for mellanox systems

2016-11-04 Thread vadimp
From: Vadim Pasternak Device driver for Mellanox I2C controller logic, implemented in Lattice CPLD device. Device supports: - Master mode - One physical bus - Polling mode The Kconfig currently controlling compilation of this code is: drivers/i2c/busses/Kconfig:config I2C_MLXCPLD Signed-off-

Re: [PATCH v6 5/7] net: ethernet: bgmac: device tree phy enablement

2016-11-04 Thread Rafał Miłecki
On 2016-11-04 06:11, Jon Mason wrote: Change the bgmac driver to allow for phy's defined by the device tree Signed-off-by: Jon Mason [Resending from Roundcube due to "Wrong MIME labeling on 8-bit character texts." vger.kernel.org reject when using Thunderbird] Checked for possible regressi

Re: [PATCH v6 6/7] net: ethernet: bgmac: add NS2 support

2016-11-04 Thread Rafał Miłecki
On 2016-11-04 06:11, Jon Mason wrote: Add support for the variant of amac hardware present in the Broadcom Northstar2 based SoCs. Northstar2 requires an additional register to be configured with the port speed/duplexity (NICPM). This can be added to the link callback to hide it from the insta

Re: [PATCH v2 2/2] power: bq27xxx_battery: add poll interval property query

2016-11-04 Thread Pavel Machek
On Thu 2016-11-03 22:00:56, Matt Ranostay wrote: > On Wed, Nov 2, 2016 at 1:22 AM, Pavel Machek wrote: > > Hi! > > > >> >> >> Better then previous one. > >> >> >> > >> >> >> But my version of bq27xxx_battery.c already contains this: > >> >> > > >> >> > This is for allowing udev rule to set the pro

[PATCH v3] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest

2016-11-04 Thread He Chen
The spec can be found in Intel Software Developer Manual or in Instruction Set Extensions Programming Reference. Signed-off-by: Luwei Kang Signed-off-by: He Chen --- Changes in v3: * add a helper in scattered.c to get scattered leaf. Changes in v2: * add new macros for new AVX512 scattered feat

[PATCH V2] btrfs: Remove some dead code

2016-11-04 Thread Christophe JAILLET
'btrfs_iget()' can not return NULL, so this test can be removed. Signed-off-by: Christophe JAILLET --- V1 --> v2: fix the patch description --- fs/btrfs/free-space-cache.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index e4b48f3

<    1   2   3   4   5