Age | Commit message (Collapse) | Author |
|
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
|
|
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
|
|
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>
|
|
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>
|
|
ST-Ericsson ID: 371953
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
|
|
ST-Ericsson ID: 371953
Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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
|
|
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>
|
|
This makes the AB8500 state struct contain the IRQ mask and
register offsets previously hard-coded so as to make room for
more AB8500 variants.
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: If54ddf5e5857583222f98d21e288834f30871b27
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47741
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Tested-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
There are currently four different versions of the AB8500
around: AB8500, AB8505, AB9540 and AB8540. Unfortunately:
- Some of the chips (AB8500, AB8505, AB9540) cannot read
the AB8500_REV_REG register but return errors
- Some of them have the same ID value in the hardware
register AB8500_REV_REV, for example the first versions
of AB8505 and AB9540 have 0xFF in this register -
just like the AB8500.
So we need to be able to enforce a certain version from
the platform. We do this by using the id of the platform
device that provides the read/write functions.
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: I87be719fd88c71356bb7b67374f957205b9e00fe
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47740
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Tested-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
The synchronized_update parameter is
removed and replaced by SYNCSRC_OFF
when disabling vertical synchronization
for display.
Signed-off-by: Anders Bauer <anders.bauer@stericsson.com>
|
|
PL011 should use pm_runtime_irq_safe() since it calls the pm_runtime routines
with interrupts disabled.
Found via lockdep:
=================================
[ INFO: inconsistent lock state ]
3.0.8+ #1187
---------------------------------
inconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage.
kworker/u:0/5 [HC0[0]:SC0[0]:HE1:SE1] takes:
(&port_lock_key){?.....}, at: [<c03ca23c>] pl011_clock_on+0xc/0xc4
{IN-HARDIRQ-W} state was registered 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
[<c0651e44>] _raw_spin_unlock_irq+0x28/0x54
[<c03c7394>] uart_carrier_raised+0x3c/0x44
[<c03c486c>] tty_port_carrier_raised+0x1c/0x20
[<c03c4d6c>] tty_port_block_til_ready+0x220/0x2cc
[<c03bf2b0>] tty_open+0x1f0/0x32c
[<c0273580>] chrdev_open+0x20c/0x238
[<c026e874>] __dentry_open+0x220/0x338
[<c026ea44>] nameidata_to_filp+0x50/0x5c
[<c027c670>] do_last+0x43c/0x4c4
[<c027d480>] path_openat+0xb8/0x37c
[<c027d824>] do_filp_open+0x30/0x7c
[<c026e594>] do_sys_open+0xd8/0x170
[<c019d240>] ret_fast_syscall+0x0/0x3c
irq event stamp: 60637
hardirqs last enabled at (60636): [<c0650558>] mutex_lock_nested+0x364/0x3c8
hardirqs last disabled at (60637): [<c065138c>] _raw_spin_lock_irqsave+0x1c/0x98
softirqs last enabled at (60509): [<c01d05b8>] irq_exit+0x5c/0xc0
softirqs last disabled at (60490): [<c01d05b8>] irq_exit+0x5c/0xc0
other info that might help us debug this:
Possible unsafe locking scenario:
CPU0
----
lock(&port_lock_key);
<Interrupt>
lock(&port_lock_key);
*** DEADLOCK ***
7 locks held by kworker/u:0/5:
#0: ((hdev->name)){.+.+.+}, at: [<c01e242c>] process_one_work+0x1cc/0x4c8
#1: ((&hdev->power_on)){+.+.+.}, at: [<c01e242c>] process_one_work+0x1cc/0x4c8
#2: (&hdev->req_lock){+.+.+.}, at: [<c05f51e8>] hci_dev_open+0x28/0x334
#3: (&main_info->man_mutex#2){+.+.+.}, at: [<c04d5f10>] cg2900_open+0xa8/0x49c
#4: (&(uart_info->sleep_state_lock)){+.+.+.}, at: [<c04dd648>] uart_set_chip_power+0x64/0x228
#5: (&tty->termios_mutex){+.+...}, at: [<c04de6cc>] cg2900_hci_uart_set_baudrate+0x34/0x8c
#6: (&port_lock_key){?.....}, at: [<c03ca23c>] pl011_clock_on+0xc/0xc4
stack backtrace:
[<c01a36ac>] (unwind_backtrace+0x0/0xec) from [<c01fc014>] (print_usage_bug+0x184/0x1c4)
[<c01fc014>] (print_usage_bug+0x184/0x1c4) from [<c01fc110>] (mark_lock_irq+0xbc/0x280)
[<c01fc110>] (mark_lock_irq+0xbc/0x280) from [<c01fc59c>] (mark_lock+0x2c8/0x3f8)
[<c01fc59c>] (mark_lock+0x2c8/0x3f8) from [<c01fc898>] (mark_held_locks+0x5c/0x80)
[<c01fc898>] (mark_held_locks+0x5c/0x80) from [<c01fcba8>] (trace_hardirqs_on_caller+0x138/0x18c)
[<c01fcba8>] (trace_hardirqs_on_caller+0x138/0x18c) from [<c0651e40>] (_raw_spin_unlock_irq+0x24/0x54)
[<c0651e40>] (_raw_spin_unlock_irq+0x24/0x54) from [<c03f8df8>] (rpm_callback+0x3c/0x5c)
[<c03f8df8>] (rpm_callback+0x3c/0x5c) from [<c03f9abc>] (rpm_resume+0x2ec/0x3c0)
[<c03f9abc>] (rpm_resume+0x2ec/0x3c0) from [<c03f9e04>] (__pm_runtime_resume+0x48/0x60)
[<c03f9e04>] (__pm_runtime_resume+0x48/0x60) from [<c03ca264>] (pl011_clock_on+0x34/0xc4)
[<c03ca264>] (pl011_clock_on+0x34/0xc4) from [<c03ca34c>] (pl011_set_termios+0x28/0x308)
[<c03ca34c>] (pl011_set_termios+0x28/0x308) from [<c03c76b8>] (uart_change_speed+0x90/0x94)
[<c03c76b8>] (uart_change_speed+0x90/0x94) from [<c03c7724>] (uart_set_termios+0x68/0x1b4)
[<c03c7724>] (uart_set_termios+0x68/0x1b4) from [<c04de710>] (cg2900_hci_uart_set_baudrate+0x78/0x8c)
[<c04de710>] (cg2900_hci_uart_set_baudrate+0x78/0x8c) from [<c04dd6e4>] (uart_set_chip_power+0x100/0x228)
[<c04dd6e4>] (uart_set_chip_power+0x100/0x228) from [<c04d6090>] (cg2900_open+0x228/0x49c)
[<c04d6090>] (cg2900_open+0x228/0x49c) from [<c04dc4b4>] (btcg2900_open+0x84/0x188)
[<c04dc4b4>] (btcg2900_open+0x84/0x188) from [<c05f5254>] (hci_dev_open+0x94/0x334)
[<c05f5254>] (hci_dev_open+0x94/0x334) from [<c05f5508>] (hci_power_on+0x14/0x6c)
[<c05f5508>] (hci_power_on+0x14/0x6c) from [<c01e250c>] (process_one_work+0x2ac/0x4c8)
[<c01e250c>] (process_one_work+0x2ac/0x4c8) from [<c01e29f8>] (worker_thread+0x144/0x234)
[<c01e29f8>] (worker_thread+0x144/0x234) from [<c01e8280>] (kthread+0x80/0x88)
[<c01e8280>] (kthread+0x80/0x88) from [<c019dc88>] (kernel_thread_exit+0x0/0x8)
Change-Id: I8b05184e348656a0d422b5b68267ee03246c6563
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: Id5a17f56dfa1b1b8c469237be5b9c236ad212137
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47173
Reviewed-by: QABUILD
Tested-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
Removed RTT interrupt handling, since PIE mode
interrupts now emulated in generic code via an hrtimer.
ST-Ericsson ID: 345151
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: NA
Signed-off-by: Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com>
Change-Id: I27f3803c50120a8e7369104fe0eb2c5536f314cb
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47378
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
Should build now.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 406251
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I09ae0e9a49c39a86368407a97c87bcbe94bbf927
Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47217
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
|
|
This is to prevent the charging to be terminated when booting
upp from trickle charging. With this patch charging should be
on from trickle charging up to USB enumeration.
Valid for USB host charger type.
ST-Ericsson ID: 406251
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Change-Id: Ibd744516ff2a6754d015d804ea42dcd1e429c615
Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47120
Reviewed-by: Peter ENDERBORG <peter.enderborg@stericsson.com>
Reviewed-by: Hakan BERG <hakan.berg@stericsson.com>
|
|
On detection on usb cable as standard host, charging can be started with 100mA
without waiting for the usb enumerated value as per the usb charging spec.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 406251
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I826ca3d8c466223e6f249ac58b7a614e3bf995cb
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/47118
Reviewed-by: Peter ENDERBORG <peter.enderborg@stericsson.com>
Reviewed-by: Hakan BERG <hakan.berg@stericsson.com>
Tested-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
ST-Ericsson Linux next: -
ST-Ericsson ID: 402239
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I46b16d38d8d521e0f994e6a92a0b3892eaa5382f
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/46910
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Some drivers can detect sub system failures e.g. shared memory driver can detect
modem sub system failures. It would be helpful in analyzing these failures if AB
register dump is available at that point. This patch adds the API for the
drivers to dump AB registers in the kernel log.
ST-Ericsson Linux next: -
ST-Ericsson ID: 402239
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I544e40b4e2f68a80a6aa73135d4a15c433ec6a8b
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/46909
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Update the ab8500_registers_print() to reuse it from multiple places.
ST-Ericsson Linux next: -
ST-Ericsson ID: 402239
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ie3ea115f8f408befbe095a5d426954f30db18156
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/46908
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Removes the extra platform data member added to support no-irq mode and
instead implements it using an invalid value for the existing irq
member. This is propagated through to the sub-device drivers by having
alternate versions of the cell data structures which do not have an irq
resource defined.
ST-Ericsson ID: 399362
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Change-Id: Id7cfd625c8deea387f4388d0745272707c7e9da0
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/46685
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
This switches the PL022 worker to a kthread in order to get hold of a
mechanism to control the message pump priority. On low-latency systems
elevating the message kthread to realtime priority give a real sleek
response curve. This has been confirmed by measurements. Realtime
priority elevation for a certain PL022 port can be requested from
platform data.
ST-Ericsson ID: 411788
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Change-Id: I3056068125eccdd8ae10cc052a35064fdf98af40
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/46411
Reviewed-by: QATOOLS
Reviewed-by: Virupax SADASHIVPETIMATH <virupax.sadashivpetimath@stericsson.com>
Reviewed-by: QATEST
Reviewed-by: Bibek BASU <bibek.basu@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
This will add support for datausage that is located
in the google Settings application.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 350337
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ie824b09788c09ec6723f6f6af22ffef8ab0b3d2c
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/46415
Tested-by: Markus GRAPE <markus.grape@stericsson.com>
Reviewed-by: QATEST
Reviewed-by: Hakan GARDRUP <hakan.gardrup@stericsson.com>
Reviewed-by: Anders NILSSON2 <anders.o.nilsson@stericsson.com>
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
Corrects initialisation, error condition and driver removal cleanup
for the no-irq configuration.
ST-Ericsson ID: 399362
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Change-Id: Ie04dc1cf906c2a09170c596aeed128fed7da5f6f
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/46379
Reviewed-by: QATOOLS
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
Adds support for boards which have an STMPE device without the
interrupt pin connected.
ST-Ericsson ID: 399362
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Signed-off-by: Chris Blair <chris.blair@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/41352
Change-Id: Ib5945fa7e0c5b798d363d756db978e42a57f371d
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/46240
Reviewed-by: QATOOLS
Reviewed-by: Michel JAOUEN <michel.jaouen@stericsson.com>
Tested-by: Michel JAOUEN <michel.jaouen@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
This is needed by test application used for BT HID PTS qualification.
Also usefull when making userspace drivers for custom HID devices.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 405447
ST-Ericsson FOSS-OUT ID: Trivial
Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Change-Id: If3b0f9d416b5ab28fccdfad3a9fe9397af818eb1
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/43721
Tested-by: SZYMON JANC <szymon.janc@tieto.com>
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
The reset date of DB5500 RTC (PL031) is 1.1.2000.
The correct wday for 1.1.2000 is saturday, but pl031 is initialized
to sunday. This may lead to alarm malfunction. Configure the correct
wday if RTC_DR has reset value.
ST-Ericsson ID: 345151
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: NA
Change-Id:I3e96e2552f332cdf5b71a2ab452e536269deb99c
Signed-off-by: Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45610
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
Change so we use a safer way to enable the autopower functionallity
of the ab8500. Make sure that this always is disabled when no charger
is connected.
ST-Ericsson ID: 407161, 407516
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Change-Id: I1167b94079953ff3fea230076b9bd014e058567e
Signed-off-by: Robert Marklund <robert.marklund@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45467
Reviewed-by: Johan BJORNSTEDT <johan.bjornstedt@stericsson.com>
Tested-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Change BATT OVV sequence so that the threshold is set
before OVV detection is enabled.
ST-Ericsson ID: 410374
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I10c3eb228e7afd4e16256d449b47bdb2570281e1
Signed-off-by: Johan Bjornstedt <johan.bjornstedt@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45520
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Fix and enable battery temperature auto trigger.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 372448
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I83d57133d5bebea00b658d170139a62be8e6f79f
Signed-off-by: Rajagopala V <rajagopala.v@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/43250
Reviewed-by: QABUILD
Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Support battery temperature measurement through
btemp_ball node for btemp gpadc auto trigger.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 372448
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I7e99a106a5840d21a108a0bae04e79f091bb26e1
Signed-off-by: Rajagopala V <rajagopala.v@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/43249
Reviewed-by: QABUILD
Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Move battery temperature manual mode monitoring selection
to platform data.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 372448
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I9224e5cc8bed77be6a10344d32e480a7717a1d22
Signed-off-by: Rajagopala V <rajagopala.v@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/43248
Reviewed-by: QABUILD
Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
ST-Ericsson Linux next: NA
ST-Ericsson ID: 410101
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ic8c6e6aedc1c30fb96bd468b0fbdb395328c841a
Signed-off-by: Sean Sandoval <sean.xx.sandoval@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45222
Reviewed-by: Markus GRAPE <markus.grape@stericsson.com>
Tested-by: Markus GRAPE <markus.grape@stericsson.com>
Reviewed-by: Hakan GARDRUP <hakan.gardrup@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
Setting the watchdog timeout to 0 makes any attempt to open the dev
node fail. This makes it possible to disable the watchdog
functionality on the kernel commandline with "ux500_wdt.timeout=0",
ST-Ericsson ID: 365851
ST-Ericsson Linux next:NA
ST-Ericsson FOSS-OUT ID:Trivial
Change-Id: I917258c9310ea2267c877c3c13d00dc08c30a147
Signed-off-by: Per Fransson <per.xx.fransson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45299
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
Fix for audio doesn't work in IK 3.3
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
|
|
Enable CONFIG_STM_MSP_SPI kernel config which initializes MSPs and
audio codecs.
Signed-off-by: Ramesh Chandrasekaran <ramesh.chandrasekaran@stericsson.com>
|
|
This is normally done by HDMIServices but the daemon is not running
in the linaro-android environment, hence enabling by default.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
|
|
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
|
|
The first amba port does not always have an attached tty, which will
result in a crash if the work-around is activated.
This seems to be the case for example on Snowball which has no modem
hw, which seems to be the main use-case for this work-around.
|
|
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
|
|
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
|
|
Signed-off-by: Philippe Langlais <philippe.langlais@stericsson.com>
|
|
parameters
Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
|
|
Now fsmc clock is disabled at boot and vape is not maintained, so to
have the ethernet driver working on Snowball we have to enable them.
So add fsmc clock management if any and use the not use vddvario regulator
mapped on vape for Snowball board.
Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
|
|
This patch disables support for legacy ABI binaries.
Only new ARM ABI i.e. EABI compiled user space is supported.
If legacy ABI binary is executed, results will be unpredictable.
This is done because race condition is seen in swap-out code
on SMP in following kernel panic dump -
<1>[35225.247131] Unable to handle kernel paging request at virtual address afd0c638
<1>[35225.247131] pgd = e0020000
<1>[35225.247161] [afd0c638] *pgd=2005a031, *pte=2331971d, *ppte=00000000
<0>[35225.247253] Internal error: Oops: 17 [#1] PREEMPT SMP
<6>[35225.247283] dbx500_dump notified of crash
<4>[35225.249298] PC is at vector_swi+0x28/0x88
<4>[35225.249328] LR is at 0xafd0c63c
<4>[35225.249328] pc : [<c0293828>] lr : [<afd0c63c>] psr: 60000093
<4>[35225.249359] sp : e013bfb0 ip : 82d08528 fp : 82d0731c
<4>[35225.249359] r10: 00000000 r9 : 47ac2738 r8 : 20000010
<4>[35225.249389] r7 : 000000a8 r6 : 00000000 r5 : 00000010 r4 : 001341d0
<4>[35225.249389] r3 : 00000001 r2 : ffffffff r1 : 00000008 r0 : 0013421c
<4>[35225.249420] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
<4>[35225.249420] Control: 10c57c7d Table: 2002004a DAC: 00000015
<4>[35225.249450]
<4>[35225.249450] PC: 0xc02937a8:
<4>[35225.249450] 37a8 e59d1040 e5bde03c e16ff001 f57ff01f e95d7fff e1a00000 e28dd00c e1b0f00e
<4>[35225.249511] 37c8 eb00f275 e1a096ad e1a09689 e5991000 e3a08001 e3110c01 0affffec e1a0100d
<4>[35225.249542] 37e8 e3a00001 eb0006f0 eaffffe8 e320f000 e320f000 e320f000 e24dd048 e88d1fff
<4>[35225.249603] 3808 e28d803c e9486000 e14f8000 e58de03c e58d8040 e58d0044 e3180020 13a0a000
<4>[35225.249664] 3828 051ea004 e59fc0ac e59cc000 ee01cf10 f1080080 e1a096ad e1a09689 e28f809c
<4>[35225.249694] 3848 e599c000 e3daa4ff 122a7609 159f8088 e92d0030 e31c0c01 1a000008 e3570e17
<4>[35225.249755] 3868 e24fee13 3798f107 e28d1008 e3a08000 e357080f e2270000 2a0010fc ea0173f0
<4>[35225.249786] 3888 e1a02007 e28d1008 e3a00000 eb0006c6 e28fe014 e1a07000 e28d1008 e3570e17
<4>[35225.249847]
<4>[35225.249847] SP: 0xe013bf30:
<4>[35225.249847] bf30 00000000 00000102 c0978064 c0322794 e013a000 00000001 00000024 c09d9cc0
<4>[35225.249908] bf50 00000000 ffffffff e013bf9c 00000000 000000a8 c02931ec 0013421c 00000008
<4>[35225.249938] bf70 ffffffff 00000001 001341d0 00000010 00000000 000000a8 20000010 47ac2738
<4>[35225.249969] bf90 00000000 82d0731c 82d08528 e013bfb0 afd0c63c c0293828 60000093 ffffffff
<4>[35225.250030] bfb0 0013421c 00000008 ffffffff 00000001 001341d0 00000010 00000000 000000a8
<4>[35225.250091] bfd0 00000000 47ac2738 00000000 82d0731c 82d08528 47ac2050 82d0340b afd0c63c
<4>[35225.250122] bff0 20000010 0013421c 40990310 d0610c09 00000000 00000001 bf000000 e00ba180
<4>[35225.250183] c010 c0999f28 00000000 00000015 c1639940 e00ba180 e013c000 c0ab67bc e1fb9720
<0>[35225.250244] Stack: (0xe013bfb0 to 0xe013c000)
<0>[35225.250274] bfa0: 0013421c 00000008 ffffffff 00000001
<0>[35225.250274] bfc0: 001341d0 00000010 00000000 000000a8 00000000 47ac2738 00000000 82d0731c
<0>[35225.250305] bfe0: 82d08528 47ac2050 82d0340b afd0c63c 20000010 0013421c 40990310 d0610c09
<0>[35225.250335] Code: e58d8040 e58d0044 e3180020 13a0a000 (051ea004)
<2>[35225.250366] CPU0: stopping
<4>[35225.250396] [<c029a84c>] (unwind_backtrace+0x0/0xf0) from [<c0776c88>] (dump_stack+0x10/0x24)
<4>[35225.250427] [<c0776c88>] (dump_stack+0x10/0x24) from [<c0292304>] (do_IPI+0xc8/0x164)
<4>[35225.250457] [<c0292304>] (do_IPI+0xc8/0x164) from [<c029324c>] (__irq_svc+0x4c/0xe4)
<4>[35225.250457] Exception stack(0xc0977ed8 to 0xc0977f20)
<4>[35225.250488] 7ec0: c09deb84 00000000
<4>[35225.250488] 7ee0: 00000000 c09deb48 00000001 00000001 6b99a329 c09deb48 159c928a 00000006
<4>[35225.250518] 7f00: 6b9c6db8 000017c4 00000002 c0977f20 c02a3774 c02a3790 60000113 ffffffff
<4>[35225.250549] [<c029324c>] (__irq_svc+0x4c/0xe4) from [<c02a3790>] (enter_sleep+0x6e8/0x728)
<4>[35225.250579] [<c02a3790>] (enter_sleep+0x6e8/0x728) from [<c05d88f0>] (cpuidle_idle_call+0xb0/0x190)
<4>[35225.250610] [<c05d88f0>] (cpuidle_idle_call+0xb0/0x190) from [<c0294c98>] (cpu_idle+0x94/0xf0)
<4>[35225.250610] [<c0294c98>] (cpu_idle+0x94/0xf0) from [<c0008bd4>] (start_kernel+0x310/0x380)
<4>[35225.250640] unwind: Unknown symbol address c0008bd4
<4>[35225.250640] unwind: Index not found c0008bd4
<4>[35225.251861] ---[ end trace 58829f802d64ca85 ]---
<0>[35225.251861] Kernel panic - not syncing: Fatal exception
<4>[35225.251892] [<c029a84c>] (unwind_backtrace+0x0/0xf0) from [<c0776c88>] (dump_stack+0x10/0x24)
<4>[35225.251922] [<c0776c88>] (dump_stack+0x10/0x24) from [<c0776d08>] (panic+0x6c/0x1ac)
<4>[35225.251953] [<c0776d08>] (panic+0x6c/0x1ac) from [<c02979d4>] (die+0x1b0/0x1f8)
<4>[35225.251983] [<c02979d4>] (die+0x1b0/0x1f8) from [<c029da48>] (__do_kernel_fault+0x64/0x84)
<4>[35225.251983] [<c029da48>] (__do_kernel_fault+0x64/0x84) from [<c029dd10>] (do_page_fault+0x2a8/0x2cc)
<4>[35225.252014] [<c029dd10>] (do_page_fault+0x2a8/0x2cc) from [<c02924e8>] (do_DataAbort+0x34/0x94)
<4>[35225.252044] [<c02924e8>] (do_DataAbort+0x34/0x94) from [<c02931ec>] (__dabt_svc+0x4c/0x60)
<4>[35225.252044] Exception stack(0xe013bf68 to 0xe013bfb0)
<4>[35225.252044] bf60: 0013421c 00000008 ffffffff 00000001 001341d0 00000010
<4>[35225.252075] bf80: 00000000 000000a8 20000010 47ac2738 00000000 82d0731c 82d08528 e013bfb0
<4>[35225.252075] bfa0: afd0c63c c0293828 60000093 ffffffff
<4>[35225.252105] [<c02931ec>] (__dabt_svc+0x4c/0x60) from [<c0293828>] (vector_swi+0x28/0x88)
Solution is proposed based on discussion in following
link -
http://lists.infradead.org/pipermail/linux-arm-kernel/2011-January/038059.html
ST-Ericsson ID: 408168
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ief923b60fd4cb93ce96af1a6af87ade691ec6770
Signed-off-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/44267
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
When the charger is removed the autopower feature
is turned off by clearing a bit in one of the registers
ST-Ericsson Linux next: NA
ST-Ericsson ID: ER405539
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ic61f355eed2c77c327d0e73f92a2ef22337f6f38
Signed-off-by: Johan Bjornstedt <johan.bjornstedt@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/43337
Reviewed-by: QABUILD
Reviewed-by: Peter ENDERBORG <peter.enderborg@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
|
|
Optimize delays during fg psy registration by
powering up fuel gauge before registration and
scheduling periodic workqueues at 250msec so
that enough samples are available for conversion.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 373975
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Iff0ec497a90399d0dcc514df24b12d594eb06459
Signed-off-by: Rajagopala V <rajagopala.v@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/44315
Reviewed-by: QABUILD
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
|
|
ST-Ericsson Linux next: NA
ST-Ericsson ID: 316540
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I1abe08f4b5ab5b5911583568ff935b78ae12b763
Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/42703
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|