OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
8 years agoMerge "defconfig: msmcortex: Enable USB audio QMI service driver"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:18 +0000 (15:45 -0700)]
Merge "defconfig: msmcortex: Enable USB audio QMI service driver"

8 years agoMerge "usb: gadget: f_gsi: Increase USB GSI OUT TRBs from 7 to 31 for ECM"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:17 +0000 (15:45 -0700)]
Merge "usb: gadget: f_gsi: Increase USB GSI OUT TRBs from 7 to 31 for ECM"

8 years agoMerge "usb: dwc3: Change dwc3 irq to oneshot threaded irq"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:16 +0000 (15:45 -0700)]
Merge "usb: dwc3: Change dwc3 irq to oneshot threaded irq"

8 years agoMerge "msm: ipa3: support 64bitmask with SMMU attached"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:16 +0000 (15:45 -0700)]
Merge "msm: ipa3: support 64bitmask with SMMU attached"

8 years agoMerge "ASoC: wcd9335: Remove pop on bring-up of noise cancelling headset"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:15 +0000 (15:45 -0700)]
Merge "ASoC: wcd9335: Remove pop on bring-up of noise cancelling headset"

8 years agoMerge "defconfig: arm64: msm: Disable uid statistics"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:14 +0000 (15:45 -0700)]
Merge "defconfig: arm64: msm: Disable uid statistics"

8 years agoMerge "clk: msm: clock-gpu-cobalt: Support running the gfx3d_isense clock at XO"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:13 +0000 (15:45 -0700)]
Merge "clk: msm: clock-gpu-cobalt: Support running the gfx3d_isense clock at XO"

8 years agoMerge "msm: ipa: print resource bandwidth in ipa rm"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:12 +0000 (15:45 -0700)]
Merge "msm: ipa: print resource bandwidth in ipa rm"

8 years agoMerge "msm: vidc: Fix an issue with high bitrate playback"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:11 +0000 (15:45 -0700)]
Merge "msm: vidc: Fix an issue with high bitrate playback"

8 years agoMerge "msm: mdss: hdmi: parse High Dynamic Range (HDR) metadata"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:10 +0000 (15:45 -0700)]
Merge "msm: mdss: hdmi: parse High Dynamic Range (HDR) metadata"

8 years agoMerge "leds: qpnp-flash-v2: Separate switch node disable sequence"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:09 +0000 (15:45 -0700)]
Merge "leds: qpnp-flash-v2: Separate switch node disable sequence"

8 years agoMerge "ARM: dts: msm: Add switch nodes to pmicobalt"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:08 +0000 (15:45 -0700)]
Merge "ARM: dts: msm: Add switch nodes to pmicobalt"

8 years agoMerge "leds: qpnp-flash-v2: Add support for multiple switch nodes"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:07 +0000 (15:45 -0700)]
Merge "leds: qpnp-flash-v2: Add support for multiple switch nodes"

8 years agoMerge "defconfig: msmcortex: don't set default CMA region size"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:07 +0000 (15:45 -0700)]
Merge "defconfig: msmcortex: don't set default CMA region size"

8 years agoMerge "clk: msm: clock-mmss-cobalt: Add display port pixel clocks"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:05 +0000 (15:45 -0700)]
Merge "clk: msm: clock-mmss-cobalt: Add display port pixel clocks"

8 years agoMerge "msm: kgsl: Fix the access to invalid pool"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:04 +0000 (15:45 -0700)]
Merge "msm: kgsl: Fix the access to invalid pool"

8 years agoMerge "ARM: dts: msm: Attach device memory to lpass iommu on msmcobalt"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:03 +0000 (15:45 -0700)]
Merge "ARM: dts: msm: Attach device memory to lpass iommu on msmcobalt"

8 years agoMerge "nl80211: Move ACL parsing later to avoid a possible memory leak"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:03 +0000 (15:45 -0700)]
Merge "nl80211: Move ACL parsing later to avoid a possible memory leak"

8 years agoMerge "clk: msm: clock: Call the correct init sequence during fabia PLL handoff"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:00 +0000 (15:45 -0700)]
Merge "clk: msm: clock: Call the correct init sequence during fabia PLL handoff"

8 years agoMerge "regmap: initialize dump count to 1"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:00 +0000 (15:45 -0700)]
Merge "regmap: initialize dump count to 1"

8 years agoMerge "Revert "msm: vidc: Handle encoder input in true dynamic mode""
Linux Build Service Account [Wed, 13 Jul 2016 22:44:59 +0000 (15:44 -0700)]
Merge "Revert "msm: vidc: Handle encoder input in true dynamic mode""

8 years agoMerge "usb: gadget: f_gsi: Set speed descriptor pointers to NULL after free"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:58 +0000 (15:44 -0700)]
Merge "usb: gadget: f_gsi: Set speed descriptor pointers to NULL after free"

8 years agoMerge "defconfig: msmcortex: Enable CONFIG_INET_LRO"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:57 +0000 (15:44 -0700)]
Merge "defconfig: msmcortex: Enable CONFIG_INET_LRO"

8 years agoMerge "net lro: extend LRO to use hardware assists"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:56 +0000 (15:44 -0700)]
Merge "net lro: extend LRO to use hardware assists"

8 years agoMerge "wil6210: abort P2P search when stopping P2P device"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:55 +0000 (15:44 -0700)]
Merge "wil6210: abort P2P search when stopping P2P device"

8 years agoMerge "sched: break the forever prev_cpu selection preference"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:54 +0000 (15:44 -0700)]
Merge "sched: break the forever prev_cpu selection preference"

8 years agoMerge "msm: camera: isp: Fix RDI stream streamoff issue"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:52 +0000 (15:44 -0700)]
Merge "msm: camera: isp: Fix RDI stream streamoff issue"

