Commit graph

582307 commits

Author SHA1 Message Date
Benjamin Chan
1e531fd402 msm: mdss: Add partial update support for dest-scaler
When applying partial update for command mode panel, the ROI is
calculated from the mixer ROI. When destination scaling is enabled, the
ROI for command mode panel should be the ROI after the scaling. This
panel ROI is provided from the user mode where the scaling is calculated
from.

CRs-Fixed: 1082694
Change-Id: Iac899e5130fdd7d34e598998f4b5cab601cf7a22
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2017-01-25 07:19:08 -08:00
Rakesh Pillai
bb1e977d1e ath10k: Add support for wmi ops and services for WCN3990
WCN3990 uses different wmi ops and services.
Add support for these wmi ops and services for
WCN3990 in ath10k

CRs-Fixed: 1115136
Change-Id: Id3f5f21dc4eb16e2175e570cc5c019a22b8ffb37
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2017-01-25 20:08:12 +05:30
Sarada Prasanna Garnayak
961b811c2e ath10k: update the Rx ring fill level for wcn3990 target
The WLAN firmware writes Rx packet in the Rx ring buffer
through copy engine. The Rx ring fill level depends on
the number of mac in WLAN chipset and wcn3990 WLAN chipset
has a dual mac. Update the Rx ring buffer fill level method
to add support for wcn3990 WLAN module.

CRs-Fixed: 1115978
Change-Id: Ife7a951171e25602b74f6b389f464c38cf9af1c8
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-01-25 19:28:36 +05:30
Deepak Kumar
26c2644b34 adreno_tz: Correct tz_buf pointer type to correct pointer arithmetic
Current tz_buf pointer type is causing the end address calcultion
of tz_buf to go wrong. "end_addr = tz_buf + PAGE_ALIGN(size)" is
resulting in an end address way beyond the allocated range because
tz_buf is of type unsigned int. This change changes the tz_buf
pointer type to u8 to fix this issue.

Change-Id: I16db09c565801b56c0c0ee8a8184f6e276512fa3
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2017-01-25 19:17:55 +05:30
Rajeev Kumar Sirasanagandla
2700547986 Revert "cfg80211: remove enum ieee80211_band"
This reverts commit ee6143827c ("cfg80211: remove enum ieee80211_band")
which is incomplete cherry-pick of commit 57fbcce37be7
("cfg80211: remove enum ieee80211_band") from
git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
and due to which compilation of ath10k module is broken.

Incomplete cherry-pick means not all files of corresponding commit from
opensource repo are pulled.

Conflicts were resolved in drivers/net/wireless/ath/ath10k/htt_rx.c

CRs-Fixed: 1113043
Change-Id: Ie2f95b1524777e8eaf1436ba3e4ab3f9e6b2822e
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
2017-01-25 05:12:07 -08:00
Brahmaji K
3027b74a51 ARM: dts: msm: Add qrng device node for SDM630
Add qrng device node with all the necessary parameters,
to enable the qrng driver on SDM630.

Change-Id: Id6321e4fe7a134266e8b580898618b0faafa841e
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
2017-01-25 18:39:21 +05:30
Brahmaji K
95ef7f6533 ARM: dts: msm: Add tz-log device node for SDM630
Add tz-log device node with all the necessary parameters,
to enable the TZ log driver on SDM630.

Change-Id: I8bf06dcc228ac27b1e9b1e3ddcd937a875ccebf0
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
2017-01-25 18:36:42 +05:30
Brahmaji K
282879567d ARM: dts: msm: Add crypto device node for SDM630
Add qcrypto and qcedev device nodes with all the necessary
parameters, to enable crypto drivers on SDM630.

Change-Id: I342ddd1ffabab92b4152373d0acb6fa1629aa416
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
2017-01-25 18:35:06 +05:30
Brahmaji K
8b8e942109 ARM: dts: msm: Add qseecom device node for SDM630
Add qseecom device node with all the necessary parameters,
to enable qseecom driver on SDM630.

Change-Id: I92f45e6bd1854825c8921dd4c997ab7473daa476
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
2017-01-25 18:34:52 +05:30
Laxminath Kasam
82dc8dd4bc ARM: dts: msm: Disable WSA for internal codec SDM660
Disable WSA nodes on internal codec using
bool property.

Change-Id: Ia404609382f12279ab091cbb69a16a2060ac7fb4
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-01-25 18:01:38 +05:30
Laxminath Kasam
01a680eb49 ARM: dts: msm: Add audio fixes for SDM660
Update internal codec settings for RX/TX devices.
Disable lpass notifier in analog codec driver.
Handle 44.1K support in machine driver to
disable MCLK before request for change in
MCLK frequency.

