Commit Graph

44946 Commits

Author SHA1 Message Date
Stephen Boyd
acf149d4a0 regulator: Add devm_regulator_get()
Add a resource managed regulator_get() to simplify regulator
usage in drivers. This allows driver authors to "get and forget"
about their regulators by automatically calling regulator_put()
when the driver is detached.

[Fixed up a couple of coding style issues -- broonie]
Change-Id: Ie32415c3a9f2c4aa99a98b6cb92a784e23d874ea
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-01-17 17:42:35 -08:00
Jayasena Sangaraboina
e1c5493f0a ASoC: msm: use flag hwparam_set to enable backend dai hw_params
Issue - backend dai prepare fails with concurrent LPA and non-LPA
sessions during stability tests. Since front end dai reference
count gets incremented for both sessions and backend dai hw_params
doesnt get invoked. This results NULL pointer in backend dai hw_params.
Fix - use the flag hwparam_set to ensure backend dai hw_parmas is
invoked properly.

Change-Id: Id08628e67d0f8ccf284c0e07a801aa8fc47bd8aa
CRs-fixed: 326458
Signed-off-by: Jayasena Sangaraboina <jsanga@codeaurora.org>
2012-01-16 19:13:55 -07:00
Linux Build Service Account
23cddc7fbb Merge "radio: iris: Incorporate changes in tune status event" into msm-3.0 2012-01-16 06:46:58 -08:00
Linux Build Service Account
b6dad9fd3d Merge "Bluetooth: Discovery Timer stability fixes" into msm-3.0 2012-01-16 01:17:20 -08:00
Srinivasa Rao Uppala
acdebccd13 radio: iris: Incorporate changes in tune status event
SINR and interference detection threshold parameters are added to the
tune status event. Update the driver to incorporate the changes.

CRs-Fixed: 322478
Change-Id: Ia883c85469ba4d4025d518b6ddba371c755f3763
Signed-off-by: Srinivasa Rao Uppala <uppalas@codeaurora.org>
2012-01-16 12:28:02 +05:30
Olav Haugan
0703dbf608 gpu: ion: Refactor platform data
Refactor platform data to allow for better
expansion in the future. Add void * for
elements unique to each heap type.

Change-Id: I435679819c67ce917b5798009eff7e71047fd2ea
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2012-01-15 09:30:35 -08:00
Linux Build Service Account
dcaf3a849e Merge "clk: add helper functions clk_prepare_enable and clk_disable_unprepare" into msm-3.0 2012-01-15 07:03:04 -08:00
Richard Zhao
4e302a9efc clk: add helper functions clk_prepare_enable and clk_disable_unprepare
It's for migrating to generic clk framework API.

The helper functions  help cases clk_enable/clk_disable is used
in non-atomic context.
For example, Call clk_enable in probe and clk_disable in remove.

Change-Id: If4023d1856ecc07f332f072c1b4831ad3cba82de
Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Russell King <linux@arm.linux.org.uk>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2012-01-15 00:30:00 -08:00
Olav Haugan
0a85251cd8 gpu: ion: Add support for secure buffers
Secure buffers provides a way to allow premium encrypted
multimedia content to be decrypted in a secured
memory area that does not allow for interception of the
decrypted content.

Add support for heap type that allow heap to be
used for content protection. Introduce new content
protection heap type and id's.

Change-Id: Idd56aa8805b5b74d1b9ab3fe8964aacc218668c1
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2012-01-14 22:18:45 -07:00
Linux Build Service Account
a3f14c0989 Merge "Bluetooth: Support for writing hci flush timeout parameter." into msm-3.0 2012-01-14 18:24:57 -08:00
Linux Build Service Account
b41f7473b0 Merge "wfd: msm: Adds encoder sub-device." into msm-3.0 2012-01-14 18:24:57 -08:00
Srinivas Krovvidi
10734198ae Bluetooth: Support for writing hci flush timeout parameter.
Added Flush Timeout parameter setting for l2cap channel. Bluetooth
profiles using l2cap can set this parameter to flush out the data
when it cannot be sent over the air with in timeout duration.

Change-Id: I60420c5be3a790aff26bc30e8089fdca47a99222
Signed-off-by: Srinivas Krovvidi <skrovvid@codeaurora.org>
2012-01-14 16:37:21 -07:00
Linux Build Service Account
35b3b80063 Merge changes If05e598b,Idf4760c7 into msm-3.0
* changes:
  power: pm8921-charger: support for external charger drivers
  power: core: add power supply APIs
