Commit Graph

142745 Commits

Author SHA1 Message Date
Ido Shayevitz
b32c19290c usb: gadget: android: Set usb_core_id if exists
Read usb_core_id from platfrom data.

Change-Id: I360bc064c173214c3e1381dac47eec10f3285819
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
2013-02-27 18:15:02 -08:00
Jeevan Shriram
3667c5e78f msm_fb: display: Add ion support for PPP
Add support for ion in MDP PPP drivers for accessing
source images and destination images.

Change-Id: I1ba07fb826447abb13ff73752089577cf9924ce5
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
2013-02-27 18:15:01 -08:00
Olav Haugan
12c001509f gpu: ion: Add EXPORT_SYMBOL to various functions
Add EXPORT_SYMBOL to specific functions that should be
allowed to be used from within kernel modules.

Change-Id: I666c1f1a18d5af58906cb2185c5cf29d8596013f
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2013-02-27 18:14:59 -08:00
Praneeth Paladugu
40f26916fe msm: vidc: Adds new event type
Adds new event type to convey about the resources
requirement.

Change-Id: I7ea67231c247dc983463a02b828c10adc486b60d
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
2013-02-27 18:14:58 -08:00
Praneeth Paladugu
3cc5caf799 msm: vidc: Adds Profile and Level support
Adds support for Profile and Level support by setting
default values and calling set_property.

Change-Id: Ied289779bca6441c5cfdde7c766c02c14c8bce23
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
2013-02-27 18:14:58 -08:00
Praneeth Paladugu
04fb7fcbcc msm: vidc: Adds support for VC-1 decoder
Adds support for VC-1 decoder by adding the VC-1 Decoder
entry in vdec formats struct.

Change-Id: I4a5a278a93c252f4e3a16eb004d06d72dba6e491
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
2013-02-27 18:14:57 -08:00
Mayank Rana
dfce0b5cc5 USB: OTG: Ignore PMIC BSV interrupt while mode is A Host Mode or above
Seeing spurious PMIC BSV interrupt while otg is in A host mode. Hence
ignore PMIC BSV interrupts in this cases.

CRs-Fixed: 373645
Change-Id: I99c13c22e2485f2a891bfb3dd7870794ca86296b
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2013-02-27 18:14:57 -08:00
Stepan Moskovchenko
d2c24f8eca msm: Change semantics of cpu_is_msm8930()
Per revised design decisions, cpu_is_msm8930() shall only
return true on 8930, and not on the 8627 variant. Modify
the cpu_is_xxx functions to reflect this change, and update
call sites accordingly.

Change-Id: I50b943f80c731717e6cd5d7fffb13aeec0f85a40
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2013-02-27 18:14:55 -08:00
Ido Shayevitz
988d0913f4 usb: msm8974: Select USB_ARCH_HAS_XHCI by default
msm8974 supports super-speed usb3.0 xHCI interface.

Change-Id: I17de8c9caa16cd0b73782f41ccf69f26133a4f40
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
2013-02-27 18:14:55 -08:00
Stephen Boyd
97cdeb84bf pm8xxx-adc: Fix lockdep warnings with key's not in .data
Devices attributes have lockdep keys and so they should exist in
the data section. Failure to do this results in lockdep turning
itself off and warnings such as:

	BUG: key eeb0883c not in .data!

Fix this problem in the pm8xxx-adc driver by initializing the
keys with sysfs_attr_init().

Change-Id: Ie42f9a28c343e32ef36ca3570d63a7bb557dfe64
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2013-02-27 18:14:54 -08:00
Stepan Moskovchenko
382b890608 msm_serial_hs_lite: Check SR[TXEMT] in wait_for_xmitr
Use SR[TXEMT] in addition to ISR[TX_READY] when determining
whether new data can be transmitted to work around a
condition where ISR[TX_READY] may not always give an
accurate indication of the state of the queue.

Change-Id: Ia3a590a485647a005c7c019660f11566208c2667
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2013-02-27 18:14:53 -08:00
Stephen Boyd
fcde7c2988 pm8xxx-adc: Remove dead debugfs code
These ops are not referenced by any code. Remove them.

