Re: [GIT PULL] optimize 64-by-32 ddivision for constant divisors on 32-bit machines

2015-11-23 Thread Arnd Bergmann
On Sunday 22 November 2015 17:28:33 Nicolas Pitre wrote: > On Sun, 22 Nov 2015, Arnd Bergmann wrote: > > On Monday 16 November 2015 20:20:38 you wrote: > > I'm now getting a build regressing with the attached randconfig > > configuration, > > when compiling drivers/net/wireless/iwlegacy/common.o:

[PATCH v2] sp5100_tco: Add AMD Mullins platform support

2015-11-23 Thread Denis Turischev
AMD Mullins watchdog is fully compatible to the previous Hudson chipset, reuse the existent sp5100_tco driver. v2: rebased to v4.4-rc2 Signed-off-by: Denis Turischev diff -Nru linux-4.4-rc2.orig/drivers/watchdog/sp5100_tco.c linux-4.4-rc2/drivers/watchdog/sp5100_tco.c --- linux-4.4-rc2.orig/dr

Build regressions/improvements in v4.4-rc2

2015-11-23 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.4-rc2[1] compared to v4.3[2]. Summarized: - build errors: +13/-11 - build warnings: +97/-101 JFYI, when comparing v4.4-rc2[1] to v4.4-rc1[3], the summaries are: - build errors: +11/-10 - build warnings: +39/-54 Note

Re: lapic_suspend/lapic_resume wrong?

2015-11-23 Thread Ingo Molnar
* Juergen Gross wrote: > Hi, > > while trying to find the reason for a hanging kernel during resume > handling I found a strange inconsistency in arch/x86/kernel/apic/apic.c > regarding usage of config options. > > Attached patch addresses this, no test done as I'm not sure whether > this is a

[PATCH v2 2/5] clk: sunxi: Add driver for the H3 THS clock

2015-11-23 Thread Josef Gajdusek
This patch adds a driver for the THS clock which is present on the Allwinner H3. Signed-off-by: Josef Gajdusek --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/Makefile| 1 + drivers/clk/sunxi/clk-h3-ths.c| 98 ++

[PATCH v2 0/5] sunxi: THS support

2015-11-23 Thread Josef Gajdusek
Hello everyone, this is v2 of my THS patchset Changelog: * Some stylistic changes * devm_reset_control_get_optional -> devm_reset_control_get * Added the clk-h3-ths clock driver - Note: A23/A33/A83T do not have a separate clock, H3 seems to be the first (and only?) SoC with it

[PATCH v2 3/5] thermal: Add a driver for the Allwinner THS sensor

2015-11-23 Thread Josef Gajdusek
This patch adds support for the Sunxi thermal sensor on the Allwinner H3. Should be easily extendable for the A33/A83T/... as they have similar but not completely identical sensors. Signed-off-by: Josef Gajdusek --- drivers/thermal/Kconfig | 7 + drivers/thermal/Makefile| 1 + driver

[PATCH v2 1/5] ARM: dts: sun8i: Add SID node

2015-11-23 Thread Josef Gajdusek
Add a node describing the Security ID memory to the Allwinner H3 .dtsi file. Signed-off-by: Josef Gajdusek --- arch/arm/boot/dts/sun8i-h3.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index 0faa38a..58de718 10064

[PATCH v2 5/5] ARM: dts: sun8i: Add THS node to the H3 .dtsi

2015-11-23 Thread Josef Gajdusek
This patch adds nodes for the THS driver and the THS clock to the Allwinner H3 .dtsi file. Signed-off-by: Josef Gajdusek --- arch/arm/boot/dts/sun8i-h3.dtsi | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/

[PATCH v2 4/5] dt-bindings: document sun8i_ths

2015-11-23 Thread Josef Gajdusek
This patch adds the binding documentation for the sun8i_ths driver Signed-off-by: Josef Gajdusek --- .../devicetree/bindings/thermal/sun8i-ths.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/sun8i-ths.txt diff

Re: Build regressions/improvements in v4.4-rc2

