[PATCH 3/6] metag: move setup.c exports out of metag_ksyms.c

2013-02-15 Thread James Hogan
It's less error prone to have function symbols exported immediately after the function rather than in metag_ksyms.c. Move each EXPORT_SYMBOL in metag_ksyms.c for symbols defined in setup.c into setup.c Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/kernel/metag_ksyms.c |5

[PATCH 2/6] metag: move kick.c exports out of metag_ksyms.c

2013-02-15 Thread James Hogan
It's less error prone to have function symbols exported immediately after the function rather than in metag_ksyms.c. Move each EXPORT_SYMBOL in metag_ksyms.c for symbols defined in kick.c into kick.c Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/kernel/kick.c|3 +++

[PATCH 5/6] metag: move mm/init.c exports out of metag_ksyms.c

2013-02-15 Thread James Hogan
It's less error prone to have function symbols exported immediately after the function rather than in metag_ksyms.c. Move each EXPORT_SYMBOL in metag_ksyms.c for symbols defined in mm/init.c into mm/init.c. Signed-off-by: James Hogan james.ho...@imgtec.com --- arch/metag/kernel/metag_ksyms.c |

Re3: [PATCH] NET/PHY: Eliminate the algorithm of forced ethernet speed reduction

2013-02-15 Thread Kirill Kapranov
NET/PHY: Eliminate the forced speed reduction algorithm. In case of the fixed speed set up for NIC (e.g. ethtool -s eth0 autoneg off speed 100 duplex full) with ethernet cable plugged off, mentioned algorithm slows down NIC speed, so the further hooking up gives

[PATCH] staging/zcache fixed some checkpatch issues