Change-Id: I092b0fbb47d1d95524683b73472c04152c07a63d
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2013-02-27 18:14:52 -08:00
Carter Cooper
227fafed6c msm: kgsl: Remove last_expired_ctxt_id
last_expired_ctxt_id was used briefly for per context timestamps and now
can be removed as it is no longer used.

Change-Id: I51d3947fe6da366824d1b947ae3448bee3518477
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
2013-02-27 18:14:52 -08:00
Pavankumar Kondeti
9a434d1163 USB: OTG: msm: Add support for proprietary charger detection
Proprietary chargers pull D+/- to specific voltages between 2.0-3.3V
(VLGC) for identification.  The DM voltage may not exceed VLGC due
to pull-down resistor.  Hence a proprietary charger is detected as
a Standard downstream port (SDP).  Read line state to distinguish
between SDP and proprietary charger.  The DP voltage would exceed
VLGC for proprietary chargers.

D- can be greater than VLGC when a low speed device is attached via
Accessory charger adapter (ACA-A). Hence mark the charger as ACA-A
if ID resistance is RID_A and D- > VLGC

CRs-Fixed: 368688
Change-Id: I3497efbe025abf150078a19d69254f75f5df5b2a
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2013-02-27 18:14:51 -08:00
Kiran Kumar H N
d00b0ef677 msm: camera: Send camif error notification to user.
In case of CAMIF errors, notify the user so that it
can cleanup resources and exit gracefully.

Change-Id: Id6cea63ef47e1bd3881db7f61c6cc3cc3c9343b3
CRs-Fixed: 371688
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
2013-02-27 18:14:51 -08:00
Abhijeet Dharmapurikar
141fd301b7 power: pm8921-bms: remove support for pm8921 v1.0 and v1.1
The bms module is reused in multiple pmics. It is now unnecessary
to check for 8921 versions in the driver. As a result of this change
older 8921 versions are not supported.

CRs-Fixed: 372679
Change-Id: Ie9131d47ed08fa6fa39812c9e60be34cc6280e4c
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2013-02-27 18:14:46 -08:00
Mayank Rana
dfae37e7d2 RNDIS: Add Data aggregation (multi packet) support
Add data aggregation support using RNDIS Multi Packet feature
to achieve better UDP Downlink throughput. Max 3 RNDIS Packets
aggregated into one RNDIS Packet with this implementation.

With this change, seeing UDP Downlink throughput increase
from 90 Mbps to above 100 Mbps when using Iperf and sending
data more than 100 Mbps.

CRs-Fixed: 352010
Change-Id: I7c353d21d60002b66c08181fd621f9ab8753cb0f
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: Rajkumar Raghupathy <raghup@codeaurora.org>
2013-02-27 18:14:44 -08:00
Eric Holmberg
f890452802 tty: n_smux: Trigger TX worker after wakeup
After completing a wakeup, trigger the TX worker to start sending
pending data.

Without the fix, the TX worker will wait until either other activity or
a power-down transmit before sending pending TX data.

Change-Id: Ica90b35d9a3169992db49ff493f783c27a2989da
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2013-02-27 18:14:43 -08:00
Kiran Kumar H N
2885f48cee msm: camera: Pass device pointer to regulator_get()
During VPE/VFE initialization, pass the device pointer to
regulator_get() as per the expected usage of the API.

Change-Id: Ide33ff05814e11d5955a8ec7916ef595dceb0f84
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
2013-02-27 18:14:42 -08:00
Eric Holmberg
fd9295b94a tty: n_smux: Remove Sleep Request ACK when powering down
Removed the ACK from the protocol when a sleep request is received when
already in the turning-off state to avoid an extra wakeup just to send
the ACK.

This case happens when both the local and remote sides transition to the
turning-off state and send a sleep request.  Both sides will then
receive the sleep request at which point they can immediately transition
to the off side without having to perform a wakeup just to send the ACK.

Change-Id: I3fe4a82da34b68ef51ee9aa0c00507361b0717ed
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2013-02-27 18:14:42 -08:00
Eric Holmberg
a0e9467b53 tty: n_smux: Increase inactivity timeout
Temporarily increase the Application processor inactivity timeout to
prevent a local inactivity timeout while the external modem is booting.
This is necessary to allow releasing a power-collapse ACK change without
breaking SMUX until the external modem changes have also been mainlined.

