OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
8 years agoMerge "ASoC: wcd9335: Update the Lineout path register configuration"
Linux Build Service Account [Sun, 14 Aug 2016 06:13:05 +0000 (23:13 -0700)]
Merge "ASoC: wcd9335: Update the Lineout path register configuration"

8 years agoMerge "ASoC: wcd: change classh settings as per impedance value"
Linux Build Service Account [Sun, 14 Aug 2016 06:13:04 +0000 (23:13 -0700)]
Merge "ASoC: wcd: change classh settings as per impedance value"

8 years agoMerge "qcom-charger: qpnp-fg-gen3: remove wakelock when reading SRAM props"
Linux Build Service Account [Sun, 14 Aug 2016 06:13:03 +0000 (23:13 -0700)]
Merge "qcom-charger: qpnp-fg-gen3: remove wakelock when reading SRAM props"

8 years agoMerge "clock: qcom: Update the list of clocks supported on MSMFalcon"
Linux Build Service Account [Sat, 13 Aug 2016 11:52:00 +0000 (04:52 -0700)]
Merge "clock: qcom: Update the list of clocks supported on MSMFalcon"

8 years agoMerge "soc: qcom: Fix error checks in service-notifier"
Linux Build Service Account [Sat, 13 Aug 2016 11:51:59 +0000 (04:51 -0700)]
Merge "soc: qcom: Fix error checks in service-notifier"

8 years agoMerge "Revert "genetlink: disallow subscribing to unknown mcast groups""
Linux Build Service Account [Sat, 13 Aug 2016 11:51:58 +0000 (04:51 -0700)]
Merge "Revert "genetlink: disallow subscribing to unknown mcast groups""

8 years agoMerge "cpuset: Add allow_attach hook for cpusets on android."
Linux Build Service Account [Sat, 13 Aug 2016 11:51:58 +0000 (04:51 -0700)]
Merge "cpuset: Add allow_attach hook for cpusets on android."

8 years agoMerge "usb: dwc3: Use clock API to control the memory power states"
Linux Build Service Account [Sat, 13 Aug 2016 11:51:57 +0000 (04:51 -0700)]
Merge "usb: dwc3: Use clock API to control the memory power states"

8 years agoMerge "usb: dwc3: Remove tasklet bottom half handler"
Linux Build Service Account [Sat, 13 Aug 2016 11:51:56 +0000 (04:51 -0700)]
Merge "usb: dwc3: Remove tasklet bottom half handler"

8 years agoMerge "usb: pd: Only request current amount for explicit contract"
Linux Build Service Account [Sat, 13 Aug 2016 11:51:55 +0000 (04:51 -0700)]
Merge "usb: pd: Only request current amount for explicit contract"

8 years agoMerge "ASoC: msm: qdsp6v2: Fix crash during WFD playback and SSR"
Linux Build Service Account [Sat, 13 Aug 2016 11:51:54 +0000 (04:51 -0700)]
Merge "ASoC: msm: qdsp6v2: Fix crash during WFD playback and SSR"

8 years agoMerge "ASoC: msm8x16: Initial change for internal codec support"
Linux Build Service Account [Sat, 13 Aug 2016 11:51:53 +0000 (04:51 -0700)]
Merge "ASoC: msm8x16: Initial change for internal codec support"

8 years agoMerge "msm: ipa: Add support for IPA unit-test framework"
Linux Build Service Account [Sat, 13 Aug 2016 11:51:53 +0000 (04:51 -0700)]
Merge "msm: ipa: Add support for IPA unit-test framework"

8 years agoMerge "ARM: dts: msm: Update USB core clock frequency to allow SVS"
Linux Build Service Account [Sat, 13 Aug 2016 11:51:52 +0000 (04:51 -0700)]
Merge "ARM: dts: msm: Update USB core clock frequency to allow SVS"

8 years agoMerge "USB: dwc3-msm: Add support for setting specific frequency for core clock"
Linux Build Service Account [Sat, 13 Aug 2016 11:51:51 +0000 (04:51 -0700)]
Merge "USB: dwc3-msm: Add support for setting specific frequency for core clock"

8 years agoMerge "drivers: soc: Set APR Glink transport to SMEM"
Linux Build Service Account [Sat, 13 Aug 2016 11:51:51 +0000 (04:51 -0700)]
Merge "drivers: soc: Set APR Glink transport to SMEM"

8 years agoMerge "ASoC: msmcobalt: fix wrong platform device pointer assignment"
Linux Build Service Account [Sat, 13 Aug 2016 11:51:49 +0000 (04:51 -0700)]
Merge "ASoC: msmcobalt: fix wrong platform device pointer assignment"

