Re: [PATCH v4] drivers/tty: Folding Android's keyreset driver in sysRQ

2013-02-27 Thread Mathieu Poirier
uch. > > So I *think* the fix might be something like the attached. Totally > untested. It may compile, or it may not. > > Linus > Your fix is compiling, running and yielding the correct results - apologies about that. Acked-by: Mathieu Poirier -- To unsubscr

[PATCH v2] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-08-30 Thread mathieu . poirier
ed by Arve Hjønnevåg in the Android kernel. Cc: a...@android.com Cc: kernel-t...@android.com Cc: dmitry.torok...@gmail.com Cc: john.stu...@linaro.org Signed-off-by: Mathieu Poirier --- drivers/tty/sysrq.c | 161 + include/linux/sysrq.h |8 ++

Re: [PATCH v2] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-08-31 Thread Mathieu Poirier
On 12-08-30 05:01 PM, Dmitry Torokhov wrote: > Hi Matthieu, > > On Thu, Aug 30, 2012 at 04:30:54PM -0600, mathieu.poir...@linaro.org wrote: >> From: "Mathieu J. Poirier" >> >> This patch adds keyreset functionality to the sysrq driver. It >> allows certain button/key combinations to be used in or

Re: [PATCH v2] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-08-31 Thread Mathieu Poirier
On 12-08-31 04:02 PM, Alan Cox wrote: >>> Why do we need to involve a platform device and not use, for example, a >>> module >>> parameter, that could be set up from userspace? >> >> The platform device comes from the original design and was included to >> minimise the amount of changes in code th

Re: [PATCH v2] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-08-31 Thread Mathieu Poirier
On 12-08-31 04:41 PM, Dmitry Torokhov wrote: > On Fri, Aug 31, 2012 at 11:02:27PM +0100, Alan Cox wrote: Why do we need to involve a platform device and not use, for example, a module parameter, that could be set up from userspace? >>> >>> The platform device comes from the original

Re: [PATCH v2] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-09-04 Thread Mathieu Poirier
On 12-08-31 05:22 PM, Dmitry Torokhov wrote: > On Fri, Aug 31, 2012 at 04:57:04PM -0600, Mathieu Poirier wrote: >> On 12-08-31 04:41 PM, Dmitry Torokhov wrote: >>> On Fri, Aug 31, 2012 at 11:02:27PM +0100, Alan Cox wrote: >>>>>> Why do we need to involve a plat

[PATCH] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-10-05 Thread mathieu . poirier
g Cc: a...@lxorguk.ukuu.org.uk Signed-off-by: Mathieu Poirier --- drivers/tty/sysrq.c | 308 + include/linux/sysrq.h |8 ++ 2 files changed, 316 insertions(+), 0 deletions(-) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index 05728894..c4

Re: [PATCH] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-10-05 Thread Mathieu Poirier
On 12-10-05 12:16 PM, Dmitry Torokhov wrote: > On Fri, Oct 05, 2012 at 11:59:29AM -0600, mathieu.poir...@linaro.org wrote: >> From: "Mathieu J. Poirier" >> >> Andrew, >> >> After requesting a number of changes that, to my understanding >> have been implemented, I have not been able to get the atte

[RESEND PATCH v3] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-09-24 Thread mathieu . poirier
droid.com Cc: kernel-t...@android.com Cc: dmitry.torok...@gmail.com Cc: john.stu...@linaro.org Signed-off-by: Mathieu Poirier --- drivers/tty/sysrq.c | 308 + include/linux/sysrq.h |8 ++ 2 files changed, 316 insertions(+), 0 deletions(-)

[PATCH 01/57] power: ab8500_bm: Charger current step-up/down

2012-09-25 Thread mathieu . poirier
From: Johan Bjornstedt There is no state machine in the AB to step up/down the charger current to avoid dips and spikes on VBUS and VBAT when charging is started. Instead this is implemented in SW Signed-off-by: Johan Bjornstedt Signed-off-by: Mattias Wallin Signed-off-by: Mathieu Poirier

[PATCH 04/57] power: ab8500: bm: movimg back to ab8500 platform data managment

2012-09-25 Thread mathieu . poirier
From: Philippe Langlais Signed-off-by: Philippe Langlais Signed-off-by: Mathieu Poirier --- drivers/power/ab8500_btemp.c |8 ++-- drivers/power/ab8500_charger.c|9 +++-- drivers/power/ab8500_fg.c |8 ++-- drivers/power/abx500_chargalg.c |7

[PATCH 09/57] power: ab8500_fg: usleep_range instead of short msleep

2012-09-25 Thread mathieu . poirier
From: Jonas Aaberg Signed-off-by: Jonas ABERG Signed-off-by: Mathieu Poirier Reviewed-by: Johan BJORNSTEDT --- drivers/power/ab8500_fg.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c index 1e02b00..0db17c7

[PATCH 18/57] power: Add sysfs interfaces for capacity

2012-09-25 Thread mathieu . poirier
From: Daniel WILLERUD Switchable depending on whether capacity scaling is enabled Signed-off-by: Marcus Cooper Signed-off-by: Daniel WILLERUD Signed-off-by: Mathieu Poirier Reviewed-by: Jonas ABERG --- drivers/power/ab8500_fg.c | 57 - 1 files