Change-Id: I5f78f07da46dee0c66e4e374da600e2e5c5d8e21
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-01-25 17:42:05 +05:30
Deepak Kumar
3a798eea0b msm: kgsl: refcount irq to avoid racing against idle check
Current irq handler clears the pending interrupt bits in interrupt
status register before serving the interrupts. This leads to a race
condition with the idle check which checks the interrupt status
register to determine whether any interrupt is pending or not. As
the interrupt status register is already cleared, idle check goes
ahead and switch off the GPU clocks even when irq is yet to be served
causing NOC errors.

This change refcounts each irq handler call and uses this reference
count to determine if any irq is still pending or not along with
interrupt status register to avoid this race condition.

Change-Id: I030d52c52055f836ea4c7519ce2d8db94a2a09a0
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2017-01-25 01:36:39 -08:00
Padmanabhan Komanduru
e2d34afade clk: qcom: mdss: add support for MDSS DP PLL for SDM660
Model and configure MDSS Display Port PLL for SDM660 target.
Add changes to define and register DP VCO, divider and mux clocks
as per common clock infrastructure.

Change-Id: Ice83e21323087e81e2f30998260be85120e41fa8
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2017-01-25 14:45:26 +05:30
Padmanabhan Komanduru
0ffede8816 clk: qcom: update the clock structures for DP clocks for SDM660
Update the clock names for parents of MDSS display port source
clocks for SDM660. The clock frequencies of DP clocks are
requested by the MDSS display port driver in order of KHz to
avoid integer overflow issues on 32-bit builds. Update the same
for DP clock structures in clock driver.

Change-Id: Ibfdade6f2db5c9ec7a7ff53ba76e6db53e4e605e
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2017-01-25 14:40:40 +05:30
Santosh Mardi
3d3e9e5885 cpufreq: restore policy min and max freq after hotplug
After hotplug policy max and min should be restored
to the user defined values.

Update to restore the policy min and max values defined
by user before going into hotplug.

Change-Id: I6a87fb7e84fae647e76e65734c7e1e9b498f82e3
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2017-01-25 10:29:47 +05:30
Subbaraman Narayanamurthy
7c9b67ac5e ARM: dts: msm: add battery profile for ascent 2800mah battery
Add a battery profile for ascent 2800mah battery which will be
used by some 8998 platforms.

Change-Id: I293019244c8a3f13df24d6c346258e897c1c7af0
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-24 20:50:10 -08:00
Subbaraman Narayanamurthy
7189487770 ARM: dts: msm: update battery profiles for GEN3 FG
Update the battery profiles for ascent, itech and st1031ga
batteries that are used with 8998 platforms as per the recent
characterized profile data.

Change-Id: I8dda10320f216e8fe40fda405817c1afc3b436de
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-24 20:46:54 -08:00
Subbaraman Narayanamurthy
7d937eff0e ARM: dts: msm: add batterydata to pmi8998 FG for msm8998 MTP and QRD
Add batterydata phandle to pmi8998 FG device so that it can be
used for obtaining the battery profiles that is required for
msm8998 MTP and QRD platforms.

Change-Id: I2255cd6475f3e49394cbdf3dd4594cb96fd70c31
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-24 20:46:53 -08:00
Taniya Das
807c806fa8 clk: qcom: Fix uninitialized variable and null pointer exception
Initialize the variables before their usage and add null pointer checks
before dereferencing pointers.

Change-Id: Ibe4140c6e0aa25c37583e6e5e6e2331d86f389aa
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-01-25 10:00:36 +05:30
Skylar Chang
170979c4fd msm: gsi: fix event ring handle in gsi_alloc_channel
Add a check to event ring handle.

Change-Id: If835e7e610745aeb82d4d0e363ef833d0f8d857a
CRs-Fixed: 1115476
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-01-24 19:22:25 -08:00
Xiaoyu Ye
243ede5fbe ASoC: msm8998: Fix misordering of Tavil codec SLIMBUS TX channels
Recording is failing for Tavil codec due to no input from microphones
that caused by wrong shared TX channels. Correct the order of Tavil
codec SLIMBUS TX channels to avoid wrong shared channel number being
used while enabling TX ports.

CRs-Fixed: 1114886
Change-Id: Ief94556995961f87e0effa092caf370b0927150a
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-01-24 18:40:21 -08:00
Yuanyuan Liu
bdea8a5178 icnss: Don't check return value of sending dynamic feature mask
Don't check return value of sending dynamic feature mask in cold
boot initialization sequence as it is an optional message.