Once the external modem changes have been mainlined, then this timeout
will be reduced to 250ms to improve power consumption when idle.

Change-Id: Ic9e12c849dd53955c6ff4a1eaff0a2ec761ffa35
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2013-02-27 18:14:42 -08:00
Ido Shayevitz
bdaa38477e usb: gadget: ci13xxx_udc: Set usb_core_id if exists
Read usb_core_id from platfrom data.

Change-Id: Ie2b57a12b2d97668efd097e0c55be630e98cc209
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
2013-02-27 18:14:41 -08:00
Subhash Jadavani
b3baf68f62 defconfig: remove CONFIG_MMC_MSM_CARD_HW_DETECTION
CONFIG_MMC_MSM_CARD_HW_DETECTION is no longer used so this
patch removes it completely from kconfig as well as from
defconfigs.

Change-Id: I8e7220722e0e90296d379105c61787ca54a1afd4
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2013-02-27 18:14:41 -08:00
Hemant Kumar
5192c55046 EHCI: HSIC: Add debug support for HSIC system error
Halt the system when HSIC system error happens and dump HSIC
link registres. Also, save the address of msm_hsic_hcd
structure to a global pointer.

CRs-Fixed: 375536
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Change-Id: Ia346778911f610338f38492bc1ff0e8a9c7a87c7
2013-02-27 18:14:40 -08:00
Sujit Reddy Thumma
3a3682b008 mmc: msm_sdcc: Add new soft reset mechanism for SDCCv4
Newer versions of SDCCv4 controller has added a soft
reset mechanism to reset the controller state machine
or reset the entire controller to default power on state.

MCI_POWER[SW_RST] - The impact of this reset bit will be
similar to the impact of the reset by doing clk_reset() on
host controller clock (HCLK). With this all SW registers
and all internal logic is reset.

MCI_POWER[SW_RST_CONFIG] - Resets the controller state machines
without resetting configuration registers (MCI_POWER, MCI_CLK,
MCI_INT_MASKn).

Change-Id: I7fd13e736b23dff16c20bd9f865ca97e7daaf304
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
2013-02-27 18:14:39 -08:00
Padmanabhan Komanduru
a8576690b3 msm_fb: Handle multiple histogram reader errors during suspend/resume
If a histogram reader waits for completion in the do_histogram ioctl
and during this time the device is suspended, the complete for this
gets called from mdp_histogram_ctrl_all() in the panel_next_off()
sequence. This results in mgmt->hist not set to NULL. The subsequent
do_histogram ioctls after device resume fail due to multiple reader
failure condition since the histogram irq will be enabled now from
the same mdp_histogram_ctrl_all() during panel_next_on() sequence and
this by-passes mgmt->hist getting set to NULL that is present in
histogram_start() ioctl. Handle this scenario.

Change-Id: Ib0485da24c0f09a3f26768b75231903c8a2e0033
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2013-02-27 18:14:39 -08:00
Carl Vanderlip
827601c6d5 Revert "Revert "video: msm: Always queue histogram work""
This reverts commit 2423ba8ae07458ec93efa07d777454f26d1d7c90.
commit 2423ba8... will be refered to as commit X

Commit X should have been listed as a parent of commit
56a123baaab84af584fbbf5cbb29955ec5c92f39 (i.e. video: msm: Always queue
histogram work & lock histogram calls).

commit 56a123b... will be refered to as commit Y

Commit Y is composed of 3 commits that were squashed together after they
caused errors when only one of them merged into mainline. Commit X was
created to revert the first of these 3 commits, and thus resolve the
errors.

However, when updating commit Y, commit X was omitted as the parent commit.
So when commit Y merged as a parent of commit X, commit X reverted part of
commit Y. By reverting commit X, this commit restores commit Y.

Change-Id: Ibfad464a2579354c92bc62d406672dcfc6a24009
Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
2013-02-27 18:14:39 -08:00
Pu Chen
6e03087e73 msm: kgsl: Add GDSC support for dedicated power rail for GPU
There are two head switches for GPU, one is for the GPU core
itself, the other is for surrounding digital circuits. KGSL
needs to control them both.

The turn on sequence is:
1. Turn on GPU core
2. Turn on digital circuits

The turn off sequence is:
1. Turn off digital circuits
2. Turn off GPU core