[PATCH 24/57] power: ab8500_fg: Adjust for RF bursts voltage drops.

2012-09-25 Thread mathieu . poirier
: Mathieu Poirier Reviewed-by: Jonas ABERG Reviewed-by: Marcus COOPER --- drivers/power/ab8500_fg.c | 44 ++-- 1 files changed, 30 insertions(+), 14 deletions(-) diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c index 7c42150..861927d 100644

[PATCH 31/57] power: ab8500_fg: fix to use correct battery charge full design

2012-09-25 Thread mathieu . poirier
From: Rajkumar Kasirajan If battery is not identified while fg probe, mah_max_design gets initialized with unknown battery's charge full design. Reinitialize mah_max_design if battery is identified after fg probe. Signed-off-by: Rajkumar Kasirajan Signed-off-by: Mathieu Poirier Review

[PATCH 34/57] power: ab8500_fg: add power cut feature for ab8505

2012-09-25 Thread mathieu . poirier
From: Rikard Olsson Add support for a power cut feature which allows user to configure when ab8505 should shut down system due to low battery. Signed-off-by: Rikard Olsson Signed-off-by: Mathieu Poirier Reviewed-by: Martin SJOBLOM Reviewed-by: Jonas ABERG --- drivers/power/ab8500_fg.c

[PATCH 51/57] power: ab8500: Re-alignment with internal developement.

2012-09-25 Thread mathieu . poirier
ill relevant to the well being of the driver. Signed-off-by: Mathieu Poirier --- drivers/power/ab8500_charger.c |2 +- drivers/power/abx500_chargalg.c | 66 +++ 2 files changed, 47 insertions(+), 21 deletions(-) diff --git a/drivers/power/ab8500_char

[PATCH 54/57] power: ab8500_charger: Use USBLink1Status Register

2012-09-25 Thread mathieu . poirier
From: Marcus Cooper 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 Signed-off-by: Mathieu Poirier Reviewed-by:

[PATCH 57/57] power: ab8500_charger: Limit USB charger current

2012-09-25 Thread mathieu . poirier
From: Martin Bergstrom The USB charger current is limited according to information comming from the USB driver Signed-off-by: Martin Bergstrom Signed-off-by: Mathieu Poirier Reviewed-by: Jonas ABERG --- drivers/power/ab8500_charger.c |4 1 files changed, 4 insertions(+), 0

[PATCH 56/57] power: abx500_chargalg: Fix quick re-attach charger issue.

2012-09-25 Thread mathieu . poirier
ned-off-by: Marcus Cooper Signed-off-by: Mathieu Poirier Reviewed-by: Martin SJOBLOM Reviewed-by: Hakan BERG Reviewed-by: Jonas ABERG --- drivers/power/abx500_chargalg.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/power/abx500_chargalg.c b/dri

[PATCH 44/57] power: ab8500: remove unecesary define flag

2012-09-25 Thread mathieu . poirier
From: Marcus Cooper Remove flag that serve no purpose from source code, Kconfig and Makefile. Signed-off-by: Marcus Cooper Signed-off-by: Mathieu Poirier Reviewed-by: Hakan BERG Reviewed-by: Mian Yousaf KAUKAB --- drivers/power/Kconfig |7 --- drivers/power

[PATCH 46/57] power: chargealg: Realign with upstream version

2012-09-25 Thread mathieu . poirier
next code reversion and realignment with mainline Signed-off-by: Loic Pallardy Signed-off-by: Mathieu Poirier Reviewed-by: Philippe LANGLAIS --- drivers/power/ab8500_charger.c | 166 +++--- include/linux/mfd/abx500.h | 10 ++- include/linux/mfd/abx

[PATCH 52/57] power: abx500_chargalg: Use hrtimer

2012-09-25 Thread mathieu . poirier
hrtimers to allow CPU to be waked up in a more optimal power saving way. A 5 minute delay to time out timers on hours does not impact on safety. Signed-off-by: Hakan Berg Signed-off-by: Mathieu Poirier Reviewed-by: Mian Yousaf KAUKAB --- drivers/power/abx500_chargalg.c | 94

[PATCH 55/57] power: ab8500_charger: Add UsbLineCtrl2 reference

2012-09-25 Thread mathieu . poirier
From: Marcus Cooper 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 Cooper Signed-off-by: Mathieu

[PATCH 53/57] power: ab8500_fg: Moving structure definitions to header file

2012-09-25 Thread mathieu . poirier
From: "Mathieu J. Poirier" Signed-off-by: Mathieu Poirier --- drivers/power/ab8500_fg.c | 196 +-- drivers/power/ab8500_fg.h | 201 + 2 files changed, 206 insertions(+), 191 deletions(-) create m

[PATCH 50/57] power: ab8500-chargalg: update battery health on safety timer exp

2012-09-25 Thread mathieu . poirier
lt in the battery of some kind. Hence report as POWER_SUPPLY_HEALTH_UNSPEC_FAILURE. Signed-off-by: Hakan Berg Signed-off-by: Mathieu Poirier Reviewed-by: Arun MURTHY Reviewed-by: Karl KOMIEROWSKI --- drivers/power/abx500_chargalg.c |4 1 files changed, 4 insertions(+), 0 deletions(-)