8 years agoMerge "bluetooth: Add Split A2DP slimbus"
Linux Build Service Account [Sat, 13 Aug 2016 11:51:48 +0000 (04:51 -0700)]
Merge "bluetooth: Add Split A2DP slimbus"

8 years agoMerge "ASoC: msm: qdsp6v2: support for AFE encoder"
Linux Build Service Account [Sat, 13 Aug 2016 11:51:47 +0000 (04:51 -0700)]
Merge "ASoC: msm: qdsp6v2: support for AFE encoder"

8 years agoMerge "ASoC: msm: q6dspv2: add adm channel config support"
Linux Build Service Account [Sat, 13 Aug 2016 11:51:47 +0000 (04:51 -0700)]
Merge "ASoC: msm: q6dspv2: add adm channel config support"

8 years agoMerge "ARM: dts: msm: adjust mdp bw limits for msmcobalt v2"
Linux Build Service Account [Sat, 13 Aug 2016 06:10:49 +0000 (23:10 -0700)]
Merge "ARM: dts: msm: adjust mdp bw limits for msmcobalt v2"

8 years agoclock: qcom: Update the list of clocks supported on MSMFalcon
Taniya Das [Wed, 10 Aug 2016 07:18:38 +0000 (12:48 +0530)]
clock: qcom: Update the list of clocks supported on MSMFalcon

Add the new clocks and update the clock ids for GCC, GPU, MMSS clock
controllers. Also add the RPM clocks which are supported and would be
used by the clients for all clock operations for RPM controlled clocks.

There are separate MMSS and GPU clock controllers, so add the dummy
controllers for the same.

Change-Id: I5a98b6128f5d54163ab5d03c4c023a748e6a4e95
Signed-off-by: Taniya Das <tdas@codeaurora.org>
8 years agoMerge "defconfig: arm64: msmcortex: enable display xlog debug for msmcobalt"
Linux Build Service Account [Thu, 11 Aug 2016 19:49:01 +0000 (12:49 -0700)]
Merge "defconfig: arm64: msmcortex: enable display xlog debug for msmcobalt"

8 years agoMerge "msm: mdss: add mdp debug bus for msmcobalt"
Linux Build Service Account [Thu, 11 Aug 2016 19:49:00 +0000 (12:49 -0700)]
Merge "msm: mdss: add mdp debug bus for msmcobalt"

8 years agoMerge "msm: mdss: fix spurious wait4pingpong timeouts"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:58 +0000 (12:48 -0700)]
Merge "msm: mdss: fix spurious wait4pingpong timeouts"

8 years agoMerge "lpm-levels: Use arm_cpuidle_suspend instead of cpu_suspend"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:57 +0000 (12:48 -0700)]
Merge "lpm-levels: Use arm_cpuidle_suspend instead of cpu_suspend"

8 years agoMerge "ARM: dts: msm: adjust mdp ot limits for msmcobalt"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:56 +0000 (12:48 -0700)]
Merge "ARM: dts: msm: adjust mdp ot limits for msmcobalt"

8 years agoMerge "clk: msm: Add support for reset controller for GDSC"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:54 +0000 (12:48 -0700)]
Merge "clk: msm: Add support for reset controller for GDSC"

8 years agoMerge "clk: msm: Add support for block reset clocks"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:53 +0000 (12:48 -0700)]
Merge "clk: msm: Add support for block reset clocks"

8 years agoMerge "clk: msm: Add reset controller support"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:50 +0000 (12:48 -0700)]
Merge "clk: msm: Add reset controller support"

8 years agoMerge "input: msg21xx_ts: add support for firmware upgrade"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:48 +0000 (12:48 -0700)]
Merge "input: msg21xx_ts: add support for firmware upgrade"

8 years agoMerge "msm: ipa: Add parameters validation to handle static analysis issues"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:46 +0000 (12:48 -0700)]
Merge "msm: ipa: Add parameters validation to handle static analysis issues"

8 years agoMerge "input: ft5x06: Add support for firmware upgrade"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:45 +0000 (12:48 -0700)]
Merge "input: ft5x06: Add support for firmware upgrade"

8 years agoMerge "input: ft5x06_ts: Add DT support"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:44 +0000 (12:48 -0700)]
Merge "input: ft5x06_ts: Add DT support"

8 years agoMerge "usb: gadget: f_cdev: Fix memory leak upon composition switch"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:43 +0000 (12:48 -0700)]
Merge "usb: gadget: f_cdev: Fix memory leak upon composition switch"