8 years agoMerge "cnss: Refactor CNSS Platform Driver for better code maintenance"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:51 +0000 (15:44 -0700)]
Merge "cnss: Refactor CNSS Platform Driver for better code maintenance"

8 years agoMerge "msm: vidc: pm qos stability fixes for video driver"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:50 +0000 (15:44 -0700)]
Merge "msm: vidc: pm qos stability fixes for video driver"

8 years agousb: gadget: f_gsi: Increase USB GSI OUT TRBs from 7 to 31 for ECM
Mayank Rana [Thu, 9 Jun 2016 01:08:48 +0000 (18:08 -0700)]
usb: gadget: f_gsi: Increase USB GSI OUT TRBs from 7 to 31 for ECM

USB bus suspend with remote wakeup allowed case:
1. SUSPEND interrupt received from controller on USB bus suspend
2. gsi_suspend() blocks ringing of doorbell by USB controller to IPA GSI
and schedule usb_ipa_w work with event EVNT_SUSPEND
3. ipa_work_handler() work handler makes sure that USB GSI interface is
into IDLE state and calls ipa_usb_xdci_suspend() to put IPA GSI related
channel into suspend state and allow turning of IPA's clock
5. ipa_work_handler() decrements PM usage count, allow USB to go into LPM
6. USB controller driver turns off USB clocks and put into LPM

USB bus resume with remote wakeup allowed case:
1. WAKEUP interrupt received from controller on USB bus resume
2. USB controller driver turns on USB clocks
3. gsi_resume() increments PM usage count and schedule usb_ipa_w work with
event EVENT_RESUME
4. ipa_work_handler() work handler calls ipa_usb_xdci_resume() to resume
IPA GSI related channel and turning on IPA's clock
5. ipa_work_handler() unblocks ringing of doorbell by USB controller to
IPA GSI

In above USB bus resume case using specific host with ECM functionality,
host is able to send PING or data packets equal to prepared number of TRBs
(currently 7) on USB EP OUT successfully before above resume step 5 then
GSI ignores rang doorbell as WRITE pointer updating last consumed TRB is
already gone through full cycle. This results into data stall. Hence to fix
this issue increase number of TRBs used with USB OUT endpoint from 7 to 31
for USB ECM function with GSI accelerated path. This helps to have always
pending TRBs with USB controller and ringing of doorbell is not missed by
GSI once above resume step 5 is completed.

Also ECM doesn't support aggregation. Hence fix out aggregation size param.

CRs-Fixed: 1023149
Change-Id: Ife0f265b65fda92a99f5170154da6cb4c6b113b7
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
8 years agodefconfig: msmcortex: Enable USB audio QMI service driver
Hemant Kumar [Thu, 7 Jul 2016 21:16:41 +0000 (14:16 -0700)]
defconfig: msmcortex: Enable USB audio QMI service driver

This allows APPS USB XHCI driver to offload the USB audio
ISOC data transfer to remote processor. USB audio QMI driver
starts a QMI service to communicate with remote processor to
exchange audio stream related information.

Change-Id: Ib771c685b3245878413cd78d20451a0dcfdfda63
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agodefconfig: arm64: msm: Disable uid statistics
Bryse Flowers [Tue, 5 Jul 2016 21:49:15 +0000 (14:49 -0700)]
defconfig: arm64: msm: Disable uid statistics

Disable deprecated UID_STATS configuration in
preparation for removing the option from KConfig.

Change-Id: I496093bbc2125afbac58e83e38113af90858f1e7
CRs-Fixed: 1035969
Signed-off-by: Bryse Flowers <bflowers@codeaurora.org>
8 years agoASoC: wcd9335: Remove pop on bring-up of noise cancelling headset
Stephen Oglesby [Wed, 23 Mar 2016 21:03:47 +0000 (14:03 -0700)]
ASoC: wcd9335: Remove pop on bring-up of noise cancelling headset

In order to reduce an audible pop on bring-up of ANC headset
path, keep AMICs supplying ANC noise data muted and ANC block
in reset until after headset amps are enabled. Also synchronize
the PA enables.

CRs-fixed: 990915
Change-Id: Ifb6b7849ec60fa1b5e3fd56c1d45631af1c18fd8
Signed-off-by: Stephen Oglesby <soglesby@codeaurora.org>
8 years agomsm: ipa: print resource bandwidth in ipa rm
Skylar Chang [Thu, 7 Jul 2016 19:19:44 +0000 (12:19 -0700)]
msm: ipa: print resource bandwidth in ipa rm

Print resource bandwidth and total bandwidth in ipa resource
manager for debugging purpose.

Change-Id: Ib639cd850a7cafa5f1176f0fa09efac8ad8738d5
Acked-by: Shihuan Liu <shihuanl@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
8 years agomsm: vidc: Fix an issue with high bitrate playback
Arun Menon [Wed, 6 Jul 2016 23:31:08 +0000 (16:31 -0700)]
msm: vidc: Fix an issue with high bitrate playback

If the instant bitrate during playback is higher than
the max supported bitrate, then driver should ensure
that venus core is scaled at max frequency. Without this
change we will see frame drops if instant bitrate is
higher than max supported.

CRs-Fixed: 1038427
Change-Id: Id76865085285e2d8b92dba6aa456b972374789ac
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
8 years agodefconfig: msmcortex: don't set default CMA region size
Liam Mark [Fri, 3 Jun 2016 19:01:00 +0000 (12:01 -0700)]
defconfig: msmcortex: don't set default CMA region size

Configure the default CMA region size in DT instead
of using CONFIG_CMA_SIZE_MBYTES.
This is better because it allows alloc-ranges to be set and
is easier to configure per target.

CRs-Fixed: 1024204
Change-Id: Ie3bff2a43cfc2ea16543a3e9322a10f42c4bd923
Signed-off-by: Liam Mark <lmark@codeaurora.org>
8 years agoleds: qpnp-flash-v2: Separate switch node disable sequence
Devesh Jhunjhunwala [Tue, 14 Jun 2016 23:13:23 +0000 (16:13 -0700)]
leds: qpnp-flash-v2: Separate switch node disable sequence

