Age | Commit message (Collapse) | Author |
|
commit 803862a6f7de4939e0a557214e5e4b37e36f87ff upstream.
The function esdhc_readl_le intends to clear bit SDHCI_CARD_PRESENT,
when the card detect gpio tells there is no card. But it does not
clear the bit actually. The patch gives a fix on that.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Change-Id: I18b0dd280b0d321a4da10d1233fc91dee7719360
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35582
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
commit 15bed0f2fa8e1d7db201692532c210a7823d2d21 upstream.
Ricoh 1180:e823 does not recognize certain types of SD/MMC cards,
as reported at http://launchpad.net/bugs/773524. Lowering the SD
base clock frequency from 200Mhz to 50Mhz fixes this issue. This
solution was suggest by Koji Matsumuro, Ricoh Company, Ltd.
This change has no negative performance effect on standard SD
cards, though it's quite possible that there will be one on
UHS-1 cards.
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Tested-by: Daniel Manrique <daniel.manrique@canonical.com>
Cc: Koji Matsumuro <matsumur@nts.ricoh.co.jp>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Change-Id: I0ba5d1d3c71a9487850c9e499d30d2737673a6a9
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35581
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
commit 026dfaf18973404a01f488d6aa556a8c466e06a4 upstream.
Add ID 4348:5523 for WinChipHead USB->RS 232 adapter with
Prolifec PL2303 chipset
Signed-off-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Change-Id: I858f1852aff29b2ee439a1afe226a4b8b4bd0d2c
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35580
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Update the code to handle some of the differences between
RFC 3041 and RFC 4941, which obsoletes it. Also a couple
of janitorial fixes.
- Allow router advertisements to increase the lifetime of
temporary addresses. This was not allowed by RFC 3041,
but is specified by RFC 4941. It is useful when RA
lifetimes are lower than TEMP_{VALID,PREFERRED}_LIFETIME:
in this case, the previous code would delete or deprecate
addresses prematurely.
- Change the default of MAX_RETRY to 3 per RFC 4941.
- Add a comment to clarify that the preferred and valid
lifetimes in inet6_ifaddr are relative to the timestamp.
- Shorten lines to 80 characters in a couple of places.
Change-Id: I4da097664d4b1de7c1cebf410895319601c7f1cc
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: JP Abgrall <jpa@google.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35579
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Change-Id: I7256ce5dc8433eb703d9f7f8ade55b5806cf348d
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35578
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Change-Id: Ie3e6c7634dde5773dddd10357cc581c66bf22ace
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35577
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Change-Id: Idf0771201837ad00304107af3592c35a6236eb33
Signed-off-by: Howard M. Harte <hharte@broadcom.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35576
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Change-Id: I08c164fe11238fb25d1d23db5d9b9e65f04cf10b
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35575
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Change-Id: I215f25caaa613ffe90fd33019c5c829ef268ba0c
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35574
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Change-Id: Iaa8f9502ca7be89da84e49b4deb78036dc0b81a9
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35573
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Change-Id: Iba7413e0cb5b0a2f0ad90c016fdd32f84627fd88
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35572
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Fix p2p group add issue.
Change-Id: Ieb8fba54e04912b4002837243c00ba90fd150e5d
Signed-off-by: Howard M. Harte <hharte@broadcom.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Change-Id: Id628cdde1f48563db0270416872ad5067acd49f7
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35571
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Change-Id: I0229f48ae8422249844c6f739d36d58e1b4872b0
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35570
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Fix race condition which can result in missing wakeup during
l2cap socket shutdown.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Change-Id: I8797d086ebbc222ec468bb5b5ac7335b826f64e9
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35569
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Fix race condition which can result in missing the wakeup intended
to stop the session thread.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Change-Id: I7047dfb72066d726d04f6ca97f2fada70339fdaa
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35568
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Fix race conditions which can cause lost wakeups (or missed signals)
while waiting to accept a sco socket connection.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Change-Id: I905dbb0c2ab840960fc420b30fb5a8032afb8c9e
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35567
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Fix race conditions which can cause lost wakeups (or misssed signals)
while waiting to accept an l2cap socket connection.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Change-Id: I71c320d161dfbb2bf45f2b2ccbcc2c30f7507558
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35566
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Fix race conditions which can cause lost wakeups while waiting
for sock state to change.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Change-Id: Ida23c4881653c90354bff85984d969cc5b323dba
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35565
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Fix race conditions which can cause lost wakeups (or missed
signals) while waiting to accept an rfcomm socket connection.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Change-Id: Iafe477372e4dcf4a4519cc79ff61bc457c3d8642
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35564
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Removed superfluous event handling which was used to signal
that the rfcomm kthread had been woken. This appears to have been
used to prevent lost wakeups. Correctly ordering when the task
state is set to TASK_INTERRUPTIBLE is sufficient to prevent lost wakeups.
To prevent wakeups which occurred prior to initially setting
TASK_INTERRUPTIBLE from being lost, the main work of the thread loop -
rfcomm_process_sessions() - is performed prior to sleeping.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Change-Id: I03b9763f014b9bb243c3ff83828029d9f72e70d0
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35563
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
In case of FW problem wldev_get_ssid() doesn't return error and ssid
structure has garbage.
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Change-Id: I8d84a9b1ed1a0e423131a24da563151cd930a154
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35562
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Change-Id: Ie757ec25c86d0402d0463a9b7f2fff14b840f446
Signed-off-by: Howard M. Harte <hharte@broadcom.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35561
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Change-Id: I79a25bd3f36f5d3accae83116084b8baf63a1033
Signed-off-by: Howard M. Harte <hharte@broadcom.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35560
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Change-Id: Iac27a11f1bdd6b217e975474641eebe5d4ec781d
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35559
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Change-Id: I6721f317bcd0fe3e1ea296a02b79442c8e899165
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35558
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Change-Id: Idd77caf358fc77c4b81929c644020d09009e4f36
Signed-off-by: Howard M. Harte <hharte@broadcom.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35557
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Fix unremoved monitor interface problem after killing hostapd.
Add WPS support for hostapd.
Change-Id: I4e476fafb203592fcdf5c15a526b67d4aa78df3e
Signed-off-by: Howard M. Harte <hharte@broadcom.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35556
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Change-Id: I27f41dd5833835b74f38524e9691d68ac807c991
Signed-off-by: Howard M. Harte <hharte@broadcom.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35555
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Change-Id: I30f9accee0a1b200847f3675f2ed109bbe316560
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35554
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Change-Id: Ie1bdb52a362755b7c922be9b721e9cf0e4042d95
Signed-off-by: Howard M. Harte <hharte@broadcom.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35553
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
The IRQ name has moved to the struct irqaction list (so print
first action's name).
Change-Id: I65a627457f9abaf7c1dcc32d8814243ba2ff4717
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35552
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: QABUILD
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Return if error in kmalloc, instead of goto err and
call function using NULL variable.
ST-Ericsson ID: 369796
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ib72acb6366f36febe3ea5cb7c9ceb275cfb1f038
Signed-off-by: Berne Hebark <berne.hebark@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35493
Reviewed-by: Joakim BECH <joakim.xx.bech@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
|
|
Dynamic handling of pins does not work properly if done manually from suspend/resume hooks,
so let's remove it for the time beeing.
ST-Ericsson Linux next: -
ST-Ericsson ID: 369952
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I3b130256b19af7feae9db0e4a1bd72c7856bb88c
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35405
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
Reviewed-by: QABUILD
|
|
Added notification events for ACA cases so that
battery manager can distinguish between Standard Host and
ACA charger.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 362951
ST-Ericsson FOSS-OUT ID: Trivial
Signed-off-by: rajaram <rajaram.ragupathy@stericsson.com>
Signed-off-by: Sakethram Bommisetti <sakethram.bommisetti@stericsson.com>
Change-Id: I02a19bced97b408990d8effb785418bf182ac27b
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34862
Tested-by: Rajaram REGUPATHY <ragupathy.rajaram@stericsson.com>
Reviewed-by: Praveena NADAHALLY <praveen.nadahally@stericsson.com>
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
Send UEvent when battery voltage is low/high so that android power framework
is being notified and actions are taken by android accordingly.
This also ensure that the paltform is shutdown cleanly when battery voltage
is below lower threshold.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 365061
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I01e3579ba5860244cd5837c8eb59f71bd9b5d719
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35050
Reviewed-by: QABUILD
Reviewed-by: Rajagopala VENKATARAVANAPPA X <rajagopala.v@stericsson.com>
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
|
|
ST-Ericsson ID: 368260
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Depends-On: I5307cb7f58fdf890896d641a8e4f49098a90b68e
Change-Id: I9ef4ff1c63f6ec9293ece4013f13cf3caa707d9d
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34307
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
|
|
Enable DMA again now when power save for MMC and DMA is in place.
Patch is tested:
* suspend and resume successfully in Android.
* suspend video playback from sd-card and resume it
successfully in Android.
ST-Ericsson ID: 370129
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I4eb9367c3feeb8661e33035d4d3022205b9e924b
Signed-off-by: Per Forlin <per.forlin@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35325
Reviewed-by: Stefan NILSSON9 <stefan.xk.nilsson@stericsson.com>
Tested-by: Stefan NILSSON9 <stefan.xk.nilsson@stericsson.com>
Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com>
|
|
In the suspend callback the pm_runtime_put_sync is now
no more useable. To be able to force our device into
runtime suspend state while doing a system suspend, the
AMBA bus are using the suspend|resume_noirq functions.
The AMBA bus will from these functions call for it's
runtime_suspend|resume functions which then reaches mmci's
runtime_suspend|resume as well.
Change-Id: I86d7480fd8612d80e2f5e0e8d9d3b31f42637638
Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35506
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
To be able to make sure devices are put into runtime suspend
after a suspend sequence, the suspend_noirq callback is used.
Previously it was was possible for drivers doing pm_runtime_suspend
and pm_runtime_put_sync directly from it's suspend callbacks.
This is now not possible due to the following commit, which solve a
race issue:
PM: Limit race conditions between runtime PM and system sleep (v2)
Change-Id: I48b988e9f7e411a0a122a58c0967fbee61256f89
Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35505
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
Changes needed due to the following commit:
PM: Limit race conditions between runtime PM and system sleep (v2)
Previously it was was possible for drivers doing pm_runtime_suspend
and pm_runtime_put_sync directly from it's suspend callbacks. Now
suspend_noirq shall be used, thus this is implemented for AMBA.
Additionally pm_runtime is now disabled during system suspend,
meaning "pm_runtime_status_suspended" must be used in
suspend|resume_noirq context instead of "pm_runtime_suspended".
Change-Id: Idda935d422884ecb3c4b6f5e415cd2e0077b06c7
Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35504
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
This boolean function simply returns whether or not the runtime status
of the device is 'suspended'. Unlike pm_runtime_suspended(), this
function returns the runtime status whether or not runtime PM for the
device has been disabled or not.
Also add entry to Documentation/power/runtime.txt
Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Change-Id: I2e31841f087b5d44a0f4d6e2f8bba2d08cfc7b64
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35338
Reviewed-by: QABUILD
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Tested-by: Ulf HANSSON <ulf.hansson@stericsson.com>
|
|
One of the roles of the PM core is to prevent different PM callbacks
executed for the same device object from racing with each other.
Unfortunately, after commit e8665002477f0278f84f898145b1f141ba26ee26
(PM: Allow pm_runtime_suspend() to succeed during system suspend)
runtime PM callbacks may be executed concurrently with system
suspend/resume callbacks for the same device.
The main reason for commit e8665002477f0278f84f898145b1f141ba26ee26
was that some subsystems and device drivers wanted to use runtime PM
helpers, pm_runtime_suspend() and pm_runtime_put_sync() in
particular, for carrying out the suspend of devices in their
.suspend() callbacks. However, as it's been determined recently,
there are multiple reasons not to do so, inlcuding:
* The caller really doesn't control the runtime PM usage counters,
because user space can access them through sysfs and effectively
block runtime PM. That means using pm_runtime_suspend() or
pm_runtime_get_sync() to suspend devices during system suspend
may or may not work.
* If a driver calls pm_runtime_suspend() from its .suspend()
callback, it causes the subsystem's .runtime_suspend() callback to
be executed, which leads to the call sequence:
subsys->suspend(dev)
driver->suspend(dev)
pm_runtime_suspend(dev)
subsys->runtime_suspend(dev)
recursive from the subsystem's point of view. For some subsystems
that may actually work (e.g. the platform bus type), but for some
it will fail in a rather spectacular fashion (e.g. PCI). In each
case it means a layering violation.
* Both the subsystem and the driver can provide .suspend_noirq()
callbacks for system suspend that can do whatever the
.runtime_suspend() callbacks do just fine, so it really isn't
necessary to call pm_runtime_suspend() during system suspend.
* The runtime PM's handling of wakeup devices is usually different
from the system suspend's one, so .runtime_suspend() may simply be
inappropriate for system suspend.
* System suspend is supposed to work even if CONFIG_PM_RUNTIME is
unset.
* The runtime PM workqueue is frozen before system suspend, so if
whatever the driver is going to do during system suspend depends
on it, that simply won't work.
Still, there is a good reason to allow pm_runtime_resume() to
succeed during system suspend and resume (for instance, some
subsystems and device drivers may legitimately use it to ensure that
their devices are in full-power states before suspending them).
Moreover, there is no reason to prevent runtime PM callbacks from
being executed in parallel with the system suspend/resume .prepare()
and .complete() callbacks and the code removed by commit
e8665002477f0278f84f898145b1f141ba26ee26 went too far in this
respect. On the other hand, runtime PM callbacks, including
.runtime_resume(), must not be executed during system suspend's
"late" stage of suspending devices and during system resume's "early"
device resume stage.
Taking all of the above into consideration, make the PM core
acquire a runtime PM reference to every device and resume it if
there's a runtime PM resume request pending right before executing
the subsystem-level .suspend() callback for it. Make the PM core
drop references to all devices right after executing the
subsystem-level .resume() callbacks for them. Additionally,
make the PM core disable the runtime PM framework for all devices
during system suspend, after executing the subsystem-level .suspend()
callbacks for them, and enable the runtime PM framework for all
devices during system resume, right before executing the
subsystem-level .resume() callbacks for them.
Conflicts:
drivers/base/power/main.c
Change-Id: I184431a2e6663222685098d869272b5e84b93c11
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35337
Reviewed-by: QABUILD
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
|
|
The documents describing the interactions between runtime PM and
system sleep generally refer to the model in which the system sleep
state is entered through a global firmware or hardware operation.
As a result, some recommendations given in there are not entirely
suitable for systems in which this is not the case. Update the
documentation to take the existence of those systems into account.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Change-Id: I926b72b01331e563d2e4a1e3b48c9e4c2ce29a05
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35336
Reviewed-by: QABUILD
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Tested-by: Ulf HANSSON <ulf.hansson@stericsson.com>
|
|
Introduce generic "noirq" power management callback routines for
subsystems in addition to the "regular" generic PM callback routines.
The new routines will be used, among other things, for implementing
system-wide PM transitions support for generic PM domains.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Change-Id: I345a1c6d221b402f349837581681bc7b5c464ea9
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35335
Reviewed-by: QABUILD
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Tested-by: Ulf HANSSON <ulf.hansson@stericsson.com>
|
|
Fix a re-entrancy issue when killing two processes that
use the CM driver simultaneously.
ST-Ericsson ID: 364585
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I48cb434b87a85b635fe4506a92d7b1c7086071fb
Signed-off-by: Pierre Peiffer <pierre.peiffer@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35216
Reviewed-by: QATOOLS
Reviewed-by: QABUILD
|
|
Installs STE multimedia header files to allow building the STE Ux5xx
STELP.
ST-Ericsson Linux next: NA
ST-Ericsson ID: 322357
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I07829a94862f6178e4c291a7dd9371ed146858d3
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34893
Reviewed-by: Thierry STRUDEL <thierry.strudel@stericsson.com>
Tested-by: Thierry STRUDEL <thierry.strudel@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
In order to save >100ms during resume, plugging and unplugging
the secondary cpus are done in separate threads instead
of in sequence with device suspend/resume calls.
ST-Ericsson Linux next: Not tested, ask SSM for ER
ST-Ericsson ID: ER356920
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ie2b28595e777b056e486ae6c3d90736bb274a307
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34871
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
|
|
Dependency to Vape prevents the platform from being able to go ApSleep.
When platform goes to ApSleep esram32 will switch to Vsafe.
ST-Ericsson ID: 370266
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: NA
Change-Id: I451e1d866c5999b2365c0127fd1044964691834e
Signed-off-by: Per Forlin <per.forlin@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35424
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
|
|
Some DSI displays requires a EOT packet after a transfer in HS.
This is optional in the MIPI standard and dependant on the display IC
if it should be used or not.
ST-Ericsson ID: 367923
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ia7f8d37cd0ab80847a6098489790d133dbcccb64
Signed-off-by: Jimmy Rubin <jimmy.rubin@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35324
Reviewed-by: Marcus LORENTZON <marcus.xm.lorentzon@stericsson.com>
Reviewed-by: Per PERSSON <per.xb.persson@stericsson.com>
|
|
Increase the number of MMC minor devices from 8 to 32. This is because
Android recovery mode needs access to additional partitions, and it is
neat to keep MMC device partitions within major number 179 (otherwise
any partition >8 would be assigned major number BLOCK_EXT_MAJOR, 259).
32 was chosen as the highest possible number when considering that
the two eMMC devices contain two boot partitions each.
ST-Ericsson ID: 356788
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Iffc42c595f655fe6ddc874875ae2606366f964ef
Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35465
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
|