8 years agoMerge "sched: Remove synchronize rcu/sched calls from _cpu_down"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:42 +0000 (12:48 -0700)]
Merge "sched: Remove synchronize rcu/sched calls from _cpu_down"

8 years agoMerge "input: touchscreen: correct function and variable names in ITE tech driver"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:38 +0000 (12:48 -0700)]
Merge "input: touchscreen: correct function and variable names in ITE tech driver"

8 years agoMerge "msm: wlan: Update db.txt for some countries"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:37 +0000 (12:48 -0700)]
Merge "msm: wlan: Update db.txt for some countries"

8 years agoMerge "qcom-charger: smb138x-charger: add parallel enable status properties"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:35 +0000 (12:48 -0700)]
Merge "qcom-charger: smb138x-charger: add parallel enable status properties"

8 years agoMerge "soc: qcom: core,gladiator hang: Change the sysfs print format"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:34 +0000 (12:48 -0700)]
Merge "soc: qcom: core,gladiator hang: Change the sysfs print format"

8 years agoMerge "ARM: dts: msm: Add SMMU implementation defined settings for cobalt"
Linux Build Service Account [Thu, 11 Aug 2016 19:48:22 +0000 (12:48 -0700)]
Merge "ARM: dts: msm: Add SMMU implementation defined settings for cobalt"

8 years agoARM: dts: msm: adjust mdp bw limits for msmcobalt v2
Ingrid Gallardo [Tue, 9 Aug 2016 18:05:00 +0000 (11:05 -0700)]
ARM: dts: msm: adjust mdp bw limits for msmcobalt v2

This change adjusts the bandwidth limits for the
mdp core in the v2 of msmcobalt.

Change-Id: I3559ed2b6984ac9cec8e219f59f634410aaf57c9
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
8 years agobluetooth: Add Split A2DP slimbus
Sungjun Park [Fri, 13 May 2016 21:58:28 +0000 (14:58 -0700)]
bluetooth: Add Split A2DP slimbus

To support Split A2DP over slimbus, it will share
slimbus port 16 with SCO channel. A2DP configuration
has been added into slimbus port 16.

Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
Change-Id: I55bc9cda07ef3c2d3ff5713f1ce83d8b344bed6a

8 years agoinput: ft5x06: Add support for firmware upgrade
Mohan Pallaka [Tue, 4 Jun 2013 12:06:20 +0000 (17:36 +0530)]
input: ft5x06: Add support for firmware upgrade

Add sysfs entries to upgrade firmware from userspace.
Firmware upgrade is triggered when the device's firmware
version mismatches with userspace's firmware file.
Force firmware upgrade sysfs entry is added to force
the firmware upgrade even when the firmware versions
match.

Change-Id: I48189abe60b4bd9d54a1bbc4657707213d8eb166
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoASoC: msm: qdsp6v2: support for AFE encoder
Naresh Tanniru [Thu, 7 Jul 2016 23:07:22 +0000 (04:37 +0530)]
ASoC: msm: qdsp6v2: support for AFE encoder

Add support for AFE encoder configuration.
Add new mixer controls to support AFE input channel
and encoder configuration.
Add support in AFE to set the encoder and input
channel configuration.If encoder configuration is set
ADSP will encode the PCM steam and send over backend.

Change-Id: I56581533ffff3b61f5b5ee128841ab61b62674d7
Signed-off-by: Naresh Tanniru <ntanniru@codeaurora.org>
8 years agoASoC: msm: q6dspv2: add adm channel config support
Naresh Tanniru [Thu, 7 Jul 2016 22:30:04 +0000 (04:00 +0530)]
ASoC: msm: q6dspv2: add adm channel config support

Add support of route control to set ADM input channel
config. This is used to help open adm with different
channel config compare to AFE output.
Add new mixer command to override adm channel count set
by hw_params. This is useful in cases where BE hw_params
is different from the ADM channel configuration for cases
such as A2DP exercising ADSP path.

Change-Id: I93ad53016a28efe0d8592ac0092d6c8896a66072
Signed-off-by: Naresh Tanniru <ntanniru@codeaurora.org>
8 years agoASoC: msmcobalt: add BT audio support
Naresh Tanniru [Thu, 7 Jul 2016 22:08:51 +0000 (03:38 +0530)]
ASoC: msmcobalt: add BT audio support

Add machine driver code to support
bt playback in tunnel mode.

Change-Id: I22173ef9a7586cc7b9bc4b40afa1c02f5317c3a7
Signed-off-by: Naresh Tanniru <ntanniru@codeaurora.org>
8 years agoMerge "ASoC: msm: set pointers to NULL after kfree"
Linux Build Service Account [Thu, 11 Aug 2016 01:29:20 +0000 (18:29 -0700)]
Merge "ASoC: msm: set pointers to NULL after kfree"