2015-11-23 Thread Geert Uytterhoeven
On Mon, Nov 23, 2015 at 9:01 AM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.4-rc2[1] to v4.4-rc1[3], the summaries are: > - build errors: +11/-10 + error: debugfs.c: undefined reference to `clk_round_rate': => .text+0x38b054), .text+0x38af08), .text+0x364fb0) + error: debugfs.c: u

Re: imx6dl clock setup incorrectness

2015-11-23 Thread Nikita Yushchenko
Hi >> While working with board with imx6s cpu, with kernel based on linux-imx >> imx_3.14.28_1.0.0_ga branch, I noticed this message in boot log: >> >>> failed to set parent of clk gpu2d_core_sel to pll2_pfd1_594m >> >> >> I looked into it and found that: >> >> - CCM_CBCMR register layout is diffe

Re: [PATCH v4 10/13] of: add vendor prefix for boe

2015-11-23 Thread Thierry Reding
On Fri, Nov 20, 2015 at 04:15:36PM +0800, Chris Zhong wrote: > Signed-off-by: Chris Zhong > Acked-by: Rob Herring > --- > > Changes in v4: None > Changes in v3: None > Changes in v2: None > > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+) Applied

Re: [PATCH v4 11/13] drm/panel: simple: Add support for BOE TV080WUM-NL0

2015-11-23 Thread Thierry Reding
On Fri, Nov 20, 2015 at 04:15:37PM +0800, Chris Zhong wrote: > This adds support for the BOE TV080WUM-NL0 1200x1920 mipi panel to the > DRM simple panel driver. > > Signed-off-by: Chris Zhong > > --- > > Changes in v4: > Alphabetically arranged the name > > Changes in v3: None > Changes in v2:

Re: [PATCH 1/2] clk: rockchip: dmc: support rk3399 dmc clock driver

2015-11-23 Thread MyungJoo Ham
> +static unsigned long rk3399_dmcclk_recalc_rate(struct clk_hw *hw, > +unsigned long parent_rate) > +{ > + struct rk3399_dmcclk *dmc = to_rk3399_dmcclk(&hw); > + u32 val; > + > + /* > + * Get parent rate since it changed in this clks set

Re: [PATCH v4 12/13] drm/panel: simple: Add boe,tv080wum-nl0 simple panel device tree binding

2015-11-23 Thread Thierry Reding
On Fri, Nov 20, 2015 at 04:15:38PM +0800, Chris Zhong wrote: > This binding specifies a set of common properties for display panels. It > can be used as a basis by bindings for specific panels. > Bindings for three specific panels are provided to show how the > simple panel binding can be used. >

Re: [PATCH] ASoC: pxa: remove incorrect do_div() call

2015-11-23 Thread zhangfei
On 11/20/2015 05:32 PM, Arnd Bergmann wrote: The new optimized do_div implementation (now in asm-generic/next) exposes a glitch in the brownstone audio driver by producing a compile-time warning: sound/soc/pxa/brownstone.c: In function 'brownstone_wm8994_hw_params': sound/soc/pxa/brownstone.c:

Re: [PATCH 2/2] arm64: dts: berlin4ct: enable all i2c nodes for the STB board

2015-11-23 Thread Sebastian Hesselbarth
On 23.11.2015 03:49, Jisheng Zhang wrote: On Fri, 20 Nov 2015 22:19:32 +0100 Sebastian Hesselbarth wrote: On 20.11.2015 10:47, Jisheng Zhang wrote: Enable all i2c nodes for the Marvell berlin BG4CT STB board. Signed-off-by: Jisheng Zhang --- arch/arm64/boot/dts/marvell/berlin4ct-stb.dts | 5

Re: [PATCH v2] zram: Prevent page allocation failure during zcomp_strm_alloc

2015-11-23 Thread Sergey Senozhatsky
On (11/23/15 16:43), Sergey Senozhatsky wrote: [..] > agree. we also would want to switch from vzalloc() to > __vmalloc_node_flags(size, NUMA_NO_NODE, > GFP_NOIO | __GFP_HIGHMEM | __GFP_ZERO) [..] > > So, Kyeongdon's patch will remove warning overhead and likely to > >

Re: [PATCH 1/2] arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug

2015-11-23 Thread Ingo Molnar
* Dan Williams wrote: > Let all the archs that implement CONFIG_STRICT_DEVM use a common > definition in lib/Kconfig.debug. For the x86 bit: Acked-by: Ingo Molnar > Note, the 'depends on !SPARC' is due to sparc not implementing > devmem_is_allowed(). Maybe that should be converted into a he

Re: [PATCH v2 0/6] sched/fair: Clean up sched metric definitions

2015-11-23 Thread Yuyang Du
Hi Peter and Ingo, A reminder of this patch searies, in case you forget. Thanks, Yuyang On Thu, Oct 22, 2015 at 07:24:42AM +0800, Yuyang Du wrote: > Hi Peter and Ingo, > > As discussed recently, the sched metrics need a little bit cleanup. This > series of patches attempt to do that: refactor,

Re: [RFC/PATCH 0/3] ARM: Use udiv/sdiv for __aeabi_{u}idiv library functions

2015-11-23 Thread Arnd Bergmann
On Sunday 22 November 2015 21:36:45 Nicolas Pitre wrote: > On Sun, 22 Nov 2015, Arnd Bergmann wrote: > > > I've also found some /proc/cpuinfo output to cross-reference SoCs > > to their core names. > > > > variant partrevisionnamefeatures > > dove: 0

Re: [GIT PULL 00/37] perf/core improvements and fixes

2015-11-23 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, this was based on tip/perf/urgent and I did a > test merge of tip/perf/core with tip/perf/urgent and then with this branch, > haven't noticed problems, > > Best regards, > > - Arnaldo > > The following changes si

Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs

2015-11-23 Thread Lee Jones
On Sun, 22 Nov 2015, Pavel Machek wrote: > On Mon 2015-11-16 14:11:42, Charles Keepax wrote: > > On Sat, Nov 14, 2015 at 10:16:33PM +0100, Pavel Machek wrote: > > > HiOn Sat 2015-11-14 18:49:40, Mark Brown wrote: > > > > On Sat, Nov 14, 2015 at 06:59:16PM +0100, Pavel Machek wrote: > > > > > > >

Re: [PATCH v2 6/6] arm64: dts: berlin4ct: add pll and clock nodes

2015-11-23 Thread Jisheng Zhang
Dear all, On Mon, 23 Nov 2015 15:21:58 +0800 Jisheng Zhang wrote: > Dear Sebastian, > > On Fri, 20 Nov 2015 22:06:59 +0100 > Sebastian Hesselbarth wrote: > > > On 20.11.2015 09:42, Jisheng Zhang wrote: > > > Add syspll, mempll, cpupll, gateclk and berlin-clk nodes. > > > > > > Signed-off-by:

Re: [PATCH v2 2/2] mm/mmap.c: remove incorrect MAP_FIXED flag comparison from mmap_region

2015-11-23 Thread Michal Hocko
On Fri 20-11-15 17:42:14, Piotr Kwapulinski wrote: > The following flag comparison in mmap_region makes no sense: > > if (!(vm_flags & MAP_FIXED)) > return -ENOMEM; > > The condition is always false and thus the above "return -ENOMEM" is never > executed. The vm_flags must not be compared wit

Re: [PATCH v3 2/5] mfd: syscon: add a DT property to set value width

2015-11-23 Thread Lee Jones
On Sat, 21 Nov 2015, Arnd Bergmann wrote: > On Tuesday 17 November 2015 09:26:49 Guenter Roeck wrote: > > > > > > This syntax is confusing, as we normally associate it with an error > > > condition. Instead, I'd use: > > > > > > if (of_property_read_u32(np, "bus-width", &bus_width) == 0) > >

Re: [RESEND PATCH v2] mfd: sec-core: Rename MFD and regulator names differently

2015-11-23 Thread Lee Jones
On Fri, 20 Nov 2015, Alim Akhtar wrote: > Currently S2MPSXX multifunction device is named as *-pmic, > and these MFDs also supports regulator as a one of its MFD cell which > has the same name, because current name is confusing and we want to > sort it out. > > We did discussed different approach

Re: [PATCH 2/2] arm64: dts: berlin4ct: enable all i2c nodes for the STB board

2015-11-23 Thread Jisheng Zhang
On Mon, 23 Nov 2015 09:12:18 +0100 Sebastian Hesselbarth wrote: > On 23.11.2015 03:49, Jisheng Zhang wrote: > > On Fri, 20 Nov 2015 22:19:32 +0100 > > Sebastian Hesselbarth wrote: > >> On 20.11.2015 10:47, Jisheng Zhang wrote: > >>> Enable all i2c nodes for the Marvell berlin BG4CT STB board.

Re: [PATCH] Documentation: dt-bindings: Fix interrupt documentation file path

2015-11-23 Thread Lee Jones
On Mon, 21 Sep 2015, Andrew F. Davis wrote: > Fix the incorrect interrupt documentation file path in binding docs. > > Signed-off-by: Andrew F. Davis > --- > Documentation/devicetree/bindings/gpio/snps-dwapb-gpio.txt | 2 +- > Documentation/devicetree/bindings/mfd/arizona.txt | 2 +- >

[lkp] [regression] 9bd5b8dffd: BUG: unable to handle kernel NULL pointer dereference at (null)

2015-11-23 Thread kernel test robot
FYI, we noticed the below changes on https://github.com/alaahl/linux.git for-upstream commit 9bd5b8dffd77ec3d258425e9f4dd4f31c41a30b0 ("regression: Disable FENTRY") +--+++ | | e2f9dc3bd2 | 9b

[PATCH v2 1/7] platform-msi: Allow MSIs to be allocated in chunks

2015-11-23 Thread Marc Zyngier
MSIs for a given device are normally all allocated in one go. Make sure the internal code can allocate them one at a time if required. Signed-off-by: Marc Zyngier --- drivers/base/platform-msi.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git

[PATCH v2 5/7] genirq/msi: Add msi_domain_populate_irqs

2015-11-23 Thread Marc Zyngier
To be able to allocate interrupts from the MSI layer down, add a new msi_domain_populate_irqs entry point. Signed-off-by: Marc Zyngier --- include/linux/msi.h | 2 ++ kernel/irq/msi.c| 40 2 files changed, 42 insertions(+) diff --git a/include/linux

[PATCH v2 6/7] platform-msi: Allow creation of a MSI-based stacked irq domain

2015-11-23 Thread Marc Zyngier
We almost have all the needed bits requiredable to create a irq domain on top of a MSI domain. For this, we enable a few things: - the virq is stored in the msi_desc - device, msi_alloc_info and domain-specific data are stored in the platform_priv_data structure - we introduce a new API for plat

[PATCH v2 3/7] irqdomain: Make irq_domain_alloc_irqs_recursive available

2015-11-23 Thread Marc Zyngier
We are soon going to need the MSI layer to call into the domain allocators. Instead of open coding this, make the standard irq_domain_alloc_irqs_recursive function available to the MSI layer. Signed-off-by: Marc Zyngier --- include/linux/irqdomain.h | 3 +++ kernel/irq/irqdomain.c| 6 +++---

[PATCH v2 7/7] irqchip: [Example] dummy wired interrupt/MSI bridge driver

2015-11-23 Thread Marc Zyngier
In order to demonstrate how to put together a wire/MSI bridge, add a dummy driver that doesn't do anything at all, except for allocating interrupts. It comes together with an even more stupid client driver that allocates an interrupt and dump the hierarchy of that interrupt. This is not a candida

[PATCH v2 2/7] platform-msi: Factor out allocation/free of private data

2015-11-23 Thread Marc Zyngier
As we're going to have multiple paths to allocate/free the platform-msi private data, factor this out into separate utility functions. Signed-off-by: Marc Zyngier --- drivers/base/platform-msi.c | 94 + 1 file changed, 53 insertions(+), 41 deletions(-)

[PATCH v2 4/7] genirq/msi: Make the .prepare callback reusable

2015-11-23 Thread Marc Zyngier
The .prepare callbacks are so far only called from msi_domain_alloc_irqs. In order to reuse that code, split that code and create a msi_domain_prepare_irqs function that the existing code can call into. Signed-off-by: Marc Zyngier --- include/linux/msi.h | 4 kernel/irq/msi.c| 18 +

Re: [PATCH 2/2] mm/page_ref: add tracepoint to track down page reference manipulation

2015-11-23 Thread Joonsoo Kim
On Fri, Nov 20, 2015 at 11:42:25AM -0500, Steven Rostedt wrote: > On Fri, 20 Nov 2015 15:33:25 +0900 > Joonsoo Kim wrote: > > > > Steven, is it possible to add tracepoint to inlined fucntion such as > > get_page() in include/linux/mm.h? > > I highly recommend against it. The tracepoint code add

[PATCH v2 0/7] Adding core support for wire-MSI bridges

2015-11-23 Thread Marc Zyngier
There seems to be a new class of interrupt controller out there whose sole purpose (apart from making everybody's life a nightmare) is to turn wired interrupts into MSIs (see [1] for a prime example of the what this actually is). Instead of considering that the MSIs allocated to a device are for t

[PATCH] lightnvm: free allocated memory when gennvm register fails

2015-11-23 Thread Wenwei Tao
free allocated nvm block and gennvm lun structures when gennvm register fails, otherwise it will cause memory leak. Signed-off-by: Wenwei Tao --- drivers/lightnvm/gennvm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/lightnvm/gennvm.c b/drivers/lightnvm/gennvm.c index ae1fb2b..

Re: WARNING in shmem_evict_inode

2015-11-23 Thread Dmitry Vyukov
On Mon, Nov 9, 2015 at 9:55 AM, Dmitry Vyukov wrote: > Hello, > > The following program: > > // autogenerated by syzkaller (http://github.com/google/syzkaller) > #include > #include > #include > #include > > #define SYS_memfd_create 319 > > long fd; > > void *thr(void *p) > { > syscall

Re: [PATCH v2 6/6] arm64: dts: berlin4ct: add pll and clock nodes

2015-11-23 Thread Sebastian Hesselbarth
On 23.11.2015 08:21, Jisheng Zhang wrote: On Fri, 20 Nov 2015 22:06:59 +0100 Sebastian Hesselbarth wrote: On 20.11.2015 09:42, Jisheng Zhang wrote: Add syspll, mempll, cpupll, gateclk and berlin-clk nodes. Signed-off-by: Jisheng Zhang --- [...] + syspll: syspll { +

Re: [PATCH v4 3/3] usb: chipidea: register driver as a peripheral with the phy

2015-11-23 Thread Peter Chen
On Fri, Nov 20, 2015 at 03:47:20PM -0800, Tim Bird wrote: > Register the chipidea driver with the phy, so that the phy > driver can kick the gadget driver when it resumes from low power. > The phy-msm-usb (Qualcomm) driver requires this in order to > recover gadget operation after you disconnect th

Re: Deadlock between bind and splice

2015-11-23 Thread Dmitry Vyukov
On Tue, Nov 10, 2015 at 3:59 AM, Al Viro wrote: > On Tue, Nov 10, 2015 at 02:38:54AM +, Al Viro wrote: >> On Fri, Nov 06, 2015 at 07:42:15AM -0800, Eric Dumazet wrote: >> >> > Thank you for this report. >> > >> > pipe is part of fs, not net ;) >> >> AF_UNIX bind() vs. socketpair() interplay, O

Re: [PATCH] lightnvm: free allocated memory when gennvm register fails

2015-11-23 Thread Matias Bjørling
On 11/23/2015 09:29 AM, Wenwei Tao wrote: free allocated nvm block and gennvm lun structures when gennvm register fails, otherwise it will cause memory leak. Signed-off-by: Wenwei Tao --- drivers/lightnvm/gennvm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/lightnvm/gennvm

Re: [PATCH 4/6] PM / devfreq: Set the freq_table of devfreq device

2015-11-23 Thread Chanwoo Choi
On Mon, Nov 23, 2015 at 4:29 PM, MyungJoo Ham wrote: >> >> This patch initialize the freq_table array of each devfreq device by using >> the devfreq_set_freq_table(). If freq_table is NULL, the devfreq framework >> is not able to support the frequency transtion information through sysfs. >> >> Th

Re: Re: [PATCH 6/6] PM / devfreq: Set the min_freq and max_freq of devfreq device

2015-11-23 Thread Chanwoo Choi
On Mon, Nov 23, 2015 at 4:21 PM, MyungJoo Ham wrote: > [] >> > >> > The value 0 is used for min/max_freq to declare >> > that min/max_freq is deactivated. Therefore, it is not >> > required to do so; they are not intended to show the hardware >> > configuration as well. >> >> This case consider th

Re: [PATCHSET v3] netfilter, cgroup: implement cgroup2 path match in xt_cgroup

2015-11-23 Thread Daniel Wagner
On 11/23/2015 08:11 AM, Daniel Wagner wrote: > [3.217648] systemd[1]: tmp.mount: Directory /tmp to mount over is not > empty, mounting anyway. > [3.224665] BUG: spinlock bad magic on CPU#1, systemd/1 > [3.225653] lock: cgroup_sk_update_lock+0x0/0x60, .magic: , > .owner: syste

Re: [PATCH] drm/radeon: Retry DDC probing on DVI on failure if we got an HPD interrupt

2015-11-23 Thread Daniel Vetter
On Sat, Nov 21, 2015 at 03:22:07PM +0100, Christian König wrote: > On 20.11.2015 16:52, cp...@redhat.com wrote: > >From: Stephen Chandler Paul > > > >HPD signals on DVI ports can be fired off before the pins required for > >DDC probing actually make contact, due to the pins for HPD making > >conta

Re: [PATCH] staging: panel: Fixed line over 80 characters long

2015-11-23 Thread Sudip Mukherjee
On Sat, Nov 21, 2015 at 09:26:32AM +0530, Anjali Menon wrote: > Moved the comments to the next line to remove the warning > detected by the checkpatch.pl. > > WARNING: line over 80 characters > > Signed-off-by: Anjali Menon > --- > drivers/staging/panel/panel.c | 4 +++- > 1 file changed, 3 ins

Re: [PATCH] ASoC: pxa: remove incorrect do_div() call

2015-11-23 Thread Arnd Bergmann
On Monday 23 November 2015 16:10:49 zhangfei wrote: > On 11/20/2015 05:32 PM, Arnd Bergmann wrote: > > diff --git a/sound/soc/pxa/brownstone.c b/sound/soc/pxa/brownstone.c > > index 6147e86e9b0f..416ea646c3b1 100644 > > --- a/sound/soc/pxa/brownstone.c > > +++ b/sound/soc/pxa/brownstone.c > > @@ -6

[PATCH v7 1/4] usb: gadget: bind UDC by name passed via usb_gadget_driver structure

2015-11-23 Thread Marek Szyprowski
From: Ruslan Bilovol Introduce new 'udc_name' member to usb_gadget_driver structure. The 'udc_name' is a name of UDC that usb_gadget_driver should be bound to. If udc_name is NULL, it will be bound to any available UDC. Tested-by: Maxime Ripard Signed-off-by: Ruslan Bilovol Signed-off-by: Mare

Re: [PATCH] drm/radeon: Retry DDC probing on DVI on failure if we got an HPD interrupt

2015-11-23 Thread Daniel Vetter
On Sat, Nov 21, 2015 at 02:49:20PM +, Daniel Stone wrote: > Hi, > > On 21 November 2015 at 14:22, Christian König > wrote: > > On 20.11.2015 16:52, cp...@redhat.com wrote: > >> This is somewhat rare on most cards (depending on what angle you plug > >> the DVI connector in), but on some cards

[PATCH v7 2/4] usb: gadget: configfs: pass UDC name via usb_gadget_driver struct

2015-11-23 Thread Marek Szyprowski
From: Ruslan Bilovol Now when udc-core supports binding to specific UDC by passing its name via 'udc_name' member of usb_gadget_driver struct, switch to this generic approach. Tested-by: Maxime Ripard Signed-off-by: Ruslan Bilovol [rebased and fixed checkpatch issues] Signed-off-by: Marek Szyp

Re: [PATCH v4 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI

2015-11-23 Thread Maxime Ripard
Hi, On Sun, Nov 01, 2015 at 02:33:23PM +0100, Jens Kuske wrote: > >> + bus_gates: clk@01c20060 { > >> + #clock-cells = <1>; > >> + compatible = "allwinner,sun8i-h3-bus-gates-clk"; > >> + reg = <0x01c20060 0x14>; > >> +

[PATCH v7 0/4] usb/gadget: independent registration of gadgets and gadget drivers

2015-11-23 Thread Marek Szyprowski
Hello, This is a resurrection of the patches initially submitted by Ruslan Bilovol in the following thread: https://lkml.org/lkml/2015/6/22/554 The changes since the original submission (v5) includes rebase onto latest linux-next branch, simplification of the code requested by Alan Stern and Feli

[PATCH v7 4/4] usb: gadget: udc-core: independent registration of gadgets and gadget drivers

2015-11-23 Thread Marek Szyprowski
From: Ruslan Bilovol Change behavior during registration of gadgets and gadget drivers in udc-core. Instead of previous approach when for successful probe of usb gadget driver at least one usb gadget should be already registered use another one where gadget drivers and gadgets can be registered i

Re: [PATCH v2 6/6] arm64: dts: berlin4ct: add pll and clock nodes

2015-11-23 Thread Jisheng Zhang
On Mon, 23 Nov 2015 09:30:42 +0100 Sebastian Hesselbarth wrote: > On 23.11.2015 08:21, Jisheng Zhang wrote: > > On Fri, 20 Nov 2015 22:06:59 +0100 > > Sebastian Hesselbarth wrote: > >> On 20.11.2015 09:42, Jisheng Zhang wrote: > >>> Add syspll, mempll, cpupll, gateclk and berlin-clk nodes. > >

[PATCH v7 3/4] usb: gadget: udc-core: remove unused usb_udc_attach_driver()

2015-11-23 Thread Marek Szyprowski
From: Ruslan Bilovol Now when last user of usb_udc_attach_driver() is switched to passing UDC name via usb_gadget_driver struct, it's safe to remove this function Tested-by: Maxime Ripard Signed-off-by: Ruslan Bilovol Signed-off-by: Marek Szyprowski Tested-by: Peter Chen --- drivers/usb/gad

Re: [PATCH v1 3/7] test_hexdump: go through all possible lengths of buffer

2015-11-23 Thread Rasmus Villemoes
On Fri, Nov 20 2015, Andy Shevchenko wrote: > On Thu, 2015-11-19 at 11:07 +0100, Rasmus Villemoes wrote: >> >> >> Why keep the variable l when it is just a synonym for the new >> parameter buflen? It is quite confusing that you change some but not >> all occurrences of l to buflen. If you want

Re: [PATCH] lightnvm: free allocated memory when gennvm register fails

2015-11-23 Thread Wenwei Tao
This is okay with me. 2015-11-23 16:47 GMT+08:00 Matias Bjørling : > On 11/23/2015 09:29 AM, Wenwei Tao wrote: >> >> free allocated nvm block and gennvm lun structures when >> gennvm register fails, otherwise it will cause memory leak. >> >> Signed-off-by: Wenwei Tao >> --- >> drivers/lightnvm/

Re: [PATCH] lightnvm: free allocated memory when gennvm register fails

2015-11-23 Thread Matias Bjørling
On 11/23/2015 10:00 AM, Wenwei Tao wrote: This is okay with me. Great, I'll go ahead and apply it. 2015-11-23 16:47 GMT+08:00 Matias Bjørling : On 11/23/2015 09:29 AM, Wenwei Tao wrote: free allocated nvm block and gennvm lun structures when gennvm register fails, otherwise it will cause

Re: [PATCH v2] drm/mm: rewrite drm_mm_for_each_hole

2015-11-23 Thread Daniel Vetter
On Sat, Nov 21, 2015 at 10:04:04PM +0800, Geliang Tang wrote: > When backwards is 0, __drm_mm_for_each_hole is same as > drm_mm_for_each_hole. So I rewrite drm_mm_for_each_hole > by using __drm_mm_for_each_hole. > > Signed-off-by: Geliang Tang Applied to drm-misc, thanks. -Daniel > --- > Change

Re: [PATCH 2/4] arm64: dts: Add msm8996 SoC and MTP board support

2015-11-23 Thread Rajendra Nayak
On 11/18/2015 06:42 AM, Stephen Boyd wrote: > Add initial device tree support for the Qualcomm MSM8996 SoC and > MTP8996 evaluation board. > > Signed-off-by: Stephen Boyd > --- []... > + > + spmi_bus: qcom,spmi@400f000 { > + compatible = "qcom,spmi-pmic-arb"; > +

Re: Re: Re: [PATCH 6/6] PM / devfreq: Set the min_freq and max_freq of devfreq device

2015-11-23 Thread MyungJoo Ham
> On Mon, Nov 23, 2015 at 4:21 PM, MyungJoo Ham > wrote: > > [] > >> > > >> > The value 0 is used for min/max_freq to declare > >> > that min/max_freq is deactivated. Therefore, it is not > >> > required to do so; they are not intended to show the hardware > >> > configuration as well. > >> > >>

Re: [linux-sunxi] [PATCH] spi: dts: sun4i: Add support for inter-word wait cycles using the SPI Wait Clock Register

2015-11-23 Thread Marcus Weseloh
2015-11-22 20:45 GMT+01:00 Maxime Ripard : >> Julien, Rob: thanks for your comments! Ok, I will make the following changes: >> >> - remove "sun4i,spi-wdelay" from the sun4i binding and add the >> property to the spi-bus.txt binding instead >> - remove the comment about the additional 3 cycles from

Re: [linux-sunxi] [PATCH v2 2/5] clk: sunxi: Add driver for the H3 THS clock

2015-11-23 Thread LABBE Corentin
On Mon, Nov 23, 2015 at 09:02:49AM +0100, Josef Gajdusek wrote: > This patch adds a driver for the THS clock which is present on the > Allwinner H3. > > Signed-off-by: Josef Gajdusek > --- Hello Just a minor comment below. > +static void __init sun8i_h3_ths_clk_setup(struct device_node *node) >

Re: [PATCH 1/2] clk: rockchip: dmc: support rk3399 dmc clock driver

2015-11-23 Thread hl
Hi Heiko, On 22/11/15 02:30, Heiko Stuebner wrote: Hi Lin, Am Freitag, 20. November 2015, 09:37:15 schrieb hl: On 20/11/15 05:47, Heiko Stuebner wrote: Hi Lin, Am Donnerstag, 19. November 2015, 18:21:10 schrieb Lin Huang: support rk3399 dmc clock driver. Note, ddr set rate function will use

Re: Deadlock between bind and splice

2015-11-23 Thread Hannes Frederic Sowa
On Mon, Nov 23, 2015, at 09:32, Dmitry Vyukov wrote: > On Tue, Nov 10, 2015 at 3:59 AM, Al Viro wrote: > > On Tue, Nov 10, 2015 at 02:38:54AM +, Al Viro wrote: > >> On Fri, Nov 06, 2015 at 07:42:15AM -0800, Eric Dumazet wrote: > >> > >> > Thank you for this report. > >> > > >> > pipe is part o

[PATCH] ASoC: Atmel: ClassD: add GCK's parent clock in DT binding

2015-11-23 Thread Songjun Wu
Set GCK's parent as audio clock. Signed-off-by: Songjun Wu --- .../devicetree/bindings/sound/atmel-classd.txt |6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/atmel-classd.txt b/Documentation/devicetree/bindings/sound/atmel-classd.txt ind

Re: [PATCH 1/2] clk: rockchip: dmc: support rk3399 dmc clock driver

2015-11-23 Thread hl
Hi MyungJoo, On 23/11/15 16:09, MyungJoo Ham wrote: +static unsigned long rk3399_dmcclk_recalc_rate(struct clk_hw *hw, + unsigned long parent_rate) +{ + struct rk3399_dmcclk *dmc = to_rk3399_dmcclk(&hw); + u32 val; + + /* +*

Re: [Gta04-owner] [PATCH v2 0/3] Fixes for twl4030 charger

2015-11-23 Thread H. Nikolaus Schaller
ping. Am 13.11.2015 um 11:28 schrieb H. Nikolaus Schaller : > ping. > > Am 02.11.2015 um 12:27 schrieb H. Nikolaus Schaller : > >> Changes V2: >> * worked in comments by Nishanth Menon >> * added another patch which solves a probing/boot stall problem (irq >> allocation vs. -EPROBE_DEFER) >>

Re: [PATCH v1 5/7] test_hexdump: check all bytes in real buffer

2015-11-23 Thread Rasmus Villemoes
On Fri, Nov 20 2015, Andy Shevchenko wrote: > On Thu, 2015-11-19 at 11:11 +0100, Rasmus Villemoes wrote: >> >> First of all, ' ' is one of the characters which hexdump is certainly >> supposed to spit out, so I think it's better to use some other >> character for prefilling. Otherwise we wouldn'

[PATCH] leds/powernv : removing NULL check

2015-11-23 Thread Saurabh Sengar
no need to explicitly check for pointer to be null, of_prop_next_string anyways return NULL, if passed pointer is NULL and hence loop will continue Signed-off-by: Saurabh Sengar --- drivers/leds/leds-powernv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/leds/leds-powernv.c b/dri

[PATCH v3 1/6] PCI: designware: remove wrong io_base assignment

2015-11-23 Thread Stanimir Varbanov
The io_base is used to keep the cpu physical address parsed from ranges dt property. After issue pci_remap_iospace the io_base has been assigned with io->start, which is not correct cause io->start is a PCI bus address. Signed-off-by: Stanimir Varbanov --- drivers/pci/host/pcie-designware.c |

Re: [PATCH] mm, oom: Give __GFP_NOFAIL allocations access to memory reserves

2015-11-23 Thread Michal Hocko
On Sun 22-11-15 13:55:31, Vlastimil Babka wrote: > On 11.11.2015 14:48, mho...@kernel.org wrote: > > mm/page_alloc.c | 10 +- > > 1 file changed, 9 insertions(+), 1 deletion(-) > > > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > > index 8034909faad2..d30bce9d7ac8 100644 > > --- a/mm/

[PATCH v3 0/6] Qualcomm PCIe driver and designware fixes

2015-11-23 Thread Stanimir Varbanov
This patch set is continuation of previous v2 at [1]. This time I decided to drop the PHY driver needed by pcie driver for apq8084 and send it separately soon (when sort out the need of separate phy driver). First two patches in the set are fixes in pcie designware driver found during testing the

[PATCH v3 2/6] PCI: designware: add memory barrier after enabling region

2015-11-23 Thread Stanimir Varbanov
Add 'write memory' barrier after enable region in PCIE_ATU_CR2 register. The barrier is needed to ensure that the region enable request has been reached it's destination at time when we read/write to PCI configuration space. Without this barrier PCI device enumeration during kernel boot is not rel

[PATCH v3 6/6] ARM: dts: ifc6410: enable pcie dt node for this board

2015-11-23 Thread Stanimir Varbanov
Enable pcie dt node and fill pcie dt node with regulator, pinctrl and reset gpio, to use the pcie on the ifc6410 board. Signed-off-by: Stanimir Varbanov --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/

[PATCH v3 3/6] DT: PCI: qcom: Document PCIe devicetree bindings

2015-11-23 Thread Stanimir Varbanov
From: Stanimir Varbanov Document Qualcomm PCIe driver devicetree bindings. Signed-off-by: Stanimir Varbanov Signed-off-by: Stanimir Varbanov --- .../devicetree/bindings/pci/qcom,pcie.txt | 231 1 file changed, 231 insertions(+) create mode 100644 Documentation/

Re: [PATCH] powerpc: tracing: don't trace hcalls on offline CPUs

2015-11-23 Thread Denis Kirjanov
On 11/23/15, Michael Ellerman wrote: > On Fri, 2015-11-20 at 15:22 +0300, Denis Kirjanov wrote: >> On 11/3/15, Denis Kirjanov wrote: >> > On 11/3/15, Michael Ellerman wrote: >> > > On Thu, 2015-10-29 at 22:10 +0300, Denis Kirjanov wrote: >> > > > ./drmgr -c cpu -a -r gives the following warning:

[PATCH v3 4/6] PCI: qcom: Add Qualcomm PCIe controller driver

2015-11-23 Thread Stanimir Varbanov
From: Stanimir Varbanov The PCIe driver reuse the Designware common code for host and MSI initialization, and also program the Qualcomm application specific registers. Signed-off-by: Stanimir Varbanov Signed-off-by: Stanimir Varbanov --- MAINTAINERS |7 + drivers/pci/host

[PATCH v3 5/6] ARM: dts: apq8064: add pcie devicetree node

2015-11-23 Thread Stanimir Varbanov
Add the pcie dt node so that it can probe and used. Signed-off-by: Stanimir Varbanov --- arch/arm/boot/dts/qcom-apq8064.dtsi | 36 +++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index

Re: lapic_suspend/lapic_resume wrong?

2015-11-23 Thread Juergen Gross
On 23/11/15 09:01, Ingo Molnar wrote: > > * Juergen Gross wrote: > >> Hi, >> >> while trying to find the reason for a hanging kernel during resume >> handling I found a strange inconsistency in arch/x86/kernel/apic/apic.c >> regarding usage of config options. >> >> Attached patch addresses this,

Re: [PATCH 2/2] mm: do not loop over ALLOC_NO_WATERMARKS without triggering reclaim

2015-11-23 Thread Michal Hocko
It seems this patch hasn't reached the mmotm tree. Are there any unresolved concerns left? On Mon 16-11-15 14:22:19, mho...@kernel.org wrote: > From: Michal Hocko > > __alloc_pages_slowpath is looping over ALLOC_NO_WATERMARKS requests if > __GFP_NOFAIL is requested. This is fragile because we ar

Re: [PATCH] USB: serial: cp210x: Remove CP2110 ID from compatibility list

2015-11-23 Thread Johan Hovold
On Tue, Nov 10, 2015 at 04:40:13PM -0600, Konstantin Shkolnyy wrote: > CP2110 ID (0x10c4, 0xea80) doesn't belong here because it's a HID > and completely different from CP210x devices. > > Signed-off-by: Konstantin Shkolnyy Now applied, thanks. Johan -- To unsubscribe from this list: send the l

Re: [PATCH v1 6/7] test_hexdump: test all possible group sizes for overflow

2015-11-23 Thread Rasmus Villemoes
On Fri, Nov 20 2015, Andy Shevchenko wrote: > On Thu, 2015-11-19 at 11:14 +0100, Rasmus Villemoes wrote: >> >> aren't you missing a >> >>   test_hexdump_overflow(buflen, rounddown(len, gs), 32, gs, ascii); >> >> here to also exercise the rowsize==32 code? > > I could add that as well, though i

nfnetlink warnings

2015-11-23 Thread Borislav Petkov
Hey, so I keep getting those since recently: net/netfilter/nfnetlink_queue.c:519:19: warning: ‘nfnl_ct’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (ct && nfnl_ct->build(skb, ct, ctinfo, NFQA_CT, NFQA_CT_INFO) < 0) ^ net/netfilter/nfnetlink_queue.c:

[PATCH] ASoC: rcar: remove unused variable

2015-11-23 Thread Arnd Bergmann
After a recent cleanup, the soc_card variable became unused and now produces a warning: soc/sh/rcar/core.c: In function '__rsnd_kctrl_new': soc/sh/rcar/core.c:801:23: warning: unused variable 'soc_card' [-Wunused-variable] This removes the variable. Fixes: 1a497983a5ae ("ASoC: Change the PCM ru

Re: [PATCH 09/14] net: tcp_memcontrol: simplify linkage between socket and page counter

2015-11-23 Thread Vladimir Davydov
On Fri, Nov 20, 2015 at 01:56:48PM -0500, Johannes Weiner wrote: > On Fri, Nov 20, 2015 at 03:42:16PM +0300, Vladimir Davydov wrote: > > On Thu, Nov 12, 2015 at 06:41:28PM -0500, Johannes Weiner wrote: > > > There won't be any separate counters for socket memory consumed by > > > protocols other th

Re: [RFC PATCH] restrict /dev/mem to idle io memory ranges

2015-11-23 Thread Ingo Molnar
* Dan Williams wrote: > On Fri, Nov 20, 2015 at 12:12 PM, Russell King - ARM Linux > wrote: > > On Fri, Nov 20, 2015 at 09:31:33AM -0800, Dan Williams wrote: > >> This effectively promotes IORESOURCE_BUSY to IORESOURCE_EXCLUSIVE > >> semantics by default. If userspace really believes it is saf

Re: [PATCH v2 2/2] drm/rockchip: Convert the probe function to the generic drm_of_component_probe()

2015-11-23 Thread Mark yao
On 2015年11月20日 22:22, Liviu Dudau wrote: Initial attempt to convert rockchip to drm_of_component_probe() missed the difference between ports and encoders when using the compare_of() function. Now that drm_of_component_probe() has been enhanced, let's try again the conversion. Signed-off-by: Livi

Re: [PATCH] cpufreq: imx: Add cpufreq driver for imx7D/Solo SOC

2015-11-23 Thread Lucas Stach
Am Montag, den 23.11.2015, 22:07 +0800 schrieb Bai Ping: > The i.MX7Dual/Solo is a new series of the i.MX SOC family. > The existing cpufreq driver for 'i.MX6' or 'cpufreq-dt' can > NOT match the requirement of this new SOC. This patch adds the > cpufreq driver for i.MX7Dual/Solo. > So, what are t

Re: Improve spinlock performance by moving work to one core

2015-11-23 Thread Ling Ma
Hi Longman, Attachments include user space application thread.c and kernel patch spinlock-test.patch based on kernel 4.3.0-rc4 we run thread.c with kernel patch, test original and new spinlock respectively, perf top -G indicates thread.c cause cache_alloc_refill and cache_flusharray functions to

Re: [PATCH] mm, oom: Give __GFP_NOFAIL allocations access to memory reserves

2015-11-23 Thread Vlastimil Babka
On 11/23/2015 10:29 AM, Michal Hocko wrote: On Sun 22-11-15 13:55:31, Vlastimil Babka wrote: On 11.11.2015 14:48, mho...@kernel.org wrote: mm/page_alloc.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 8034909faad2..d30bc

RE: [PATCH] PCI: pcie-rcar: Fix OF node passed to MSI irq domain

2015-11-23 Thread Phil Edworthy
Hi Marc, On 20 November 2015 09:49, Marc Zyngier wrote: > On 18/11/15 18:01, Phil Edworthy wrote: > > Hi Marc, > > > > On 16 November 2015 18:31, Marc Zyngier wrote: > >> On 13/11/15 09:36, Phil Edworthy wrote: > > > >>> Since the stack trace doesn't help that much I added some tracing: > >>> pci

Re: [PATCH RESEND] pwm: ftm: fix clock enable/disable when using PM

2015-11-23 Thread Thierry Reding
On Wed, Nov 18, 2015 at 06:04:12PM -0800, Stefan Agner wrote: > Thierry, > > I realized that this patch did not make it into 4.4-rc1, while others, > IMHO less important patches which have been posted later (e.g. sunxi > whitespace fixes) have made it! :-( The reason why I merged them is because

Re: [PATCH v2 4/5] dt-bindings: document sun8i_ths

2015-11-23 Thread Chen-Yu Tsai
On Mon, Nov 23, 2015 at 4:02 PM, Josef Gajdusek wrote: > This patch adds the binding documentation for the sun8i_ths driver > > Signed-off-by: Josef Gajdusek > --- > .../devicetree/bindings/thermal/sun8i-ths.txt | 31 > ++ > 1 file changed, 31 insertions(+) > create mo

Re: [PATCH 3/3 v8] livepatch: function,sympos scheme in livepatch sysfs directory

2015-11-23 Thread Miroslav Benes
On Fri, 20 Nov 2015, Chris J Arges wrote: > The following directory structure will allow for cases when the same > function name exists in a single object. > /sys/kernel/livepatch/// > > The sympos number corresponds to the nth occurrence of the symbol name in > kallsyms for the patched obj

  1   2   3   4   5   6   7   8   9   10   >