Commit Graph
342770 Commits
Author SHA1 Message Date
Jeremy Gebben 441f3c2d77 msm: kgsl: hold a process_private refcount in process_mem_print
There is a possible race condition where the process can be going
away while its debugfs 'mem' file is being read, which could cause
memory corruption.

Conflicts:

	drivers/gpu/msm/kgsl.c

CRs-Fixed: 627780
Change-Id: I697486faeb3f186fd1220d0acc1e449a4f7b77b0
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2014-05-28 17:17:13 +05:30
Linux Build Service Account 789a7e2fde Merge "unix: fix a race condition in unix_release()" 2014-05-27 22:50:38 -07:00
Linux Build Service Account bd512f549b Merge "msm📷 Bus overflow recovery mechanism" 2014-05-27 22:50:32 -07:00
Linux Build Service Account e34d121b23 Merge "mdss: Start wait for hist ready state past first kickoff" 2014-05-27 19:41:00 -07:00
Linux Build Service Account 35de47aae9 Merge "mmc: core: continue to wait, when unblocked by signal" 2014-05-27 19:40:53 -07:00
Linux Build Service Account d6c6828d8f Merge "msm-camera: Avoid adding top up to calulated ab/ib for single stream." 2014-05-27 14:52:09 -07:00
Konstantin Dorfman 4ace88c6c8 mmc: core: continue to wait, when unblocked by signal
Mmc thread is waiting for one of following events occurs:
- current running request completion (is_done_rcv)
- new request notification arrived (is_new_req)
- urgent request notification arrived (is_urgent)
or the thread received a signal. In this case none of described events
happened.

This change process the case, when mmc thread was unblocked from wait by
signal, for example system shutdown flow.

Change-Id: I0b4f0cefedc839640c162ad3cdb011d13daaee0c
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2014-05-27 13:10:17 -07:00
Linux Build Service Account b12dbaf316 Merge "mmc: core: abort rescan if suspend is triggered" 2014-05-26 03:13:22 -07:00
Linux Build Service Account 0edd39b15e Merge "leds: leds-qpnp: provide pwm period when leds are set to LPG mode in DT" 2014-05-26 01:06:34 -07:00
Linux Build Service Account fa5f6809be Merge "diag: Remove invalid check for payload" 2014-05-26 01:06:31 -07:00
Linux Build Service Account bcd0941f0f Merge "leds: leds-qpnp: use the proper pwm period in LPG mode" 2014-05-26 01:06:22 -07:00
Abhishek Kondaveeti 9b73f1d3cd msm📷 Bus overflow recovery mechanism
Add bus overflow recovery mechanism in the isp driver.
When the bus overflow happens we will halt the bus,
reset the isp and burst count and restart the stream.

Change-Id: I7a1a4e1c28e346036405db4ce9a2362109bd4f95
Signed-off-by: Abhishek Kondaveeti <akondave@codeaurora.org>
2014-05-26 12:34:21 +05:30
Asutosh Das c05e20f38e mmc: core: abort rescan if suspend is triggered
There could be a race between suspend and mmc_rescan as follows:
At resume:
-> mmc_pm_notify
  -> mmc_rescan is scheduled

Suspend is triggered:
-> mmc_pm_notify
   -> wait for mmc_rescan/cancel it
      -> rescan acquires wakelock if card is detected
         so as to give user-space a chance to respond
-> PM framework cancels suspend since wakelock is active

Hence, release the wake-lock if its active in suspend prepare
and check for rescan_disable before acquiring wake-lock.
This prefers suspend over notifying the user-space of the status
of the card, which is fine since with suspend user-space is frozen
too.