8 years agoMerge "soc: qcom: pil: Add flag to know if modem SSR happened."
Linux Build Service Account [Thu, 11 Aug 2016 01:29:19 +0000 (18:29 -0700)]
Merge "soc: qcom: pil: Add flag to know if modem SSR happened."

8 years agoMerge "mdss: display-port: add support to send HPD event to framework"
Linux Build Service Account [Thu, 11 Aug 2016 01:29:18 +0000 (18:29 -0700)]
Merge "mdss: display-port: add support to send HPD event to framework"

8 years agoMerge "msm: mdss: dsi: fix lcd mode selection gpio config when display is off"
Linux Build Service Account [Thu, 11 Aug 2016 01:29:17 +0000 (18:29 -0700)]
Merge "msm: mdss: dsi: fix lcd mode selection gpio config when display is off"

8 years agoMerge "ASoC: msm: qdsp6v2: check param length for EAC3 format"
Linux Build Service Account [Thu, 11 Aug 2016 01:29:16 +0000 (18:29 -0700)]
Merge "ASoC: msm: qdsp6v2: check param length for EAC3 format"

8 years agoMerge "usb: gadget: gsi: Optimize TRB's buffer allocation functionality"
Linux Build Service Account [Thu, 11 Aug 2016 01:29:15 +0000 (18:29 -0700)]
Merge "usb: gadget: gsi: Optimize TRB's buffer allocation functionality"

8 years agoMerge "msm: vidc: Allow venus to power collapse in batch mode"
Linux Build Service Account [Thu, 11 Aug 2016 01:29:15 +0000 (18:29 -0700)]
Merge "msm: vidc: Allow venus to power collapse in batch mode"

8 years agousb: dwc3: Use clock API to control the memory power states
Hemant Kumar [Wed, 10 Aug 2016 20:41:05 +0000 (13:41 -0700)]
usb: dwc3: Use clock API to control the memory power states

GDSC driver is removing control for USB memory power states.
DWC driver need to explicitly call clk_set_flag() API to turn
off both memory core and periphery upon vbus off. When core
clock is turned on both of them will be turn on automatically.

Change-Id: I7e442daf51c6ece39b8fe5cc8a38d3405163c9b5
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agoMerge "msm: vidc: Add support for color space information"
Linux Build Service Account [Wed, 10 Aug 2016 19:42:12 +0000 (12:42 -0700)]
Merge "msm: vidc: Add support for color space information"

8 years agoMerge "defconfig: Enable memory latency monitors and governor"
Linux Build Service Account [Wed, 10 Aug 2016 19:42:11 +0000 (12:42 -0700)]
Merge "defconfig: Enable memory latency monitors and governor"

8 years agoMerge "usb: f_fs: Prevent gadget unbind if it is already unbound"
Linux Build Service Account [Wed, 10 Aug 2016 19:42:09 +0000 (12:42 -0700)]
Merge "usb: f_fs: Prevent gadget unbind if it is already unbound"

8 years agoMerge "msm: ipa: do not use skb clones for lan clients"
Linux Build Service Account [Wed, 10 Aug 2016 19:42:08 +0000 (12:42 -0700)]
Merge "msm: ipa: do not use skb clones for lan clients"

8 years agoMerge "msm: ipa3: update BCR Regsiter values for IPA v3.1 and v3.5"
Linux Build Service Account [Wed, 10 Aug 2016 19:42:07 +0000 (12:42 -0700)]
Merge "msm: ipa3: update BCR Regsiter values for IPA v3.1 and v3.5"

8 years agoMerge "msm: gsi: fix memory corruption from debugfs"
Linux Build Service Account [Wed, 10 Aug 2016 19:42:06 +0000 (12:42 -0700)]
Merge "msm: gsi: fix memory corruption from debugfs"

8 years agoMerge "ARM: dts: msm: Enable the GPU QDSS STM for msmcobalt"
Linux Build Service Account [Wed, 10 Aug 2016 19:42:04 +0000 (12:42 -0700)]
Merge "ARM: dts: msm: Enable the GPU QDSS STM for msmcobalt"

8 years agoMerge "soc: qcom: irq-helper: Add header file of irq-helper"
Linux Build Service Account [Wed, 10 Aug 2016 19:42:02 +0000 (12:42 -0700)]
Merge "soc: qcom: irq-helper: Add header file of irq-helper"

8 years agoMerge "ARM: dts: msm: Update TLMM base address for msmfalcon"
Linux Build Service Account [Wed, 10 Aug 2016 19:42:01 +0000 (12:42 -0700)]
Merge "ARM: dts: msm: Update TLMM base address for msmfalcon"

