Re: [PATCH 05/11] qspinlock: Optimize for smaller NR_CPUS

2014-07-07 Thread Paolo Bonzini
Il 07/07/2014 17:35, Peter Zijlstra ha scritto: > Unlike the change in patch 4, clear_pending_set_locked doesn't change how > qspinlock moves from a state to the next. True, but its where we start to break up into smaller functions. And the only reason we break them out is because we'll get

[PATCH] sh-pfc: sh73a0: Introduce the use of devm_regulator_register

2014-07-07 Thread Himangi Saraogi
This patch moves data allocated using regulator_register to devm_regulator_register and does away the calls to regulator_unregister. The sh73a0_pinmux_soc_exit function is no longer needed and is removed. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall --- To send to: Linus Walleij

Re: [PATCH v2 1/2] gpio: Add driver for Zynq GPIO controller

2014-07-07 Thread Sören Brinkmann
Hi Linus, On Mon, 2014-07-07 at 04:51PM +0200, Linus Walleij wrote: > On Wed, Jun 18, 2014 at 5:36 PM, Sören Brinkmann > wrote: > > > I did some of the changes for this v2 and a few things are not clear to > > me. > > > > The first is, how is userspace supposed to find the correct offset for a

[PATCH] staging: nvec: add missing blank line after declarations

2014-07-07 Thread Pawel Lebioda
Fix 'missing blank line after declaration' warnings reported by checkpatch.pl. Signed-off-by: Pawel Lebioda --- drivers/staging/nvec/nvec_paz00.c | 1 + drivers/staging/nvec/nvec_power.c | 1 + drivers/staging/nvec/nvec_ps2.c | 2 ++ 3 files changed, 4 insertions(+) diff --git

Re: [Intel-gfx] Linux 3.16-rc2

2014-07-07 Thread Chris Wilson
On Mon, Jul 07, 2014 at 05:16:13PM +0200, Daniel Vetter wrote: > On Wed, Jul 02, 2014 at 06:18:41PM +0200, Thomas Meyer wrote: > > Hi, > > > > this patch on top of v3.16-rc3-62-gd92a333 makes the resume from ram > > regression go away on my machine: > > Hm, we could conditionalize this hack on

Re: [PATCH] ARM: EXYNOS: add EXYNOS3250 PMU support

2014-07-07 Thread Vikas Sajjan
Hi, On Mon, Jun 2, 2014 at 10:24 PM, Bartlomiej Zolnierkiewicz wrote: > > This is needed for suspend/resume and cpuidle AFTR mode support. > > Signed-off-by: Chanwoo Choi > Signed-off-by: Bartlomiej Zolnierkiewicz > --- > against next-20140602 > > arch/arm/mach-exynos/pmu.c | 163 >

Re: [PATCH v1] PCI: enable ASPM configuration in PCIE POWERSAVE mode

2014-07-07 Thread Matthew Garrett
On Sat, 2014-07-05 at 13:02 -0600, Bjorn Helgaas wrote: > > Rafael, Matthew, any comments? We have vacillated on this before and > > the web is already pretty tangled. > > > > Vidya, can you give more details about the bug fixed by this change? > > What's the scenario? Are we resuming and the

Re: [PATCH] HID: cp2112: fix gpio value in gpio_direction_output

2014-07-07 Thread Antonio Borneo
On Mon, Jul 7, 2014 at 10:03 PM, Benjamin Tissoires wrote: > On Sun, Jun 29, 2014 at 2:13 AM, Antonio Borneo > wrote: >> CP2112 does not offer an atomic method to set both gpio >> direction and value. >> Also it does not permit to set gpio value before putting >> gpio in output. In fact,

Re: [PATCH 08/10] mm/page_alloc: use get_onbuddy_migratetype() to get buddy list type

2014-07-07 Thread Vlastimil Babka
On 07/04/2014 09:57 AM, Joonsoo Kim wrote: When isolating free page, what we want to know is which list the page is linked. If it is linked in isolate migratetype buddy list, we can skip watermark check and freepage counting. And if it is linked in CMA migratetype buddy list, we need to fixup

Re: [PATCH] pinctrl: pinctrl-st.c: Cleaning up values that are never used

2014-07-07 Thread Linus Walleij
On Thu, Jun 26, 2014 at 3:44 PM, Rickard Strandqvist wrote: > Remove variable that are never used > > This was found using a static code analysis program called cppcheck. > > Signed-off-by: Rickard Strandqvist Patch applied with Patrice's ACK. Yours, Linus Walleij -- To unsubscribe from this

Re: [PATCH] pinctrl: pinctrl-single.c: Cleaning up wrong format string usage

2014-07-07 Thread Linus Walleij
On Thu, Jun 26, 2014 at 6:58 PM, Rickard Strandqvist wrote: > %d in format string used, but the type is unsigned int > > This was found using a static code analysis program called cppcheck > > Signed-off-by: Rickard Strandqvist Patch applied. Yours, Linus Walleij -- To unsubscribe from this

Re: [PATCH] pinctrl: pinctrl-adi2.c: Cleaning up wrong format string usage

2014-07-07 Thread Linus Walleij
On Thu, Jun 26, 2014 at 6:57 PM, Rickard Strandqvist wrote: > %d in format string used, but the type is unsigned int > > This was found using a static code analysis program called cppcheck > > Signed-off-by: Rickard Strandqvist Patch applied. Yours, Linus Walleij -- To unsubscribe from this