Remove the leds_off label and move the switch node disable
sequence into a separate function. Also take this opportunity
to move the flash-led structs from header file to driver file.

CRs-Fixed: 1024187
Change-Id: I5d4eb58f5ed3ace03190f3c48b98f0d88e8b8965
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoARM: dts: msm: Add switch nodes to pmicobalt
Devesh Jhunjhunwala [Tue, 14 Jun 2016 09:01:08 +0000 (02:01 -0700)]
ARM: dts: msm: Add switch nodes to pmicobalt

The camera driver needs to be able to independently control
the front led and the rear leds from separate camera devices.
Update the pmicobalt flash-led device to support two switch
nodes, one of which controls the two rear leds and the other
controls the front led. Also update the camera device to use
the new switch node phandle.

CRs-Fixed: 1024187
Change-Id: I13d5a64fc35ca80e928d6da689d7b19cbbdb8fe5
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoleds: qpnp-flash-v2: Add support for multiple switch nodes
Devesh Jhunjhunwala [Tue, 14 Jun 2016 08:46:06 +0000 (01:46 -0700)]
leds: qpnp-flash-v2: Add support for multiple switch nodes

Since multiple devices may need to use the flash module,
each will need its own switch node to be able to
independently control the different leds. Add support for
this functionality.

CRs-Fixed: 1024187
Change-Id: Ibeebaff8456d8d338ac9bebb50e205e1196ce8a6
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoclk: msm: clock-mmss-cobalt: Add display port pixel clocks
Deepak Katragadda [Wed, 15 Jun 2016 18:06:16 +0000 (11:06 -0700)]
clk: msm: clock-mmss-cobalt: Add display port pixel clocks

Add support for the DP pixel clocks on MSMCOBALT.

Change-Id: Iab59a45da4bbca19b2eaebc63d827768ae86eec8
CRs-Fixed: 1028725
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
8 years agoclk: msm: clock-local: Add RCG support for DP pixel source
Deepak Katragadda [Wed, 2 Mar 2016 21:16:36 +0000 (13:16 -0800)]
clk: msm: clock-local: Add RCG support for DP pixel source

Add a new RCG op specific for the DP pixel clock source.

CRs-Fixed: 1028725
Change-Id: I65dcac9f4d17d30dfa1a00f4edabef33a3d75c6a
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
8 years agomsm: ipa3: support 64bitmask with SMMU attached
Skylar Chang [Mon, 11 Jul 2016 19:48:37 +0000 (12:48 -0700)]
msm: ipa3: support 64bitmask with SMMU attached

Add support for using 64bit dma_mask on ipa3 with
smmu dev attached both in bypass and full mode.

Change-Id: I955d81bffc957c4d93a1a90eb974e558e7b5d123
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
8 years agonl80211: Move ACL parsing later to avoid a possible memory leak
Purushottam Kushwaha [Thu, 7 Jul 2016 10:49:08 +0000 (16:19 +0530)]
nl80211: Move ACL parsing later to avoid a possible memory leak

No support for pbss results in a memory leak for the acl_data
(if parse_acl_data succeeds). Fix this by moving the ACL parsing later.

Cc: stable@vger.kernel.org
Fixes: 34d505193bd10 ("cfg80211: basic support for PBSS network type")
Signed-off-by: Purushottam Kushwaha <pkushwah@qti.qualcomm.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Git-repo: git://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211.git
Git-commit: 6e8ef842223b90a33efd570128bb566a9ae6f5ad
CRs-fixed: 1024951
Change-Id: I5750ae9091ca349e98bba4b24c78ef9446278c5a
Signed-off-by: Purushottam Kushwaha <pkushwah@codeaurora.org>
8 years agoARM: dts: msm: Attach device memory to lpass iommu on msmcobalt
Hemant Kumar [Tue, 5 Jul 2016 22:29:05 +0000 (15:29 -0700)]
ARM: dts: msm: Attach device memory to lpass iommu on msmcobalt

In order to share the usb audio qmi device iova with lpass usb audio
driver, attach usb audio qmi device to lpass q6 iommu using sid 12.

Change-Id: Iec7a0d5472136f55e31723ce2f4d681a9b67c140
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agoASoC: msm: qdsp6v2: Fix FE id check in routing driver
Ben Romberger [Tue, 3 May 2016 22:37:18 +0000 (15:37 -0700)]
ASoC: msm: qdsp6v2: Fix FE id check in routing driver

Modify FE ID check to use > instead of >= since
MSM_FRONTEND_DAI_MM_MAX_ID is defined as
MSM_FRONTEND_DAI_MULTIMEDIA16 which is a valid
FE ID.

Change-Id: I0ba4d62e3723841c3dfccdca210c80cd220f78f7
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
8 years agoARM: dts: msm: Add initial device tree files for falcon RUMI
Venkatesh Yadav Abbarapu [Wed, 29 Jun 2016 12:59:08 +0000 (18:29 +0530)]
ARM: dts: msm: Add initial device tree files for falcon RUMI

Adding the device tree files for RUMI platform.

Change-Id: I980e39b8c072fc2ec35d84b8698c40c770f7f041
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
8 years agomsm: vidc: Remove forced-setting of layer-wise bitrate for HP
Praveen Chavan [Thu, 2 Jun 2016 06:00:33 +0000 (23:00 -0700)]
msm: vidc: Remove forced-setting of layer-wise bitrate for HP

Layerwise bitrate with predefined distribution table is applied
if HP is enabled. This is wrong (since client may configure
custom distribution) and unnecessary (client may not configure
layerwise distribution and use cumulative).

