summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-04-06ux500: configs: u8500 defconfigs cleanup and alignmentPhilippe Langlais
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
2012-04-06mach_ux500:config:Removed suspend flagPhilippe Langlais
By disbaling the suspend we could avoid the hangs in suspend and resume. This workaround will be removed once the power management supports for all other peripheral drivers. Signed-off-by: Naveen Kumar Gaddipati <naveen.gaddipati@stericsson.com> Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
2012-04-06config: ux500: android: Disable UX500_SUSPEND_DBG, needs STE cpuidlePhilippe Langlais
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
2012-04-06u5500: timed output driver for ab5500 vibratorShreshtha Kumar Sahu
Simple timed output vibrator driver for AB5500 MFD chips. This chip supports Rotary and Linear vibrator hardware types. Resonance frequency of 100-198 Hz is supported. ST-Ericsson ID: WP 256408 Signed-off-by: Avinash A <Avinash.a@stericsson.com> Signed-off-by: Robert Marklund <robert.marklund@stericsson.com> u5500: enable vibrator when new timeout is requested with this patch new timeout value will be accepted/updated even if vibrator is already executing. ST-Ericsson ID: 360178 Signed-off-by: Avinash A <Avinash.a@stericsson.com> vibra:Remove unnecessary assignment of dev->parent Remove unnecessary assignment of dev->parent, because of this during timed out class unregister it is trying to free resources of parent which does not exist ST-Ericsson ID: 410065 Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> u5500: Add vibra end of life support Detect and disable vibra when vibra end of life(eol) condition is detected at boot sequence. ST-Ericsson ID: 265890 Signed-off-by: Rajagopala V <rajagopala.v@stericsson.com>
2012-04-06u8500: Vibrator: Timed output vibrator driverMarcin Mielczarczyk
ST-Ericsson vibrator driver which registers in Android specific timed output device class. Signed-off-by: Marcin Mielczarczyk <marcin.mielczarczyk@tieto.com> Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@tieto.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Timed output vibrator: New functionality. This patch allows to form the vibration characteristic using few parameters defined in the platform data: - boost level and period for start condition - on level as moderate speed - off level and period for brake condition Detailed information can be found here: Documentation\DocBook\ste_timed_vibra.html Signed-off-by: Grzegorz Sygieda <grzegorz.sygieda@tieto.com> Signed-off-by: Krzysztof Antonowicz <krzysztof.antonowicz@tieto.com> Signed-off-by: srinidhi kasagar <srinidhi.kasagar@stericsson.com> vibrator: remove board specific control of vibrator Platform specific control of vibrator should be present in board file (here board-mop500.c). So, for example if GPIO pins are used to control the vibrator, its control function implemenation should be in board file. This patch provides the callback function support in the driver for the same. Signed-off-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com> android: vibrator: dont directly access ktime_t members Use ktime helper functions for converting ktime values Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> u8500: vibra: linear vibrators using vibra-pwm Linear vibrators operate on thier required resonance frequency (for COPAL and AAC its ~150Hz). This can be provided using AUDIO DA5 path. This software *workaround* enables linear vibrators using AB8500 vibra-pwm by generating required resonace frequency using software. In addition this patch provides support for separate platform data for Linear and Rotarty vibrators. Signed-off-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com> u8500: vibra: disable vibrator after vibration This patch disables vibrator i.e. configures the PWM duty cycle to zero after vibration duration is over. Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org> u8500: optimize: linear vibra drv using vibra-pwm This patch optimizes the current implementation of "linear vibrator driver using vibra-pwm". Current implementation is CPU intensive and uses 100% of a CPU for the time period vibrator is used. ST-Ericsson ID: ER 349958 Signed-off-by: Avinash A <Avinash.a@stericsson.com> u8500: vibra: fix sleeping fn. in atomic context sleepable call - flush_workqueue called from atomic context of vibra_enable. ST-Ericsson ID: ER 351276 Signed-off-by: Avinash A <Avinash.a@stericsson.com> u8500: vibra: remove race condition in timer operation In situation described below, vibra driver can hang. In a scenario where vibra_enable is called and vibrator is running i.e. vibra_work is scheduled and vibra_timer. Suppose vibra_timer is started and has not expired yet. At this moment if vibra_work starts executing and acquires the vibra_lock and just before hrtimer_cancel is called, if old timer expires and timer callback starts executing then it will try to acquire vibra_lock and hence it will wait for vibra_lock, as it is already acquired by vibra_work. Now vibra_work->hrtimer_cancel will wait for timer callback to complete and timer callback will wait for vibra_lock to be free so that it can complete. This result in recursive waiting for vibra_lock and hence deadlock. As timer callback is running in interrupt context so above deadlock may trigger watchdog. ST-Ericsson ID: 405366 Signed-off-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com> u8500: vibra: remove race condition in open In situation described below, vibra driver can hang. vibra_enable takes the vibra_lock and timer expires then timer callback will spin for vibra_lock. If vibra_enable tries to do hrtimer_cancel then it will wait for timer callback to complete. In above situation hrtimer_cancel will wait for timer callback to complete and timer callback will wait for vibra_lock to be free so that it can complete. This result in recursive waiting for vibra_lock and hence deadlock. As timer callback is running in interrupt context so above deadlock may trigger watchdog. ST-Ericsson ID: 407253 Signed-off-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com> vibra:Remove unnecessary assignment of dev->parent Remove unnecessary assignment of dev->parent, because of this during timed out class unregister it is trying to free resources of parent which does not exist Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com>
2012-04-06ARM: ux500: Remove unused include fileJonas Aaberg
ST-Ericsson Linux next: - ST-Ericsson ID: 370799 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I9bb0d97f8562d6abef8b0a6d424ad38bf7f58a1c Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50944 Reviewed-by: QABUILD Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-04-06config: u8500: power: idle testJonas Aaberg
Add power module test. This test, in debugfs/pwr_test/idle shall pass when the screen is black, but suspend is not yet reached. This module test checks clocks, prcmu-regulators, db8500 regulators and ab8500 regulators. The reason why not adding this to LTP is that later this module test will contain tests for voicecall and low-power-audio, which require Android to run. ST-Ericsson ID: 367599 Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
2012-04-06ARM: smp_twd: Only wait for reprogramming on active cpusJonas Aaberg
During booting of cpu1, there is a short window where cpu1 is online, but not active where cpu1 is occupied by waiting to become active. If cpu0 then decides to schedule something on cpu1 and wait for it to complete, before cpu0 has set cpu1 active, we have a deadlock. This is just a work around to hide the original problem. ST-Ericsson Linux next: - ST-Ericsson ID: 419957 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I133e511cece4024375cc92a82f79bd799514d71d Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/51514 Reviewed-by: QABUILD Reviewed-by: Rickard ANDERSSON <rickard.andersson@stericsson.com>
2012-04-06ARM: configs: u8500: Enable per UID net statisticsDominik Sliwa
Sets CONFIG_UID_STAT=y in u8500_defconfig to enable network usage statistics per UID. ST-Ericsson Linux next: - ST-Ericsson ID: 410876 ST-Ericsson FOSS-OUT ID: NA Change-Id: I812748a9997fb30a15810892b7a829f9e9c4cb7c Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50545 Reviewed-by: Dominik SLIWA <dominik.sliwa@tieto.com> Tested-by: Dominik SLIWA <dominik.sliwa@tieto.com> Reviewed-by: QABUILD Reviewed-by: Tomasz HLIWIAK <tomasz.hliwiak@tieto.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2012-04-06mfd: ab8500-i2c: Include the right prcmu header filePhilippe Langlais
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
2012-04-06ARM: configs: u8500: Enable lockup detectionJonas Aaberg
ST-Ericsson ID: 370799 Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
2012-04-06mfd: ab8500: make use of the firmware read-modify-write serviceMattias Nilsson
This patch updates the AB8500 driver to make use of the I2C read-modify-write service in the PRCMU firmware. ST Ericsson ID: 354143 ST Ericsson FOSS-OUT ID: trivial Change-Id: Ic204b63b3a7546bbb7cf4966c973f9ec3662c328 Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47195 Reviewed-by: QABUILD Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
2012-04-06mfd: ab8500: don't use mutex_lock_interruptibleRabin Vincent
This disadvantage of having it interrptible is that it would appear to work OK in most situations, but in the rare case that this call does fail, it can lead to misconfiguration of the AB, such as a regulator not being turned off and leading to a platform power consumption increase. There's no real benefit to having this interruptible. Make it a plain mutex_lock. The non-interruptability matches other low-level I/O functions such as SPI and I2C. ST-Ericsson ID: 420727 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I38f325f1d6e24afc5f8def0f070aad2b79cb1a34 Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/51048
2012-03-19power: ab8500_btemp: Detect battery type in workqueueJonas Aaberg
Detect battery type in work queue instead of probe. This reduces the system boot time with 1.5s ST-Ericsson Linux next: - ST-Ericsson ID: 370799 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I6d21df2746a8a08940e18e793ec0e171eda67708 Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50551 Reviewed-by: QABUILD Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
2012-03-19drivers: ab8500-gpadc: Reduce conversion timeoutJonas Aaberg
Reduce the conversion timeout from 2s to 0.5s ST-Ericsson Linux next: - ST-Ericsson ID: 420077 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Icb18eef9b6c887f7817c2c1f7dd1b3876620a5b6 Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50864 Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
2012-03-19power: ab8500_bm: Don't clear the CCMuxOffset bitKalle 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. ST-Ericsson ID: 414923 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I82649e0d6f07933a36f48d33a877e72c5a5aa50e Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com> Signed-off-by: Marcus Cooper <marcus.xm.cooper@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50913 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2012-03-19ab8500-pwm:Add sysfs path to disable LED blinkingNaga Radhesh
Add sysfs path to disable LED blinking functionality ST-Ericsson ID: 366316 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id:I3f4c62525defe948459cf74c3ae18f4cf81945bf Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50621 Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-03-19ab8500-debugfs: Sizeof mismatchAshok G
St-Ericsson Linux next: NA St-Ericsson Id: 420118 St-Ericsson FOSS-OUT ID: Trivial Change-Id: I2acc2ceced2e22d6f432dbe2f6b8a448c410c99d Signed-off-by: Ashok G <ashok.g@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50651 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
2012-03-19pm: mach-ux500: platform data for pwm driverNaga Radhesh
platform data for pwm driver, which contains no.of supported pwm and pwm out led's ST-Ericsson ID: 366316 Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com>
2012-03-19leds-pwm:Support HW blink functionalityNaga Radhesh
Support LED HW blink functionlity, by registering blink set function. ST-Ericsson ID: 366316 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id:Ice4f7b786bd2acdd115ca920de6deb2e83d80ea3 Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50126 Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-03-19ab8500-pwm: check for valid platform data pointerNaga Radhesh
Before accessing platform data, check whether platform pointer is valid or not. ST-Ericsson ID: 366316 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Change-Id: I176dd81743d1c063f6814c35992cc8813ac57055 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50530 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
2012-03-19ab8500-pwm:AB8505:Enable support for PWMLED blinkNaga Radhesh
Enable support for PWM OUT LED blinking for AB8505.Instead of having 3 pwm instances from ab8500 core file add it as platform data. ST-Ericsson ID: 366316 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id:I63cd5510d3c1071613871946f7c624d2e2026568 Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45669 Reviewed-by: QABUILD Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-03-19drivers: mfd: ab8500-gpadc: Add runtime pm supportJonas Aaberg
Add runtime pm support to speed up multiple ADC reads in a row. ST-Ericsson Linux next: - ST-Ericsson ID: 408044 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I8d868d31437f4560ec3328baecebc8a9265093d4 Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49950 Reviewed-by: QABUILD Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com>
2012-03-19power: ab8500_bm: Charger current step-up/downJohan 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 ST-Ericsson ID: 409058, 410253 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: Ia21d8689c6894c3f62d9a2d7e7aacda6873aa79f Signed-off-by: Johan Bjornstedt <johan.bjornstedt@stericsson.com> Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45827 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
2012-03-19mfd: ab8500: Update interruptsBengt Jonsson
Remove obsoleted and unused interrupts: - AB8500_INT_USB_ID_DET_F (12), - AB8500_INT_USB_ID_DET_R (13), - AB8500_INT_USB_CHG_DET_DONE (102), - AB8500_INT_USB_CHARGER_NOT_OKF (111), Rename interrupt: - AB8500_INT_USB_CHARGER_NOT_OK -> AB8500_INT_USB_CHARGER_NOT_OKR (89) Add new interrupts: - AB8500_INT_SRP_DETECT (88), - AB8500_INT_CHAUTORESTARTAFTSEC (102), - AB8500_INT_CHSTOPBYSEC (103), - AB8500_INT_CHCURLIMNOHSCHIRP (109), - AB8500_INT_CHCURLIMHSCHIRP (110), - AB8500_INT_XTAL32K_KO (111), ST-Ericsson ID: 366316 ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I789a92671206d14469796ed9f15445b8e0801c5d Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49619 Reviewed-by: QABUILD Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com> Reviewed-by: QATEST
2012-03-19mfd: ab8500: Add comments on interruptsBengt Jonsson
Comments are added because not all interrupts are available on AB9540 and AB8505. ST-Ericsson ID: 366316 ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ic6e2b5a05ab09c7d21c27e497e34c868830a42dc Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49618 Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
2012-03-19mfd: ab8500: Update number of interrupts of AB8505Bengt Jonsson
ST-Ericsson ID: 366316 ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I355e57e533e6d25ffe13e925548bd720b392bdac Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49617 Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
2012-03-19Revert "Revert "rtc-ab: set can_wake flag""Rabin Vincent
This reverts commit 3b2031017f342d0906f9e2ba7484bcb27cbb240d. Now that the real problem has been fixed (in the RTC core and AB5500 driver), bring this back. ST-Ericsson ID: 375473 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I9e18d60fd26299e9a4c5709bdf0de7d850fba3a0 Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/39116 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com>
2012-03-19ab8500: mfd: Add interrupt debugBengt Jonsson
This patch adds an entry in debugfs to check number of interrupts from the AB. ST-Ericsson ID: 366316 ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I09d391e7d755773f7438fa1263371145ba91c1f1 Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49036 Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2012-03-19ab8500: mfd: Configure AB8505 interruptsBengt Jonsson
ST-Ericsson ID: 366316 ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ib4697a94eee06ea33317df3c355dd56bf5fc7acb Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49035 Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2012-03-19ab8500: mfd: Remove AB8505 detection hackBengt Jonsson
ST-Ericsson ID: 366316 ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I26aa50ff04843a53bddc147b7a5c501efe779f44 Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49034 Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2012-03-19ab8500: btemp: Introduce new AB version detectionMaxime Coquelin
Add support for AB8505 and AB9540 ST-Ericsson ID: 366316 ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I5d61207d2bfd6ac2b533f0bfa8652b3861c4c243 Signed-off-by: Maxime Coquelin <maxime.coquelin@stericsson.com> Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49027 Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2012-03-19ab8500: mfd: Add functions to check versionBengt Jonsson
This patch adds a function to detect AB8500 2.0 HW and a function to check AB8500 1.0 or earlier HW. ST-Ericsson ID: 366316 ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I9a46724abf9eb020cae82c5e20a5167887330a46 Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49032 Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Maxime COQUELIN <maxime.coquelin@stericsson.com>
2012-03-19ab8500: rtc: Remove fix for AB8500 ED versionBengt Jonsson
AB8500 ED (Early Drop) is no longer supported. ST-Ericsson ID: 366316 ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I51b860b71cf1485a202237a6962c89873b03add7 Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49030 Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2012-03-19ab8500: gpadc: Introduce new AB version detectionMichel JAOUEN
Add support for AB8505 and AB9540 ST-Ericsson ID: 366316 ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I9021cce8a38ba70f025b95610c84b554c4ad59ac Signed-off-by: Maxime Coquelin <maxime.coquelin@stericsson.com> Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49029 Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2012-03-19ab8500: charger: Introduce new AB version detectionMaxime Coquelin
Add support for AB8505 and AB9540 ST-Ericsson ID: 366316 ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I02bdd43c035200ba38a66b15e71d233f7de83e1c Signed-off-by: Maxime Coquelin <maxime.coquelin@stericsson.com> Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49028 Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2012-03-19power: ab8500_bm: Syncronize vbat and ibat readingsKalle Komierowski
Now the battery voltage is synchronized with the battery current measurement. ST-Ericsson Linux next: NA ST-Ericsson ID: 415825 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I9cd8387c2c0b9e66a6eae4dad67d9203512b6130 Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/48545
2012-03-19power: ab8500_bm: Use interrupt for inst current measurmentsKalle Komierowski
Use the CCEOC when measuring the instant current. ST-Ericsson Linux next: NA ST-Ericsson ID: 415825 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Id6e6113cdcf5f06f5d52915f7be65f4e5da0893f Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/48544
2012-03-19power: ab8500_bm: Use the correct values for the identified batteryKalle Komierowski
Now the correct design capacity is used. ST-Ericsson ID: - ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: Ie66c07e027801bee5c83b5da50411b94aebcb258 Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47829
2012-03-19power: ab8500_bm: Switch to correct state after initKalle Komierowski
A correction of the INITMEASURING state in the fuel gauge algorithm. Now a transition to the correct state should be functional again. ST-Ericsson ID: 414842 ST-Ericsson Linux next: - ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I9cc91635c25918897f754fa3e1a00e979979a1c1 Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47616
2012-03-19power: ab8500_bm: Added support for BATT_OVVHakan Berg
Add support for the battery over-voltage situation ST-Ericsson ID: 402073 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: - Change-Id: I2870ce43fc9d3504adcc6aafe10cf51510064d90 Signed-off-by: Hakan Berg <hakan.berg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47601 Reviewed-by: Johan BJORNSTEDT <johan.bjornstedt@stericsson.com> Reviewed-by: QABUILD
2012-03-19tty: serial: amba-pl011: fix cancel_delayed_work() usageRabin Vincent
PL011 calls del_timer_sync() (via cancel_delayed_work()) from atomic context. Fix it. ====================================================== [ INFO: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected ] 3.0.8+ #1188 ------------------------------------------------------ kworker/u:0/5 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: (&(&uap->clk_off_work)->timer){+.-...}, at: [<c01d82b4>] del_timer_sync+0x0/0xc8 and this task is already holding: (&port_lock_key){-.-...}, at: [<c03ca2b0>] pl011_clock_on+0x80/0xc4 which would create a new lock dependency: (&port_lock_key){-.-...} -> (&(&uap->clk_off_work)->timer){+.-...} but this new dependency connects a HARDIRQ-irq-safe lock: (&port_lock_key){-.-...} ... which became HARDIRQ-irq-safe at: [<c01fc734>] mark_irqflags+0x68/0x170 [<c01ff788>] __lock_acquire+0x598/0x788 [<c01fff84>] lock_acquire+0x10c/0x130 [<c06513cc>] _raw_spin_lock_irqsave+0x5c/0x98 [<c03cb788>] pl011_int+0x10/0x128 [<c0217a80>] handle_irq_event_percpu+0x98/0x1f4 [<c0217c18>] handle_irq_event+0x3c/0x5c [<c021a0f4>] handle_fasteoi_irq+0xc8/0x100 [<c02175e4>] generic_handle_irq+0x28/0x30 [<c0197078>] asm_do_IRQ+0x78/0xb8 [<c019cc90>] __irq_svc+0x50/0xf4 [<c04b21a0>] enter_sleep+0x550/0x608 [<c04b02ac>] cpuidle_idle_call+0x1c4/0x33c [<c019e1fc>] cpu_idle+0xa4/0x10c [<c0008a28>] start_kernel+0x228/0x27c [<00008040>] 0x8040 to a HARDIRQ-irq-unsafe lock: (&(&uap->clk_off_work)->timer){+.-...} ... which became HARDIRQ-irq-unsafe at: ... [<c01fc7b8>] mark_irqflags+0xec/0x170 [<c01ff788>] __lock_acquire+0x598/0x788 [<c01fff84>] lock_acquire+0x10c/0x130 [<c01d78a4>] call_timer_fn+0x68/0x1e4 [<c01d7be8>] run_timer_softirq+0x1c8/0x224 [<c01d0244>] __do_softirq+0x110/0x23c [<c01d05b8>] irq_exit+0x5c/0xc0 [<c0197308>] do_local_timer+0x50/0x80 [<c019cc90>] __irq_svc+0x50/0xf4 [<c064f30c>] __mutex_unlock_slowpath+0x150/0x17c [<c02c6d08>] sysfs_addrm_finish+0x10/0x74 [<c02c5afc>] sysfs_add_file_mode+0x70/0xb0 [<c02c8368>] create_files+0x7c/0xb4 [<c02c8458>] internal_create_group+0xb8/0x118 [<c03f08a8>] device_add_groups+0x1c/0x70 [<c03f0e2c>] device_add_attrs+0x50/0xa8 [<c03f0f94>] device_add+0x110/0x2b4 [<c0601114>] hci_register_sysfs+0x54/0x114 [<c05f2fec>] hci_register_dev+0x378/0x4d8 [<c04dbe58>] register_bluetooth+0xb4/0x124 [<c04dbf44>] probe_common+0x7c/0xcc [<c06482e0>] btcg2900_evt_probe+0x38/0x6c [<c03f3f18>] platform_drv_probe+0x18/0x1c [<c03f2c98>] really_probe+0x98/0x148 [<c03f2d90>] driver_probe_device+0x48/0x60 [<c03f21f0>] bus_for_each_drv+0x44/0x74 [<c03f2f10>] device_attach+0x78/0xa4 [<c03f2028>] bus_probe_device+0x24/0x40 [<c03f0ff8>] device_add+0x174/0x2b4 [<c03f4530>] platform_device_add+0x104/0x160 [<c0405d34>] mfd_add_device+0x194/0x1d4 [<c0405ef8>] mfd_add_devices+0x70/0xbc [<c04d6eec>] work_power_off_chip+0x11c/0x1c8 [<c01e250c>] process_one_work+0x2ac/0x4c8 [<c01e29f8>] worker_thread+0x144/0x234 [<c01e8280>] kthread+0x80/0x88 [<c019dc88>] kernel_thread_exit+0x0/0x8 other info that might help us debug this: Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&(&uap->clk_off_work)->timer); local_irq_disable(); lock(&port_lock_key); lock(&(&uap->clk_off_work)->timer); <Interrupt> lock(&port_lock_key); *** DEADLOCK *** Change-Id: I55d565d484baaee2dc76f258a5066aacbb6e6dee Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> ST-Ericsson ID: 413918 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I1a45effb0afeb4344f03ca500a5b0767bd760ec3 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47174 Reviewed-by: QABUILD Reviewed-by: Shreshtha Kumar SAHU <shreshthakumar.sahu@stericsson.com> Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com> Tested-by: Rabin VINCENT <rabin.vincent@stericsson.com>
2012-03-19ARM: kexec: Call the per cpu calls on crashing cpu as wellJonas Aaberg
Previous the per cpu callbacks where only executed on the none-crashing cpu. ST-Ericsson Linux next: - ST-Ericsson ID: 370799 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I0640f9121fb55e94f3939104d0a0fef224d35e7c Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/42666 Reviewed-by: QABUILD Reviewed-by: Johan BJORNSTEDT <johan.bjornstedt@stericsson.com>
2012-03-19mfd: ab8500: Configure AB8505Bengt Jonsson
ST-Ericsson ID: 371953 Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
2012-03-19config: ux500: Add U8520 machineBengt Jonsson
ST-Ericsson ID: 371953 Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
2012-03-19ARM: configs: Add support for 9540Yann Gautier
ST-Ericsson Linux next: NA ST-Ericsson ID: 398896 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I3962c34e9eb84e808f4d31dc0d9050bdac993abf Signed-off-by: Yann Gautier <yann.gautier@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/44916 Reviewed-by: QATOOLS Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
2012-03-19drivers: power: ab8500_charger: Remove pointless checkJonas Aaberg
Remove pointless check for NULL that didn't return a proper return value. (di can't be NULL, since then containerof would have failed.) ST-Ericsson Linux next: - ST-Ericsson ID: 370799 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ic3a725150c739e50e73d36255be4c3f02ae9bb6f Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47966 Reviewed-by: Johan BJORNSTEDT <johan.bjornstedt@stericsson.com>
2012-03-19ARM: Update mach-typesJohan Rudholm
ST-Ericsson Linux next: NA ST-Ericsson ID: 371953 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I57af85e8d2b40cc21a6ba4260e94ba03c436c625 Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47588 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
2012-03-19mfd/ab8500: remaining mainline differencesLinus Walleij
This collects the AB9540 changes that could not be included in the mainline patch set due to differences in the internal code (esp re GPIO driver). Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Change-Id: Ia5ed55f1f44da923e8b9ae22f9b47b681bbb8403 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47743
2012-03-19mfd/ab8500: support AB9540 variantLinus Walleij
The AB9540 variant of the AB8500 is basically close enough to use the same driver. This adds the new registers and deviations for this new chip variant. Cc: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Maxime Coquelin <maxime.coquelin@stericsson.com> Signed-off-by: Alex Macro <alex.macro@stericsson.com> Signed-off-by: Michel Jaouen <michel.jaouen@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Change-Id: I3995011686b0ed14219b3aacda4355705031bef2 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47742 Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com> Tested-by: Linus WALLEIJ <linus.walleij@stericsson.com>