Commit graph

572320 commits

Author SHA1 Message Date
Siddartha Mohanadoss
e64cce5256 iio: adc: rradc: Update RRADC reads and scaling
A check is needed to ensure the LSB and MSB are coherent
when reading the result registers for the RRADC channels.
The driver performs another round of read request and
compares the result registers to ensure the data read
back is coherent.

Since there are no channel specific properties remove
the dependency to add the channel nodes in the device
tree and instead statically register the channels within
the driver.

Update the scaling functions to report in the units
desired for the final scaled value based on the channel.
The resistance channel reports the units for batt_id
in ohms, the voltage channels such as DCIN, USBIN report
the value in units of microvolts, the current channels
in units of microamps and the temperature channels
such as thermistors are reported in units of millidegC.

Change-Id: I56e6bff28be2cc23f00622d5c37e42564c51a72f
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-08-02 11:37:08 -07:00
Siddartha Mohanadoss
2a61ba9c0d iio: adc: rradc: Append sysfs channel string
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>
2016-07-27 18:16:27 -07:00
Linux Build Service Account
8702ef5194 Merge "input: it7258_ts_i2c: clean up the it7258_ts_i2c driver" 2016-07-27 06:32:38 -07:00
Linux Build Service Account
d8b7811315 Merge "msm: vidc: Fix limit for LTR mode control" 2016-07-27 06:32:37 -07:00
Linux Build Service Account
e3b417d1a4 Merge "msm: vidc: add h264 8x8 transform mode support" 2016-07-27 06:32:36 -07:00
Linux Build Service Account
e0f0c48d63 Merge "icnss: Update event workqueue flags" 2016-07-27 06:32:36 -07:00
Linux Build Service Account
ce3bf6addf Merge "ARM: dts: msm: add FG GEN3 device on pmicobalt" 2016-07-27 06:32:34 -07:00
Linux Build Service Account
c97e71cae5 Merge "msm: ipa3: changes to IPA USB APIs to support SMMU" 2016-07-27 06:32:33 -07:00
Linux Build Service Account
3d3db56d8a Merge "icnss: Add state check before calling wlan suspend/resume" 2016-07-27 06:32:32 -07:00
Linux Build Service Account
00823f13c1 Merge "ARM: dts: msm: Add IPC Router devices for MSMFALCON" 2016-07-27 06:32:31 -07:00
Linux Build Service Account
fff9f1b6a1 Merge "ARM: dts: msm: Add glink_pkt devices for MSMFALCON" 2016-07-27 06:32:30 -07:00
Linux Build Service Account
61c62cd0e1 Merge "ARM: dts: msm: add pinctrl settings for DP GPIOs for msmcobalt" 2016-07-27 06:32:27 -07:00
Linux Build Service Account
03572cfd65 Merge "net: Revert upstream changes which break routing in tunnel scenarios" 2016-07-27 06:32:23 -07:00
Linux Build Service Account
57f8a1b6ce Merge "iommu/iommu-debug: Make debug driver 32 bit compatible" 2016-07-27 06:32:22 -07:00
Linux Build Service Account
8f41dee21d Merge "usb: pd: Don't notify EXTCON_USB unless type is SDP or CDP" 2016-07-27 06:32:21 -07:00
Linux Build Service Account
4c7861ccd6 Merge "defconfig: arm64: msm: Enable ESP transformation" 2016-07-27 06:32:20 -07:00
Linux Build Service Account
8c5c49fdb2 Merge "ASoC: open ASM session with 24 bit for 24 bit playback" 2016-07-26 23:34:43 -07:00
Linux Build Service Account
7613d2de29 Merge "scsi: ufs: Crash the system on unrecoverable state" 2016-07-26 23:34:42 -07:00
Linux Build Service Account
13679785f5 Merge "msm: cpp: Query buffer from buffer manager based on index" 2016-07-26 23:34:41 -07:00
Linux Build Service Account
3fd60d9501 Merge "usb: pd: Add vendor defined message handling" 2016-07-26 23:34:40 -07:00
Linux Build Service Account
742a59ec23 Merge "ARM: dts: msm: add default trace sink for MSMCOBALT" 2016-07-26 23:34:38 -07:00
Linux Build Service Account
fd5564ed7f Merge "input: touchpanel: Add GT9xx touchpanel driver for skuf" 2016-07-26 23:34:38 -07:00
Linux Build Service Account
2142082d3b Merge "input: touchscreen: Add synaptics v1 driver" 2016-07-26 23:34:37 -07:00
Linux Build Service Account
c5d039f875 Merge "soc: qcom: build kryo-l2-accessors only for msm8996" 2016-07-26 23:34:36 -07:00
Linux Build Service Account
fcbd9169dd Merge "clk: msm8996: compile 8996 clock files only for ARCH_MSM8996" 2016-07-26 23:34:35 -07:00
Linux Build Service Account
4e32af1514 Merge "input: touchpanel: Add Mstar msg21xx touchpanel driver" 2016-07-26 23:34:34 -07:00
Linux Build Service Account
1b816439d5 Merge "usb: xhci-plat: Add XHCI_STATE_REMOVING flag on removal of usb device" 2016-07-26 23:34:33 -07:00
Linux Build Service Account
6870e5d936 Merge "xhci: fix 10 second timeout on removal of PCI hotpluggable xhci controllers" 2016-07-26 23:34:33 -07:00
Linux Build Service Account
92a41a2846 Merge "ASoc: msm: fix out of bounds array access" 2016-07-26 23:34:32 -07:00
Linux Build Service Account
57fdba1a12 Merge "ASoC: msm: qdsp6v2: DAP: Update check to validate data length" 2016-07-26 23:34:31 -07:00
Linux Build Service Account
cb50168ee3 Merge "qcom-charger: smb2: configure input from wipower" 2016-07-26 23:34:30 -07:00
Linux Build Service Account
e698c6eeea Merge "msm: Camera buffer overflow fix" 2016-07-26 23:34:30 -07:00
Linux Build Service Account
667469218d Merge "iommu/arm-smmu: Print device name in context fault handler" 2016-07-26 23:34:29 -07:00
Linux Build Service Account
0de8ef1f3e Merge "sound: usb: Update USB audio QMI data structure" 2016-07-26 23:34:28 -07:00
Krishnankutty Kolathappilly
ddff1a93ba msm: cpp: Query buffer from buffer manager based on index
Query buffer from buffer manager based on buf index.
This allows modules to provide a buffer associated
with a particular request and avoids a wrong buffer
from being returned.