CRs-Fixed: 1115626
Change-Id: Ieb2f86f3a5c2c368b2699755a716a3e385562f48
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2017-01-24 18:03:46 -08:00
Conner Huff
a29b498c4c net: rmnet_data: Optimized GRO for single flow
Port single flow dynamic GRO changes into rmnet driver. This
feature uses configurable parameters that determine when GRO
should be flushed based on both timing and receive byte count.
Although the parameters are initially set, they dynamically
fluctuate based on incoming traffic.

CRs-Fixed: 1113125
Change-Id: I7469118d3108e0c9f71c4f50efd8ceebfb324a63
Signed-off-by: Conner Huff <chuff@codeaurora.org>
2017-01-24 17:07:43 -08:00
Ingrid Gallardo
a1c43be00a msm: mdss: enforce bimc smmu gdsc power sequence
Fix the power on/off sequence based on the
hw recommendation, where bimc smmu gdsc is
powered off after mdss gdsc; and for the
power on sequence the bimc smmu gdsc is
enabled before the mdss gdsc.

Change-Id: Iad005082bcdb07f5529cd5eafd6ecd9c250c9665
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2017-01-24 16:48:40 -08:00
Sravan Kumar D.V.N
44b2aad082 msm: mdss: Clear compat structures before copying to user
In the compat layer, the temporary structures used to convert
data from 32bit to 64bit structures need to be set to 0 before
being assigned values.

CRs-Fixed: 1103689
Change-Id: I405500f427f3f4dc4d38a9fb188fece9a31614ca
Signed-off-by: Sravan Kumar D.V.N <sravank1@codeaurora.org>
2017-01-24 15:25:34 -08:00
Azam Sadiq Pasha Kapatrala Syed
d6f2fbcca5 msm: camera: Find and return mapped fd's from the list
Change to iterate the mapped buffer list and use the secure buffer
info structure instead of dma buffer info to return the secure mapped
fd's pertaining to the corresponding session.

Change-Id: I6dbfef3741d7ae0b24a4e101eebbf8dc62da630a
Signed-off-by: Azam Sadiq Pasha Kapatrala Syed <akapatra@codeaurora.org>
2017-01-24 15:21:13 -08:00
Abhijit Kulkarni
912edf6078 msm: mdss: Fix handling of Doze mode
This change fails the atomic validation if the commit happens
when panel is in ultra low power mode. This change also initializes
the play count when the panel power state changes.

Change-Id: Ie55dca6c8160c0eef4d4d01635d50d2d011e228c
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2017-01-24 11:25:13 -08:00
Abhijit Kulkarni
aaac291341 msm: mdss: fix use of uninitialized local variable
This change fixes unitilized local variable being used and
checks for the valid format in concurrent writeback case before
using the format parameters.

CRs-Fixed: 1110015
Change-Id: I61a3e20af1d0a4db7a7db454ae35b810639744ae
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2017-01-24 11:11:57 -08:00
Sathish Ambley
f779271498 defconfig: sdm660: Enable CDSP loader driver
Enable the CDSP loader driver to load CDSP image at boot
time.

Change-Id: Iaf0b60b09f98c67ae512620a225ddf385baec20c
Acked-by: Himateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2017-01-24 10:07:50 -08:00
Govind Singh
880e2993f4 ath10k: Add copy engine descriptor for WCN3990 target
The WCN3990 target uses 37bit addressing mode, define
separate structure for the copy engine descriptor to
support this 37bit addressing mode. The WCN3990 target
supports copy engine classification and toeplitz hash
calculation for NAPI.

CRs-Fixed: 1115328
Change-Id: I3a6d3e71e788acfab44f4c9d0f159ced351e6456
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-01-24 05:48:16 -08:00
Govind Singh
29a9abf1f9 ath10k: Add copy engine register MAP for wcn3990 wlan module
The copy engine is a host to target communication interface
between wlan firmware and wlan wcn3990 platform driver. Add copy
engine register map for wcn3990 snoc wlan module. This add support
for the copy engine source/destination ring configuration for
wcn3990 chipset.

CRs-Fixed: 1114412
Change-Id: If1a87fd9fffc62605ebc6d3fd8ed22980c5518e9
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-01-24 04:53:47 -08:00
Walter Yang
6250fc8f7d ASoC: wcd9xxx: check gpio pinctrl state in wcd9xxx_reset
As different kinds of gpio may be used for wcd codec reset.
Check the common pinctrl state instead of the gpio hw state
in wcd9xxx_reset.