Re: [PATCH] HID: cp2112: add I2C mode

2014-07-07 Thread Benjamin Tissoires
On Mon, Jul 7, 2014 at 11:32 AM, Antonio Borneo wrote: > On Mon, Jul 7, 2014 at 9:57 PM, Benjamin Tissoires > wrote: >> Hi Antonio, >> >> On Sun, Jun 29, 2014 at 2:14 AM, Antonio Borneo >> wrote: >>> cp2112 supports single I2C read/write transactions. >>> It can't combine I2C transactions. >>>

Re: [PATCH] pinctrl: pinctrl-single.c: Cleaning up values that are never used

2014-07-07 Thread Linus Walleij
On Thu, Jun 26, 2014 at 3:43 PM, Rickard Strandqvist wrote: > Remove variable that are never used > > This was found using a static code analysis program called cppcheck. > > Signed-off-by: Rickard Strandqvist Makes sense. Patch applied unless Tony or Haojian has some better error handling

Re: [PATCH 05/10] mm/page_alloc: optimize and unify pageblock migratetype check in free path

2014-07-07 Thread Vlastimil Babka
On 07/04/2014 09:57 AM, Joonsoo Kim wrote: Currently, when we free the page from pcp list to buddy, we check pageblock of the page in order to isolate the page on isolated pageblock. Although this could rarely happen and to check migratetype of pageblock is somewhat expensive, we check it on

Re: [PATCH] pinctrl: pinctrl-at91.c: Cleaning up values that are never used

2014-07-07 Thread Linus Walleij
On Thu, Jun 26, 2014 at 3:41 PM, Rickard Strandqvist wrote: > Remove variable that are never used > > This was found using a static code analysis program called cppcheck. > > Signed-off-by: Rickard Strandqvist (...) > - int ret, val, num_conf = 0; > + int val, num_conf = 0; > > -

Re: [PATCH V2 2/3] perf protect LBR when Intel PT is enabled.

2014-07-07 Thread Peter Zijlstra
On Mon, Jul 07, 2014 at 05:46:35PM +0200, Peter Zijlstra wrote: > On Mon, Jul 07, 2014 at 01:57:16PM +, Liang, Kan wrote: > > > > This doesn't work, e.g. hardware debuggers can take over at any time. > > > > > > Tough cookies. Hardware debuggers get to deal with whatever crap they > > >

Re: [PATCH 1/5] memory: add a driver for atmel ram controllers

2014-07-07 Thread Boris BREZILLON
On Mon, 7 Jul 2014 17:19:11 +0200 Alexandre Belloni wrote: > Atmel SoCs have one or multiple RAM controllers that need one or multiple > clocks > to run. > This driver handle those clocks. > Actually this controller is an SDRAM controller which, depending on the SoC, might support SDR

Re: [PATCH V2 2/3] perf protect LBR when Intel PT is enabled.

2014-07-07 Thread Peter Zijlstra
On Mon, Jul 07, 2014 at 01:57:16PM +, Liang, Kan wrote: > > > This doesn't work, e.g. hardware debuggers can take over at any time. > > > > Tough cookies. Hardware debuggers get to deal with whatever crap they > > cause. > > If so, I think I may discard this patch (2/3). I will resubmit the

Re: [PATCH -mm 2/8] memcg: keep all children of each root cache on a list

2014-07-07 Thread Vladimir Davydov
On Mon, Jul 07, 2014 at 10:24:35AM -0500, Christoph Lameter wrote: > On Mon, 7 Jul 2014, Vladimir Davydov wrote: > > > diff --git a/mm/slab_common.c b/mm/slab_common.c > > index d31c4bacc6a2..95a8f772b0d1 100644 > > --- a/mm/slab_common.c > > +++ b/mm/slab_common.c > > @@ -294,8 +294,12 @@ struct

Re: [PATCH v3 1/3] ima: use ahash API for file hash calculation