[PATCH 49/57] power: Cancelling status charging notification.

2012-09-25 Thread mathieu . poirier
From: "Mathieu J. Poirier" Signed-off-by: Mathieu Poirier --- drivers/power/abx500_chargalg.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/power/abx500_chargalg.c b/drivers/power/abx500_chargalg.c index ce58f20..4db0ef0 100644 --- a/dri

[PATCH 48/57] power: ab8500 : quick re-attach for ext charger

2012-09-25 Thread mathieu . poirier
From: Rupesh Kumar Quick re-attach charging behaviour is not required for external ac charger. Internal AC/USB Charger removal detection problem is due to a bug in AB8500 ASICs. Signed-off-by: Rupesh Kumar Signed-off-by: Mathieu Poirier Reviewed-by: Hakan BERG Reviewed-by: Philippe LANGLAIS

[PATCH 47/57] power: Harmonising platform data declaration/handling

2012-09-25 Thread mathieu . poirier
From: "Mathieu J. Poirier" Making platform data declaration and handling similar accross all ab8500_xyc.c battery management files. Also adding gards against NULL platform data. Signed-off-by: Philippe Langlais Signed-off-by: Mathieu Poirier --- drivers/power/ab8500_btemp.c

[PATCH 36/57] power: add backup battery charge voltages.

2012-09-25 Thread mathieu . poirier
From: Yang QU Add 2.7v, 2.9v, 3.0v, 3.2v and 3.3v charging voltage for backup battery. Before that only 2.5v, 2.6v, 2.8v, 3.1v are available. Signed-off-by: Yang QU Signed-off-by: Mathieu Poirier Reviewed-by: Maxime COQUELIN Reviewed-by: Marcus COOPER Reviewed-by: Xiao Mei ZHANG

[PATCH 45/57] power: ab8500: defer btemp filtering while init

2012-09-25 Thread mathieu . poirier
Signed-off-by: Mathieu Poirier Reviewed-by: Marcus COOPER Reviewed-by: Martin SJOBLOM Reviewed-by: Philippe LANGLAIS --- drivers/power/ab8500_btemp.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/ab8500_btemp.c b/drivers/power/ab8500_btemp.c index

[PATCH 27/57] power: sysfs interface update

2012-09-25 Thread mathieu . poirier
From: Michel JAOUEN Add new sysfs interface to get current charge status Signed-off-by: Michel JAOUEN Signed-off-by: Loic Pallardy Signed-off-by: Mathieu Poirier Reviewed-by: Marcus COOPER Reviewed-by: Olivier CLERGEAUD Reviewed-by: Jonas ABERG --- drivers/power/ab8500_charger.c |3

[PATCH 29/57] power: ab8500_fg: Goto INIT_RECOVERY when charger removed

2012-09-25 Thread mathieu . poirier
From: Martin Bergström When the charger is removed we need to go to INIT_RECOVERY state instead of directly to RECOVERY state. Signed-off-by: Martin Bergstrom Signed-off-by: Mathieu Poirier Reviewed-by: Marcus COOPER Reviewed-by: Jonas ABERG --- drivers/power/ab8500_fg.c |2 +- 1 files

[PATCH 37/57] power: ab8500_bm: Quick re-attach charging behaviour

2012-09-25 Thread mathieu . poirier
Komierowski Signed-off-by: Mathieu Poirier Reviewed-by: Marcus COOPER Reviewed-by: Jonas ABERG Reviewed-by: Philippe LANGLAIS --- drivers/power/ab8500_charger.c| 105 - drivers/power/abx500_chargalg.c | 31 - include/linux/mfd/abx500

[PATCH 43/57] power: charging: Add AB8505_USB_LINK_STATUS

2012-09-25 Thread mathieu . poirier
From: Hakan Berg 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 Signed-off-by: Mathieu Poirier Reviewed-by: Mian Yousaf KAUKAB Reviewed-by: Marcus COOPER Reviewed-by

[PATCH 42/57] power: charging: Allow capacity to raise from 1%

2012-09-25 Thread mathieu . poirier
ff-by: Hakan BERG Signed-off-by: Mathieu Poirier Reviewed-by: Marcus COOPER Reviewed-by: Srinidhi KASAGAR --- drivers/power/ab8500_fg.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c index c5732e7..cf6d2b5 100644

[PATCH 41/57] power: ab8500_btemp: Filter btemp readings

2012-09-25 Thread mathieu . poirier
change from previous reported value in the direction of the new measurement. Signed-off-by: Hakan Berg Signed-off-by: Mathieu Poirier Reviewed-by: Marcus COOPER Reviewed-by: Martin SJOBLOM Reviewed-by: Rabin VINCENT --- drivers/power/ab8500_btemp.c | 27 +-- 1 files

[PATCH 40/57] power: ab8500: ADC for battery thermistor

2012-09-25 Thread mathieu . poirier
From: Marcus Cooper When using ABx500_ADC_THERM_BATCTRL the battery ID resistor is combined with a NTC resistor to both identify the battery and to measure its temperature. Signed-off-by: Marcus Cooper Signed-off-by: Mathieu Poirier Reviewed-by: Mian Yousaf KAUKAB Reviewed-by: Michel JAOUEN