CRs-Fixed: 1018651
Change-Id: I206f3fa334d96e9f57fcbd985922a436ed701ff3
Signed-off-by: Krishnankutty Kolathappilly <kkolatha@codeaurora.org>
Signed-off-by: Hariram Purushothaman <hariramp@codeaurora.org>
2016-07-26 18:44:16 -07:00
Osvaldo Banuelos
bb02457c09 clk: osm: msm: add support for DxFSM workaround
Support a new OSM sequence which optimizes the number of
instructions required to program MEM-ACC settings and
the APM configuration of the CPUSS. This frees up sufficent
space to implement the DxFSM workaround.

CRs-Fixed: 1043040
Change-Id: I9499497cb558efcf3c73e7145ce65d3f129be696
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-26 18:43:06 -07:00
Osvaldo Banuelos
770bcca37a clk: msm: osm: add workaround for C2D/C3 + D2D collapse issue
Program architectural register 6 with the address of the SPM
core count hysteresis register and architectural register 7
with the up and down core-count SPM hysteresis values. The
sequencer uses this information to ensure stable operation
when CPU retention or power-collapse and cluster collapse
LPMs are enabled.

CRs-Fixed: 1045435
Change-Id: I5e41ce376c694736128ceb051db86f93467fdaea
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-26 18:42:06 -07:00
Osvaldo Banuelos
b924164a05 ARM: dts: msm: update frequency to ACC level mappings for msmcobalt
Since LowSVS and SVS frequencies share the same ACC settings,
map any frequency in the LowSVS to SVS range to the same ACC
level. By doing so, the OSM device need only support 3 levels
instead of 4 thus saving sequencer instruction space. Also,
update the ACC setting to ensure bit 31 of the last ACC register
in each cluster is set when running at LowSVS/SVS frequencies.

CRs-Fixed: 1021659
Change-Id: I322b9b57ec89f5cdc75336d83010ff89a6bb5726
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-26 18:40:57 -07:00
Osvaldo Banuelos
cb2a4195c3 ARM: dts: msm: specify APM threshold voltage in OSM for msmcobalt
Define the APM threshold voltage to be used by the OSM device
to determine the correct APM supply selection for different
DCVS setpoints.

CRs-Fixed: 1021656 1030444
Change-Id: Iebeb45eaa2503bd5be19f00938d0dbec1163c5a5
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-26 18:39:33 -07:00
Osvaldo Banuelos
3c7530a2d8 clk: msm: osm: add support for APM crossover corner
Add support to determine the APM threshold corner via open-loop
voltages in the VDD regulator OPP table. The threshold corner
is used by OSM to determine the APM supply for each DCVS setpoint.
The crossover corner is used by OSM to request a specific voltage
during the APM switch transition.

