With charger mode enabled in android, device boots into charger
mode when it is powered on with USB insertion. In this mode,
health HAL and charger service handles the power supply uevents
sent from power supply framework to take certain actions. For
example, when the USB or travel adapter (TA) is removed, device
would shut down in 10 seconds.
With a TA connected, device can enter suspend whenever possible
during charging. When the TA is removed after the device has
entered suspend, device comes out of suspend upon the notification
received from charger firmware (CHGFW) over PMIC Glink. Battery
charger driver handles this and calls power_supply_changed on one
of the power supply devices. However, before this uevent is
received and handled by charger service in the userspace, device
can enter suspend immediately.
In a low power discharging state, device stays in this state for
minutes until it gets another notification from CHGFW for battery
power supply, a periodic event which makes charger service to
initiate a shutdown. This conflicts with the user expectation
where the device has to shutdown in 10 seconds upon TA removal.
Workaround this problem by keeping the device awake for at least
50 ms when a notification is received from CHGFW. This way,
userspace process like charger could get a chance to receive and
handle the power supply uevents.
Change-Id: I9ea78eb6565988ffac0e6c5eee1ccae8dc7e3e3a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
If minidump is configured to be ELF32, avoid using complete
ramdump property, so that only the required segments area is
dumped.
Change-Id: I34fe359204309fda47d0a665ca641cb042d87054
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
Update the ABI snapshot version with the release of the new feature in
libabigail which also does CRC checks.
Change-Id: I0112a733015f608d53351c96a56f86e9086aee76
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Add a new property, to dump minidump ELF in ELF32 format,
as some subsystems do not support the default format,
which is ELF64.
Change-Id: I87bc46097b4dfc0be44f0904823c5e88c476c86b
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
Getting fsm state needs a dme command.
It'd lead to a deadlock if timeout of dme command
leads to dumping of fsm state which would again try to acquire
the uic_cmd_mutex.
Change-Id: I04ad7b6eececd085189ddc59154fc81e68874dc3
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
When bkops is enabled, the UFS device may do bkops during suspend.
With bkops enabled during suspend, configure the UFS's vccq power
in active operation configuration, allowing the device to draw
high power to support bkops and avoid over current event.
Change-Id: I6677b56cdb97689fa7ffc441f68a62af0dcbf53a
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
Error prints for commands that are broadcasted may spam the kernel logs
if a client is misbehaving and stops reading from it's socket.
Change these prints to ratelimited in order to prevent performance
issues when a client socket is full.
Change-Id: I5aa5fa1f693f9865a3d28f28de38f870a42fbc8d
Signed-off-by: Chris Lew <clew@codeaurora.org>
Add some more information to command prints in ipc logging and rename
logs from 'ns' to 'qrtr_ns' to group all qrtr logs together.
Change-Id: Ie312d6f5bd99d209548270f7dd6c618d6af31956
Signed-off-by: Chris Lew <clew@codeaurora.org>
With USB QDSS software path disable case, usb_qdss_close() API tries to
dequeue all queued USB requests which may have been already moved to
cancelled list and unlikely available as those may have been already
given back from end xfer command. There are more than 200 USB request
and quick enable/disable of USB QDSS software path results into error
message flooding serial console possibly causign watchdog timeout.
Hence rate limit error message with ep_dequeue() API.
Change-Id: I78dbffc5ec5e1b5d8d0df91da6aded398c988be9
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
This change enables TouchScreen config for holi target.
Change-Id: I03827d7465e965098e3cbbe33239b421a3b78b76
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
Clearing pending packets global reference count in mhi_controller
only when channel is in mission mode in error handling mechanism
with command completion timeout in mhi prepeare channel.
Change-Id: Ib86b4f2a2ff5f28d27cf6174f65987d4f9ca1aea
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>