8 years agoMerge "pinctrl: qcom: Update TLMM configuration for msmfalcon"
Linux Build Service Account [Wed, 10 Aug 2016 19:42:00 +0000 (12:42 -0700)]
Merge "pinctrl: qcom: Update TLMM configuration for msmfalcon"

8 years agoMerge "pinctrl: qcom: Update SDC pins for msmfalcon"
Linux Build Service Account [Wed, 10 Aug 2016 19:42:00 +0000 (12:42 -0700)]
Merge "pinctrl: qcom: Update SDC pins for msmfalcon"

8 years agoMerge "ARM: dts: msm: increase VDD_GFX CPR ceiling voltages for msmcobalt"
Linux Build Service Account [Wed, 10 Aug 2016 19:41:58 +0000 (12:41 -0700)]
Merge "ARM: dts: msm: increase VDD_GFX CPR ceiling voltages for msmcobalt"

8 years agoMerge "usb: phy: qusb: Fix typo with emulation related property name"
Linux Build Service Account [Wed, 10 Aug 2016 19:41:57 +0000 (12:41 -0700)]
Merge "usb: phy: qusb: Fix typo with emulation related property name"

8 years agoMerge "ASoC: msm: qdsp6v2: set correct loopback mode"
Linux Build Service Account [Wed, 10 Aug 2016 19:41:57 +0000 (12:41 -0700)]
Merge "ASoC: msm: qdsp6v2: set correct loopback mode"

8 years agoMerge "ARM: msmcortex_defconfig: Enable NCM function driver"
Linux Build Service Account [Wed, 10 Aug 2016 19:41:56 +0000 (12:41 -0700)]
Merge "ARM: msmcortex_defconfig: Enable NCM function driver"

8 years agoMerge "ASoC: wcd9335: Configure DMIC clock rate for ECPP path"
Linux Build Service Account [Wed, 10 Aug 2016 19:41:55 +0000 (12:41 -0700)]
Merge "ASoC: wcd9335: Configure DMIC clock rate for ECPP path"

8 years agoMerge "drivers: mfd: wcd9xxx: Add support to configure dmic clock"
Linux Build Service Account [Wed, 10 Aug 2016 19:41:55 +0000 (12:41 -0700)]
Merge "drivers: mfd: wcd9xxx: Add support to configure dmic clock"

8 years agoMerge "defconfig: msmcortex: Enable G-Link SPI Transport driver"
Linux Build Service Account [Wed, 10 Aug 2016 19:41:53 +0000 (12:41 -0700)]
Merge "defconfig: msmcortex: Enable G-Link SPI Transport driver"

8 years agoMerge "ARM: dts: msm: Add G-Link SPI Transport device for msmcobalt"
Linux Build Service Account [Wed, 10 Aug 2016 19:41:52 +0000 (12:41 -0700)]
Merge "ARM: dts: msm: Add G-Link SPI Transport device for msmcobalt"

8 years agoMerge "soc: qcom: glink_spi_xprt: Add support for GLink SPI Transport"
Linux Build Service Account [Wed, 10 Aug 2016 19:41:52 +0000 (12:41 -0700)]
Merge "soc: qcom: glink_spi_xprt: Add support for GLink SPI Transport"

8 years agousb: pd: Only request current amount for explicit contract
Jack Pham [Wed, 10 Aug 2016 18:14:08 +0000 (11:14 -0700)]
usb: pd: Only request current amount for explicit contract

The policy engine should only request for a specific current
amount when establishing an explicit contract. When performing
a hard reset, suspend this by requesting 0 and only if it
was non-zero before, otherwise requesting the maximum may
invalidate the default current for non-PD cases.

Change-Id: Icbef00d61f8705429105f241161362ad9f1f9d30
Signed-off-by: Jack Pham <jackp@codeaurora.org>
8 years agousb: dwc3: Remove tasklet bottom half handler
Hemant Kumar [Tue, 9 Aug 2016 19:28:55 +0000 (12:28 -0700)]
usb: dwc3: Remove tasklet bottom half handler

There is a possibility of tasklet bottom half handler racing
with dwc3_msm_suspend(). As a result before disabling the dwc3
irq, dwc3 interrupts are fired and once the suspend routine
disables the clocks bottom half handler gets a chance to run
and tries to access dwc3 register resulting into un-clocked
register access. Since dwc3 interrupt is already running in
threaded irq context, interrupt can be directly handled in
same context and avoid this race.