CRs-Fixed: 1023504
Change-Id: I053587ae85b36ce0b08fdb5918c0f6b9d678dd24
Signed-off-by: Praveen Chavan <pchavan@codeaurora.org>
8 years agoqseecom: make change for unload TA
Zhen Kong [Wed, 6 Apr 2016 20:08:51 +0000 (13:08 -0700)]
qseecom: make change for unload TA

When unloading a TA, the operations to check ref_cnt,
scm_call to unload TA, free app list entry should be
within one critical section. Otherwise, if another
thread comes in and tries to load TA, TA status will
be out-of-sync. so move __qseecom_cleanup_app()
and __qseecom_reentrancy_check_if_no_app_blocked()
to the beginning of qseecom_unload_app(), as these
functions may release app_access mutex for a short
period.

Change-Id: I3e961f4fe1728a32314a3acf7af719374c90d01f
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
8 years agodefconfig: arm64: msm: Disable qtaguid and net activity stats
Bryse Flowers [Thu, 7 Jul 2016 17:45:42 +0000 (10:45 -0700)]
defconfig: arm64: msm: Disable qtaguid and net activity stats

Temporarily disable modules while stability issues are resolved.

Change-Id: I6bab3370caf776de25316da58ca48fcd9fbc4b5e
CRs-Fixed: 1035969
Signed-off-by: Bryse Flowers <bflowers@codeaurora.org>
8 years agoASoC: msmcobalt: Fix slimbus tx channel configuration
Sudheer Papothi [Wed, 6 Jul 2016 15:59:18 +0000 (21:29 +0530)]
ASoC: msmcobalt: Fix slimbus tx channel configuration

Slimbus tx channel configuration is not updated properly in
msmcobalt machine driver. Fix slimbus tx channel configuration
for proper functionality of audio recording usecases.

Change-Id: I96010edabd04fef0eeb3cbb0b8f1a11d178d99b5
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
8 years agoarm64: defconfig: msm: enable MODULE_SIG for msm chipsets
Satya Durga Srinivasu Prabhala [Wed, 6 Jul 2016 18:17:55 +0000 (11:17 -0700)]
arm64: defconfig: msm: enable MODULE_SIG for msm chipsets

MODULE_SIG is needed to check modules for valid signatures upon load.

CRs-Fixed: 1018761
Change-Id: Idc368aff7090bcb52ae598faae9f95c1ffe1d4cf
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
8 years agodriver: thermal: Configure ARM threshold instead of low
Ram Chandrasekar [Fri, 3 Jun 2016 21:01:19 +0000 (15:01 -0600)]
driver: thermal: Configure ARM threshold instead of low

LMH DCVSh will retain the mitigation till it clears the Low
threshold. With mitigation happening at 95C, configuring the
low threshold as 65C will hold the mitigation till it clears 65C,
which will impact the performance.

Instead of configuring the low threshold, configure the ARM threshold
from HLOS and low threshold will be configured 2C less than the
high threshold in the trust zone.

CRs-Fixed: 1024370
Change-Id: Ifb303d7266c98eb94c5eb6f806b7c5e1d95236d3
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
8 years agomsm: sde: Correct rotator irq enable mismatch
Alan Kwong [Wed, 6 Jul 2016 16:11:44 +0000 (12:11 -0400)]
msm: sde: Correct rotator irq enable mismatch

This corrects rotator irq enable mismatch by moving enable/disable
sequence to resource allocation/deallocation time.  This will
eliminate race condition between regdma start and wait for done,
which causes unacknowledged rotator interrupt to continuosly trigger
MDSS main interrupt handler, ending in watchdog reset.

CRs-Fixed: 1035411
Change-Id: I597b58b478a35e9c3e3afb1a2ddd20ad87961c1a
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
8 years agomsm: sde: Updating linear format definition for v4l2 rotator
Benjamin Chan [Wed, 22 Jun 2016 18:54:08 +0000 (14:54 -0400)]
msm: sde: Updating linear format definition for v4l2 rotator

Providing additonal linear format support for v4l2 rotator in mdss 3.x
hardware.

CRs-Fixed: 1032294
Change-Id: Ie8a19341831d4ffaea36898a80c71ab25f5daf3c
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
8 years agoARM: dts: msm: Add dts entry mpm2-sleep-counter for MSMCOBALT
Runmin Wang [Sat, 2 Jul 2016 00:38:40 +0000 (17:38 -0700)]
ARM: dts: msm: Add dts entry mpm2-sleep-counter for MSMCOBALT

Add dts mpm2-sleep-counter node which is used by the boot_stats driver.
This dt node gives imem offset to read boot stats written by the
bootloader.

CRs-Fixed: 1037982
Change-Id: I4f8ec495ae02908d1d8cd7e86148a6d4bd38b198
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
8 years agomfd: qcom-i2c-pmic: add option to skip irq control
Nicholas Troast [Fri, 1 Jul 2016 19:53:14 +0000 (12:53 -0700)]
mfd: qcom-i2c-pmic: add option to skip irq control

Some MFD PMIC configurations do not support interrupts. Make the interrupt
controller optional to support these PMIC configrations.

Without an interrupt controller this driver simply passes a regmap to
its children.

CRs-Fixed: 1037797
Change-Id: I52b909dd226494987c79ed106ffdf9892d966ef1
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
8 years agoARM: dts: msm: create a separate dtsi file for msmcobalt qrd
Runmin Wang [Thu, 30 Jun 2016 00:27:05 +0000 (17:27 -0700)]
ARM: dts: msm: create a separate dtsi file for msmcobalt qrd

Following the convention like MTP and CDP, create a separate dtsi file
for msmcobalt qrd platform.

CRs-Fixed: 1036660
Change-Id: I8ccbbc9ef0795397614ad0644fd1f2b5e31e3780
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
8 years agoARM: dts: msm: Update MPM interrupt mappings for cobalt
Archana Sathyakumar [Tue, 14 Jun 2016 20:07:10 +0000 (14:07 -0600)]
ARM: dts: msm: Update MPM interrupt mappings for cobalt