[PATCH 39/57] power: ab8500_charger: Prevent auto drop of VBUS

2012-09-25 Thread mathieu . poirier
From: Martin Sjoblom 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: Martin Sjoblom Signed-off-by: Mathieu Poirier Reviewed

[PATCH 38/57] power: l9540: Charge only mode fixes

2012-09-25 Thread mathieu . poirier
From: Rupesh Kumar Fix for: charging not getting enabled in charge only mode by external charger. Signed-off-by: Rupesh Kumar Signed-off-by: Mathieu Poirier Reviewed-by: Marcus COOPER Reviewed-by: Michel JAOUEN Reviewed-by: Philippe LANGLAIS Reviewed-by: Philippe LANGLAIS --- drivers

[PATCH 35/57] power: ab8500_fg: Report unscaled capacity

2012-09-25 Thread mathieu . poirier
From: Martin Bergstrom Unscaled capacity should be reported for POWER_SUPPLY_PROP_CAPACITY. Signed-off-by: Martin Bergstrom Signed-off-by: Mathieu Poirier Reviewed-by: Marcus COOPER Reviewed-by: Jonas ABERG --- drivers/power/ab8500_fg.c |6 ++ 1 files changed, 2 insertions(+), 4

[PATCH 33/57] power: u8500_charger: Delay for USB enumeration

2012-09-25 Thread mathieu . poirier
slowly to avoid VBUS errors. The delay allows the enumeration to have finished before charging is turned on. Signed-off-by: Martin Sjoblom Signed-off-by: Mathieu Poirier Reviewed-by: Jonas ABERG --- drivers/mfd/ab8500-core.c |6 + drivers/power/ab8500_charger.c | 435

[PATCH 32/57] power: ab8500_charger: Do not touch VBUSOVV bits

2012-09-25 Thread mathieu . poirier
From: Jonas Aaberg Do not touch the VBUSOVV in USBCHTRL2 when running on AB8505. Signed-off-by: Jonas Aaberg Signed-off-by: Mathieu Poirier Reviewed-by: Marcus COOPER --- drivers/power/ab8500_charger.c| 22 -- include/linux/mfd/abx500/ab8500.h | 10 ++ 2

[PATCH 30/57] power: ab8500: Flush & sync all works

2012-09-25 Thread mathieu . poirier
From: Jonas Aaberg Flush and sync all workqueues at suspend to avoid that we suspend in the middle of a work. Signed-off-by: Jonas Aaberg Signed-off-by: Mathieu Poirier Reviewed-by: Marcus COOPER --- drivers/power/ab8500_charger.c | 11 +++ drivers/power/ab8500_fg.c |5

[PATCH 28/57] power: ab8500 - Accessing Autopower register fails

2012-09-25 Thread mathieu . poirier
From: Nicolas Guion The fallback software control register has moved in the ab8505 and ab9540. Signed-off-by: Marcus Cooper Signed-off-by: Mathieu Poirier Reviewed-by: Mattias WALLIN Reviewed-by: Nicolas GUION Reviewed-by: Jonas ABERG --- drivers/power/ab8500_charger.c | 53

[PATCH 26/57] power: charge: update watchdog for pm2xxx support

2012-09-25 Thread mathieu . poirier
rajan Signed-off-by: Loic Pallardy Signed-off-by: Mathieu Poirier Reviewed-by: Michel JAOUEN Reviewed-by: Marcus COOPER Reviewed-by: Jonas ABERG --- drivers/power/ab8500_charger.c|6 ++ drivers/power/abx500_chargalg.c | 23 +-- include/linu

[PATCH 08/57] power: ab8500_fg: flush sync on suspend

2012-09-25 Thread mathieu . poirier
From: Jonas Aaberg Do flush sync on the fg workqueue at suspend instead of just flushing it. Signed-off-by: Jonas Aaberg Signed-off-by: Mathieu Poirier Reviewed-by: Johan BJORNSTEDT --- drivers/power/ab8500_fg.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a

[PATCH 07/57] power: ab8500_bm: Detect removed charger

2012-09-25 Thread mathieu . poirier
From: Jonas Aaberg Signed-off-by: Jonas Aaberg Signed-off-by: Mathieu Poirier --- drivers/power/ab8500_charger.c | 122 +++- 1 files changed, 121 insertions(+), 1 deletions(-) diff --git a/drivers/power/ab8500_charger.c b/drivers/power/ab8500_charger.c

[PATCH 14/57] power: Adds support for Car/Travel Adapters

2012-09-25 Thread mathieu . poirier
From: Hakan Berg The Travel and Carkit adapter should be handled directly by the charger driver. Signed-off-by: Marcus Cooper Signed-off-by: Mathieu Poirier Reviewed-by: Jonas ABERG --- drivers/power/ab8500_charger.c | 94 +- include/linux/mfd/abx500

[PATCH 16/57] power: bm remove superfluous BTEMP thermal comp.