CRs-Fixed: 1021656 1030444
Change-Id: Iac04f6db8e85b3651a33b6c9bff667365cae891d
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-26 18:38:28 -07:00
Osvaldo Banuelos
9992623763 regulator: cprh-kbss-regulator: add support for APM crossover corner
Add support for a corner whose open-loop voltage corresponds to the
VDD supply voltage required during an APM switch transition. This
corner is requested by OSM hardware to the CPRh controller when
the VDD supply must be set to a specific voltage to ensure a stable
APM switch procedure. Define a crossover corner of 880 mV for both
VDD_APC CPR devices.

CRs-Fixed: 1021656
Change-Id: Icf4b640ec2c330b0d9721d3494297e2d8445c9b6
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-26 18:35:52 -07:00
Amit Shekhar
ce8006a221 msm: vidc: Fix limit for LTR mode control
Currently, maximum value for VIDC_VIDEO_LTRMODE contrl is set to
LTR_MODE_PERIODIC which is not supported. By limiting it to
LTR_MODE_MANUAL, the control value will stay with in supported range.

CRs-Fixed: 1046755
Change-Id: I85b8ac6dc847343d42cb2f6466137bf43fc1b7c1
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
2016-07-26 17:37:54 -07:00
Skylar Chang
a5dd060414 msm: ipa3: changes to IPA USB APIs to support SMMU
Add support to IPA USB APIs for SMMU.

CRs-Fixed: 1046497
Change-Id: Ifca675f308b59913743baf2e59dc3ed515a5b974
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-07-26 17:17:22 -07:00
Skylar Chang
ef0049eefd ARM: dts: msm: put ipa3 in smmu s1-bypass on msmcobalt
Enable SMMU on IPA3 and put in stage1-bypass mode to
not do the memory mapping.

Change-Id: Id2811c67a423c82201993b3119647a3d4caf4517
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-07-26 15:28:54 -07:00
Linux Build Service Account
d1313a37fe Merge "clk: msm: osm: support PLL droop detector workaround" into msm-4.4 2016-07-26 15:08:56 -07:00
Subbaraman Narayanamurthy
cda98b947c ARM: dts: msm: add FG GEN3 device on pmicobalt
FG GEN3 peripheral is present on pmicobalt and it provides the
battery parameters like current, voltage, resistance and
temperature for the clients that depend on them. Add FG GEN3
device on pmicobalt to support that.

Change-Id: I7ebb6a50564abc8e607f688d59690c55c10e2dc9
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-07-26 12:08:56 -07:00
Subbaraman Narayanamurthy
b08d3a6891 power: qcom-charger: add driver for GEN3 fuel gauge
GEN3 FG (fuel gauge) is a new hardware peripheral which cannot
be supported along with existing GEN1/GEN2 FG supported under
qpnp-fg.c. Some of the differences are listed below.

- No conventional memory access for accessing SRAM
- No OTP region for battery profile
- FTRIM registers will be loaded to SRAM
- SRAM partitioning and address format got changed completely
- Battery id detection done by RR_ADC
- Encoding/Decoding changes for battery parameters

Hence add a new driver to support this GEN3 FG. This driver
reads the battery parameters like voltage, current, temperature,
resistance etc. acquired by the FG hardware and expose to the
userspace through a power supply class device.

Change-Id: Ibcd6e49c7dc7c3520527bcf9553296e846fb7458
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-07-26 12:08:49 -07:00
Venkat Gopalakrishnan
0b6b69d591 scsi: ufs: Crash the system on unrecoverable state
If we have hit fatal errors and are not able to recover using
a reset, crash the system instead of proceeding and causing
further system failures.

Change-Id: I01820e4e8d3d3b603f16b615ae475095c3a417dd
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-07-26 11:36:59 -07:00
Yuanyuan Liu
d8fabbe1ff icnss: Update event workqueue flags
There are events doing probe/remove operations that
shouldn't be swapped. Strict the order by setting
max_active to 1 and adding the WQ_UNBOUND flag.

Change-Id: If65c952622bbaa3f71de6d02c81dbbba5ccead4e
CRs-Fixed: 1046131
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-07-26 11:20:05 -07:00
Sudhakar Manapati
0a7c11aa67 input: it7258_ts_i2c: clean up the it7258_ts_i2c driver
Clean it7258_ts_i2c touchscreen driver from checkpatch errors.

This patch is a propagated patch from 3.18 kernel
'commit 6b0cae0c59dc ("input: it7258_ts_i2c: clean
checkpatch errors")'

Change-Id: I7eac4a04a19beebe8c89b5328a2cf921fa78bb69
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-07-26 14:56:01 +05:30