Change-Id: Ife9e165f6aa2112c1440819d659b97b5502a3f07
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agousb: dwc3-msm: Remove call to set POWER_SUPPLY_PROP_ONLINE
Jack Pham [Tue, 9 Aug 2016 18:07:22 +0000 (11:07 -0700)]
usb: dwc3-msm: Remove call to set POWER_SUPPLY_PROP_ONLINE

The charger drivers now handle setting of this property without
input from USB gadget other than the negotiated current draw
amount (set via POWER_SUPPLY_PROP_CURRENT_MAX). Remove setting
of POWER_SUPPLY_PROP_ONLINE which helps simplify the
dwc3_msm_gadget_vbus_draw() function a bit.

Change-Id: I2c5ec90cc8c45019ad75056b6feb7e6319f85514
Signed-off-by: Jack Pham <jackp@codeaurora.org>
8 years agousb: dwc3-msm: Do dwc3_msm_gadget_vbus_draw() in sleepable context
Jack Pham [Tue, 9 Aug 2016 18:36:34 +0000 (11:36 -0700)]
usb: dwc3-msm: Do dwc3_msm_gadget_vbus_draw() in sleepable context

The gadget mode notification to draw a specific current may
occur in context with interrupts disabled, however the charger
driver's implementation of power_supply_set_property() for
POWER_SUPPLY_CURRENT_MAX currently uses a mutex. Since
sleeping is disallowed in this case, instead schedule a
work function to do the call.

Change-Id: I810ad8c102124ce22de72d83b6df58c8fc991251
Signed-off-by: Jack Pham <jackp@codeaurora.org>
8 years agoASoC: msm8x16: Initial change for internal codec support
Laxminath Kasam [Mon, 25 Jul 2016 07:35:12 +0000 (13:05 +0530)]
ASoC: msm8x16: Initial change for internal codec support

- Add support for internal codec driver.
- Add regmap support for internal codec

The code is migrated from msm-3.18 kernel at the below
commit -

commit <bbf356f8bd26039cf3e0b447c064de6e2455b101>
<Merge "thermal: qpnp-temp-alarm: add support for
GEN2 PMIC peripherals>

CRs-Fixed: 1046168
Change-Id: Ib0cd2ed579bd370cc8979cafcc14acb083a408b6
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
8 years agoRevert "genetlink: disallow subscribing to unknown mcast groups"
Subash Abhinov Kasiviswanathan [Wed, 10 Aug 2016 03:09:44 +0000 (21:09 -0600)]
Revert "genetlink: disallow subscribing to unknown mcast groups"