2012-09-25 Thread mathieu . poirier
From: Hakan Berg BTEMP thermal compensation factor times 10 is applied in two places, probe and get_property. Removed from probe. Signed-off-by: Hakan Berg Signed-off-by: Mathieu Poirier Reviewed-by: Karl KOMIEROWSKI --- drivers/power/ab8500_btemp.c |4 ++-- 1 files changed, 2

[PATCH 21/57] power: Overflow in current calculation

2012-09-25 Thread mathieu . poirier
From: Paer-Olof Haakansson When calculating the average current the nominator will overflow when the charging current is high. Signed-off-by: Henrik Sölver Signed-off-by: Mathieu Poirier Reviewed-by: Par-Olof HAKANSSON Reviewed-by: Jonas ABERG --- drivers/power/ab8500_fg.c | 15

[PATCH 25/57] power: ab8500: adaptation to ab version

2012-09-25 Thread mathieu . poirier
From: Michel JAOUEN Add AB9540 and AB8505 support to ab8500_temp driver. Signed-off-by: Rajkumar Kasirajan Signed-off-by: Mathieu Poirier Reviewed-by: Michel JAOUEN Reviewed-by: Marcus COOPER Reviewed-by: Jonas ABERG --- drivers/power/ab8500_btemp.c | 71

[PATCH 23/57] power: Add plaform data charger configurables

2012-09-25 Thread mathieu . poirier
From: Loic Pallardy Allow to indicate wheter AC and USB charge capabilities are supported from platform data. Signed-off-by: Loic Pallardy Signed-off-by: Mathieu Poirier Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/58093 Reviewed-by: Marcus COOPER Reviewed-by: Olivier CLERGEAUD

[PATCH 22/57] power: AB workaround for invalid charger

2012-09-25 Thread mathieu . poirier
From: Henrik Sölver AB8500 refuses to start charging when some types of non standard chargers are connected. This change force the AB to start charging. Signed-off-by: Henrik Sölver Signed-off-by: Mathieu Poirier Reviewed-by: Yvan FILLION Reviewed-by: Jonas ABERG --- drivers/power

[PATCH 20/57] power: Adds support for legacy USB chargers

2012-09-25 Thread mathieu . poirier
From: Marcus Cooper A Legacy USB charger should be handled directly by the charger driver. Signed-off-by: Marcus Cooper Signed-off-by: Mathieu Poirier Reviewed-by: Karl KOMIEROWSKI Reviewed-by: Jonas ABERG --- drivers/power/ab8500_charger.c | 66 ++- 1

[PATCH 19/57] power: remove unused defines.

2012-09-25 Thread mathieu . poirier
From: Marcus Cooper Cleanup of the ab8500_charger driver. Signed-off-by: Marcus Cooper Signed-off-by: Mathieu Poirier Reviewed-by: Karl KOMIEROWSKI --- drivers/power/ab8500_charger.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/drivers/power/ab8500_charger.c

[PATCH 17/57] power: ab8500_bm: Added support for BATT_OVV

2012-09-25 Thread mathieu . poirier
From: Hakan Berg Add support for the battery over-voltage situation Signed-off-by: Hakan Berg Signed-off-by: Mathieu Poirier Reviewed-by: Karl KOMIEROWSKI --- drivers/power/ab8500_fg.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a

[PATCH 15/57] power: ab8500_fg: Round capacity output

2012-09-25 Thread mathieu . poirier
From: pender01 Round the capacity values for better enduser experience. Signed-off-by: pender01 Signed-off-by: Mathieu Poirier Reviewed-by: Jonas ABERG --- drivers/power/ab8500_fg.c | 28 +++- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/drivers

[PATCH 13/57] power: ab8500_bm: Ignore false btemp low interrupt

2012-09-25 Thread mathieu . poirier
From: Hakan Berg Ignore the low btemp interrupts for ab8500 3.0 and 3.3 Signed-off-by: Hakan Berg Signed-off-by: Mathieu Poirier Reviewed-by: Jonas ABERG --- drivers/power/ab8500_btemp.c | 22 +++--- include/linux/mfd/abx500/ab8500.h |5 + 2 files changed, 16

[PATCH 12/57] power: ab8500_fg: balance IRQ enable

2012-09-25 Thread mathieu . poirier
From: Rickard Andersson In case of time out error IRQ needs to be disabled otherwise we will get unbalanced enable/disable pairs. Signed-off-by: Rickard Andersson Signed-off-by: Mathieu Poirier Reviewed-by: Jonas ABERG --- drivers/power/ab8500_fg.c |1 + 1 files changed, 1 insertions

[PATCH 11/57] power: Recharge condition not optimal for battery

2012-09-25 Thread mathieu . poirier
monitor the actual battery capacity and is able to estimate the remaining capacity. It is better to use the remaining capacity as a limit to determine when battery should be recharged. Signed-off-by: Marcus Cooper Signed-off-by: Mathieu Poirier Reviewed-by: Hakan BERG Reviewed-by: Jonas ABERG

[PATCH 10/57] power: ab8500_charger: Handle gpadc errors

2012-09-25 Thread mathieu . poirier
From: Jonas Aaberg Gracefully handle gpadc conversion errors. Signed-off-by: Jonas Aaberg Signed-off-by: Mathieu Poirier Reviewed-by: Johan BJORNSTEDT --- drivers/power/ab8500_charger.c | 22 ++ 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH 06/57] power: ab8500_bm: Skip first CCEOC irq for instant current