2012-01-14 02:35:05 -08:00
David Keitel
88e1b57f00 power: pm8921-charger: support for external charger drivers
Allow the pm8921-charger driver to initiate charging on a
registered 3rd party charging driver through the power supply class.
Also enable the maintenance of charging properties such as online
and charge type using the power supply class rather than
directly depending on the 3rd party driver.

When a external charger is registered using power_supply_register
the external_power_changed callback of the charger driver checks
for an external charger named "dc". This removes the dependency
of a 3rd party charger to call directly into the charger driver.

Also, update the isl9519q driver to reflect the changes and
utilize power supply class calls to enable charging
on the isl chip from PM8921 charger driver.

This serves as an example for other 3rd party external
chargers supporting PMIC with high current charging.

Finally, add pr_fmt macro which automatically adds function name
to print statements and remove __func__ from individual print
statements.

Change-Id: If05e598be260d924ec3263bad33317cf4e7543a1
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2012-01-13 12:05:11 -08:00
David Keitel
65ddd84042 power: core: add power supply APIs
Rename power_supply_set_charging_by to power_supply_set_online to
more accurately reflect the intent of the API.

Add power_supply_set_charge_type to enable a charger driver to set
a POWER_SUPPLY_PROP_CHARGE_TYPE. Ultimately this is handled like
a request, the receiving charger driver then can handle the request
and report the adequate POWER_SUPPLY_PROP_CHARGE_TYPE once necessary
action has been taken.

Change-Id: Idf4760c7d6c0f61a9eccc656cd469a6ac5fdc6cd
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2012-01-13 12:04:50 -08:00
Brian Gix
568dde90e7 Bluetooth: Discovery Timer stability fixes
This change prevents running timers from being re-initialized
which causes system instablility. Also prevents starting a
discovery operation when already in progress.

CRs-fixed: 328673
Change-Id: Icda36a25fdcb40dab4f95f9cc39ca124b299e308
Signed-off-by: Brian Gix <bgix@codeaurora.org>
2012-01-13 10:07:23 -08:00
Lynus Vaz
bdb0c07e65 msm: IDLE_TIMER wakes up waiting processes
The msm_idle_stats_update_event() function is now a public function.
In case of IDLE_TIMER expiry, kgsl calls this function to immediately
wake up waiting processes.

Change-Id: Ia259d10e08deea71db047d8091cc97066fba3c1c
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
2012-01-13 09:03:46 +05:30
Vinay Kalia
699edcfca1 wfd: msm: Adds encoder sub-device.
Adds encoder subdevice to Wifi display driver.
Captured output from MDP can be fed to this
subdevice to get encoded.

Change-Id: Iacdc551ef266525dea27bb99f98833093a57fb39
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
2012-01-12 19:02:19 -08:00
Rohit Vaswani
b766bef8a1 msm: Remove references to tcsr in fsm9XXX targets
In FSM9XXX TCSR address space cannot be accessed from Apps
processor anymore.

Change-Id: I32d3c02fa8908d91619e2e340de7c844128131a6
Acked-by: Kaushik Sikdar <ksidkar@qualcomm.com>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2012-01-12 11:01:50 -08:00
Linux Build Service Account
b64b97a5f7 Merge "[media] v4l: add control definitions for codec devices" into msm-3.0 2012-01-12 07:59:39 -08:00
Vinay Kalia
e1ba2705ea msm: wfd: Adds writeback start/stop functionality.
Removes register/unregister calls and replaces them
with start/stop. No need to pre-register the buffers
anymore.

Change-Id: I2f12c3a5791252ad09032cc628d93fb1dc50fee0
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
2012-01-11 12:17:35 -08:00
Linux Build Service Account
3ccc82179d Merge changes I0059a438,Ic6455ac0,I3ac329f2 into msm-3.0
* changes:
  Revert "cpu-hotplug: Add the function 'cpu_hotplug_inprogress'"
  Revert "printk: Don't allow cpu to get console lock during hotplugging"
  Revert "partition_sched_domains: Do not destroy old sched domain on cpu_up"