2013-02-15 Thread Robert Berger
tmem.c:76: ERROR: foo*bar should be foo *bar zcache-main.c:2057: WARNING: quoted string split across lines zcache-main.c:2059: WARNING: Prefer pr_warn(... to pr_warning(... zcache-main.c:2068: WARNING: quoted string split across lines zcache-main.c:2070: WARNING: Prefer pr_warn(... to

[tip:timers/core] posix-cpu-timers: Fix nanosleep task_struct leak

2013-02-15 Thread tip-bot for Stanislaw Gruszka
Commit-ID: e6c42c295e071dd74a66b5a9fcf4f44049888ed8 Gitweb: http://git.kernel.org/tip/e6c42c295e071dd74a66b5a9fcf4f44049888ed8 Author: Stanislaw Gruszka sgrus...@redhat.com AuthorDate: Fri, 15 Feb 2013 11:08:11 +0100 Committer: Thomas Gleixner t...@linutronix.de CommitDate: Fri, 15 Feb

Re: [PATCH] staging/panel: Mark local functions as static (fix smatch warnings)

2013-02-15 Thread David Howells
Peter Huewe peterhu...@gmx.de wrote: +static char old_keypad_profile[][4][9] = { {S0, Left\n, Left\n, }, {S1, Down\n, Down\n, }, {S2, Up\n, Up\n, }, Things like this should likely be const also. There are several here. -void panel_lcd_print(char *s) +static void

Re: linux-next: Tree for Feb 15

2013-02-15 Thread Sedat Dilek
On Fri, Feb 15, 2013 at 8:42 AM, Stephen Rothwell s...@canb.auug.org.au wrote: Hi all, News: Yesterday was the 5th anniversary of linux-next! I can't believe I am still doing this :-) So 5-times a happy Quentin Valentino day! Changes since 20130214: New tree: drm-intel More black

Re: [PATCH] mm: fadvise: Drain all pagevecs if POSIX_FADV_DONTNEED fails to discard all pages

2013-02-15 Thread Michal Hocko
On Thu 14-02-13 12:39:26, Andrew Morton wrote: On Thu, 14 Feb 2013 12:03:49 + Mel Gorman mgor...@suse.de wrote: Rob van der Heij reported the following (paraphrased) on private mail. The scenario is that I want to avoid backups to fill up the page cache and purge stuff

Re: [PATCH 8/9] [HACK] ARM: imx: work around v7_cpu_resume link error

2013-02-15 Thread Arnd Bergmann
On Thursday 14 February 2013, Stephen Warren wrote: On 02/14/2013 03:47 PM, Arnd Bergmann wrote: Patch c08e20d24 arm: Add v7_invalidate_l1 to cache-v7.S moves the v7_invalidate_l1 symbol out of imx/headsmp.S, which seems to cause a link error because it is now too far away from

Re: usb_wwan_write() called while device still being resumed

2013-02-15 Thread Bjørn Mork
Alex Courbot acour...@nvidia.com writes: Unfortunately it does not, and fails the same way. On the other hand, I do not see the issue when doing the following: diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c index e4fad5e..1490029 100644 ---

[PATCH] i2c-designware: Interrupt sharing and SDA hold time

2013-02-15 Thread Christian Ruppert
This patch implements interrupt sharing and SDA hold time configuration in the designware i2c driver. Both functions are enabled through platform data or device tree. Tested with Linux-3.8rc4 (Synopsys ARC port, see

Re: [PATCH 8/9] [HACK] ARM: imx: work around v7_cpu_resume link error

2013-02-15 Thread Russell King - ARM Linux
On Thu, Feb 14, 2013 at 11:47:50PM +0100, Arnd Bergmann wrote: Patch c08e20d24 arm: Add v7_invalidate_l1 to cache-v7.S moves the v7_invalidate_l1 symbol out of imx/headsmp.S, which seems to cause a link error because it is now too far away from v7_cpu_resume when building an allyesconfig

Re: [PATCH 8/9] [HACK] ARM: imx: work around v7_cpu_resume link error

2013-02-15 Thread Russell King - ARM Linux
On Fri, Feb 15, 2013 at 11:05:14AM +, Arnd Bergmann wrote: $ size obj-tmp/vmlinux -A obj-tmp/vmlinux : section size addr .head.text504 3221258240 .text32707336 3221258752 .text.head 8 3253966088

Re: [PATCH 2/5] lockdep: check that no locks held at freeze time

2013-02-15 Thread Ingo Molnar
* Mandeep Singh Baines m...@chromium.org wrote: --- a/kernel/lockdep.c +++ b/kernel/lockdep.c @@ -4091,10 +4091,10 @@ static void print_held_locks_bug(struct task_struct *curr) return; printk(\n); - printk(=\n); -

Re: Query related to MSR(Magnetic Stripe Reader) Device Driver

2013-02-15 Thread Priyaranjan Das
Hi Greg, On Thu, Jan 31, 2013 at 11:09 AM, Priyaranjan Das priyaranjan456...@gmail.com wrote: Hi Greg, On Tue, Jan 29, 2013 at 7:03 PM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Jan 28, 2013 at 03:25:08PM +0530, Priyaranjan Das wrote: Hi Greg, On Tue, Jan 22, 2013 at 10:06 PM, Greg

[PATCH] spinlock/debugging: Print out lock name when available

2013-02-15 Thread Ingo Molnar
* Linus Torvalds torva...@linux-foundation.org wrote: On Wed, Feb 13, 2013 at 3:10 AM, Ingo Molnar mi...@kernel.org wrote: Setting up Logical Volume Management: [ 13.14] BUG: spinlock lockup suspected on CPU#1, lvm.static/139 [ 13.14] BUG: spinlock lockup suspected on

[-rc7 regression] Buggy commit: mm: use aligned zone start for pfn_to_bitidx calculation

2013-02-15 Thread Ingo Molnar
[ Greg: -stable was Cc:-ed for this potentially buggy commit. ] * Yinghai Lu ying...@kernel.org wrote: On Thu, Feb 14, 2013 at 7:08 AM, Ingo Molnar mi...@kernel.org wrote: these three: 10d73e655cef mm: bootmem: fix free_all_bootmem_core() with odd bitmap alignment c060f943d092 mm:

Re: [PATCH] i2c-designware: Interrupt sharing and SDA hold time

2013-02-15 Thread Mika Westerberg
On Fri, Feb 15, 2013 at 11:11:50AM +0100, Christian Ruppert wrote: This patch implements interrupt sharing and SDA hold time configuration in the designware i2c driver. Both functions are enabled through platform data or device tree. Tested with Linux-3.8rc4 (Synopsys ARC port, see

Re: uhid: broken interface: 32/64-bit compatibility

2013-02-15 Thread David Herrmann
Hi Kirill On Fri, Feb 15, 2013 at 12:29 PM, Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: Hi David and all, There's claim in uhid.h that the interface is compatible even between architectures. But it obviously is not true: struct uhid_create_req contains pointer which breaks

Re: [PATCH 2/3] sched: Move idle_balance() to post_schedule

2013-02-15 Thread Peter Zijlstra
On Wed, 2013-02-13 at 14:05 -0500, Steven Rostedt wrote: That is, the CPU is about to go idle, thus a load balance is done, and perhaps a task is pulled to the current queue. To do this, rq locks and such need to be grabbed across CPUs. Right, grabbing the rq locks and all isn't my main

Re: [PATCH 10/11] ARM: s3c: i2c: add platform_device forward declaration

2013-02-15 Thread Wolfram Sang
On Thu, Feb 14, 2013 at 02:49:26PM +0100, Arnd Bergmann wrote: A recent cleanup to the mach-osiris.c file is causing build errors because the i2c-s3c2410.h header file is included before we see the definition for platform_device. The fix is to make the header file more robust against inclusion

Re: [PATCH 08/33] nohz: Assign timekeeping duty to a non-full-nohz CPU

2013-02-15 Thread Borislav Petkov
On Tue, Jan 08, 2013 at 03:08:08AM +0100, Frederic Weisbecker wrote: This way the full nohz CPUs can safely run with the tick stopped with a guarantee that somebody else is taking care of the jiffies and gtod progression. NOTE: this doesn't handle CPU hotplug. Also we could use something

Re: uhid: broken interface: 32/64-bit compatibility

2013-02-15 Thread Johan Hedberg
Hi David, On Fri, Feb 15, 2013, David Herrmann wrote: On Fri, Feb 15, 2013 at 12:29 PM, Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: Hi David and all, There's claim in uhid.h that the interface is compatible even between architectures. But it obviously is not true: struct

Re: [RFC] sched: The removal of idle_balance()

2013-02-15 Thread Peter Zijlstra
On Fri, 2013-02-15 at 08:26 +0100, Mike Galbraith wrote: (the throttle is supposed to keep idle_balance() from doing severe damage, that may want a peek/tweak) Right, as it stands idle_balance() can do a lot of work and if the avg idle time is less than the time we spend looking for a

Re: [PATCH 3/9] clk: sunxi: remove stale Makefile entry

2013-02-15 Thread Arnd Bergmann
On Friday 15 February 2013, Mike Turquette wrote: Quoting Arnd Bergmann (2013-02-14 14:26:52) Patch 85a18198 clk: sunxi: Use common of_clk_init() function removed the clk-sunxi.c file but left the Makefile entry, which causes a build error in multi_v7_defconfig: make[4]: *** No rule to

[PATCH v2] staging/comedi: Remove if(); statement without effect

2013-02-15 Thread Peter Huewe
Smatch warns about: staging/comedi/drivers/cb_pcidas64.c:3304 prep_ao_dma() warn: if(); So the check currently does nothing and can be removed, as indicated by Ian. Signed-off-by: Peter Huewe peterhu...@gmx.de --- v1 was staging/comedi: Fix if(); by adding proper code which was unfortunately

Re: [RFC] sched: The removal of idle_balance()

2013-02-15 Thread Peter Zijlstra
On Fri, 2013-02-15 at 08:26 +0100, Mike Galbraith wrote: (the throttle is supposed to keep idle_balance() from doing severe damage, that may want a peek/tweak) Right, as it stands idle_balance() can do a lot of work and if the avg idle time is less than the time we spend looking for a

Re: [PATCH] cpufreq/intel_pstate: Add kernel command line option disable intel_pstate.

2013-02-15 Thread Rafael J. Wysocki
On Friday, February 15, 2013 09:53:24 AM Viresh Kumar wrote: On Fri, Feb 15, 2013 at 12:08 AM, dirk.brande...@gmail.com wrote: From: Dirk Brandewie dirk.brande...@gmail.com When intel_pstate is configured into the kernel it will become the perferred scaling driver for processors that is

Re: [RFC] sched: The removal of idle_balance()

2013-02-15 Thread Mike Galbraith
On Fri, 2013-02-15 at 13:21 +0100, Peter Zijlstra wrote: On Fri, 2013-02-15 at 08:26 +0100, Mike Galbraith wrote: (the throttle is supposed to keep idle_balance() from doing severe damage, that may want a peek/tweak) Right, as it stands idle_balance() can do a lot of work and if the

[PATCH] regulator: max8925: Remove unused parameter from max8925_regulator_dt_init

2013-02-15 Thread Axel Lin
The info parameter is not used at all, remove it. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/max8925-regulator.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/max8925-regulator.c b/drivers/regulator/max8925-regulator.c index

Re: [patch v4 01/18] sched: set SD_PREFER_SIBLING on MC domain to reduce a domain level

2013-02-15 Thread Peter Zijlstra
On Wed, 2013-02-13 at 21:22 +0800, Alex Shi wrote: No, the flags set on MC/CPU domain, but is checked in their parents balancing, like in NUMA domain. Without the flag, will cause NUMA domain imbalance. like on my 2 sockets NHM EP: 3 of 4 tasks were assigned on socket 0(lcpu, 10, 12, 14)

[PATCH] ia64: rename cache_show to topology_cache_show

2013-02-15 Thread Michal Hocko
Fenguang Wu has reported the following compile time issue arch/ia64/kernel/topology.c:278:16: error: conflicting types for 'cache_show' include/linux/slab.h:224:5: note: previous declaration of 'cache_show' was here which has been introduced by 749c5415 (memcg: aggregate memcg cache values in

[PATCH v7 00/12] Tegra114 clockframework

2013-02-15 Thread Peter De Schrijver
This is the seventh version of the Tegra114 clockframework. It is based on the for-next branch of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra.git and http://www.spinics.net/lists/arm-kernel/msg220452.html. It has been boottested on Pluto. Changes from v6: * Remove

Re: [PATCH 3/9] ARM: omap2: include linux/errno.h in hwmod_reset

2013-02-15 Thread Arnd Bergmann
On Thursday 14 February 2013, Tony Lindgren wrote: * Arnd Bergmann a...@arndb.de [130214 14:51]: The newly created omap_hwmod_reset.c is missing an include of linux/errno.h in commit c02060d8 ARM: OMAP4+: AESS: enable internal auto-gating during initial setup. It still works in

[PATCH v7 01/12] clk: tegra: provide dummy cpu car ops

2013-02-15 Thread Peter De Schrijver
tegra_boot_secondary() relies on some of the car ops. This means having an uninitialized tegra_cpu_car_ops will lead to an early boot panic. Providing a dummy struct avoids this and makes adding Tegra114 clock support in a bisectable way a lot easier. Signed-off-by: Peter De Schrijver

[PATCH v7 02/12] clk: tegra: Refactor PLL programming code

2013-02-15 Thread Peter De Schrijver
Refactor the PLL programming code to make it useable by the new PLL types introduced by Tegra114. The following changes were done: * Split programming the PLL into updating m,n,p and updating cpcon * Move locking from _update_pll_cpcon() to clk_pll_set_rate() * Introduce _get_pll_mnp() helper *

Re: [PATCH 4/9] ARM: omap: add include guard for soc.h

2013-02-15 Thread Arnd Bergmann
On Thursday 14 February 2013, Tony Lindgren wrote: I left it out intentionally as these are private to mach-omap2, and I'd like to simplify the indirect includes there further. So I'd rather just remove the duplicate soc.h from drm.c. If people really think this should be applied, I have no

[PATCH v7 03/12] clk: tegra: Add TEGRA_PLL_BYPASS flag

2013-02-15 Thread Peter De Schrijver
Not all PLLs in Tegra114 have a bypass bit. Adapt the common code to only use this bit when available. Signed-off-by: Peter De Schrijver pdeschrij...@nvidia.com --- drivers/clk/tegra/clk-pll.c | 12 drivers/clk/tegra/clk.h |2 ++ 2 files changed, 10 insertions(+), 4

[PATCH v7 04/12] clk: tegra: Add PLL post divider table

2013-02-15 Thread Peter De Schrijver
Some PLLs in Tegra114 don't use a power of 2 mapping for the post divider. Introduce a table based approach and switch PLLU to it. Signed-off-by: Peter De Schrijver pdeschrij...@nvidia.com --- drivers/clk/tegra/clk-pll.c | 38 --

[PATCH v7 05/12] clk: tegra: Add new fields and PLL types for Tegra114

2013-02-15 Thread Peter De Schrijver
Tegra114 introduces new PLL types. This requires new clocktypes as well as some new fields in the pll structure. Signed-off-by: Peter De Schrijver pdeschrij...@nvidia.com --- drivers/clk/tegra/clk-pll.c | 836 +++ drivers/clk/tegra/clk.h | 48 +++ 2

[PATCH v2] staging/panel: Mark local functions/structs static and add const if applicable (fix sparse warnings)

2013-02-15 Thread Peter Huewe
sparse complains about the following functions: panel.c:188:1: warning: symbol 'logical_inputs' was not declared. Should it be static? panel.c:569:6: warning: symbol 'old_keypad_profile' was not declared. Should it be static? panel.c:580:6: warning: symbol 'new_keypad_profile' was not declared.

[PATCH v7 06/12] clk: tegra: Add flags to tegra_clk_periph()

2013-02-15 Thread Peter De Schrijver
We will need some tegra peripheral clocks with the CLK_IGNORE_UNUSED flag, most notably mselect, which is a bridge between AXI and most peripherals. Signed-off-by: Peter De Schrijver pdeschrij...@nvidia.com --- drivers/clk/tegra/clk-periph.c | 11 ++- drivers/clk/tegra/clk-tegra20.c |

Re: [Update][PATCH] ACPI / hotplug: Fix concurrency issues and memory leaks

2013-02-15 Thread Rafael J. Wysocki
On Thursday, February 14, 2013 05:28:02 PM Toshi Kani wrote: On Fri, 2013-02-15 at 01:23 +0100, Rafael J. Wysocki wrote: On Thursday, February 14, 2013 11:45:27 PM Moore, Robert wrote: -Original Message- From: Rafael J. Wysocki [mailto:r...@sisk.pl] Sent: Thursday,

[PATCH v7 07/12] clk: tegra: Workaround for Tegra114 MSENC problem

2013-02-15 Thread Peter De Schrijver
Workaround a hardware bug in MSENC during clock enable. Signed-off-by: Peter De Schrijver pdeschrij...@nvidia.com --- drivers/clk/tegra/clk-periph-gate.c |9 + drivers/clk/tegra/clk.h |2 ++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git

[PATCH v7 08/12] ARM: tegra: Define Tegra114 CAR binding

2013-02-15 Thread Peter De Schrijver
The device tree binding models Tegra114 CAR (Clock And Reset) as a single monolithic clock provider. Signed-off-by: Peter De Schrijver pdeschrij...@nvidia.com --- .../bindings/clock/nvidia,tegra114-car.txt | 316 1 files changed, 316 insertions(+), 0 deletions(-)

[PATCH EDAC 08/13] ghes_edac: add support for reporting errors via EDAC

2013-02-15 Thread Mauro Carvalho Chehab
Now that the EDAC core is capable of just forward the errors via the userspace API, add a report mechanism for the GHES errors. Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com --- drivers/edac/ghes_edac.c | 36 +++- include/linux/edac.h | 1 + 2 files

[PATCH 03/40] abx500-chargalg: Store the AB8500 MFD parent device for platform differentiation

2013-02-15 Thread Lee Jones
Any platform can be dynamically probed for model and version number provided the AB8500 MFD parent device pointer is available. This patch obtains that pointer and stores it in a locally controlled struct for later use. Signed-off-by: Lee Jones lee.jo...@linaro.org ---

[PATCH 10/40] ab8500-bm: Charge only mode fixes for the ab9540

2013-02-15 Thread Lee Jones
Fix for charging not getting enabled in charge only mode by external charger. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/power/ab8500_charger.c| 42 + drivers/power/abx500_chargalg.c | 14 ++

[PATCH 20/40] ab8500-bm: Add usb power path support

2013-02-15 Thread Lee Jones
AB8540 supports power path function in USB charging mode for fast power up with dead and weak battery, and it could extend the battery age. When USB charging starts, if the Vbattrue is below than SW cut off voltage, power path and pre-charge should be enabled. If Vbattrue is higher than SW cut

[PATCH 22/40] ab8500-bm: Add support for the new ab8540 platform

2013-02-15 Thread Lee Jones
Provide AB8540 platform specific information required to run the Battery Management subsystem on AB8540 based devices. For this to happen we see the introduction of separate platform specific data structures and a means in which to process them. Signed-off-by: Lee Jones lee.jo...@linaro.org ---

[PATCH v7 10/12] clk: tegra: devicetree match for nvidia,tegra114-car

2013-02-15 Thread Peter De Schrijver
Signed-off-by: Peter De Schrijver pdeschrij...@nvidia.com --- drivers/clk/tegra/clk.c |1 + drivers/clk/tegra/clk.h |7 +++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/clk/tegra/clk.c b/drivers/clk/tegra/clk.c index f6c141f..bc5a1f8 100644 ---

[PATCH 30/40] pm2301-charger: Removed unused code from PM2301 driver

2013-02-15 Thread Lee Jones
From: Rupesh Kumar rupesh.ku...@stericsson.com Some of the headers and defines accrued over time are no longer in use. Let's take the opportunity to remove a few of them. Signed-off-by: Rupesh Kumar rupesh.ku...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Marcus

[PATCH 34/40] pm2301-charger: Charging LED control for pm2301

2013-02-15 Thread Lee Jones
From: Rupesh Kumar rupesh.ku...@stericsson.com The LED Indicator feature allows indicating through a led when the PM2301 battery charging is active. SW shall not disable this LED. Signed-off-by: Rupesh Kumar rupesh.ku...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by:

[PATCH 37/40] pm2301-charger: Reference put missing after access

2013-02-15 Thread Lee Jones
From: Rupesh Kumar rupesh.ku...@stericsson.com Added missing pm_runtime_put_sync in read write. Signed-off-by: Rupesh Kumar rupesh.ku...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Sandeep TRIPATHY sandeep.tripa...@stericsson.com Reviewed-by: Philippe LANGLAIS

[PATCH 40/40] ab8500-charger: Do not use [delayed_]work_pending()

2013-02-15 Thread Lee Jones
There's no need to test whether a (delayed) work item is pending before queueing, flushing or cancelling it. Most uses are unnecessary and quite a few of them are buggy. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/power/ab8500_charger.c | 19 ++- 1 file changed,

[PATCH 39/40] ab8500-fg: Change current calculation

2013-02-15 Thread Lee Jones
From: lme00437 benoit.gauthier-no...@stericsson.com This patch updates the gas gauge constant for electric current calculation according to hardware specification. Signed-off-by: Benoit GAUTHIER benoit.gauthier-x...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Marcus

[PATCH v7 11/12] ARM: dt: Add references to tegra_car clocks

2013-02-15 Thread Peter De Schrijver
Add references to tegra_car clocks for the basic device nodes. Also remove the clock-frequency property of the serial node as the UART driver can now use the clock framework to obtain the frequency. Signed-off-by: Peter De Schrijver pdeschrij...@nvidia.com ---

[PATCH v7 12/12] clk: tegra: Remove forced clk_enable of uartd

2013-02-15 Thread Peter De Schrijver
The UART driver enables the console uart clock, so we don't need to do that anymore in this file. Signed-off-by: Peter De Schrijver pdeschrij...@nvidia.com --- drivers/clk/tegra/clk-tegra114.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH 38/40] abx500-chargalg: Add charging current step interface

2013-02-15 Thread Lee Jones
To prevent overheating, provide differnt steps of charging current interface to allow thermal mitigation. This will provide possibility to reduce gradually the charging current. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/power/abx500_chargalg.c | 231

[PATCH 36/40] pm2301-charger: Wake device on register access

2013-02-15 Thread Lee Jones
From: Rupesh Kumar rupesh.ku...@stericsson.com When USB Dedicated or Standard host chargers are plugged into the device, chargealg attempts to disable the PM2301 AC charger, However, disabling PM2301 was failing because of it being in runtime suepend mode LPN pin being low. Signed-off-by:

[PATCH 32/40] ab8500-charger: Remove duplicate code

2013-02-15 Thread Lee Jones
Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/power/ab8500_charger.c |8 drivers/power/ab8500_fg.c |1 - 2 files changed, 9 deletions(-) diff --git a/drivers/power/ab8500_charger.c b/drivers/power/ab8500_charger.c index 8530028..81c9615 100644 ---

[PATCH 33/40] pm2301-charger: lpn pin used only in C2C boards

2013-02-15 Thread Lee Jones
From: lme00437 benoit.gauthier-no...@stericsson.com This patch restricts use of LPN pin to C2C boards to avoid conflict on HSI for GPIO 60 use. Signed-off-by: Benoit GAUTHIER benoit.gauthier-x...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Mustapha BEN-ZOUBEIR

[PATCH 35/40] ab8500-bm: Trivially fix up some incorrect and out-of-date comments

2013-02-15 Thread Lee Jones
From: Marcus Cooper marcus.xm.coo...@stericsson.com Some of the comments in the ab8500 drivers reflect the behaviour of the original device. As this driver now supports newer devices then these comments are now redundant. Also some IRQ comments are incorrect. Signed-off-by: Marcus Cooper

[PATCH 31/40] abx500-chargalg: Use module_platform_driver() rather

2013-02-15 Thread Lee Jones
From: srinidhi kasagar srinidhi.kasa...@stericsson.com deprecate some boilerplate code by using module_platform_driver helper macro. No functional changes. Signed-off-by: srinidhi kasagar srinidhi.kasa...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org ---

[PATCH 23/40] ab8500-charger: Use USBLink1Status Register

2013-02-15 Thread Lee Jones
From: Marcus Cooper marcus.xm.coo...@stericsson.com The newer AB's such as the AB8505, AB9540 etc include a USBLink1 Status register which detects a larger range of external devices. This should be used instead of the USBLine Status register. Signed-off-by: Marcus Cooper

[PATCH 27/40] pm2301-charger: Adjust interrupt handler behavior

2013-02-15 Thread Lee Jones
From: M BenZoubeir mustapha.ben.zoubeir-x...@stericsson.com Signed-off-by: M BenZoubeir mustapha.ben.zoubeir-x...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Philippe LANGLAIS philippe.langl...@stericsson.com --- drivers/power/pm2301_charger.c | 45

[PATCH 29/40] ab8500-charger: Run detect workaround only on AB8500

2013-02-15 Thread Lee Jones
From: Rabin Vincent rabin.vinc...@stericsson.com Only AB8500 has this hardware bug, so these works only need to be run there. Signed-off-by: Rabin Vincent rabin.vinc...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Marcus COOPER marcus.xm.coo...@stericsson.com

[PATCH 28/40] pm2301-charger: Add pm_runtime_resume pm_runtime_suspend

2013-02-15 Thread Lee Jones
From: M BenZoubeir mustapha.ben.zoubeir-x...@stericsson.com To optimize the current consumption we use pm_runtime autosuspend functions which execute the pm_runtime_suspend after a delay of inactivity on the other hand we use pm_runtime_resume every time we receive an interruption to wake up the

[PATCH 26/40] ab8500-charger: Add UsbLineCtrl2 reference

2013-02-15 Thread Lee Jones
From: Marcus Cooper marcus.xm.coo...@stericsson.com When the state of USB Charge detection is changed then the calls use a define for another register in other bank. This change creates a new define for the correct register and removes the magic numbers that are present. Signed-off-by: Marcus

[PATCH 12/40] pm2301-charger: Resolve I2C detection problem on ab9540

2013-02-15 Thread Lee Jones
From: Mustapha Ben Zoubeir mustapha.ben.zoubeir-no...@stericsson.com Signed-off-by: Mustapha Ben Zoubeir mustapha.ben.zoubeir-no...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Marcus COOPER marcus.xm.coo...@stericsson.com Reviewed-by: Philippe LANGLAIS

[PATCH 13/40] ab8500_charger: Prevent auto drop of VBUS

2013-02-15 Thread Lee Jones
Do not set higher current in stepping functionality if VBUS is dropping. After VBUS has dropped try to set current once again. If dropping again then we have found the maximum capability of the charger. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/power/ab8500_charger.c | 169

[PATCH 25/40] ab8500-chargalg: Use hrtimer

2013-02-15 Thread Lee Jones
Timers used for charging safety and maintenance must work even when CPU power has collapsed. By using hrtimers with the realtime clock the system is able to trigger an alarm that wakes-up the CPU and makes it possible to handle events. Allow a little slack time of 5 minutes for the hrtimers to

[PATCH 24/40] abx500-chargalg: Prevent the watchdog from being kicked twice

2013-02-15 Thread Lee Jones
Charging watchdog kicker work-thread gets started twice causing 'failed to kick watchdog' message after removing charger and when re-inserting charger. This patch removes the superfluous start of watchdog kicker-thread. Signed-off-by: Lee Jones lee.jo...@linaro.org ---

[PATCH 21/40] ab8500-btemp: Defer btemp filtering while initialising

2013-02-15 Thread Lee Jones
From: Rupesh Kumar rupesh.ku...@stericsson.com Due to btemp filtering enabled during init, temp values reported to charge algorithm driver started from 0. As a result,charge algorithm was going into wrong state and charging was stopped. Signed-off-by: Rupesh Kumar rupesh.ku...@stericsson.com

[PATCH 14/40] pm2301-charger: Die temp thermal protection

2013-02-15 Thread Lee Jones
From: Rupesh Kumar rupesh.ku...@stericsson.com This patch adds support for die temperature thermal protection in pm2301 driver. Signed-off-by: Rupesh Kumar rupesh.ku...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Hakan BERG hakan.b...@stericsson.com Reviewed-by:

[PATCH 11/40] pm2301-charger: Force main charger detect

2013-02-15 Thread Lee Jones
From: Per Forlin per.for...@stericsson.com Force main charger detect in turn on status. Signed-off-by: Rajkumar Kasirajan rajkumar.kasira...@stericsson.com Signed-off-by: Per Forlin per.for...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Philippe LANGLAIS

[PATCH 19/40] pm2301-charger: Always compile the PM2301 Charger driver with AB8500 Battery Mgnt

2013-02-15 Thread Lee Jones
From: Marcus Cooper marcus.xm.coo...@stericsson.com The PM2301 Charger should always be available when using the AB8500 Battery Management system, we're ensuring this will be the case. Signed-off-by: Marcus Cooper marcus.xm.coo...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org

[PATCH 18/40] ab8500-charger: Add AB8505_USB_LINK_STATUS

2013-02-15 Thread Lee Jones
From: Hakan Berg hakan.b...@stericsson.com The AB8505 does not have the same address for USB link-status as has ab8500. Add AB8505_USB_LINK_STATUS and code to switch to correct constant. Signed-off-by: Hakan Berg hakan.b...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org

[PATCH 17/40] ab8500-fg: Allow capacity to raise from 1% when charging

2013-02-15 Thread Lee Jones
From: Hakan Berg hakan.b...@stericsson.com When battery capacity was going below 1% fg is not supposed to report 0% unless we've got the LOW_BAT IRQ, no matter what the FG-algorithm says. This made fg get stuck at 1% if charger is connected when capacity is 1%. Signed-off-by: Hakan BERG

[PATCH 07/40] ab8500-charger: Trivial coding style changes

2013-02-15 Thread Lee Jones
Enforce the white space character after 'if'. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/power/ab8500_charger.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/power/ab8500_charger.c b/drivers/power/ab8500_charger.c index fd3fa2b..dcd3c6f

[PATCH 08/40] ab8500-bm: Quick re-attach charging behaviour

2013-02-15 Thread Lee Jones
Due to a bug in some AB8500 ASICs charger removal cannot always be detected if the removal and reinsertion is done to close in time. This patch detects above described case and handles the situation so that charging will be kept turned on. Signed-off-by: Lee Jones lee.jo...@linaro.org ---

[PATCH 16/40] ab8500-btemp: Filter btemp readings

2013-02-15 Thread Lee Jones
From: Hakan Berg hakan.b...@stericsson.com Battery tempreature readings sometimes fail and results in a value far from recent values. This patch adds a software filter that disposes such readings, by allowing direct updates on temperature only if two samples result in the same temperature. Else

[PATCH 15/40] pm2301-charger: Wake system when ext charger is plugged-in

2013-02-15 Thread Lee Jones
From: Rupesh Kumar rupesh.ku...@stericsson.com When in suspend state, upon plug-in of external AC charger the device needs to wake-up and charging operation started. Signed-off-by: Rupesh Kumar rupesh.ku...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Philippe

[PATCH 09/40] pm2301-charger: Support for over voltage protection on the ab9540

2013-02-15 Thread Lee Jones
From: Rupesh Kumar rupesh.ku...@stericsson.com Added support for main charger over voltage protection. Signed-off-by: Rupesh Kumar rupesh.ku...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Philippe LANGLAIS philippe.langl...@stericsson.com Tested-by: Michel JAOUEN

[PATCH EDAC 11/13] edac: initialize the core earlier

2013-02-15 Thread Mauro Carvalho Chehab
In order for it to work with it builtin, the EDAC core should be initialized earlier, otherwise the ghes_edac driver initializes before edac_mc_sysfs_init() being called: ... [4.998373] EDAC MC0: Giving out device to 'ghes_edac.c' 'ghes_edac': DEV ghes ... [4.998373] EDAC MC1: Giving out

[PATCH 05/40] ab8500-fg: Report unscaled capacity

2013-02-15 Thread Lee Jones
From: Martin Bergstrom martin.bergst...@stericsson.com Unscaled capacity should be reported for POWER_SUPPLY_PROP_CAPACITY. Signed-off-by: Martin Bergstrom martin.bergst...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Marcus COOPER marcus.xm.coo...@stericsson.com

[PATCH 06/40] ab8500-charger: Add backup battery charge voltages on the ab8540

2013-02-15 Thread Lee Jones
From: Yang QU yang...@stericsson.com Add 2.7v, 2.9v, 3.0v, 3.2v and 3.3v charging voltages for backup battery. Before that only 2.5v, 2.6v, 2.8v, 3.1v were available. Signed-off-by: Yang QU yang...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Maxime COQUELIN

Re: [PATCH 5/9] ARM: shmobile: mark mackerel sh_mmcif_device __maybe_unused

2013-02-15 Thread Arnd Bergmann
On Thursday 14 February 2013, Simon Horman wrote: On Thu, Feb 14, 2013 at 11:26:54PM +0100, Arnd Bergmann wrote: Patch eac036ef9e ARM: shmobile: streamline mackerel SD and MMC devices made the use of the sh_mmcif_device variable for mackarel optional, but the definition is always provided,

[PATCH 04/40] ab8500-fg: Add power cut feature for ab8505 and ab8540

2013-02-15 Thread Lee Jones
Add support for a power cut feature which allows user to configure when ab8505 and ab8540 based platforms should shut down system due to low battery. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/mfd/ab8500-core.c| 36 +++ drivers/power/ab8500_bmdata.c|5 +

[PATCH 00/35] mfd: ab8500: Internal development push

2013-02-15 Thread Lee Jones
Hi Sam, This is the patch-set we've been speaking about. It's the entire development history for the ABx500 related MFD changes from ST-Ericsson's internal kernel. This brings us bang up-to-date. Please don't apply patches directly from this submission, as there are some interdependencies which

[PATCH 10/35] mfd: ab8500-core: Rework MFD sub-device initialisation structures

2013-02-15 Thread Lee Jones
Here we're separating Battery Management devices into their own structure, removing the common device structure redistribute them amongst the individual platform structs and completing the population of them. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/mfd/ab8500-core.c | 257

[PATCH 16/35] mfd: ab8500: Add more platform checks

2013-02-15 Thread Lee Jones
Here we add the functionality to check for: - Earlier versions of the AB8505 than 2p0 - Earlier versions of the AB9540 than 2p0 Signed-off-by: Lee Jones lee.jo...@linaro.org --- include/linux/mfd/abx500/ab8500.h | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH 18/35] mfd: ab8500-sysctrl: Update correct turn on status

2013-02-15 Thread Lee Jones
From: Rajkumar Kasirajan rajkumar.kasira...@stericsson.com In L9540, turn_on_status register is not updated correctly if the device is rebooted with AC/USB charger connected. Due to this, the device boots android instead of entering into charge only mode. Read the AC/USB status register to detect

[PATCH 20/35] mfd: ab8500-sysctrl: Add new reset function

2013-02-15 Thread Lee Jones
Add a new reset function which uses the AB WD with 0 timeout. Signed-off-by: Lee Jones lee.jo...@linaro.org --- drivers/mfd/ab8500-sysctrl.c | 63 + include/linux/mfd/abx500/ab8500-sysctrl.h |6 +++ 2 files changed, 69 insertions(+) diff --git

[PATCH 28/35] mfd: ab8500-debug: Add ADC input channel usb_id in debugfs

2013-02-15 Thread Lee Jones
From: Yang QU yang...@stericsson.com Signed-off-by: Yang QU yang...@stericsson.com Signed-off-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Alexandre BOURDIOL alexandre.bourd...@stericsson.com Reviewed-by: Philippe LANGLAIS philippe.langl...@stericsson.com Reviewed-by: Mattias WALLIN

[PATCH 29/35] mfd: ab8500-core: Show turn on status at boot

2013-02-15 Thread Lee Jones
From: Mattias Wallin mattias.wal...@stericsson.com Several states can be detected when a device is initially turned on. This patch displays these states in the log. If none of the states are true, then we report that too. Signed-off-by: Mattias Wallin mattias.wal...@stericsson.com Signed-off-by:

[PATCH 35/35] mfd: ab8500-core: Hierarchical interrupt registers

2013-02-15 Thread Lee Jones
From: Dariusz Szymczak dariusz.xd.szymc...@stericsson.com Make use of the hierarchical interrupt rergister called ITLatchHier1 - 3 also for the 8500 platform (currently the hierarchical interrupt registers are used only for the 8540 and 9540 platforms). This will make the interrupt routing go

[PATCH 34/35] mfd: ab8500-debug: Convert to kstrtoul_from_user

2013-02-15 Thread Lee Jones
From: srinidhi kasagar srinidhi.kasa...@stericsson.com Use kstrtoul_from_user for getting an unsigned long from userspace which is less error prone. Signed-off-by: srinidhi kasagar srinidhi.kasa...@stericsson.com Signed-off-by: Linus Walleij linus.wall...@stericsson.com Signed-off-by: Lee Jones

[PATCH 33/35] mfd: ab8500-debug: Add explicit dependencies

2013-02-15 Thread Lee Jones
From: Linus Walleij linus.wall...@stericsson.com As I am working on SPARSE_IRQ a number of implicit resource grabs in the kernel become evident. For example, some includes like linux/irqs.h would implicitly include mach/irqs.h and then from there mach/db8500-regs.h. In many cases it is masking

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