Commit 5ad6300524c0332 ("genetlink: disallow subscribing to unknown
mcast groups") disallows userspace to subscribe to groups that don't
exist in kernel. As a result, communication between processes is
not possible unless they explicitly register a dummy group with the
kernel even if the communication is between userspace processes
only. NETLINK_USERSOCK cannot be used here since userspace processes
would require CAP_NET_ADMIN to receive multicast messages which
is available for priveleged processes only.

Fix this problem by reverting the change till a solution is
determined internally and upstream discussion.

CRs-Fixed: 1052589
Change-Id: Id559d9ef9d1e0a25e3bbdc81503978f01c6ed85f
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
8 years agomsm: mdss: fix spurious wait4pingpong timeouts
Ingrid Gallardo [Tue, 9 Aug 2016 22:17:44 +0000 (15:17 -0700)]
msm: mdss: fix spurious wait4pingpong timeouts

In some cases, the jiffies of the wait function can
jump between reads, leading to wrongly detected
ping pong timeouts. Prevent to fail in this scenario
by making sure that the time elapsed during the
wait is valid.

CRs-Fixed: 1048727
Change-Id: I3a1ecc89f379a90d9fdacf0baa9b6c8498bb93fb
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
8 years agodrivers: soc: Set APR Glink transport to SMEM
Ben Romberger [Thu, 4 Aug 2016 23:02:48 +0000 (16:02 -0700)]
drivers: soc: Set APR Glink transport to SMEM

Set APR to use SMEM for the Glink transport
type instead of smd_trans. SMEM is used for all
Glink transport. The transport smd_trans is no
longer used and use of it as a transport causes
Glink to take a very long time to establish a
connection.

Change-Id: Ie65f79051bfc452c63067c21efcfd9d98429bb15
CRs-Fixed: 1050763
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
8 years agomsm: ipa: Add support for IPA unit-test framework
Ghanim Fodi [Thu, 4 Aug 2016 09:08:25 +0000 (12:08 +0300)]
msm: ipa: Add support for IPA unit-test framework

Add IPA unit-test framework. The framework supports
definition and execution of tests that are grouped
into suites according to IPA functional blocks.
Debugfs file system is being used as a user interface.
An example test suite is added for reference.

Change-Id: Ide4ed54970c62f6485809c3bd63960536b4ace4f
CRs-Fixed: 1040200
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
8 years agosoc: qcom: Fix error checks in service-notifier
Puja Gupta [Fri, 29 Jul 2016 23:58:59 +0000 (16:58 -0700)]
soc: qcom: Fix error checks in service-notifier

Fix incorrect error checks and add error code in error logs to help
debug better.

CRs-Fixed: 1048345
Change-Id: I41ad4af44504e3f192a989a763a4093cae03b76c
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
8 years agoASoC: msmcobalt: fix wrong platform device pointer assignment
Vidyakumar Athota [Tue, 9 Aug 2016 03:42:54 +0000 (20:42 -0700)]
ASoC: msmcobalt: fix wrong platform device pointer assignment

In machine driver probe, platform device pointer is assigned prior to
codec registration which might be invalid if wcd9335 and wcd934x sound
card registrations are going on simultaneously. Update the pointer after
sound card registration to avoid null pointer dereference.

CRs-Fixed: 1048402
Change-Id: I315e191227e14e207187673b8efb5401143dec9d
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
8 years agoinput: msg21xx_ts: add support for firmware upgrade
Mao Li [Fri, 29 Aug 2014 06:42:58 +0000 (14:42 +0800)]
input: msg21xx_ts: add support for firmware upgrade

Add sysfs entries to upgrade the firmware from userspace. Update_fw
sysfs entry upgrades the firmware inside the touch controller only
when the controller's firmware version is lesser than that in
userspace's firmware file. Force firmware upgrade sysfs entry
forcefully upgrades the firmware inside the touch controller even
when the controller's firmware version matches that of the firmware
file in userspace.

This patch is propagated from 3.18 kernel 'commit 580ca1a4437e
("input: msg21xx_ts: add support for firmware upgrade")'

Change-Id: Ib6046de5230c395b48818d01f26eb9394046808b
Signed-off-by: Mao Li <maol@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
8 years agoinput: msg21xx_ts: release touch when finger leaves the panel
Mao Li [Mon, 25 Aug 2014 14:00:42 +0000 (22:00 +0800)]
input: msg21xx_ts: release touch when finger leaves the panel

When fingers on the panel decrease, release corresponding touches.

This patch is propagated from 3.18 kernel  'commit 24e3a5036d3c
("input: msg21xx_ts: release touch when finger leaves the panel")'

Change-Id: Iafc3a9dda252417fcd06e3d9d24fb73b4d6f8e58
Signed-off-by: Mao Li <maol@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
8 years agomsm: vidc: Add support for color space information
Manikanta Sivapala [Wed, 25 May 2016 05:38:40 +0000 (22:38 -0700)]
msm: vidc: Add support for color space information

When clients specify color space information, venus HW
should embed it in the bit stream. This helps to
regenerate original colors when decoded by decoder.
When decoder detects the color space VUI, Venus fills
the corresponding extradata

CRs-Fixed: 1026204
Change-Id: Ie9523558c23a8edc7a7ee058937658dd87ef5b16
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
Signed-off-by: Manikanta Sivapala <msivap@codeaurora.org>
8 years agousb: f_fs: Prevent gadget unbind if it is already unbound
Hemant Kumar [Mon, 8 Aug 2016 23:20:15 +0000 (16:20 -0700)]
usb: f_fs: Prevent gadget unbind if it is already unbound

Upon usb composition switch there is possibility of ep0 file
release happening after gadget driver bind. In case of composition
switch from adb to a non-adb composition gadget will never gets
bound again resulting into failure of usb device enumeration. Fix
this issue by checking FFS_FL_BOUND flag and avoid extra
gadget driver unbind if it is already done as part of composition
switch.

Change-Id: I1638001ff4a94f08224b188aa42425f3d732fa2b
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
8 years agoARM: dts: msm: Update USB core clock frequency to allow SVS
Vamsi Krishna Samavedam [Mon, 8 Aug 2016 23:16:16 +0000 (16:16 -0700)]
ARM: dts: msm: Update USB core clock frequency to allow SVS

Set USB core clock frequency to recommended value to allow SVS mode
when cable is connected.

Change-Id: Ia452476bd3bb7316a86efd08fed52c54f3efa34e
Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
8 years agoUSB: dwc3-msm: Add support for setting specific frequency for core clock
Vijayavardhan Vennapusa [Fri, 8 Jan 2016 10:28:35 +0000 (15:58 +0530)]
USB: dwc3-msm: Add support for setting specific frequency for core clock

Add support for setting USB core clock to particular frequency so that
core clock frequency can be passed through dts property.

Change-Id: If9ff41037d22d7be7f09c9468e8d4cc92280a28e
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
8 years agoASoC: wcd9335: Update the Lineout path register configuration
Bhalchandra Gajare [Tue, 5 Jan 2016 03:23:54 +0000 (19:23 -0800)]
ASoC: wcd9335: Update the Lineout path register configuration

Update codec driver register configuration for all the Lineout paths on
codec. The register configurations are updated for Lineout mono and
stereo configuration.

CRs-fixed: 997556
Change-Id: I7a09aeb2a02c30fb851ef21dcaad194413f17955
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Signed-off-by: Stephen Oglesby <soglesby@codeaurora.org>
8 years agoASoC: msm: qdsp6v2: check param length for EAC3 format
Surendar karka [Wed, 29 Jun 2016 08:53:25 +0000 (14:23 +0530)]
ASoC: msm: qdsp6v2: check param length for EAC3 format

Initialize param length with user space argument and
check the condition for maximum length in
SND_AUDIOCODEC_EAC3 format.

CRs-Fixed: 1032820
Change-Id: I710c1f743d7502e93989e8cc487078366570e723
Signed-off-by: Surendar karka <sukark@codeaurora.org>
8 years agodefconfig: Enable memory latency monitors and governor
Rohit Gupta [Tue, 2 Aug 2016 20:53:33 +0000 (13:53 -0700)]
defconfig: Enable memory latency monitors and governor

Enable memory latency monitor and governors to vote for higher DDR
frequency on detecting latency bound workloads.

Change-Id: I4a3f415263b94d4eab16de05bbb9843b7bb04113
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
8 years agoPM / devfreq: memlat: Remove kfree() on probe fails
Rohit Gupta [Wed, 3 Aug 2016 19:04:51 +0000 (12:04 -0700)]
PM / devfreq: memlat: Remove kfree() on probe fails

Memory allocated with devm_kzalloc() is automatically freed if
the probe function fails and returns an error code. So there
is no need to free cpu_grp explicitly for the failure cases
that might come up after it is allocated. Additionally calls to
devm_kzalloc() must be accompanied by devm_kfree() if memory
deallocation is necessary.
For these reasons remove the kfree(cpu_grp) from the probe
function.

Change-Id: Ic4838fd58d40d283ac301facc64b06813eb3bd7d
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
8 years agoARM: dts: msm: adjust mdp ot limits for msmcobalt
Ingrid Gallardo [Fri, 5 Aug 2016 23:21:01 +0000 (16:21 -0700)]
ARM: dts: msm: adjust mdp ot limits for msmcobalt

This change adjusts the ot limits in the mdp vbif
for msmcobalt by removing the xin ot limits and
adding the axi ot limits to the mdp vbif.

CRs-Fixed: 1040746
Change-Id: I365976021dcf02fbc3687091371d7d72cb711605
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
8 years agoASoC: wcd: change classh settings as per impedance value
Neema Shetty [Thu, 28 Jul 2016 02:51:44 +0000 (19:51 -0700)]
ASoC: wcd: change classh settings as per impedance value

Depending on the impedance across HPHL and HPHR, set classh
configurations so as to avoid false OCP events.
Move wcd9xxx_registers.h to uapi folder, as this header
file is used by userspace for wdc9330 codec.

CRs-Fixed: 963843
Change-Id: Ie2fb4b75b7f74013580bd3912372c64ddefc734e
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
Signed-off-by: Neema Shetty <nshetty@codeaurora.org>
8 years agomsm: gsi: fix memory corruption from debugfs
Skylar Chang [Wed, 3 Aug 2016 01:16:59 +0000 (18:16 -0700)]
msm: gsi: fix memory corruption from debugfs

Fix to GSI reset stats logic to clear the correct stats per channel

Change-Id: I94ae8c769ec2868a291e75a2f47c85bd8a449937
CRs-Fixed: 1046484
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
8 years agomsm: ipa: do not use skb clones for lan clients
Skylar Chang [Tue, 2 Aug 2016 23:36:40 +0000 (16:36 -0700)]
msm: ipa: do not use skb clones for lan clients

IPA driver uses 8k buffers for RX packets as those are aggregated.
If these packets deaggregated in IPA driver, cloned and provided
to clients, later calls to skb_copy() results in creating an 8k skb
which may lead to high memory utilization.
This change avoid the use of skb clones and allocates new skbs
for LAN clients and copy the packet content to it.

CRs-Fixed: 1050670
Change-Id: Iba47db8936b49309360791c1c6b482dcfcffd4d7
Acked by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>