2012-01-11 08:03:55 -08:00
Kamil Debski
5f0fb77cb2 [media] v4l: add control definitions for codec devices
Add control definitions and documentation for controls
specific to codec devices.

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Change-Id: I94e1be196120988cfee2420ba6bd342eece1f481
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
2012-01-10 15:44:52 -08:00
Manu Gautam
5143b25310 msm: clock: Use device names to distinguish between USB clocks
Drivers should now use their device names to distinguish between
clocks of the same type rather than the clock name. Clock names
are updated to match the new naming convention.

CRs-Fixed: 327559
Change-Id: I78757806589e037a0655a63e7ee20c935214c99d
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2012-01-09 22:32:33 -07:00
Linux Build Service Account
f5845c4578 Merge "ASOC: msm: Add the MI2S CPU driver." into msm-3.0 2012-01-09 21:15:31 -08:00
Linux Build Service Account
1bb561013c Merge "msm: vidc: Adds video header files." into msm-3.0 2012-01-09 17:18:37 -08:00
Linux Build Service Account
ec3c193aa6 Merge changes I4973b80b,I3c4fd9d3 into msm-3.0
* changes:
  msm: 8930: Add ADC clients
  mfd: pmic8038-core: Add HK/XOADC device
2012-01-09 17:18:37 -08:00
Vinay Kalia
b559874ae9 msm: vidc: Adds video header files.
Adds video header files in include location
so that they can be included by other kernel
modules, eg: by v4l2 capture driver for
Wifi display.

Change-Id: Ib7621d8f551e0d0e8660b19db25c2ff6a501cd67
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
2012-01-09 15:55:45 -07:00
Kuirong Wang
274f21ac19 ASOC: msm: Add the MI2S CPU driver.
Add MI2S CPU driver which configures QDSP6 AFE to start MI2S port.

Change-Id: Idc12325d83607d60e66636c3fba052204905a629
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2012-01-09 14:47:36 -07:00
Linux Build Service Account
d846875671 Merge "wcnss: Add Riva 'power on lock' APIs" into msm-3.0 2012-01-09 07:08:43 -08:00
Linux Build Service Account
34fbc76b64 Merge changes I53faf607,I9590fff7 into msm-3.0
* changes:
  msm: rotator: Add bus scaling support
  msm: display: Add rotator bus scaling vectors for 8660/8960
2012-01-07 05:17:01 -08:00
Linux Build Service Account
917e39eccf Merge changes I788b28d3,I459a18bb into msm-3.0
* changes:
  video:msm: Adding stub for MSMFB_MDP_PP ioctls
  include:linux: Adding MSMFB_MDP_PP IOCTL
2012-01-07 05:17:01 -08:00
Linux Build Service Account
9fd62602cb Merge changes I31954b3f,I350a14c3,I27759a00 into msm-3.0
* changes:
  power: pm8921-charger: Add pm8921_set_usb_power_supply_type
  power: pm8921-charger: warn if the battery is hot
  power: pm8921-charger: end of charge fixes
2012-01-07 05:17:01 -08:00
Pravin Tamkhane
02a4068e48 include:linux: Adding MSMFB_MDP_PP IOCTL
Add MSMFB_MDP_PP IOCTL and required data structures for new post processing
features

Change-Id: I459a18bbb739f79833901159a19c2c8705147b57
Signed-off-by: Pravin Tamkhane <pravint@codeaurora.org>
2012-01-06 18:29:45 -08:00
Siddartha Mohanadoss
ef10213c2f mfd: pmic8038-core: Add HK/XOADC device
HouseKeeping ADC (HKADC) on the PMIC is used by clients
to measure voltage, current and temperature. Clients
include the Battery, Charger and Thermal clients that
require reading the ADC in real time. This also
supports reading the ADC channels that are mapped through
the PMIC MPP's such as the PA THERM channel.

Change-Id: I3c4fd9d368550c1cca168ea097e0d457d01d695e
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2012-01-06 18:15:08 -08:00
Nagamalleswararao Ganji
5fabbd6c0e msm: display: Add rotator bus scaling vectors for 8660/8960
Add rotator bus scaling vectors for 8660 & 8960 targets

Change-Id: I9590fff72a57687b110355e3862d5ac5cf61e0cc
Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
2012-01-06 18:13:00 -08:00
Linux Build Service Account
d80dd681e2 Merge "usb: gadget: fix crash on USB cable disconnection" into msm-3.0 2012-01-06 17:41:49 -08:00
Nagamalleswararao Ganji
880f847f5d msm-fb: display: ION based allocation for writeback buffers
ION based allocation is added for the writeback support
for content security.