Update MPM interrupt mapping to bypass some of the interrupts as per the
HW specification.

CRs-fixed: 1032455
Change-Id: I60c60470a649eecd5bacf0b39b20dff58c910897
Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
8 years agoARM: dts: msm: configure default CMA region for msmcobalt
Liam Mark [Fri, 3 Jun 2016 18:07:36 +0000 (11:07 -0700)]
ARM: dts: msm: configure default CMA region for msmcobalt

Configure the size of the default CMA region in DT.
Configuring the default CMA region in the DT is cleaner than using
CONFIG_CMA_SIZE_MBYTES since it is easier to configure per target
and the alloc ranges can be specified in DT.

CRs-Fixed: 1024204
Change-Id: I7d999382dcb6223d84424173a1726c250520ad04
Signed-off-by: Liam Mark <lmark@codeaurora.org>
8 years agoARM: dts: msm: return unused pIMEM Vault memory for msmcobalt
Liam Mark [Fri, 3 Jun 2016 17:39:37 +0000 (10:39 -0700)]
ARM: dts: msm: return unused pIMEM Vault memory for msmcobalt

Not all of the pIMEM Vault memory carveout is being used in msmcobalt.
Return unused portion of the pIMEM Vault carveout memory to HLOS.

CRs-Fixed: 1024170
Change-Id: Ie0cfab09192ca6b09ec4fe171aaf544e3fb5f08f
Signed-off-by: Liam Mark <lmark@codeaurora.org>
8 years agosound: usb: Add support to share iova with remote processor
Hemant Kumar [Tue, 22 Mar 2016 23:35:16 +0000 (16:35 -0700)]
sound: usb: Add support to share iova with remote processor

ISOC data transfer for audio device is offloaded to remote
usb audio driver entity. This requires remote entity to access
device context info, event ring, transfer rings and transfer
buffers allocated by APPS XHCI device. Hence add a platform
device which maps the XHCI device physical memory to virtual
memory and shares with remote processor's iommu. All the memory
info is then sent over QMI to remote entity.

Change-Id: I1abc80652a167cefa667b914b3a80a87326c3d44
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agosound: usb: Add support for usb audio qmi service
Hemant Kumar [Thu, 28 Jan 2016 19:41:42 +0000 (11:41 -0800)]
sound: usb: Add support for usb audio qmi service

Upon usb audio device enumeration remote entity
communicates with usb audio qmi server to enable
or disable particular audio stream on usb audio
device. This off loades ISOC data transfer
operations to remote entity and allows APQ to go
to power collapse more frequently for better
power saving.

Change-Id: I2c9b0ba0837f8fec5c320e3117aa3b2f553db6b2
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agoARM: dts: msm: add proxy vote for DSI supplies for msmcobalt
Aravind Venkateswaran [Wed, 22 Jun 2016 19:19:28 +0000 (12:19 -0700)]
ARM: dts: msm: add proxy vote for DSI supplies for msmcobalt

When continuous splash screen feature is enabled, the display needs to
be kept alive during the kernel boot up. Add proxy vote for all the
regulator supplies needed to keep the display panel alive over the DSI
interface until the display driver hand off can be executed.

CRs-Fixed: 1037857
Change-Id: I95544aaf607887ae34eace8a9b1f18a1375c5c6d
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
8 years agoclk: msm: clock-mmss-cobalt: Add display port clock support
Deepak Katragadda [Mon, 29 Feb 2016 22:33:20 +0000 (14:33 -0800)]
clk: msm: clock-mmss-cobalt: Add display port clock support

Add support for the DP link and crypto clocks on MSMCOBALT.

CRs-Fixed: 1028725
Change-Id: I6cdb366499f9589dff9a42491c7ff357e98d65c5
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
8 years agoARM: dts: msm: Add regulator node to flash-led for pmicobalt
Devesh Jhunjhunwala [Fri, 27 May 2016 09:46:12 +0000 (02:46 -0700)]
ARM: dts: msm: Add regulator node to flash-led for pmicobalt

The flash-led switch node must vote on the pmicobalt BoB
regulator. Hence, add this regulator node to that.

CRs-Fixed: 1024187
Change-Id: Ic4ec03e4fd545d44118c2225a3f8e26901ca1d81
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoleds: qpnp-flash-v2: add regulator support
Devesh Jhunjhunwala [Thu, 2 Jun 2016 18:59:58 +0000 (11:59 -0700)]
leds: qpnp-flash-v2: add regulator support

Add support to control regulators required for
flash-led. The pmicobalt_bob regulator is one
such regulator required by the flash-led device.

CRs-Fixed: 1024187
Change-Id: I1515fba2fb04c0b4d21828af3cea6d322262ab14
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoleds: qpnp-flash-v2: add callback for max current query
Chun Zhang [Wed, 6 Apr 2016 06:36:54 +0000 (23:36 -0700)]
leds: qpnp-flash-v2: add callback for max current query

Flash LED is a high energy aggregator from system as it is capable
to provide current up to 3750mA for illumination. Therefore, it
should be used with caution especially when battery state of charge
is low. Therefore, add a function which can be used by clients like
camera to query the flash current limit before using flash LED. This
protects the system from a possible UVLO condition.

CRs-Fixed: 964855
Change-Id: I17fa4f28cc151e3a3ad89d284995a3fa770bec68
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoleds: qpnp-flash-v2: add support for strobe configuration
Chun Zhang [Thu, 17 Mar 2016 00:24:17 +0000 (17:24 -0700)]
leds: qpnp-flash-v2: add support for strobe configuration

Flash LED module supports various kinds of strobe support. Strobe
type can be hardware or software, active high or low, and level or
edge trigger. Add support for configuring strobe type through
device tree properties.