CRs-Fixed: 1115065
Change-Id: Ife3578a778b0612767facbc79c126be145035cde
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-01-24 03:58:10 -08:00
Walter Yang
ce6b9b7308 ARM: dts: msm: modify sound node for sdm660 qrd skus
Device tree update is needed to adapt new sdm660 audio change.
Modify sound node for sdm660 qrd skus.

CRs-Fixed: 1113895
Change-Id: I96e71cafd3de82ffde42c33e0d613181a604c276
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-01-24 19:57:19 +08:00
Sandeep Panda
cc9f8d6709 msm: mdss: disable dsi timing db once fps is updated
In the current implementation, once dynamic fps update
kicks in, MDSS driver enables DSI timing db property.
But from chipsets like sdm660, DSI_CMD_OFFSET and
DSI_CMD_LENGTH register has become double buffered and
since timing db property was enabled as part of dynamic
fps update, DSI commands transfer for backlight update,
panel health check or panel off might fail if there is
no control flush. So disable DSI timing db property once
dynamic fps update sequence is complete.

Change-Id: I5158a36c9eea8f257ec81bab2f260e072fc22f29
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2017-01-24 17:20:14 +05:30
Lior David
626e3caa78 wil6210: bus_request platform operation refinement
The driver uses the bus_request platform operation to
request resources from the platform for a specific bandwidth.
Currently the driver requests resources for the maximum
theoretical bandwidth, when interface is brought up.
Refine this process a bit: now the driver will request a
small amount of resources when interface is up, and will only
issue the maximum request when connected.
This mechanism will be improved further in the future to make
more refined requests based on actual bandwidth.

Change-Id: Iada383f8183338190bfb082c1128d2ea38053ebc
CRs-Fixed: 1114406
Signed-off-by: Lior David <liord@codeaurora.org>
2017-01-24 13:30:19 +02:00
Lior David
18ae38826c msm_11ad: basic support for CPU boost
Added basic support for CPU boost: when driver calls ops_bus_request
with a high bandwidth requirement, enable the big CPU cluster
and adjust the affinity of the wil6210 interrupt to run on
the first big core. The first big core is selected because
WLAN driver uses the other cores.

Change-Id: Ia752b9a8ca343b56e2839a30a4fdb59231f9a634
CRs-Fixed: 1114406
Signed-off-by: Lior David <liord@codeaurora.org>
2017-01-24 13:30:09 +02:00
Tirupathi Reddy
fcc7c6c794 regulator: cpr4: Support MMSS closed-loop voltage adjustments
Adjust the target quotients according to the closed-loop voltage
adjustments mentioned in device tree node and efuse data.

Move the common code as utility functions in cpr3-util file
and keep the platform specific code in platform specific MMSS
files.

Change-Id: I39989cc57522009929c2785340563ee6ffb2475c
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-01-24 16:27:03 +05:30
Udaya Bhaskara Reddy Mallavarapu
37d262a5a5 ARM: dts: msm: Resolve TSIF GPIO conflicts for APQ8098
For APQ8098 TSIF GPIOs are allocated dedicately.
Remove TSIF GPIO references from other device nodes.
For SD Card detect GPIO86 is allocated and freed GPIO95.
Disable MDSS DSI configuration & free references of
GPIO91, GPIO94 pins.

CRs-Fixed: 1113595
Change-Id: Ib65231df58d4a9fc7cd5b1f744c406bf9d9c5885
Signed-off-by: Udaya Bhaskara Reddy Mallavarapu <udaym@codeaurora.org>
2017-01-24 15:01:15 +05:30
Sharad Sangle
5e3dd3f21b ASoC: msm: qdsp6v2: DAP: Add check to validate param length
To avoid buffer overflow, validate input length used to
set Dolby params.

Change-Id: I3f9d6040f118f63b60c20c83b0d8cae638f4a530
CRs-Fixed: 1095947
Signed-off-by: Sharad Sangle <assangle@codeaurora.org>
2017-01-23 22:57:41 -08:00
cyizhao
cafa17dfc7 ARM: dts: msm: Enable home key for qrd sdm660
GPIO11 is used for home key on QRD sdm660 device.
Configure it to input/pull-up mode and add it to gpio-keys
device for key detection.

CRs-Fixed: 1115040
Change-Id: I7144a784c8cae4fbb026c4822b757ea76502bf7d
Signed-off-by: cyizhao <cyizhao@codeaurora.org>
2017-01-24 14:02:03 +08:00
Sahitya Tummala
80240ba72a ARM: dts: msm: Add remote fs device node on sdm630
It is needed to enable remote file system on modem processor, which
needs access to store data onto eMMC/UFS device.

