Clients will find it easier to refer to channel
name instead of logical number when reading the
RRADC channel sysfs nodes. Add support to register
the string name when registering the RRADC channel
with the IIO interface.
Change-Id: I972def91c47af5e1d2406c470a40bf6c2f3fbde9
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Version 3 of the SPMI PMIC arbiter supports up to 512 APIDs.
However, the APID value is currently stored in u8 variables
throughout the spmi-pmic-arb driver. Change the type of these
variables to be u16 so that APIDs 256-511 are not truncated.
Also update the out_hwirq value packing in order to support
more than 8 bits for APIDs.
Change-Id: If2408bc4678b2e0f7e2366329be005cd652661cf
CRs-Fixed: 1045396
Signed-off-by: David Collins <collinsd@codeaurora.org>
FG_GEN3 driver supports the new FG GEN3 peripheral in pmicobalt.
Enable the support for it.
Change-Id: I0f1408099b0736ac510987c3a17ab798d84fbdff
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Fix the following things in fg-util.c which is included by GEN3
FG driver:
- Possible out of bounds access in fg_sram_dfs_reg_write() when
using bytes_read from sscanf
- Fix uninitialized usage of variable in write_next_line_to_log()
Change-Id: If9e7ba5632d1b5f99d91bda6276d9123c37e4dc7
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
The handle_critical_trips() api in thermal_core gets
invoked during the system resume path on 4.4 kernel.
If a thermal driver has registered for the critical trip
zone the handle_critical_trips() reads the current temperature
and checks against the critical threshold. If the
temperature value is greater than the critical threshold
the device is shutdown.
Remove registering the critical trip zone since its not
used by thermal sys clients. The driver will continue
to use it internally to set thresholds and monitor
the state of the TSENS (temperature sensor) controller.
Change-Id: Ie2024498224f078de77dd006d77cdfa99bb90eee
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Capability exchange may timeout during boot due to noise on slimbus
lines. Introduce retry mechanism to recover from this state. If the
HW noise happens just after capability exchange is successful, make
sure slimbus satellite HW powered on again by checking HW status
during message transfer.
Change-Id: I6ebf0ec78201551152bf6ac0d4372f36734a4708
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
Subsystem will restart within short timeframe.
Synchronise subsytem up/down callback notifications
to avoid functionality failures.
Use mutex locks to achieve synchronization.
Change-Id: I5881c7d468507bb8402a2e9f8178b9c31e57e8a5
Signed-off-by: Dilip Kota <dkota@codeaurora.org>
Make sure to use pipe handle from the TX
endpoint rather than using a stored handle.
The stored handle may become invalid if SSR
happens between storing of that handle
and locking the mutex.
Change-Id: I53e8f860c2d50061b6c4e6ce2f944c1e2ed8dff2
Signed-off-by: Dilip Kota <dkota@codeaurora.org>
Add support to read new current property tag from PMIC LED.
This parameter is used as default value.
CRs-Fixed: 1021009
Change-Id: Ib9f5d395d4b1381827d7129ef74fa05437571803
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
IPA modem driver uses shared-mem for IPA tables.
This change adds the needed mapping to AP context bank SMMU.
CRs-Fixed: 1046501
Change-Id: I185aaa38c3365336997a6a158311e67e7ffd26ad
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Add support for getting additional mappings from dtsi in
order to create a mapping on IPA SMMU context bank.
CRs-Fixed: 1046501
Change-Id: Ife4779ee6c20662e2c4d8ffcd16999a675461470
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Update the CPU frequency to MEM ACC level mappings for
the gold and silver clusters on MSMCOBALT to match the
recommendations given in the voltage plan.
CRs-Fixed: 1046577
Change-Id: Ia2d375b4c9d53dc4eedaf4983dd0bd1433419d75
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>