CRs-Fixed: 1024187
Change-Id: Ief6a610c82b7f645966c596f543a1d30f7a40dcc
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agomsmcobalt: Add delay to check ADSP state during SSR
Shiv Maliyappanahalli [Wed, 6 Jul 2016 19:19:55 +0000 (12:19 -0700)]
msmcobalt: Add delay to check ADSP state during SSR

During SSR(subsystem restart), add a delay when ADSP state
is not yet ready. This will avoid excessive logging when
ADSP state is not ready.

Change-Id: I7e127d97cdd22409d4e70788a7cf2013593d3bfe
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
8 years agoASoC: qdsp6v2: Fix apr registration failure in q6core
Shiv Maliyappanahalli [Wed, 6 Jul 2016 19:11:12 +0000 (12:11 -0700)]
ASoC: qdsp6v2: Fix apr registration failure in q6core

It is possible that core service can register with APR in
different contexts and may result in apr_register returning
EALREADY error while core service gets a NULL handle.

Avoid the race condition by holding command lock to ensure
that apr_handle does not get overwritten.

Change-Id: I8863185651fde8d29b5b8d8f183544bf0f215dbe
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
8 years agomedia: videobuf2: Increase max buffers
Shubhraprakash Das [Wed, 6 Jul 2016 00:42:45 +0000 (17:42 -0700)]
media: videobuf2: Increase max buffers

Increase the maximum video buffers to 64 as with camera 64
buffers are allocated and used.

CRs-Fixed: 1039456
Change-Id: I37d91c4f7e5d98333cf6be3c75168e134ae78060
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
8 years agomsm: ipa3: fix the double ipa3_pre_init issue
Skylar Chang [Wed, 22 Jun 2016 23:28:29 +0000 (16:28 -0700)]
msm: ipa3: fix the double ipa3_pre_init issue

With smmu enabling, ipa3_pre_init is actually
probed twice and causing the crash, the fix
is to do only once.

Change-Id: I20bd718c8cb70029c4dd46c52dbece326b90ef80
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
8 years agoARM: dts: msm: Change camera mount angle for msmcobalt
Viswanadha Raju Thotakura [Wed, 1 Jun 2016 23:25:47 +0000 (16:25 -0700)]
ARM: dts: msm: Change camera mount angle for msmcobalt

Change rear camera mount angle to fix inverted preview
for msmcobalt MTP design.

CRs-Fixed: 1021009
Change-Id: I31a49465545e4b9a562b66bff7353d91817205f2
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
8 years agomsm: mdss: hdmi: parse High Dynamic Range (HDR) metadata
Tatenda Chipeperekwa [Thu, 16 Jun 2016 22:49:18 +0000 (15:49 -0700)]
msm: mdss: hdmi: parse High Dynamic Range (HDR) metadata

The HDR data block indicates the HDR capabilities of the sink:
electro-optical transfer function, static metadata descriptor,
desired content max luminance data, desired content max
frame-average luminance data, and desired content min luminance
data. This data parsed from the EDID block and provided to
clients via a sysfs node.

Change-Id: Ib78c315a43e98af4ea454998bc7ca8428522d5c0
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
8 years agoclk: msm: clock: Call the correct init sequence during fabia PLL handoff
Deepak Katragadda [Mon, 11 Jul 2016 20:29:26 +0000 (13:29 -0700)]
clk: msm: clock: Call the correct init sequence during fabia PLL handoff

We are currently calling the non-fabia PLL init sequence
from the fabia PLL handoff function. Correct that to use
the fabia specific init sequence instead.

CRs-Fixed: 1040254
Change-Id: If68bf5caeae35f35a534dcbe585057e78a57dbda
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
8 years agodrivers: soc: set apr handle to NULL on glink_open error
Shiv Maliyappanahalli [Fri, 8 Jul 2016 20:00:23 +0000 (13:00 -0700)]
drivers: soc: set apr handle to NULL on glink_open error

After sub system restart, opening glink channel while
lpass transport is not up results in failure and returns
error pointer. APR glink client although returns error for
the first glink command, does not set the apr handle to NULL
and incorrectly assumes err pointer as a valid handle when
opening the channel again.

Fix this by updating the apr handle to NULL when glink_open()
fails.

Change-Id: I53a219b1ebed5bc3593d500d80d580aac6431ab5
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
8 years agomsm: vidc: add ion_handle checking before mapping buffers
Abdulla Anam [Sat, 25 Jun 2016 11:25:55 +0000 (16:55 +0530)]
msm: vidc: add ion_handle checking before mapping buffers

Compare ion handles in driver instead of matching fds
to check if a buffer is already mapped or not.

Bug: 28747768

CRs-Fixed: 1026885
Change-Id: Ifd18d8689351c4a6a22c988d359fb413be19e142
Signed-off-by: Ashray Kulkarni <ashrayk@codeaurora.org>
Signed-off-by: Praveen Chavan <pchavan@codeaurora.org>
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
Signed-off-by: Abdulla Anam <abdullahanam@codeaurora.org>
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
8 years agomsm: vidc: update the check to ignore extradata plane in dqbuf
Praveen Chavan [Thu, 16 Jun 2016 22:49:59 +0000 (15:49 -0700)]
msm: vidc: update the check to ignore extradata plane in dqbuf

userptr may or may not be a null-value. Checking for this field
to qualify a plane as extradata has no merit. Ignore that check.

Bug: 28747768
CRs-Fixed: 1026885
Change-Id: I08d85ef462f09003aaa17f6ebc5d27de7083796f
Signed-off-by: Praveen Chavan <pchavan@codeaurora.org>
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
8 years agoiommu/iommu-debug:: initialize variables before use
Shiraz Hashim [Mon, 4 Jul 2016 09:35:35 +0000 (15:05 +0530)]
iommu/iommu-debug:: initialize variables before use

Initialize return values to their default before being
used.