CRs-fixed: 655281
Change-Id: I83783589f9b541d3af73931e9a7b0b144a25538e
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2014-05-26 10:04:33 +05:30
Linux Build Service Account 068c70dc72 Merge "ASoC: compr: Disable soft-pause for compress playback" 2014-05-24 03:37:27 -07:00
Linux Build Service Account 832a26671d Merge "ASoC: msm-hdmi-codec-rx: update check for HDMI core state" 2014-05-23 21:25:27 -07:00
Linux Build Service Account 12a4033e0b Merge "msm: perf: set filter bits for cycle counter on krait" 2014-05-23 09:43:56 -07:00
Linux Build Service Account ef72684d4c Merge "ASoC: msm8974: Set tx bit rate for slim tx params" 2014-05-23 06:03:59 -07:00
Linux Build Service Account 726ac80032 Merge "wcnss: Reset IRIS card before Starting IRIS XO configuration" 2014-05-22 23:34:23 -07:00
Linux Build Service Account 14896dbe74 Merge "mmc: core: fix the issue with clock scaling in HS400 mode" 2014-05-22 23:34:22 -07:00
Linux Build Service Account 66966fd8e3 Merge "ASoC: wcd9xxx: Clear unsupported jack from hph status" 2014-05-22 23:34:20 -07:00
Linux Build Service Account 49bedbd221 Merge "msm: ocmem: Call restore_sec_config() after every power collapse" 2014-05-22 21:25:31 -07:00
Abinaya P 04df896b58 leds: leds-qpnp: provide pwm period when leds are set to LPG mode in DT
In the current design, if MPP-controlled leds or RGB leds are configured
to LPG mode in the device tree, the PWM period value is not provided.
This will result in "pwm_cfg->pwm_period_us" being assigned to zero
since no PWM period value will be read from device tree. As a result,
qpnp_pwm_init() returns error, which in turn results in failure of
qpnp_mpp_init() or qpnp_rgb_init() and finally resulting in failure of
qpnp_leds_probe().

So "qcom,pwm-us" property should be provided in DT for the above case and
the property parsing needs to be implemented in the leds-qpnp driver.