Two regulator (actually head switch) names "vdd_dig" and "vdd"
are created in device tree file, representing digital
circuits and GPU core head switches respectively. In struct
kgsl_pwrctrl, adding a new regulator struct "gpu_dig"
which corresponds to vdd_dig. And the existing struct "gpu_reg"
corresponds to vdd.

Change-Id: Idb05caf547ad148885adb9cf498c47635067b70b
Signed-off-by: Pu Chen <puchen@codeaurora.org>
2013-02-27 18:14:38 -08:00
Stephen Boyd
7902ffe782 epm-adc: Fix lockdep warnings with key's not in .data
Devices attributes have lockdep keys and so they should exist in
the data section. Failure to do this results in lockdep turning
itself off and warnings such as:

	BUG: key eeb0883c not in .data!

Fix this problem by statically allocating the devices attributes
and hardcoding the names instead of generating them dynamically.

Change-Id: I8db28768b3bdffab21db8c2ea2cfb21f0e4010c1
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2013-02-27 18:14:36 -08:00
Manu Gautam
11f413581a usb: dwc3-msm: Request for otg_interrupt irq
DWC3 has separate irq line for OTG interrupts (e.g. ID / BSV).
These interrupts are needed to detect cable connect and disconnect
events. Hence, request for this interrupt line from OTG driver.
Also, update device tree binding documentation for DWC3 core.

Change-Id: Ie97e4b3b5dcf840eabeb01b5c5d6531a8a70a3c9
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2013-02-27 18:14:35 -08:00
Shuzhen Wang
062e25047a camera: Add missing mutex initialization.
inst_lock of pcam_inst needs to be initialized and destroyed
properly.

Change-Id: Ie041fc429cdf122c01b93393bb4a6c20a08e4267
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
2013-02-27 18:14:34 -08:00
Shubhraprakash Das
3b71438df1 msm: kgsl: Check whether the ops pointer is valid.
Check that the ops pointer is valid before using it, otherwise we
may fault.

Change-Id: I7f1420638eca53f6d85b8c3ff114033ce77cb408
CRs-fixed: 360810
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2013-02-27 18:14:33 -08:00
Shubhraprakash Das
11ba34bdf4 msm: kgsl: Remove additional idle commands
Remove unneeded idle commands from the command stream when updating
pagetables and doing TLB flushes.  Ths cuts down on the number of
commands in the ringbuffer during switches.

Change-Id: I8f1fa31db33c465ecdbd0ca897f4651f2670c4e4
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2013-02-27 18:14:32 -08:00
Shubhraprakash Das
3499c4be1a msm: kgsl: For IOMMU only decide to flush when memory is unmapped
In case of IOMMU memory needs to only be flushed when it is
unmapped and not mappped. Also, when an application is running
the number of unmaps would in most cases be less than number of
maps, so this way the number of flushes wil be fewer.

Change-Id: Id4107631c343045edbc744125035202844405910
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2013-02-27 18:14:32 -08:00
Tarun Karra
9ccbef2f37 msm: kgsl: Faster GPU hang detection
Check global GPU status registers in intervals of 2 seconds,
if the registers did not change after 2 seconds trigger a hang.
When there is an actual GPU hang and GPU is stalled, this reduces
the current hang detection time from 10 seconds to 2 seconds.
Faster GPU hang detection reduces the overall time to recover
from GPU hang.

Change-Id: If432ccacc1b77b4fc7f08b756886bd3ae5edf04f
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
2013-02-27 18:14:32 -08:00
Shubhraprakash Das
06f2ea67a5 msm: kgsl: Check if GPU is hung when reserving space in rb
A busy loop is executed when we allocate space from the ringbuffer.
If the GPU is hung then we can wait indefinitely in the busy loop.
Add a wait time to this busy loop, and if the wait time elapses then
report a GPU hang instead of waiting indefinitely.

Change-Id: I035c39063cbfa25380702720f929df5319e73e61
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2013-02-27 18:14:31 -08:00
Eric Holmberg
9c9bb87b87 tty: n_smux: Add packet-level logging of power commands
Log power packets in addition to power state changes.