2012-09-25 Thread mathieu . poirier
From: Johan Bjornstedt When enabling the CCEOC irq we might get false interrupt from ab8500-driver due to the latched value will be saved and interpreted as an IRQ when enabled Signed-off-by: Johan Bjornstedt Signed-off-by: Henrik Solver Signed-off-by: Mathieu Poirier Reviewed-by: Karl

[PATCH 00/57] power: Upgrade to ux500 battery management driver

2012-09-25 Thread mathieu . poirier
From: "Mathieu J. Poirier" This patch set upgrades the current ux500 battery management driver to the latest HW and functionality. Pull request for convenience: The following changes since commit 56d27adcb536b7430d5f8a6240df8ad261eb00bd: Merge git://git.kernel.org/pub/scm/linux/kernel/git/cm

[PATCH 05/57] power: ab8500_bm: Rename the power_loss function

2012-09-25 Thread mathieu . poirier
From: Paer-Olof Haakansson Rename the ab8500_power_loss_handling function to a more describing name ab8500_enable_disable_sw_fallback Signed-off-by: Robert Marklund Signed-off-by: Paer-Olof Haakansson Signed-off-by: Mathieu Poirier Reviewed-by: Par-Olof HAKANSSON Reviewed-by: Karl

[PATCH 03/57] power: ab8500_btemp: Detect battery type in workqueue

2012-09-25 Thread mathieu . poirier
From: Jonas Aaberg Detect battery type in work queue instead of probe. This reduces the system boot time with 1.5s Signed-off-by: Jonas Aaberg Signed-off-by: Mathieu Poirier Reviewed-by: Karl KOMIEROWSKI --- drivers/power/ab8500_btemp.c | 15 +++ 1 files changed, 11 insertions

[PATCH 02/57] power: ab8500_bm: Don't clear the CCMuxOffset bit

2012-09-25 Thread mathieu . poirier
From: Kalle Komierowski The CCMuxOffset bit is not kept set, this will force the columb counter of the AB8500 to use the measure offset calibration. This should increase the accuracy of the fuel gauge. Signed-off-by: Kalle Komierowski Signed-off-by: Marcus Cooper Signed-off-by: Mathieu

Re: [PATCH] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-10-20 Thread Mathieu Poirier
On 12-10-16 09:35 PM, Arve Hjønnevåg wrote: > On Fri, Oct 5, 2012 at 12:48 PM, Mathieu Poirier > wrote: >> On 12-10-05 12:16 PM, Dmitry Torokhov wrote: >>> On Fri, Oct 05, 2012 at 11:59:29AM -0600, mathieu.poir...@linaro.org wrote: >>>> From: "

[PATCH v4] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-11-11 Thread mathieu . poirier
s/module/sysrq" interface. This functionality comes from the keyreset driver submitted by Arve Hjønnevåg in the Android kernel. Cc: a...@android.com Cc: kernel-t...@android.com Cc: dmitry.torok...@gmail.com Cc: john.stu...@linaro.org Cc: a...@lxorguk.ukuu.org.uk Signed-off-by: Mathieu Poi

Re: Out-of-bound access in sysrq

2013-03-28 Thread Mathieu Poirier
On 13-03-28 04:34 AM, Jiri Slaby wrote: > Guys, > > how is this supposed to work? > > #define SYSRQ_KEY_RESET_MAX 20 /* Should be plenty */ > static unsigned short sysrq_reset_seq[SYSRQ_KEY_RESET_MAX]; > ... > unsigned short platform_sysrq_reset_seq[] __weak = { KEY_RESERVED }; > ... > static

[PATCH] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-08-27 Thread mathieu . poirier
ed by Arve Hjønnevåg in the Android kernel. Cc: a...@android.com Cc: kernel-t...@android.com Cc: dmitry.torok...@gmail.com Cc: john.stu...@linaro.org Signed-off-by: Mathieu Poirier --- drivers/tty/sysrq.c | 159 + include/linux/sysrq.h |8 ++

[PATCH v3] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-09-16 Thread mathieu . poirier
uot;/sys/module/sysrq" interface. This functionality comes from the keyreset driver submitted by Arve Hjønnevåg in the Android kernel. Cc: a...@android.com Cc: kernel-t...@android.com Cc: dmitry.torok...@gmail.com Cc: john.stu...@linaro.org Signed-off-by: Mathieu Poirier --- drivers/

[PATCH] [RFC]: drivers/tty: Folding Android's keyreset driver in sysRQ

2012-08-16 Thread mathieu . poirier
. The keyreset platform data and driver name were kept intact to minimize disruption on products that already instantiate the keyreset driver. Cc: a...@android.com Cc: kernel-t...@android.com Cc: dmitry.torok...@gmail.com Cc: john.stu...@linaro.org Signed-off-by: Mathieu Poirier --- drivers/tty/s

Re: [PATCH 00/57] power: Upgrade to ux500 battery management driver

2012-09-27 Thread Mathieu Poirier
On 12-09-26 09:38 PM, Anton Vorontsov wrote: > On Tue, Sep 25, 2012 at 10:11:57AM -0600, mathieu.poir...@linaro.org wrote: >> From: "Mathieu J. Poirier" >> >> This patch set upgrades the current ux500 battery management driver >> to the latest HW and functionality. >> >> Pull request for convenien