Change-Id: Iaa7ec07a7cbc05c818af6f26a2c42c8c36b9bcb5
Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
2012-01-06 14:49:23 -08:00
Olav Haugan
b5be7998c6 gpu: ion: Add heap ids
Add heap ids for ion heaps. Remove unused
system contiguous heap. Fix vmalloc heap name.

Change-Id: I3c3a653a53c8db8b66a7bba2abac0dfe560c407c
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2012-01-06 14:49:08 -08:00
Michael Bohan
c1105e186a Revert "cpu-hotplug: Add the function 'cpu_hotplug_inprogress'"
This reverts commit 3d321a3570.

Since sched domains are allocated dynamically now these
changes are N/A for 3.0. Hence the revert.

Change-Id: I0059a4384c871815c01455d4b6f5c8be582a5d73
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
2012-01-05 10:15:53 -08:00
Linux Build Service Account
3d5263d038 Merge "radio-tavarua: Set the lower and upper band limits for all regions" into msm-3.0 2012-01-04 21:44:36 -08:00
David Keitel
6df9cea2c8 power: pm8921-charger: Add pm8921_set_usb_power_supply_type
USB can distinguish between types of USB connections such as a
DC charger or PC connection.

Let the USB drivers set the specifc power_supply_type via this
function.

CRs-Fixed: 326548
Change-Id: I31954b3f8d2b1e5fd72712e1f94f67fdbc2e205d
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2012-01-04 11:47:00 -08:00
Linux Build Service Account
145ae40f6c Merge changes Idf735f36,I7cb06a48 into msm-3.0
* changes:
  drivers: pm8901: Delete pmic8901 specific subdevice drivers
  drivers: pm8058: Delete pmic8058 specific subdevice drivers
2012-01-04 11:09:34 -08:00
Linux Build Service Account
157723bf2a Merge "Bluetooth: Management API changes in Bluetooth to update remote Class." into msm-3.0 2012-01-03 03:12:09 -08:00
Ofir Cohen
4da266f11a usb: gadget: fix crash on USB cable disconnection
Crash was observed (9x15) when USB cable was
disconnected. Root cause was NULL pointer and
USB BAM reset due to USB PHY reset. On 9x15 no
reset on disconnect will be performed.

CRs-Fixed: 326999
Change-Id: I006afb8dcd225caf9280dd915f8af3edfaebff5a
Signed-off-by: Ofir Cohen <ofirc@codeaurora.org>
2012-01-03 13:04:46 +02:00
Anantha Krishnan
29f1d9352f radio-tavarua: Set the lower and upper band limits for all regions
Configure the lower and upper band limits for all regions.

Change-Id: Ie9ceced02be0d3f5b335fb7eb6594d5783823f91
CRs-Fixed: 326007, 325078
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
2012-01-02 20:40:12 +05:30
Jayasena Sangaraboina
0fc197d3da ASoC: qdsp6: Set proper sampling rate for Fluencepro topology
The sampling rate of Fluencepro topology is either 16K or 8K.
Therefore, we need to reduce the ADM sampling rate to 16K during
recording with Fluencepro topology.

Change-Id: I0a558c359dbfd62aa35c05dbadba57b3e3820d21
Signed-off-by: Jayasena Sangaraboina <jsanga@codeaurora.org>
2012-01-02 07:23:30 -07:00
Anirudh Ghayal
4786e9fdba drivers: pm8058: Delete pmic8058 specific subdevice drivers
PM8058 subdevices now use pm8xxx based drivers.
Delete keypad, power-key, vibrator, rtc, mpp, gpio, thermal,
batt-alarm, misc drivers.

Change-Id: I7cb06a48b7d724aa1e1790ba88feeece1701bb35
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2012-01-02 09:57:46 +05:30
Sameer Thalappil
aebc0d8c24 wcnss: Add Riva 'power on lock' APIs
During SSR Riva should not be 'powered on' until all the host
drivers finish their shutdown routines. Add APIs to support
this synchronization mechanism.

Change-Id: Id211cf2deb7accd0e4bdfe8cd328e6807eac875e
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
2012-01-01 13:45:23 -08:00
Linux Build Service Account
4e566b30e0 Merge "nl80211: Change the sequence of NL attributes." into msm-3.0 2011-12-30 09:40:51 -08:00