Change-Id: Ie4dd908657573e5110bce65931d5507125da4c40
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
8 years agoiommu/io-pgtable-fast: validate data before use
Shiraz Hashim [Mon, 4 Jul 2016 09:35:14 +0000 (15:05 +0530)]
iommu/io-pgtable-fast: validate data before use

Return error on data allocation failure to prevent use
after free case.

Change-Id: I9d173756e277c9006220c02c209309167f179609
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
8 years agomsmcobalt: enable audio over HDMI
Shiv Maliyappanahalli [Wed, 29 Jun 2016 00:42:40 +0000 (17:42 -0700)]
msmcobalt: enable audio over HDMI

Add HDMI audio back end and associated apis to
configure channel, format and sample rate to
enable audio over HDMI.

Change-Id: Ieef8a2658f9730a9268041ac93ea3958489f2eae
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
8 years agoARM: dts: msm: enable audio over HDMI for msmcobalt
Shiv Maliyappanahalli [Wed, 29 Jun 2016 00:41:29 +0000 (17:41 -0700)]
ARM: dts: msm: enable audio over HDMI for msmcobalt

Add device tree entries to enable audio
over HDMI.

Change-Id: Ie9bb609f9681580d90e5ec35b89e587758c272d4
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
8 years agowil6210: fix chan check in wil_p2p_listen
Maya Erez [Thu, 9 Jun 2016 06:07:50 +0000 (09:07 +0300)]
wil6210: fix chan check in wil_p2p_listen

In wil_p2p_listen chan is checked to protect against NULL
pointer access only before setting channel = chan->hw_value.
Add a global parameter check to cover all accesses to chan.

Change-Id: Ib975c99b3b87998c357251a37f4862cbbf68697d
CRs-Fixed: 1026286
Signed-off-by: Maya Erez <merez@codeaurora.org>
8 years agowil6210: add module parameter for alternate interface name
Hamad Kadmany [Mon, 28 Mar 2016 20:21:02 +0000 (23:21 +0300)]
wil6210: add module parameter for alternate interface name

Add a module parameter alt_ifname that when set, will name
the primary network interface wigig<N> instead of the default
wlan<N>. This helps platforms such as android where we need to
clearly separate the WIGIG interface from the default wireless
interface.

Change-Id: Ie1cd3ccf777e84665075bc3b6d9fffa7d897de49
CRs-Fixed: 982931
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
8 years agoregmap: initialize dump count to 1
Nicholas Troast [Mon, 11 Jul 2016 18:01:25 +0000 (11:01 -0700)]
regmap: initialize dump count to 1

The count debugfs node is used to set the number of registers to read
starting at the given address. Initialize this to 1 so that data will
produce at least one entry if the count is not specified.

Change-Id: Ia0d2f5f0e145a735ab565a4530a17d83f832bb88
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
8 years agoRevert "msm: vidc: Handle encoder input in true dynamic mode"
Vikash Garodia [Wed, 25 May 2016 03:50:41 +0000 (20:50 -0700)]
Revert "msm: vidc: Handle encoder input in true dynamic mode"

