During hard reset in sink mode, move the wait for VBUS to
reconnect to the PE_SNK_TRANSITION_TO_DEFAULT state. Use
the hrtimer to wait up to the maximum expected time for
VBUS to come back, which is triggered by the CC notification
from psy_changed(). This simplifies PE_SNK_STARTUP to only be
invoked when VBUS is already present and eliminates the
PE_SNK_DISCOVERY state.
When a non-PD source is connected, as the engine attempts to
wait for source capabilities this will result in hard reset
getting attempted 3 times with the hrtimer reaching full
timeout each time (for a total of ~6s) before settling.
Change-Id: Iee74c206b28fea9b75df2d234609a7939bc3d93c
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Update diag header with new MSG SSID for DPM.
CRs-Fixed: 1076696
Change-Id: I681509b653c419159f6ca4172c5ff66a1cae1b79
Signed-off-by: Chris Lew <clew@codeaurora.org>
It is possible that codec hardware can be reset in case of subsystem
restart scenarios. It is required to reset the codec DSP as well in
such cases to make sure the DSP is in usable state after the codec
hardware is reset. Change adds support to handle codec down and up
events and perform the necessary reset on codec DSP.
Change-Id: I79502c043f5e16947c895aab7cd584d72ad1a7dc
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
The wdsp_intr_handler is not really processing interrupts in interrupt
context, rather assumes that the caller is not in interrupt context and
performs calls that may sleep. Rename the function in order to avoid
confusion. Interrupt handlers can still call this function as long as
they are in threaded interrupt context and are okay to sleep.
Change-Id: Ia2803d6ca021d505ed2e711e676cbd701b11c492
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
One time initializations like regmap and debugfs init are currently
done in the init function. But, in case of subsystem restart, the
driver can get de-initialized and then initialized again. This causes
the debugfs and regmap entries to get removed and added again during
subsystem restart cases. Avoid this by moving all the one time
initialization of the driver to component bind.
Change-Id: Ideed297fde016b0623616be64875be094e688981
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Add device nodes for RPM master stats, CPR rail stats, system stats and
Logs. The stats allow users to verify/monitor the entry/exit of System
statistics.
Change-Id: Ie326495e012b693b47b33a4818ec11485afd88e9
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Enable the watchdog status registers for msmcobalt v2. This
feature must be specifically enabled in the OSM controller
of msmcobalt v2.
CRs-Fixed: 1076523
Change-Id: I1eb5c61037004e200e8f261d6e39b73028f04ab4
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Request the Nominal Fmax as the boot frequency for
each cluster during probe. This is done to ensure reasonable
boot time.
CRs-Fixed: 994035
Change-Id: Ic2dac9bdc1cd9f9b8d236997eba2e63295d6b4c0
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Instead of setting charge_done property from smb-lib when
handling chg_state_change interrupt, move it to a separate
function which reads the hardware register directly and
updates it. Since this doesn't require a set_property callback,
remove it.
Change-Id: I1005b135f5e16111257902413ef2b44c09cb1cfc
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>