Change-Id: I46b8d86df881b328bb9124611bdbf1a0db2928f9
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2013-02-27 18:14:31 -08:00
Eric Holmberg
09f786df0c tty: n_smux: Allow TX work to run while waiting for wakeup
The wakeup worker and TX worker both run on the same single-threaded
workqueue, so the wakeup worker needs to reschedule after sending a
wakeup character to allow pending characters to get flushed.

Without this change, a burst of wakeup characters will be sent once the
exponential back-off delay is 32ms after which the wakeup worker
reschedules itself as a delayed work item.

Change-Id: I4260c7f5b2f1f90e87575eac4b407be2bc6adb1d
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2013-02-27 18:14:30 -08:00
Eric Holmberg
0b5be95d8c tty: n_smux: Add retry queue size flow control
If the receive retry queue size gets too large, then automatically
enable flow control to prevent having to drop buffers.

Change-Id: If27599015b362ce013e177ee350e026933390d72
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2013-02-27 18:14:30 -08:00
Eric Holmberg
64431703a0 tty: n_smux: Make unit test macros safe for side-effects
Use temporary values to allow using arguments with side effects in the
unit test macros.

Change-Id: Iebe7586e1d3469fcf9729b77ddedc701c71a2bd3
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2013-02-27 18:14:30 -08:00
Eric Holmberg
31626ce814 tty: n_smux: Clarify test messages
Clarify test messages for list-empty reporting to avoid confusing
the list-empty flag with an event count value.

Change-Id: I31aeb6feb89ada5f7d5b691432b5d8f4aba64cc8
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2013-02-27 18:14:29 -08:00
Eric Holmberg
c7db703109 tty: n_smux: Update logging to handle broadcast ID
Add range checking of the channel ID for packet logging.  This prevents
out-of-bounds array access when reading the channel state.

Change-Id: Ic91b29e89ef9997525f6283b8212408cccd646f8
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2013-02-27 18:14:29 -08:00
Eric Holmberg
1daabf96fb tty: n_smux: Prevent TTY Line Discipline unload during flush
Hold mutex lock while flushing TTY to avoid race condition with
unloading the line discipline.

Change-Id: I2327be9bd39119d14c3e607e8ace201d51755e08
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2013-02-27 18:14:29 -08:00
Laura Abbott
bc478d4c60 gpu: ion: Pull in patches for 3.4
Pull in Ion patches for 3.4 upgrade. Inclues the following
patches from google:

 commit 7191e9ba25
 Author: Rebecca Schultz Zavin <rebecca@android.com>
 Date:   Mon Jan 30 14:18:08 2012 -0800

     ion: Switch map/unmap dma api to sg_tables

     Switch these api's from scatterlists to sg_tables

     Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>

 commit 6f9e56945d
 Author: Rebecca Schultz Zavin <rebecca@android.com>
 Date:   Tue Jan 31 09:40:30 2012 -0800

     ion: Add reserve function to ion

     Rather than requiring each platform call memblock_remove or reserve
     from the board file, add this to ion

     Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>

 commit 9ae7e01de1
 Author: KyongHo Cho <pullip.cho@samsung.com>
 Date:   Wed Sep 7 11:27:07 2011 +0900

     gpu: ion: several bugfixes and enhancements of ION

     1. Verifying if the size of memory allocation in ion_alloc() is aligned
     by PAGE_SIZE at least. If it is not, this change makes the size to be
     aligned by PAGE_SIZE.

     2. Unmaps all mappings to the kernel and DMA address spaces when
     destroying ion_buffer in ion_buffer_destroy(). This prevents leaks in
     those virtual address spaces.

     3. Makes the return value of ion_alloc() to be explicit Linux error code
     when it fails to allocate a buffer.

     4. Makes ion_alloc() implementation simpler. Removes 'goto' statement and
     relavant call to ion_buffer_put().

     5. Checks if the task is valid before calling put_task_struct() due
     to failure on creating a ion client in ion_client_create().

     6. Returns error when buffer allocation requested by userspace is failed.

     Signed-off-by: KyongHo Cho <pullip.cho@samsung.com>

 commit 043a61468f
 Author: Rebecca Schultz Zavin <rebecca@android.com>
 Date:   Wed Feb 1 11:09:46 2012 -0800

     ion: Switch ion to use dma-buf

     Ion now uses dma-buf file descriptors to share
     buffers with userspace.  Ion becomes a dma-buf
     exporter and any driver that can import dma-bufs
     can now import ion file descriptors.

     Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>

 commit 0d1259b5f8
 Author: Rebecca Schultz Zavin <rebecca@android.com>
 Date:   Mon Apr 30 16:45:38 2012 -0700

     gpu: ion: Use alloc_pages instead of vmalloc from the system heap

     With this change the ion_system_heap will only use kernel address
     space when the memory is mapped into the kernel (rare case).

     Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>

 commit be4a1ee79a
 Author: Rebecca Schultz Zavin <rebecca@android.com>
 Date:   Thu Apr 26 20:44:10 2012 -0700

     gpu: ion: support begin/end and kmap/kunmap dma_buf ops

     These ops were added in the 3.4 kernel.  This patch adds support
     for them to ion.  Previous ion_map/unmap_kernel api is also
     retained in addition to this new api.

     Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>

 commit 46d71337f9
 Author: Rebecca Schultz Zavin <rebecca@android.com>
 Date:   Mon May 7 16:06:32 2012 -0700

     gpu: ion: Allocate the sg_table at creation time rather than dynamically

     Rather than calling map_dma on the allocations dynamically, this patch
     switches to creating the sg_table at the time the buffer is created.
     This is necessary because in future updates the sg_table will be used
     for cache maintenance.

     Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>

 commit 903f6c716d
 Author: Rebecca Schultz Zavin <rebecca@android.com>
 Date:   Wed May 23 12:55:55 2012 -0700

     gpu: ion: Get an sg_table from an ion handle

     This patch adds an interface to return and sg_table given a
     valid ion handle.

     Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>