Change-Id: Ic32833ea4e685939148e38cdba078391936f8efb
CRs-Fixed: 667825
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2014-05-22 15:56:39 +05:30
Linux Build Service Account 854d305299 Merge "ngd_slim: Decouple clock pause from power down/up" 2014-05-21 11:34:23 -07:00
Linux Build Service Account 782645eb52 Merge "msm: camera: bugfix in actuator_init_focus func" 2014-05-21 11:34:22 -07:00
Sagar Dharia 9bd4c719ee ngd_slim: Decouple clock pause from power down/up
NGD slimbus driver itself can never send out clock pause sequence
for slimbus protocol on the HW lines since it can only be sent by
a manager device (which is controlled by ADSP when NGD driver is
instantiated from apps side).
Previously, clock pause of slimbus framework was coupled with power
down/up. That is not correct, since manager device may or may not
decide to send clock-pause on the HW lines. (e.g. if apps is inactive,
but some client on ADSP is active, clock-pause sequence won't be sent
over the bus.
Decouple power-on/off from clock pause to avoid giving incorrect
impression to clients on apps side about clock-pause state. Mark
clock-pause as unsupported by setting wakup function pointer to NULL
instead since this controller on apps cannot send it on HW lines.

CRs-Fixed: 667165
Change-Id: I382bca153deb2fed1d0f0672adaebde1e122dc68
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
2014-05-21 15:05:12 +05:30
Linux Build Service Account 6bd86a1b3d Merge "ASoC: wcd93xx: Remove delay for Slimbus during SSR recovery" 2014-05-21 00:13:40 -07:00
Linux Build Service Account 695e03bc20 Merge "msm-camera: Reset ISPIF h/w" 2014-05-21 00:13:35 -07:00
Linux Build Service Account dbd32761b2 Merge "msm: vidc: remove fw version condition for core capabilities" 2014-05-20 21:24:55 -07:00
Linux Build Service Account 8d6f866f3a Merge "ARM: dts: mdss: Increase MDSS clock hysteresis cycles for msm8226" 2014-05-20 21:24:53 -07:00
Linux Build Service Account b7f00de202 Merge "hwmon: qpnp-adc-voltage: Fix break statements in compensation API" 2014-05-20 02:25:56 -07:00
Linux Build Service Account 1f1d8bf304 Merge "msm: vidc: Expose extradata size to userspace" 2014-05-20 02:25:41 -07:00
Linux Build Service Account dab7ae09e8 Merge "msm: vidc: Fix race condition during concurrent sessions" 2014-05-20 00:34:39 -07:00
Linux Build Service Account 2e09e94c83 Merge "mmc: sdhci-msm: fix issue with tuning command" 2014-05-20 00:34:37 -07:00
Linux Build Service Account de848f1af1 Merge "msm: vidc: Add NULL pointer check before deiniting controls" 2014-05-19 19:25:02 -07:00
Linux Build Service Account d6a51a0328 Merge "NFC: don't reparse device tree" 2014-05-19 19:25:01 -07:00
Linux Build Service Account c8cdd8142d Merge "ARM: dts: msm: set overlap fudge factor to 1.75 for msm8974" 2014-05-19 15:33:05 -07:00
Sudheer Papothi 9c9ef1ebc8 ASoC: msm8974: Set tx bit rate for slim tx params
Set tx bit rate format in slimbus tx hw fixup params.

CRs-Fixed: 659408
Change-Id: I02b7cb88ca180cac033e9f5b63af287b2d932c10
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2014-05-19 22:42:20 +05:30
Linux Build Service Account e53a425e39 Merge "hwmon: qpnp-adc-voltage: Update default scaling API" 2014-05-19 08:03:46 -07:00
Linux Build Service Account 350d16458e Merge "USB: Fix bug in ext_chg_active flag handling" 2014-05-19 08:03:45 -07:00
Dipen Parmar 154b1c9dc5 hwmon: qpnp-adc-voltage: Fix break statements in compensation API
Fix missing break statements in OCV and VBAT compensation
APIs for PM8026 v2.2 to avoid SOC and VBAT errors.

Change-Id: Idd2352c2cd9dad3b80a71f36a2947254792557bc
Signed-off-by: Dipen Parmar <dipenp@codeaurora.org>
2014-05-19 16:57:18 +05:30
Pavankumar Kondeti 8cb1e0c135 USB: Fix bug in ext_chg_active flag handling
The ext_chg_active flag is set to true when the external charger
processing is pending. It is set to true when DCP is detected and
set to false when the user space notifies that it is done with
the charger detection. The user space may unblock the low power mode
any time to access the hardware to request a new voltage setting.
The current code does not set ext_chg_active flag in this case due to
which USB enters low power mode while external charger processing
is pending. This results in unclocked register access.
Fix the issue by setting ext_chg_active to true every time the
userspace calls the block LPM.

CRs-Fixed: 663301
Change-Id: If18f762d7fc0b4eaba297e27bbd7382b161fbcde
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Saket Saurabh <ssaurabh@codeaurora.org>
2014-05-19 12:41:29 +05:30
Hardik Kantilal Patel 86f9cee173 wcnss: Reset IRIS card before Starting IRIS XO configuration
Set iris_reset bit of PMU CFG register to reset the IRIS
card before Starting IRIS XO configuration.

Change-Id: Id1cfd7e3e3df29919089725b2233c6f95afbbfb5
CRs-Fixed: 664642
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2014-05-19 11:58:03 +05:30
Linux Build Service Account acd673d328 Merge "ASoC: wcd9320: increase DMIC CLK drive-strength" 2014-05-18 02:12:45 -07:00
Deva Ramasubramanian d7ee595117 msm: vidc: Expose extradata size to userspace
Previously, the extradata size was included within VENUS_BUFFER_SIZE
and callers (primarily in userspace) wouldn't know how much extra
padding was added to the buffer size. Exposing it allows userspace to
query directly instead of doing guesswork.

Change-Id: I7f9701a4adfe364d757028514bdd4fa84402a995
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
2014-05-17 15:31:52 +05:30
Linux Build Service Account 587a1adb5e Merge "msm: mdss: enable fb_split feature for dual-dsi panels" 2014-05-16 19:06:15 -07:00
Linux Build Service Account 5d6bec146c Merge "mdss: Dynamic timeout calculation for cmd stop" 2014-05-16 19:06:06 -07:00
Linux Build Service Account 580392e88c Merge "ASoC: Correct the mixer control name" 2014-05-16 19:06:04 -07:00
Linux Build Service Account 0d5df31973 Merge "msm: mdss: Cancel ESD workqueue whenever display off happens" 2014-05-16 19:05:48 -07:00
Linux Build Service Account 582762a0a9 Merge "msm: mdss: Protect iommu attach/detach with mutex for mdp3" 2014-05-16 11:53:10 -07:00
Dipen Parmar b56531e92c hwmon: qpnp-adc-voltage: Update default scaling API
Update default scaling API to support absolute and
ratiometric calibration both to convert raw adc data
to voltages.

Change-Id: I45a109d77c388564c0063d1de926813a4a929c48
Signed-off-by: Dipen Parmar <dipenp@codeaurora.org>
2014-05-16 13:12:25 +05:30