Re: [PATCH 33/57] power: u8500_charger: Delay for USB enumeration

2012-09-28 Thread Mathieu Poirier
harging is turned on. >> >> Signed-off-by: Martin Sjoblom >> Signed-off-by: Mathieu Poirier >> Reviewed-by: Jonas ABERG >> --- > [...] >> @@ -264,17 +275,19 @@ struct ab8500_charger { >> struct ab8500_charger_info usb; >> struct regulato

Re: [PATCH 17/57] power: ab8500_bm: Added support for BATT_OVV

2012-09-28 Thread Mathieu Poirier
On 12-09-26 09:36 PM, Anton Vorontsov wrote: > On Tue, Sep 25, 2012 at 10:12:14AM -0600, mathieu.poir...@linaro.org wrote: >> From: Hakan Berg >> >> Add support for the battery over-voltage situation >> >> Signed-off-by: Hakan Berg >> Signed-off-by

Re: [PATCH 18/57] power: Add sysfs interfaces for capacity

2012-09-28 Thread Mathieu Poirier
gned-off-by: Daniel WILLERUD >> Signed-off-by: Mathieu Poirier >> Reviewed-by: Jonas ABERG >> --- >> drivers/power/ab8500_fg.c | 57 >> - >> 1 files changed, 56 insertions(+), 1 deletions(-) >> >> diff

Re: [PATCH 27/57] power: sysfs interface update

2012-09-28 Thread Mathieu Poirier
off-by: Loic Pallardy >> Signed-off-by: Mathieu Poirier >> Reviewed-by: Marcus COOPER >> Reviewed-by: Olivier CLERGEAUD >> Reviewed-by: Jonas ABERG >> --- >> drivers/power/ab8500_charger.c |3 +++ >> drivers/power/abx500_chargalg.c | 24 ++

Re: [PATCH 30/57] power: ab8500: Flush & sync all works

2012-09-28 Thread Mathieu Poirier
-off-by: Jonas Aaberg >> Signed-off-by: Mathieu Poirier >> Reviewed-by: Marcus COOPER >> --- >> drivers/power/ab8500_charger.c | 11 +++ >> drivers/power/ab8500_fg.c |5 + >> 2 files changed, 16 insertions(+), 0 deletions(-) >>

Re: [PATCH 38/57] power: l9540: Charge only mode fixes

2012-09-28 Thread Mathieu Poirier
what is this? > >> Signed-off-by: Rupesh Kumar >> Signed-off-by: Mathieu Poirier >> Reviewed-by: Marcus COOPER >> Reviewed-by: Michel JAOUEN >> Reviewed-by: Philippe LANGLAIS >> Reviewed-by: Philippe LANGLAIS >> --- >> drivers/power/ab

Re: [PATCH 52/57] power: abx500_chargalg: Use hrtimer

2012-09-28 Thread Mathieu Poirier
to >> time out timers on hours does not impact on safety. >> >> Signed-off-by: Hakan Berg >> Signed-off-by: Mathieu Poirier >> Reviewed-by: Mian Yousaf KAUKAB >> --- >> drivers/power/abx500_chargalg.c | 94 >> ++- >&g

[PATCH 0/6] perf: Driver specific configuration for PMU

2016-07-19 Thread Mathieu Poirier
and user space part so that the solution is complete and found in a single place. Last but not least it is based on 4.7-rc7 assumes that these patches [1] have been applied. Thanks, Mathieu [1]. https://lkml.org/lkml/2016/7/14/642 Mathieu Poirier (6): perf/core: Adding PMU driver specific configu

[PATCH 1/6] perf/core: Adding PMU driver specific configuration

2016-07-19 Thread Mathieu Poirier
This patch somewhat mimics the work done on address filters to add the infrastructure needed to pass PMU specific HW configuration to the driver before a session starts. Signed-off-by: Mathieu Poirier --- include/linux/perf_event.h | 9 + include/uapi/linux/perf_event.h | 1

[PATCH 5/6] coresight: adding sink parameter to function coresight_build_path()

2016-07-19 Thread Mathieu Poirier
Up to now function coresight_build_path() was counting on a sink to have been selected (from sysFS) prior to being called. This patch adds a string argument so that a sink matching the argument can be selected. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm-perf.c

[PATCH 6/6] coresight: etm-perf: incorporating sink definition from cmd line

2016-07-19 Thread Mathieu Poirier
can be started. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm-perf.c | 101 ++- 1 file changed, 100 insertions(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c

[PATCH 4/6] perf tools: pushing driver configuration down to the kernel

2016-07-19 Thread Mathieu Poirier
Now that PMU specific driver configuration are queued in evsel::drv_config_terms, all we need to do is re-use the current ioctl() mechanism to push down the information to the kernel driver. Signed-off-by: Mathieu Poirier --- tools/perf/builtin-record.c | 9 + tools/perf/util/evlist.c

[PATCH 3/6] perf tools: add infrastructure for PMU specific configuration

2016-07-19 Thread Mathieu Poirier
ply added to the list of event terms. The bulk of the work is done in function "parse_events_add_pmu()" where driver config event terms are added to a new list of driver config terms, which in turn spliced with the event's new driver configuration list. Signed-off-by: Mathieu Poi

[PATCH 2/6] perf: Passing struct perf_event to function setup_aux()

2016-07-19 Thread Mathieu Poirier
Some information, like driver specific configuration, is found in the hw_perf_event structure. As such pass a 'struct perf_event' to function setup_aux() rather than just the CPU number so that individual drivers can make the right configuration when setting up a session. Signed-off-b

[PATCH V3 3/3] perf tools: adding coresight etm PMU record capabilities

2016-07-20 Thread Mathieu Poirier
Coresight ETMs are IP blocks used to perform HW assisted tracing on a CPU core. This patch introduce the required auxiliary API functions allowing the perf core to interact with a tracer. Signed-off-by: Mathieu Poirier Acked-by: Adrian Hunter --- MAINTAINERS | 4

[PATCH V3 1/3] tools: Copy the header file needed by perf tools

2016-07-20 Thread Mathieu Poirier
Directly accessing kernel files is not allowed anymore. As such making file coresight-pmu.h accessible by the perf tools and complain if this copy strays from the one found in the main kernel tree. Signed-off-by: Mathieu Poirier --- tools/perf/MANIFEST | 1 + tools/perf/Makefile.perf | 3

[PATCH V3 0/3] perf tools: coresight PMU recording capabilities

2016-07-20 Thread Mathieu Poirier
e. - Added Adrian Hunter's Acked-by. - Reworked ifndef/endif in config/Makefile to avoid duplication. - Patch 1/3, mandatory to make things compile. Mathieu Poirier (3): tools: Copy the header file needed by perf tools perf tools: making coresight PMU listable perf tools: addi

[PATCH V3 2/3] perf tools: making coresight PMU listable

2016-07-20 Thread Mathieu Poirier
Adding the required mechanic allowing 'perf list pmu' to discover coresight ETM/PTM tracers. Signed-off-by: Mathieu Poirier Acked-by: Adrian Hunter --- MAINTAINERS| 1 + tools/perf/arch/arm/util/Build | 2 ++ tools/perf/arch/arm/util/

[PATCH V2 1/6] perf/core: Adding PMU driver specific configuration

2016-07-20 Thread Mathieu Poirier
This patch somewhat mimics the work done on address filters to add the infrastructure needed to pass PMU specific HW configuration to the driver before a session starts. Signed-off-by: Mathieu Poirier --- include/linux/perf_event.h| 9 + include/uapi/linux/perf_event.h

[PATCH V2 0/6] perf: Driver specific configuration for PMU

2016-07-20 Thread Mathieu Poirier
and user space part so that the solution is complete and found in a single place. It is based on [1] and assumes this set [2] has been applied. Thanks, Mathieu Changes for V2: - Rebased to [1] as per Jiri's request. [1]. git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git perf/core [

[PATCH V2 3/6] perf tools: add infrastructure for PMU specific configuration

2016-07-20 Thread Mathieu Poirier
ply added to the list of event terms. The bulk of the work is done in function "parse_events_add_pmu()" where driver config event terms are added to a new list of driver config terms, which in turn spliced with the event's new driver configuration list. Signed-off-by: Mathieu Poi

[PATCH V2 5/6] coresight: adding sink parameter to function coresight_build_path()

2016-07-20 Thread Mathieu Poirier
Up to now function coresight_build_path() was counting on a sink to have been selected (from sysFS) prior to being called. This patch adds a string argument so that a sink matching the argument can be selected. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm-perf.c

[PATCH V2 4/6] perf tools: pushing driver configuration down to the kernel

2016-07-20 Thread Mathieu Poirier
Now that PMU specific driver configuration are queued in evsel::drv_config_terms, all we need to do is re-use the current ioctl() mechanism to push down the information to the kernel driver. Signed-off-by: Mathieu Poirier --- tools/perf/builtin-record.c | 9 + tools/perf/util/evlist.c

[PATCH V2 6/6] coresight: etm-perf: incorporating sink definition from cmd line

2016-07-20 Thread Mathieu Poirier
can be started. Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etm-perf.c | 101 ++- 1 file changed, 100 insertions(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c

[PATCH V2 2/6] perf: Passing struct perf_event to function setup_aux()

2016-07-20 Thread Mathieu Poirier
Some information, like driver specific configuration, is found in the hw_perf_event structure. As such pass a 'struct perf_event' to function setup_aux() rather than just the CPU number so that individual drivers can make the right configuration when setting up a session. Signed-off-b

Re: [PATCH V2 3/6] perf tools: add infrastructure for PMU specific configuration

2016-07-21 Thread Mathieu Poirier
On 21 July 2016 at 01:47, Jiri Olsa wrote: > On Wed, Jul 20, 2016 at 02:38:17PM -0600, Mathieu Poirier wrote: > > SNIP > >> diff --git a/tools/perf/util/parse-events.h b/tools/perf/util/parse-events.h >> index d1edbf8cc66a..8d09a976fca8 100644 >> --- a/tools/per

  1   2   3   4   5   6   7   8   9   10   >