The commit also includes fixups needed for MSM specific code.

Change-Id: Idbcfa9d6af0febf06f56daaa6beaa59cc08e4351
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2013-02-27 18:14:28 -08:00
Ravishangar Kalyanam
ebd424b458 msm_fb: display: Attach IOMMU for DSI cmd mode in kickoff call
Attach IOMMU call is currently done from DSI cmd mode DMA
update method. Move the attach call to kickoff which enables
it from restore and video paths

Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
Change-Id: I06d39e31b3ab1cf797fb655e7e558c1cabd98ebf
2013-02-27 18:14:26 -08:00
Pavankumar Kondeti
d67b3c612d USB: msm_otg: Rename MHL USB high speed switch regulator name
USB DP and DM lines are routed to USB PHY via MHL transmitter chip
if it is present on the board.  MHL transmitter route USB DP and DM
lines to MSM based on the High Speed Switch position.  The regulator
controlling this switch is different across targets.  For example
this switch is powered up by 3.3V regulator on 8960 Liquid and it is
5V regulator on 8930 fluid.  Hence rename existing "mhl_ext_3p3v"
supply name to a generic name "mhl_usb_hs_switch".

Change-Id: I35a6240fdbb01fa6b695a52968cd141d9418def7
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2013-02-27 18:14:25 -08:00
Eric Holmberg
3705270157 tty: smux_ctl: Remove unused ports
Only SMUX_DATA_CTL_0 is currently used from userspace.

Change-Id: Iab9e4fa9b096d34a67fb6662418aec0be1381adb
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2013-02-27 18:14:23 -08:00
Eric Holmberg
2af8f98a37 tty: smux_ctl: Disable debug logging
Disable debug logging that was only necessary for bring-up.

Change-Id: I5a31a982efdd1bb1915571158cc164a3856b097d
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2013-02-27 18:14:23 -08:00
Eric Holmberg
0fc7177c99 tty: smux_ctl: Support removing line discipline gracefully
SMUX_CTL module currently does not handle removal of the driver
gracefully. If there are any pending blocked calls on wait_event,
and the line discipline is removed, this results in accessing
destroyed wake queues.

Add support for aborting wait in response to device removal.

Change-Id: I3213306f6ed401f3abe5770ce324d9329e4dbc3f
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2013-02-27 18:14:22 -08:00
Riaz Rahaman
249e5104d7 vidc: Add required variables in platform data for content protection
Add, initialize variables for firmware addr & secure write back
buffers in vidc platform data.

Change-Id: Ibb1e464af2e0e9038c8d43d6756d5a8481c7f618
Signed-off-by: Riaz Ur Rahaman <riazr@codeaurora.org>
2013-02-27 18:14:22 -08:00