2014-07-07 Thread Mimi Zohar
On Mon, 2014-07-07 at 16:37 +0300, Dmitry Kasatkin wrote: > On 07/07/14 14:56, Mimi Zohar wrote: > > On Fri, 2014-07-04 at 15:05 +0300, Dmitry Kasatkin wrote: > >> > >> +/** > > This is the kernel-doc delimiter. > > > >> + * ima_calc_file_hash - calculae file hash > >> + * > > Missing

Re: [PATCH 04/10] mm/page_alloc: carefully free the page on isolate pageblock

2014-07-07 Thread Vlastimil Babka
On 07/04/2014 09:57 AM, Joonsoo Kim wrote: We got migratetype without holding the lock so it could be racy. If some pages go on the isolate migratetype buddy list by this race, we can't allocate this page anymore until next isolation attempt on this pageblock. Below is possible scenario of this

Re: [RFCv2 PATCH 00/23] sched: Energy cost model for energy-aware scheduling

2014-07-07 Thread Peter Zijlstra
On Mon, Jul 07, 2014 at 03:00:18PM +0100, Morten Rasmussen wrote: > > Could this be addressed by making the scheduler more "proactive" and, > > rather than just looking at the current energy diff, guesstimate what it > > would be if not placing a task at all on the CPU? If for example there > > is

[PATCH] regulator: lp8755: Use devm_regulator_register

2014-07-07 Thread Himangi Saraogi
This patch moves data allocated using regulator_register to devm_regulator_register and does away with the calls to regulator_unregister. Also some labels are removed and a new labelerr is introduced which is less specific to context. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall ---

Re: [PATCH 1/4] perf kvm: Use defines of kvm events

2014-07-07 Thread David Ahern
On 7/7/14, 8:06 AM, Christian Borntraeger wrote: On 03/07/14 16:29, Alexander Yarygin wrote: Currently perf-kvm uses string literals for kvm event names, but it works only for x86, because other architectures may have other names for those events. To reduce dependence on architecture, we add

Re: [PATCH] pinctrl: pinctrl-st.c: Cleaning up if unsigned is less than zero

2014-07-07 Thread Linus Walleij
On Thu, Jun 26, 2014 at 1:32 PM, Rickard Strandqvist wrote: > Remove checking if a unsigned is less than zero > > This was found using a static code analysis program called cppcheck. > > Signed-off-by: Rickard Strandqvist Patch applied with the ACKs. Thanks! Yours, Linus Walleij -- To

Re: [PATCH] pinctrl: pinctrl-msm.c: Cleaning up if unsigned is less than zero

2014-07-07 Thread Linus Walleij
On Thu, Jun 26, 2014 at 1:31 PM, Rickard Strandqvist wrote: > Remove checking if a unsigned is less than zero > > This was found using a static code analysis program called cppcheck. > > Signed-off-by: Rickard Strandqvist (...) > - if (WARN_ON(g->mux_bit < 0)) > + if

Re: [PATCH -mm 0/8] memcg: reparent kmem on css offline

2014-07-07 Thread Vladimir Davydov
Hi Johannes, On Mon, Jul 07, 2014 at 10:25:06AM -0400, Johannes Weiner wrote: > Hi Vladimir, > > On Mon, Jul 07, 2014 at 04:00:05PM +0400, Vladimir Davydov wrote: > > Hi, > > > > This patch set introduces re-parenting of kmem charges on memcg css > > offline. The idea lying behind it is very

Re: [PATCH] pinctrl: pinctrl-imx1-core.c: Cleaning up if unsigned is less than zero

2014-07-07 Thread Linus Walleij
On Thu, Jun 26, 2014 at 1:29 PM, Rickard Strandqvist wrote: > Remove checking if a unsigned is less than zero > > This was found using a static code analysis program called cppcheck. > > Signed-off-by: Rickard Strandqvist Patch applied. Thanks! Yours, Linus Walleij -- To unsubscribe from this

Re: [PATCH] pinctrl: pinctrl-imx.c: Cleaning up if unsigned is less than zero

2014-07-07 Thread Linus Walleij
On Thu, Jun 26, 2014 at 1:28 PM, Rickard Strandqvist wrote: > Remove checking if a unsigned is less than zero > > This was found using a static code analysis program called cppcheck. > > Signed-off-by: Rickard Strandqvist Patch applied. Thanks! Yours, Linus Walleij -- To unsubscribe from this

Re: [PATCH] pinctrl: pinctrl-at91.c: Cleaning up if unsigned is less than zero

2014-07-07 Thread Linus Walleij
On Thu, Jun 26, 2014 at 1:26 PM, Rickard Strandqvist wrote: > Remove checking if a unsigned is less than zero > > This was found using a static code analysis program called cppcheck. > > Signed-off-by: Rickard Strandqvist Patch applied. Thanks! Yours, Linus Walleij -- To unsubscribe from this

Re: [PATCH 05/11] qspinlock: Optimize for smaller NR_CPUS

2014-07-07 Thread Peter Zijlstra
On Mon, Jul 07, 2014 at 05:08:17PM +0200, Paolo Bonzini wrote: > Il 07/07/2014 16:35, Peter Zijlstra ha scritto: > >On Wed, Jun 18, 2014 at 01:39:52PM +0200, Paolo Bonzini wrote: > >>Il 15/06/2014 14:47, Peter Zijlstra ha scritto: > >>> > >>>- for (;;) { > >>>- new = (val &

Re: [alsa-devel] [PATCH] ASoC: sgtl5000: Use devm_ functions

2014-07-07 Thread Lars-Peter Clausen
On 07/07/2014 05:23 PM, Julia Lawall wrote: On Mon, 7 Jul 2014, Fabio Estevam wrote: On Mon, Jul 7, 2014 at 11:58 AM, Julia Lawall wrote: Nevertheless, there is already a call to devm_regulator_bulk_get in sgtl5000_enable_regulators which calls sgtl5000_replace_vddd_with_ldo which calls

Re: [PATCH] ARM: EXYNOS: add EXYNOS3250 PMU support

2014-07-07 Thread Bartlomiej Zolnierkiewicz
this patch be applied for v3.17 please? [ It still applies fine to next-20140707. ] Best regards, -- Bartlomiej Zolnierkiewicz Samsung R Institute Poland Samsung Electronics -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger

Re: [PATCH] pinctrl: st: add IRQCHIP_SKIP_SET_WAKE flag

2014-07-07 Thread Linus Walleij
On Wed, Jun 25, 2014 at 5:49 PM, Patrice CHOTARD wrote: > From: David PARIS > > no .irq_set_wake API is available for pinctrl-st driver. > Add the IRQCHIP_SKIP_SET_WAKE flag to inform irq handler > not to call this API. > > Signed-off-by: David Paris Patch applied - had to rebase it,

Re: [Intel-gfx] Linux 3.16-rc2

2014-07-07 Thread Jiri Kosina
On Mon, 7 Jul 2014, Daniel Vetter wrote: > > this patch on top of v3.16-rc3-62-gd92a333 makes the resume from ram > > regression go away on my machine: > > Hm, we could conditionalize this hack on IS_G4X ... Chris, thoughts? For the record, commenting out the code in stop_ring() the way Thomas

Re: [PATCH] HID: cp2112: add I2C mode

2014-07-07 Thread Antonio Borneo
On Mon, Jul 7, 2014 at 9:57 PM, Benjamin Tissoires wrote: > Hi Antonio, > > On Sun, Jun 29, 2014 at 2:14 AM, Antonio Borneo > wrote: >> cp2112 supports single I2C read/write transactions. >> It can't combine I2C transactions. >> >> Add master_xfer, using similar code flow as for smbus_xfer. > >

Re: [PATCH 1/1] pinctrl: bcm281xx: Staticize bcm281xx_pinctrl_probe

2014-07-07 Thread Linus Walleij
On Mon, Jun 23, 2014 at 1:38 PM, Sachin Kamat wrote: > bcm281xx_pinctrl_probe is local to this file. Make it static. > > Signed-off-by: Sachin Kamat Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH v10 5/7] s390: add pmd_[dirty|mkclean] for THP

2014-07-07 Thread Gerald Schaefer
On Mon, 7 Jul 2014 09:53:56 +0900 Minchan Kim wrote: > MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent > overwrite of the contents since MADV_FREE syscall is called for > THP page but for s390 pmds only referenced bit is available > because there is no free bit left in the pmd

Re: [PATCH V8 0/9] PCI: Add SPEAr13xx PCie support

2014-07-07 Thread Bartlomiej Zolnierkiewicz
Hi Arnd, Any update on status of this patchset? Is it OK for it to go through arm-soc tree or should it be splitted into separate parts which would go through pci/phy/arm-soc trees? [ The patchset applies fine to next-20140707 after fixing trivial reject in drivers/pci/host/Makefile in patch

Re: [PATCH] gpio: rcar: clamp returned value to [0,1]

2014-07-07 Thread Linus Walleij
On Tue, Jun 24, 2014 at 4:19 AM, Jürg Billeter wrote: > While it will be clamped to bool by gpiolib, let's make this sane > in the driver as well. > > Signed-off-by: Jürg Billeter Patch obviously correct to applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line

[PATCH 0/5] Add a driver for the atmel ram controller

2014-07-07 Thread Alexandre Belloni
The atmel ram controller needs one or more clocks to work. For now the CLK_IGNORE_UNUSED flag is used on those clocks. This patch set introduce a driver that will take care of taking those clocks. The final goal is also to move the ioremap done in mach-at91 to that driver with a proper power

Re: [PATCH 10/11] qspinlock: Paravirt support

2014-07-07 Thread Peter Zijlstra
On Fri, Jun 20, 2014 at 09:46:08AM -0400, Konrad Rzeszutek Wilk wrote: > I dug in the code and I have some comments about it, but before > I post them I was wondering if you have any plans to run any performance > tests against the PV ticketlock with normal and over-committed scenarios? I can

[PATCH 4/5] ARM: at91/dt: at91sam9: use ddrck in ramc

2014-07-07 Thread Alexandre Belloni
Make the ram controller driver take the ddrck clock for at91sam9n12 and at91sam9x5. For at91sam9g45, use mck instead. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9n12.dtsi | 2 ++ arch/arm/boot/dts/at91sam9x5.dtsi | 2 ++ 2 files changed, 4 insertions(+) diff --git

Re: Re: [PATCH] fix fanotify_mark() breakage on big endian 32bit kernel

2014-07-07 Thread Heiko Carstens
On Mon, Jul 07, 2014 at 03:54:37PM +0200, Helge Deller wrote: > Hi Heiko, > > So for sys_fanotify_mark everything is fine on s390, and probably most other > > architectures as well. Having a 64 bit syscall parameter indeed does work, > > if all the architecture specific details have been correctly

[PATCH v2 09/10] staging: rtl8192e: use %*pEn to escape buffer

2014-07-07 Thread Andy Shevchenko
Let's use kernel's native specifier to escape a buffer. Signed-off-by: Andy Shevchenko --- drivers/staging/rtl8192e/rtllib.h | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index

[PATCH 3/5] ARM: at91/dt: sama5d3: define mpddr clock and ramc clocks

2014-07-07 Thread Alexandre Belloni
Define the available clock for mprddr and take both mpddr_clk and ddrck in the ram controller driver. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/sama5d3.dtsi | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sama5d3.dtsi

Re: [PATCH 11/11] qspinlock, kvm: Add paravirt support

2014-07-07 Thread Peter Zijlstra
On Sun, Jun 22, 2014 at 10:06:18PM +0530, Raghavendra K T wrote: > On 06/15/2014 06:17 PM, Peter Zijlstra wrote: > >Signed-off-by: Peter Zijlstra > >--- > [...] > >+ > >+void kvm_wait(int *ptr, int val) > >+{ > >+unsigned long flags; > >+ > >+if (in_nmi()) > >+return; > >+ > >+

[PATCH v2 00/10] lib: introduce string_escape_mem an %*pE specifier

2014-07-07 Thread Andy Shevchenko
The introduced function is a kind of opposite to string_unescape. We have several users of such functionality each of them created custom implementation. The series contains clean up of test suite, adding new call, and switching few users to use it via %*pE specifier. Test suite covers all of

[PATCH v2 02/10] lib / string_helpers: refactoring the test suite

2014-07-07 Thread Andy Shevchenko
This patch prepares test suite for a following update. It introduces test_string_check_buf() helper which checks the result and dumps an error. Signed-off-by: Andy Shevchenko --- lib/test-string_helpers.c | 39 +++ 1 file changed, 27 insertions(+), 12

[PATCH v2 07/10] lib80211: remove unused print_ssid()

2014-07-07 Thread Andy Shevchenko
In kernel we have %*pE specifier to print an escaped buffer. All users now switched to that approach. This fixes a bug as well. The current implementation wrongly prints octal numbers: only two first digits are used in case when 3 are required and the rest of the string ends up cut off.

[PATCH v2 10/10] staging: rtl8192u: use %*pEn to escape buffer

2014-07-07 Thread Andy Shevchenko
Let's use kernel's native specifier to escape a buffer. Signed-off-by: Andy Shevchenko --- drivers/staging/rtl8192u/ieee80211/ieee80211.h | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h

Re: [PATCH -mm 2/8] memcg: keep all children of each root cache on a list

2014-07-07 Thread Christoph Lameter
On Mon, 7 Jul 2014, Vladimir Davydov wrote: > diff --git a/mm/slab_common.c b/mm/slab_common.c > index d31c4bacc6a2..95a8f772b0d1 100644 > --- a/mm/slab_common.c > +++ b/mm/slab_common.c > @@ -294,8 +294,12 @@ struct kmem_cache *memcg_create_kmem_cache(struct > mem_cgroup *memcg, > if

[PATCH v2 08/10] staging: wlan-ng: use %*pEhp to print SN

2014-07-07 Thread Andy Shevchenko
This is a generic specifier to print an escaped buffer by given criteria. Let's use it instead of custom approach. Signed-off-by: Andy Shevchenko --- drivers/staging/wlan-ng/prism2sta.c | 28 ++-- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git

[PATCH 1/5] memory: add a driver for atmel ram controllers

2014-07-07 Thread Alexandre Belloni
Atmel SoCs have one or multiple RAM controllers that need one or multiple clocks to run. This driver handle those clocks. Signed-off-by: Alexandre Belloni --- .../devicetree/bindings/arm/atmel-at91.txt | 1 + drivers/memory/Kconfig | 8 ++

[PATCH v2 06/10] wireless: ipw2x00: print SSID via %*pE

2014-07-07 Thread Andy Shevchenko
Instead of custom approach this allows to print escaped strings via recently added kernel extension: %*pE. Signed-off-by: Andy Shevchenko --- drivers/net/wireless/ipw2x00/ipw2100.c | 22 +-- drivers/net/wireless/ipw2x00/ipw2200.c | 270 ++-

Re: [alsa-devel] [PATCH] ASoC: sgtl5000: Use devm_ functions

2014-07-07 Thread Julia Lawall
On Mon, 7 Jul 2014, Fabio Estevam wrote: > On Mon, Jul 7, 2014 at 11:58 AM, Julia Lawall wrote: > > > Nevertheless, there is already a call to devm_regulator_bulk_get in > > sgtl5000_enable_regulators which calls sgtl5000_replace_vddd_with_ldo > > which calls ldo_regulator_register. That call

Re: [PATCH v2 1/2] gpio: Add driver for Zynq GPIO controller

2014-07-07 Thread Baruch Siach
Hi Linux, On Mon, Jul 07, 2014 at 04:51:56PM +0200, Linus Walleij wrote: > On Wed, Jun 18, 2014 at 5:36 PM, Sören Brinkmann > wrote: > > The first is, how is userspace supposed to find the correct offset for a > > GPIO pin. > > The sysfs interface to GPIO is *NOT* *GOOD* this is universally >

[PATCH v2 04/10] lib/vsprintf: add %*pE[achnops] format specifier

2014-07-07 Thread Andy Shevchenko
This allows user to print a given buffer as esaped string. The rules applied accordingly to the mix of the flags provided by additional format letters. For example, if the given buffer: 1b 62 20 5c 43 07 22 90 0d 5d The result strings could be: %*pE"\eb \C\a"\220\r]"

[PATCH 5/5] clk: at91: remove the useless CLK_IGNORE_UNUSED flag

2014-07-07 Thread Alexandre Belloni
The CLK_IGNORE_UNUSED flag was added on all the system clocks because of the ddrck. Now that it is handled by the ram controller driver, we can drop it. Signed-off-by: Alexandre Belloni --- drivers/clk/at91/clk-system.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git

[PATCH v2 01/10] lib / string_helpers: move documentation to c-file

2014-07-07 Thread Andy Shevchenko
The documentation of API belongs to c-file. This patch moves it accordingly. There is no functional change. Signed-off-by: Andy Shevchenko --- include/linux/string_helpers.h | 34 -- lib/string_helpers.c | 38 ++ 2

[PATCH v2 05/10] wireless: libertas: print esaped string via %*pE

2014-07-07 Thread Andy Shevchenko
Instead of custom approach this allows to print escaped strings via recently added kernel extension: %*pE. Signed-off-by: Andy Shevchenko --- drivers/net/wireless/libertas/cfg.c | 8 ++-- drivers/net/wireless/libertas/mesh.c | 7 +++ 2 files changed, 5 insertions(+), 10 deletions(-)

[PATCH v2 03/10] lib / string_helpers: introduce string_escape_mem()

2014-07-07 Thread Andy Shevchenko
This is almost the opposite function to string_unescape(). Nevertheless it handles \0 and could be used for any byte buffer. The documentation is supplied together with the function prototype. The test cases covers most of the scenarios and would be expanded later on. Signed-off-by: Andy

Re: [alsa-devel] [PATCH] ASoC: sgtl5000: Use devm_ functions

2014-07-07 Thread Fabio Estevam
On Mon, Jul 7, 2014 at 11:58 AM, Julia Lawall wrote: > Nevertheless, there is already a call to devm_regulator_bulk_get in > sgtl5000_enable_regulators which calls sgtl5000_replace_vddd_with_ldo > which calls ldo_regulator_register. That call was introduced by > > commit

Re: [PATCH 10/11] qspinlock: Paravirt support

2014-07-07 Thread Peter Zijlstra
On Wed, Jun 18, 2014 at 02:03:12PM +0200, Paolo Bonzini wrote: > Il 17/06/2014 00:08, Waiman Long ha scritto: > >>+void __pv_queue_unlock(struct qspinlock *lock) > >>+{ > >>+ int val = atomic_read(>val); > >>+ > >>+ native_queue_unlock(lock); > >>+ > >>+ if (val & _Q_LOCKED_SLOW) > >>+

Re: [PATCH 10/11] qspinlock: Paravirt support

2014-07-07 Thread Peter Zijlstra
On Mon, Jun 16, 2014 at 06:08:21PM -0400, Waiman Long wrote: > On 06/15/2014 08:47 AM, Peter Zijlstra wrote: > >+struct pv_node { > >+struct mcs_spinlock mcs; > >+struct mcs_spinlock __offset[3]; > >+int cpu, head; > >+}; > > I am wondering why you need the separate cpu and

Re: [PATCH 03/10] mm/page_alloc: handle page on pcp correctly if it's pageblock is isolated

2014-07-07 Thread Vlastimil Babka
On 07/04/2014 09:57 AM, Joonsoo Kim wrote: If pageblock of page on pcp are isolated now, we should free it to isolate buddy list to prevent future allocation on it. But current code doesn't do this. Moreover, there is a freepage counting problem on current code. Although pageblock of page on

Re: perf/events/core: Potential race in list_del_event

2014-07-07 Thread Dmitry Vyukov
ping On Wed, Jun 18, 2014 at 5:07 PM, Alexey Preobrazhensky wrote: > Hi, > > I’m working on AddressSanitizer[1] -- a tool that detects > use-after-free and out-of-bounds bugs in kernel. > > We’ve encountered a heap-use-after-free in list_del_event() in linux > kernel 3.15+ (revision

[PATCH v10 6/7] dt-bindings: add documentation for Mediatek SoC

2014-07-07 Thread Matthias Brugger
This adds a DT binding documentation for the MT6589 SoC from Mediatek. Signed-off-by: Matthias Brugger Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/mediatek.txt |8 1 file changed, 8 insertions(+) create mode 100644

[PATCH 2/5] ARM: at91: select ATMEL_RAMC when using OF

2014-07-07 Thread Alexandre Belloni
When using device tree, select the Atmel RAM controller driver to handle its clocks. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 45b55e0f0db6..ad6b2b8b6afd

Re: [Intel-gfx] Linux 3.16-rc2

2014-07-07 Thread Daniel Vetter
On Wed, Jul 02, 2014 at 06:18:41PM +0200, Thomas Meyer wrote: > Am Montag, den 30.06.2014, 11:09 +0100 schrieb Chris Wilson: > > On Mon, Jun 30, 2014 at 12:02:20PM +0200, Pavel Machek wrote: > > > On Tue 2014-06-24 13:27:37, Chris Wilson wrote: > > > > On Tue, Jun 24, 2014 at 02:24:30PM +0200,

[PATCH] usb: gadget: fix eem_wrap cloned skb logic

2014-07-07 Thread Nathan Sullivan
Even if the skb is cloned, we still need a ZLP or USB will stall. Signed-off-by: Nathan Sullivan Acked-by: Brad Mouring --- drivers/usb/gadget/f_eem.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/drivers/usb/gadget/f_eem.c

[PATCH v10 2/7] clocksource: Add support for the Mediatek SoCs

2014-07-07 Thread Matthias Brugger
This patch adds a clock source and clock event for the timer found on the Mediatek SoCs. The Mediatek General Purpose Timer block provides five 32 bit timers and one 64 bit timer. Two 32 bit timers are used by this driver: TIMER1: clock events supporting periodic and oneshot events TIMER2: clock

[PATCH v10 7/7] arm: mediatek: add dts for Aquaris5 mobile phone

2014-07-07 Thread Matthias Brugger
The Aquaris5 is a mobile phone based on the MT6589 SoC. Signed-off-by: Matthias Brugger --- arch/arm/boot/dts/mt6589-aquaris5.dts | 25 + 1 file changed, 25 insertions(+) create mode 100644 arch/arm/boot/dts/mt6589-aquaris5.dts diff --git

[PATCH v10 5/7] arm: add basic support for Mediatek MT6589 boards

2014-07-07 Thread Matthias Brugger
This adds a generic devicetree board file and a dtsi for boards based on MT6589 SoCs from Mediatek. Apart from the generic parts (gic, clocks) the only component currently supported are the timers. Signed-off-by: Matthias Brugger --- arch/arm/Kconfig |2 +

[PATCH v10 1/7] of: Provide function to request and map memory

2014-07-07 Thread Matthias Brugger
A call to of_iomap does not request the memory region. This patch adds the function of_io_request_and_map which requests the memory region before mapping it. Signed-off-by: Matthias Brugger Suggested-by: Thomas Gleixner Suggested-by: Rob Herring --- drivers/of/address.c | 36

[PATCH 2/4] pinctrl: qcom: Add documentation for pinctrl-qpnp binding

2014-07-07 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" DT binding documentation for qcom,pm8941-pinctrl and qcom,pm8841-pinctrl drivers. Signed-off-by: Ivan T. Ivanov --- .../bindings/pinctrl/qcom,qpnp-pinctrl.txt | 78 ++ 1 file changed, 78 insertions(+) create mode 100644

[PATCH 3/4] pinctrl: qcom: Add PM8941 and PM8941 pinctrl drivers

2014-07-07 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Add new pinctrl driver for GPIO and MPP subfunctions found in Qualcomm PMIC chips. Signed-off-by: Ivan T. Ivanov --- drivers/pinctrl/Kconfig | 17 +++ drivers/pinctrl/Makefile | 2 + drivers/pinctrl/pinctrl-pm8841.c | 84

[PATCH v10 0/7] arm: Add basic support for Mediatek Cortex-A7 SoCs

2014-07-07 Thread Matthias Brugger
Tenth round for the Mediatek basic support patches. The main change is the return of IOMEM_ERR_PTR in case of error in of_io_request_and_map. The call follows the same logic as devm_ioremap_resource. For the changes of the of_io_request_and_map patch I deleted the ack from Grant Likely, as the

[PATCH v10 3/7] dt-bindings: add mtk-timer bindings

2014-07-07 Thread Matthias Brugger
Add binding documentation for the General Porpose Timer driver of the Mediatek SoCs. Signed-off-by: Matthias Brugger Acked-by: Sören Brinkmann Acked-by: Rob Herring --- .../bindings/timer/mediatek,mtk-timer.txt | 17 + 1 file changed, 17 insertions(+) create mode

[PATCH v10 4/7] vendor-prefixes: add prefix for Mediatek Inc.

2014-07-07 Thread Matthias Brugger
Signed-off-by: Matthias Brugger Acked-by: Rob Herring --- .../devicetree/bindings/vendor-prefixes.txt|1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index

[PATCH 1/4] pinctrl: qpnp: Qualcomm PMIC pin controller driver

2014-07-07 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" This is the pinctrl, pinmux, pinconf and gpiolib driver for the Qualcomm GPIO and MPP subfunction blocks found in the PMIC chips. Signed-off-by: Ivan T. Ivanov --- drivers/pinctrl/Kconfig| 10 + drivers/pinctrl/Makefile |1 +

[PATCH 0/4] New Qualcomm PMIC pin controller drivers

2014-07-07 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Hi, This set of patches adds pin control drivers for Multi-purpose pin (MPP) and General-purpose pin (GPIO) controllers found in Qualcomm PMIC chips. MPP's are enhanced GPIO's with analog circuits, which support following functions in addition to digital input/output:

[PATCH 4/4] ARM: dts: qcom: Add PM8941 and PM8841 pinctrl nodes

2014-07-07 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Add nodes for PM8941 and PM8841 GPIO and MPP subfunctions. Signed-off-by: Ivan T. Ivanov --- arch/arm/boot/dts/qcom-msm8974.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi

Re: [PATCH 05/11] qspinlock: Optimize for smaller NR_CPUS

2014-07-07 Thread Paolo Bonzini
Il 07/07/2014 16:35, Peter Zijlstra ha scritto: On Wed, Jun 18, 2014 at 01:39:52PM +0200, Paolo Bonzini wrote: Il 15/06/2014 14:47, Peter Zijlstra ha scritto: - for (;;) { - new = (val & ~_Q_PENDING_MASK) | _Q_LOCKED_VAL; - - old = atomic_cmpxchg(>val, val,

Re: [PATCH] ASoC: max98090: Fix build warning

2014-07-07 Thread Mark Brown
On Mon, Jul 07, 2014 at 03:18:19PM +0200, Thierry Reding wrote: > From: Thierry Reding > > The max98090_{suspend,resume}() functions are used for system sleep and > therefore need to be guarded by CONFIG_PM_SLEEP rather than CONFIG_PM. Applied, thanks. signature.asc Description: Digital

Re: [PATCH] HID: cp2112: fix gpio value in gpio_direction_output

2014-07-07 Thread Jiri Kosina
On Mon, 7 Jul 2014, Benjamin Tissoires wrote: > > CP2112 does not offer an atomic method to set both gpio > > direction and value. > > Also it does not permit to set gpio value before putting > > gpio in output. In fact, accordingly to Silicon Labs > > AN495, Rev. 0.2, cpt. 4.4, the HID report to

[PATCH] mmap_vmcore: skip non-ram pages reported by hypervisors

2014-07-07 Thread Vitaly Kuznetsov
we have a special check in read_vmcore() handler to check if the page was reported as ram or not by the hypervisor (pfn_is_ram()). However, when vmcore is read with mmap() no such check is performed. That can lead to unpredictable results, e.g. when running Xen PVHVM guest memcpy() after mmap() on

Re: [PATCH v2 00/18] AT91: cleanup of the reset and poweroff code

2014-07-07 Thread Alexandre Belloni
On 07/07/2014 at 16:25:13 +0200, Maxime Ripard wrote : > Hi, > > This patchset is an attempt to further cleanup mach-at91 by removing > code that can be put into a driver nowadays. > > This time, the target is the reset and poweroff code, that can now be > put in drivers/power/reset. > Apart

Re: [PATCH v2 04/18] AT91: Rework ramc mapping code

2014-07-07 Thread Alexandre Belloni
On 07/07/2014 at 16:25:17 +0200, Maxime Ripard wrote : > Adapt the ramc mapping code to handle multiple ram controllers in the DT. > > Signed-off-by: Maxime Ripard > --- > arch/arm/mach-at91/setup.c | 26 ++ > 1 file changed, 14 insertions(+), 12 deletions(-) > I

Re: [RFC PATCH 2/2] phy: core: the node pointer of PHY need not be the same as that of PHY provider

2014-07-07 Thread Lee Jones
On Mon, 07 Jul 2014, Kishon Vijay Abraham I wrote: > Hi, > > On Monday 07 July 2014 06:42 PM, Lee Jones wrote: > > On Fri, 04 Jul 2014, Kishon Vijay Abraham I wrote: > > > >> In case of multi-phy PHY providers, each PHY should be modeled as a sub > >> node of the PHY provider. Then each PHY

Re: [PATCH] pinctrl: st: Fix irqmux handler

2014-07-07 Thread Linus Walleij
On Fri, Jun 20, 2014 at 1:34 PM, Maxime COQUELIN wrote: > st_gpio_irqmux_handler() reads the status register to find out > which banks inside the controller have pending IRQs. > For each banks having pending IRQs, it calls the corresponding handler. > > Problem is that current code restricts the

Re: [RFC][PATCH] gpu:drm:i915:intel_detect_pch: back to check devfn instead of check class type

2014-07-07 Thread Paolo Bonzini
Il 07/07/2014 16:49, Daniel Vetter ha scritto: So the correct fix to forward intel gpus to guests is indeed to somehow fake the pch pci ids since the driver really needs them. Gross design, but that's how the hardware works. A way that could work for virtualization is this: if you find the

Re: [PATCH] ASoC: sgtl5000: Use devm_ functions

2014-07-07 Thread Julia Lawall
On Mon, 7 Jul 2014, Mark Brown wrote: > On Sun, Jul 06, 2014 at 12:38:00PM +0530, Himangi Saraogi wrote: > > > diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c > > index 249fadb..0efd6d6 100644 > > --- a/sound/soc/codecs/sgtl5000.c > > +++ b/sound/soc/codecs/sgtl5000.c > >

Re: [PATCH v2 03/18] AT91: G45: DT: Declare a second ram controller

2014-07-07 Thread Alexandre Belloni
Hi, On 07/07/2014 at 16:25:16 +0200, Maxime Ripard wrote : > The G45 has two identical ram controller, that are defined as a single one, > with two reg cells. > > The proper way to support such a case is to have two separate DT nodes. > This is also the case for the sam9263, please fix it

Re: [GIT PULL] LinusW - Immutable branch between MFD and GPIO

2014-07-07 Thread Linus Walleij
On Tue, Jun 17, 2014 at 5:07 PM, Lee Jones wrote: > The following changes since commit 7171511eaec5bf23fb06078f59784a3a0626b38f: > > Linux 3.16-rc1 (2014-06-15 17:45:28 -1000) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git >

[GIT PULL] Thermal Management updates for v3.16-rc5

2014-07-07 Thread Zhang Rui
Please pull from the git repository at git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git for-rc to receive Thermal management updates for v3.16-rc5 with top-most commit 4adccf9fc84aaf5e4d18442e163d549e0b603075: tmon: set umask to a reasonable value (2014-07-01 22:00:51 +0800)

Re: [ANNOUNCE] 3.4.10-rt7

2014-07-07 Thread Mike Galbraith
On Mon, 2014-07-07 at 14:47 +0200, Thomas Gleixner wrote: > Dear RT Folks, > > I'm pleased to announce the 3.14.10-rt7 release. 3.14.10-rt6 is a not > announced update to 3.14.10 without any RT changes aside of resolving > the patch conflicts. > > Changes since 3.14.10-rt6: > >* Do not

Re: linux-next: Tree for Jun 19 (drm/i915)

2014-07-07 Thread Daniel Vetter
On Wed, Jun 25, 2014 at 01:01:36AM +0200, Rafael J. Wysocki wrote: > On Tuesday, June 24, 2014 02:43:02 PM Jani Nikula wrote: > > On Thu, 19 Jun 2014, Randy Dunlap wrote: > > > On 06/18/14 23:16, Stephen Rothwell wrote: > > >> Hi all, > > >> > > >> The powerpc allyesconfig is again broken more

Re: [PATCH v2 2/2] devicetree: Add Zynq GPIO devicetree bindings documentation

2014-07-07 Thread Linus Walleij
On Wed, Jun 18, 2014 at 1:39 PM, Harini Katakam wrote: > From: Harini Katakam > > Add gpio-zynq bindings documentation. > > Signed-off-by: Harini Katakam > Signed-off-by: Soren Brinkmann > --- > > v2 changes: > Improve description. (...) > +- #gpio-cells : Should be two. First cell

<    3   4   5   6   7   8   9   10   11   12   >