This reverts commit 1681bd4286bc ("msm: vidc: Handle encoder
input in true dynamic mode") Keep iova mappings of encoder
input buffers as we move towards a handle based mapping and
encoder input buffers once allocated are maintained through-
out the session.

CRs-Fixed: 1026885
Change-Id: Ib6df539c5e04ba4eefed59355fd13191f85492d8
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
8 years agodefconfig: msmcortex: Enable CONFIG_INET_LRO
Manjunathappa Prakash [Fri, 17 Jun 2016 22:03:23 +0000 (15:03 -0700)]
defconfig: msmcortex: Enable CONFIG_INET_LRO

WLAN module supports LRO, so enable CONFIG_INET_LRO.
Remove it from defconfig to enable as Kconfig has default set to enable.

CRs-Fixed: 1035499
Change-Id: I0e31c6973eca1c7e9f9e0b57c0085716bfdb5ddb
Signed-off-by: Manjunathappa Prakash <prakashpm@codeaurora.org>
8 years agonet lro: extend LRO to use hardware assists
Dhanashri Atre [Fri, 16 Oct 2015 17:52:06 +0000 (10:52 -0700)]
net lro: extend LRO to use hardware assists

This change extends the existing LRO module to use the
hardware assits provided by certain NICs thereby reducing
the CPU utilization.

CRs-Fixed: 1035499
Change-Id: I4ed497c69042a4d15f9340f91d60c262ca79a36b
Signed-off-by: Dhanashri Atre <datre@codeaurora.org>
8 years agowil6210: abort P2P search when stopping P2P device
Maya Erez [Thu, 9 Jun 2016 06:09:31 +0000 (09:09 +0300)]
wil6210: abort P2P search when stopping P2P device

The nl80211 layer expects P2P search operation to be aborted
if needed when stopping P2P device. If the P2P search operation
is still running after returning from stop_p2p_device
it causes a WARN_ON and possibly a kernel crash.
Fix this by aborting the P2P search in wil_cfg80211_stop_p2p_device
and preventing P2P search from being started on a stopped P2P
device.
Note, the fix does not cover the case where a regular scan
is started on the P2P device. It will be completed in the
future when support is added for aborting a scan operation.

Change-Id: Ief940806df63f9836cfcab23b4ec3bb667fcd2c6
CRs-Fixed: 1026249
Signed-off-by: Lior David <liord@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
8 years agomsm: kgsl: Fix the access to invalid pool
Sunil Khatri [Tue, 28 Jun 2016 08:41:49 +0000 (14:11 +0530)]
msm: kgsl: Fix the access to invalid pool

If a free page is not found in a particular pool, we
fall back to lower order pools. While doing so make
sure we dont do that when already in zero order pool.
For zero order(pool_idx = 0) pool, (pool_idx-1) value
becomes -1 that is invalid and compiler throws the error
that array subscript is below bounds.

This problem is exposed when we enable kernel config option
"CONFIG_ALLOC_BUFFERS_IN_4K_CHUNKS" which will force only
zero order pool and hence the index value calculation to -1.

Change-Id: I81e8a1e79cd974b7a13a9d23cb3d809464b6dcda
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
8 years agousb: dwc3: Change dwc3 irq to oneshot threaded irq
Hemant Kumar [Sat, 9 Jul 2016 01:18:45 +0000 (18:18 -0700)]
usb: dwc3: Change dwc3 irq to oneshot threaded irq

There is a possibility of dwc3 irq being fired as soon as
it gets enabled by tasklet handler. As a result dwc3 hard irq
handler disables the irq and schedules tasklet. If tasklet is
still running, tasklet_schedule becomes no op and dwc3 irq
remains disabled permanently. Fix this issue by handling irq
in threaded context with IRQF_ONESHOT flag set. Also update
the shared irq flag in xhci platform driver for irq registration
in HCD driver.

CRs-Fixed: 1038421
Change-Id: I9291cb08c4597922131b8c2d420e834a00a72621
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agousb: gadget: f_gsi: Set speed descriptor pointers to NULL after free
Hemant Kumar [Fri, 8 Jul 2016 22:34:08 +0000 (15:34 -0700)]
usb: gadget: f_gsi: Set speed descriptor pointers to NULL after free

After gsi_unbind() if gsi_bind() function frees speed descriptor due
to an error leads to double freeing of descriptor. Fix this issue by
setting descriptor pointer back to NULL after freeing the descriptor
memory.

CRs-Fixed: 1038866
Change-Id: Ic5ee71389b6b20c8557e0a75f9bbe5a1749cf655
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agoASoC: wcd9335: Fix traversing of source dapm widgets
Sudheer Papothi [Thu, 30 Jun 2016 17:48:20 +0000 (23:18 +0530)]
ASoC: wcd9335: Fix traversing of source dapm widgets

Parsing of audio routing in ASoC core has been changed in
kernel 4.4 to use new variables. Update the codec driver
to traverse to source dapm widget using new variables.

Change-Id: I8c545248f23c73ff9fb470705f1c17175a8e4e0b
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
8 years agomfd: wcd9xxx-irq: check if wcd9xxx_res irq is 0 before using it
Meng Wang [Fri, 13 May 2016 05:57:10 +0000 (13:57 +0800)]
mfd: wcd9xxx-irq: check if wcd9xxx_res irq is 0 before using it

During SSR, wcd9xxx_res irq lock is destroyed as part of resource
cleanup. If driver tries to access wcd9xxx_res irq lock before it's
initialized, it could cause crash. Check if wcd9xxx_res irq is 0
before using it to avoid crash.

CRs-Fixed: 1003482
Change-Id: I959caf7b305e965b84e8204168194bbfda72dc52
Signed-off-by: Meng Wang <mwang@codeaurora.org>
8 years agoASoC: msm: Dynamic allocation of loopback sessions
Surendar karka [Wed, 30 Mar 2016 07:00:47 +0000 (12:30 +0530)]
ASoC: msm: Dynamic allocation of loopback sessions

Allocate looback sessions dynamically and add support
for multiple loopback sessions.

CRs-Fixed: 986695
Change-Id: I4a0b0ed4f6679da016b1b460cb597bc7fa2afa12
Signed-off-by: Surendar karka <sukark@codeaurora.org>
8 years agodefconfig: Add initial 32-bit defconfig for msmfalcon
Srinivas Ramana [Tue, 5 Jul 2016 06:28:41 +0000 (11:58 +0530)]
defconfig: Add initial 32-bit defconfig for msmfalcon

Add initial defconfig file for booting msmfalcon

Change-Id: I6935c6de9009532570e1becad4ef1c1ee095d7c4
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
8 years agoARM: dts: msm: add Tri-color RGB LEDs on pmicobalt
Subbaraman Narayanamurthy [Tue, 5 Jul 2016 18:32:01 +0000 (11:32 -0700)]
ARM: dts: msm: add Tri-color RGB LEDs on pmicobalt

Add RGB LEDs that are present on pmicobalt. These LEDs are used
for applications like notification of charging indicator and
other user defined applications.

Since LPG channels 3,4 and 5 are assigned for Blue, Green and
Red LEDs on pmicobalt, keep them enabled in device tree.

CRs-Fixed: 1037821
Change-Id: I1a40bbe46e689d8c98f31cfef3a6743856288127
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
8 years agoarm64: topology: Export arch_get_cpu_efficiency API
Trilok Soni [Fri, 10 Jun 2016 21:49:06 +0000 (14:49 -0700)]
arm64: topology: Export arch_get_cpu_efficiency API

Export arch_get_cpu_efficiency API since it can be called
by the modules. Update topology header file too.

CRs-Fixed: 1038542
Change-Id: Ie2ab84b02a8fb4070a0e86f09f52db9aa4163003
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
8 years agoleds: qpnp-flash-v2: Fix safety timer configuration
Devesh Jhunjhunwala [Thu, 16 Jun 2016 20:04:05 +0000 (13:04 -0700)]
leds: qpnp-flash-v2: Fix safety timer configuration

The mask and enable values being used are incorrect for the
safety timer. Fix it. Also take this opportunity to update
all relevant macros to use the GENMASK(h,l)/BIT(x) macros.

CRs-Fixed: 1024187
Change-Id: Ibdd139c98aa289f1d6b8545b953e79a1187284e9
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoARM: dts: msm: Add current property for flash-led for pmicobalt
Devesh Jhunjhunwala [Tue, 14 Jun 2016 18:52:02 +0000 (11:52 -0700)]
ARM: dts: msm: Add current property for flash-led for pmicobalt

Add the qcom,current-ma property which is used to specify the
default current value to be used for the flash and torch devices.
This property is used by clients of the flash device.

CRs-Fixed: 1024187
Change-Id: I3670eaa65efc9d1efb29fb30500fb9067885b446
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>