The shared memory size used by modem and apps for this purpose is 2MB
on sdm630.

Change-Id: Ib41f8c542e10add6ec5d77632a104028e51e6b8c
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2017-01-24 11:23:13 +05:30
Kiran Gunda
7b39a54287 ARM: dts: msm: Add LAB-IBB/OLEDB support for PM660A
PM660A supports LAB-IBB and OLEDB regulator while they are not
existing in PM660L. Add device nodes and enable them for PM660A.

Change-Id: I0210accea5e3a358830acf2235f72bad003d8144
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2017-01-23 21:09:47 -08:00
Kiran Gunda
e30ab2df19 regulator: qpnp-oledb: Correct the conditional checks
Correct the conditional check in the oledb_hw_init to avoid programming the
configuration registers if module is already enabled. Also correct the
conditional check in the oledb_regulator_disable.

CRs-Fixed: 1114628
Change-Id: I1af6c5ba6427050832ae04e693f161c517ef03a2
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2017-01-23 21:08:29 -08:00
Kiran Gunda
08db9f492d regulator: qpnp-labibb: Do not program LAB_CURRENT_SENSE for PM660A
Programming the default (1.5x) LAB_CURRENT_SENSE configuration is not
required for PM660A. Configure it only if explicitly specified in the
DT config.

CRs-Fixed: 1114628
Change-Id: Ib09e6430e99a7f39a9d2f837494a977daff354ba
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2017-01-24 10:29:12 +05:30
Benjamin Chan
715bb59eea msm: mdss: Add interface to support dest-scaler partial update
When destination scaler is used, the partial update ROI setting from the
layer mixer is not correct to program the panel ROI. We need an extra
panel ROI setting in such usecase.

CRs-Fixed: 1082694
Change-Id: Ieda5d43b6c52987464cf88aba6526da4441ee1d9
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2017-01-23 22:11:26 -05:00
Venkat Gopalakrishnan
98d825a34c scsi: ufs: check for err state when polling for doorbell
As part of polling for doorbell during clk scaling, we need to
make sure the host is in good state before polling.
In case error handler is running at the same time, that could
reset the clocks as part of recovery causing unclocked register
access when polling for doorbell.

Change-Id: I715932e9bffd51956d3a24aa2aec66c2c9a4652b
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2017-01-23 17:34:52 -08:00
Liangliang Lu
cd36afbdb7 usb: gadget: f_diag: allocate diag USB channel when not found
Currently usb function instance driver depends on diag char driver to
create the channel (using usb_diag_open api). Failing to create channel
can result in enumeration failure. Avoid this dependency by creating
diag channel from function instance if not available. Same channel
will be reused when diag char driver creates/opens the channel.

Change-Id: I11debd0189d81542762af22b3d203728d2266a42
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
2017-01-24 08:57:06 +08:00
Hemant Kumar
baaba9bc36 usb: gadget: f_mass_storage: Add delay before continuing status stage
There is a possibility of race between ep0 setup phase completion
handler and mass storage thread. Upon set_alt if thread gets a
chance to run before dwc3_ep0_delegate_req() returns
USB_GADGET_DELAYED_STATUS and sets delayed_status flag to true status
phase request never gets queued. This results into device enumeration
failure followed by a bus resets. Fix this issue by adding delay before
calling usb_composite_setup_continue() to queue the status phase request.

Change-Id: Iec6cf668053af310be5171d19d204fb452e01f2a
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-01-23 16:23:55 -08:00
Abhijeet Dharmapurikar
7cbc0c2159 smb-lib: report discharging when charger is absent
Currently, the code reports whatever is in the BATTERY_CHARGING_STATUS_1
register for the battery status.

We have seen that the register continues to report FAST charging
even when the chg_ok pin could be low or dc path is in collapsed
state (collapsed state is treated as dc not online). This unexpected
report of charging while it is not really charging breaks certain
features.

Fix it by checking for usb_online and dc_online. But make sure that
if the battery is full it continues to report so.

Change-Id: I732c916b4f63f9ff0fd8d9c77ce5253c309698a4
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-01-23 16:21:02 -08:00
Runmin Wang
778031ccb5 genirq: Add IRQ_AFFINITY_MANAGED flag
Add IRQ_AFFINITY_MANAGED flag and related kernel APIs so that
kernel driver can modify an irq's status in such a way that
user space affinity change will be ignored. Kernel space's
affinity setting will not be changed.

Change-Id: Ib2d5ea651263bff4317562af69079ad950c9e71e
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-01-23 16:01:01 -08:00